Carabain Digital Apify Actors

Google Trends Scraper

Google Trends Scraper returns Google Trends data for search terms or Trends URLs: the interest curve over time, where interest is highest by country, region, city or US metro, and the top and rising related queries, plus the Trending now list per country. Use it for keyword and content research, seasonality checks and demand dashboards.

Run it on ApifyCreate a free Apify account

The Apify Free plan includes $5 of credit every month, no credit card needed.

One result in your dataset
searchTerm
The term, or the compared terms joined by ,
geo
Geo area (Worldwide or a country/region code)
timeRange
Time range as Google writes it (today 12-m, 2024-01-01 2024-06-30)
interestOverTime_timelineData
Interest over time: per point time (epoch), date (ISO), formattedTime, value (0-100, one per term), hasData, formattedValue, isPartial
relatedQueries_top
Top related queries: query, value, formattedValue, link (and searchTerm when terms are compared)
relatedQueries_rising
Rising related queries; formattedValue is the increase (+250%, Breakout)

and 20 more fields, see Output

Who it is for

SEO specialists and content teams who check demand and rising queries before they write. Marketers and ad planners who time campaigns to seasonal peaks. Analysts and developers who put search interest into forecasts or dashboards, including teams that already use Apify's own Google Trends Scraper and want the same output.

What you can do with the data

Find rising queries before you write

Run your seed keywords and read relatedQueries_rising. Some show Breakout instead of a percentage. Compare them with the top queries to see which demand is new for that keyword.

Plan stock and launches around seasons

Set timeRange to today 5-y or all (back to 2004) and look at interestOverTime_timelineData. The yearly peaks show when to launch, stock up or raise ad budgets. Each point has an ISO date, so it charts directly.

Compare brands in one scale

Turn on isMultiple and enter up to five brands on one line, comma-separated. They come back as one result on the same 0-100 scale, which is the only way to compare terms, since values are relative within one request.

See where demand is local

Pick a country in geo to get interest by region and city, and for the US also by metro area. Use it to choose cities for local landing pages or ad targeting.

Watch what people search right now

Add country codes to trendingCountries and schedule the run hourly or daily. Each trend comes with a search volume, increase percentage, related searches and category, which a newsroom or social team can act on.

Tutorial

How to compare padel and pickleball interest in the Netherlands

  1. Register for free at Apify and open the Actor with the Run it on Apify button on this page.
  2. In searchTerms, enter one line: padel, pickleball. Turn on isMultiple so the two are compared in one result.
  3. Set geo to NL and timeRange to today 5-y. For exact dates, use customTimeRange, such as 2022-01-01 2026-11-01.
  4. Optional: set property to youtube to measure YouTube searches instead of web search.
  5. Start the run. The single result holds the timeline for both terms, interest by province and city, and related queries.
  6. Download it as JSON, or flatten interestOverTime_timelineData into a sheet to chart both lines.

Examples

Keyword trends in the US: past 12 months

Google Trends for a list of keywords in the United States over the past 12 months: weekly interest over time, interest by state, city and metro area, and top and rising related queries. Schedule it monthly to track SEO and content demand. Export to JSON, CSV or Excel.

{
  "searchTerms": [
    "web scraping",
    "artificial intelligence",
    "chatgpt"
  ],
  "geo": "US",
  "timeRange": ""
}
Run this input from the Apify API (curl)
curl -X POST 'https://api.apify.com/v2/acts/carabain-digital~google-trends/run-sync-get-dataset-items' \
  -H "Authorization: Bearer $APIFY_TOKEN" -H 'Content-Type: application/json' \
  -d '{"searchTerms": ["web scraping", "artificial intelligence", "chatgpt"], "geo": "US", "timeRange": ""}'
Run it from Python
# pip install apify-client
import os
from apify_client import ApifyClient

client = ApifyClient(os.environ["APIFY_TOKEN"])
run = client.actor("carabain-digital/google-trends").call(run_input={'searchTerms': ['web scraping', 'artificial intelligence', 'chatgpt'], 'geo': 'US', 'timeRange': ''})
items = client.dataset(run["defaultDatasetId"]).list_items().items

Trending now: US, UK, Germany and the Netherlands

What people search for right now on Google in the US, UK, Germany and the Netherlands: up to 200 trending searches per country with search volume, increase %, related searches and category. Schedule it hourly or daily for news, content and ad ideas. Export to JSON, CSV or Excel.

{
  "trendingCountries": [
    "US",
    "GB",
    "DE",
    "NL"
  ],
  "trendingHours": "24"
}
Run this input from the Apify API (curl)
curl -X POST 'https://api.apify.com/v2/acts/carabain-digital~google-trends/run-sync-get-dataset-items' \
  -H "Authorization: Bearer $APIFY_TOKEN" -H 'Content-Type: application/json' \
  -d '{"trendingCountries": ["US", "GB", "DE", "NL"], "trendingHours": "24"}'
Run it from Python
# pip install apify-client
import os
from apify_client import ApifyClient

client = ApifyClient(os.environ["APIFY_TOKEN"])
run = client.actor("carabain-digital/google-trends").call(run_input={'trendingCountries': ['US', 'GB', 'DE', 'NL'], 'trendingHours': '24'})
items = client.dataset(run["defaultDatasetId"]).list_items().items

Set APIFY_TOKEN to your token from Apify Console, Settings, Integrations. The curl call waits up to 5 minutes; for bigger runs see running from the API and Python. AI agents can call it through the Apify MCP server: https://mcp.apify.com/?actors=carabain-digital/google-trends.

Input

FieldTypeWhat it does
searchTerms
Search terms
arraySearch terms to look up, one per line. Each term gives one result. Turn on Multiple terms to compare up to 5 comma-separated terms in one result, like on trends.google.com.
isMultiple
Multiple terms
booleanIf checked, a comma separates terms that are compared with each other (bitcoin, ethereum), up to 5 per line.
Default: false
timeRange
Time range
stringPredefined time range (default: past 12 months).
Values: , now 1-H, now 4-H, now 1-d, now 7-d, today 1-m, today 3-m, today 5-y, all
Default: ""
customTimeRange
Custom time range
stringOverrides Time range. Format YYYY-MM-DD YYYY-MM-DD, e.g. 2024-01-01 2024-06-30.
geo
Geo area
stringCountry to get results for (default: worldwide). Worldwide gives interest by country; a country gives interest by subregion and city, the US also by metro area (DMA).
Values: , AF, AL, DZ, AS, AD, AO, AI, AQ, AG, AR, AM, AW, AU, AT, AZ, BS, BH, BD, BB, BY, BE, BZ, BJ, BM, BT, BO, BA, BW, BV, BR, IO, VG, BN, BG, BF, BI, KH, CM, CA, CV, BQ, KY, CF, TD, CL, CN, CX, CC, CO, KM, CG, CD, CK, CR, HR, CU, CW, CY, CZ, CI, DK, DJ, DM, DO, EC, EG, SV, GQ, ER, EE, SZ, ET, FK, FO, FJ, FI, FR, GF, PF, TF, GA, GM, GE, DE, GH, GI, GR, GL, GD, GP, GU, GT, GG, GN, GW, GY, HT, HM, HN, HK, HU, IS, IN, ID, IR, IQ, IE, IM, IL, IT, JM, JP, JE, JO, KZ, KE, KI, XK, KW, KG, LA, LV, LB, LS, LR, LY, LI, LT, LU, MO, MG, MW, MY, MV, ML, MT, MH, MQ, MR, MU, YT, MX, FM, MD, MC, MN, ME, MS, MA, MZ, MM, NA, NR, NP, NL, NC, NZ, NI, NE, NG, NU, NF, KP, MK, MP, NO, OM, PK, PW, PS, PA, PG, PY, PE, PH, PN, PL, PT, PR, QA, RO, RU, RW, RE, WS, SM, SA, SN, RS, SC, SL, SG, SX, SK, SI, SB, SO, ZA, GS, KR, SS, ES, LK, BL, SH, KN, LC, MF, PM, VC, SD, SR, SJ, SE, CH, SY, ST, TW, TJ, TZ, TH, TL, TG, TK, TO, TT, TN, TM, TC, TV, TR, UM, VI, UG, UA, AE, GB, US, UY, UZ, VU, VA, VE, VN, WF, EH, YE, ZM, ZW, AX
Default: ""
category
Category
stringLimit the search to a category (default: all categories).
Values: , 3, 47, 44, 22, 12, 5, 7, 71, 8, 45, 65, 11, 13, 958, 19, 16, 299, 14, 66, 29, 533, 174, 18, 20, 67
Default: ""
property
Google property
stringWhich Google search to measure (default: web search).
Values: , images, news, froogle, youtube
Default: ""
startUrls
Google Trends URLs
arrayPaste explore URLs from trends.google.com, e.g. https://trends.google.com/trends/explore?q=bitcoin,ethereum&geo=US. Terms, geo, date, category and property are read from the URL.
spreadsheetId
Google Sheet ID
string(Optional) ID of a public Google Sheet with search terms in the first column; row 1 is the header.
trendingCountries
Trending now: countries
arrayAlso get the Trending now list (what people search for right now) for these countries, two-letter codes such as US, NL, DE. Up to about 200 trends per country with search volume, increase %, related searches and categories.
trendingHours
Trending now: period
stringTime window for Trending now.
Values: 4, 24, 48, 168
Default: "24"
viewedFrom
Country to view Trends from
stringCountry of the exit IP. Google Trends numbers do not depend on it; leave empty unless you need a specific country.
Values: , af, al, dz, as, ad, ao, ai, aq, ag, ar, am, aw, au, at, az, bs, bh, bd, bb, by, be, bz, bj, bm, bt, bo, ba, bw, bv, br, io, vg, bn, bg, bf, bi, kh, cm, ca, cv, bq, ky, cf, td, cl, cn, cx, cc, co, km, cg, cd, ck, cr, hr, cu, cw, cy, cz, ci, dk, dj, dm, do, ec, eg, sv, gq, er, ee, sz, et, fk, fo, fj, fi, fr, gf, pf, tf, ga, gm, ge, de, gh, gi, gr, gl, gd, gp, gu, gt, gg, gn, gw, gy, ht, hm, hn, hk, hu, is, in, id, ir, iq, ie, im, il, it, jm, jp, je, jo, kz, ke, ki, xk, kw, kg, la, lv, lb, ls, lr, ly, li, lt, lu, mo, mg, mw, my, mv, ml, mt, mh, mq, mr, mu, yt, mx, fm, md, mc, mn, me, ms, ma, mz, mm, na, nr, np, nl, nc, nz, ni, ne, ng, nu, nf, kp, mk, mp, no, om, pk, pw, ps, pa, pg, py, pe, ph, pn, pl, pt, pr, qa, ro, ru, rw, re, ws, sm, sa, sn, rs, sc, sl, sg, sx, sk, si, sb, so, za, gs, kr, ss, es, lk, bl, sh, kn, lc, mf, pm, vc, sd, sr, sj, se, ch, sy, st, tw, tj, tz, th, tl, tg, tk, to, tt, tn, tm, tc, tv, tr, um, vi, ug, ua, ae, gb, us, uy, uz, vu, va, ve, vn, wf, eh, ye, zm, zw, ax
language
Language
stringLanguage of category and topic names, e.g. en-US, nl, de.
Default: "en-US"
maxItems
Max items
integerMaximum number of results. Zero means no limit.
Default: 0

Output

One dataset item per result. Export the dataset as JSON, CSV, Excel or XML from Apify Console or the API.

FieldTypeDescription
inputUrlOrTermstringThe search term or Google Trends URL from the input
searchTermstringThe term, or the compared terms joined by ,
geostringGeo area (Worldwide or a country/region code)
timeRangestringTime range as Google writes it (today 12-m, 2024-01-01 2024-06-30)
categorystringCategory id (0 = all)
propertystringweb, images, news, froogle (Shopping) or youtube
interestOverTime_timelineDataarrayInterest over time: per point time (epoch), date (ISO), formattedTime, value (0-100, one per term), hasData, formattedValue, isPartial
interestOverTime_averagesarrayAverage interest per term (only when terms are compared)
interestBySubregionarrayInterest by country (worldwide) or by region of the country: geoCode, geoName, value, formattedValue, maxValueIndex, hasData
interestByCityarrayInterest by city with coordinates (country searches only)
interestByMetroarrayInterest by US metro area (DMA), US only
relatedQueries_toparrayTop related queries: query, value, formattedValue, link (and searchTerm when terms are compared)
relatedQueries_risingarrayRising related queries; formattedValue is the increase (+250%, Breakout)
relatedTopics_toparrayTop related topics (topic: {mid, title, type}); Google withholds these from automated access, so usually empty
relatedTopics_risingarrayRising related topics; usually empty, see above
typestringtrending for Trending now items (search results have no type)
querystringTrending now: the trending search
searchVolumeintegerTrending now: approximate searches (lower bound, e.g. 50000 = 50K+)
increasePercentageintegerTrending now: increase in %
activebooleanTrending now: still trending
startedAtstringTrending now: when the trend started (UTC)
endedAtstringTrending now: when it stopped trending (UTC)
trendBreakdownarrayTrending now: related searches grouped into this trend
categoriesarrayTrending now: categories (Sports, Entertainment, ...)
urlstringTrending now: Google Trends explore link
scrapedAtstringWhen the data was read (UTC)

Frequently asked questions

What do 100 keywords cost?

The price is $1.90 per 1,000 results. A keyword, or a comparison of up to five, counts as a single result however much data it carries, so 100 keywords cost $0.19. Each Trending now trend is also one result: four countries with up to 200 trends each is at most 800 results, about $1.52 per run.

Do I need a proxy to avoid 429 errors?

No setup is needed. A residential proxy is built in and included in the price, with a new IP for every search term. Google blocks datacenter IPs after a few dozen requests, so keep the default.

Can I switch from Apify's Google Trends Scraper?

Yes. The input names, such as searchTerms, geo, timeRange and startUrls, and the output keys, such as interestOverTime_timelineData and relatedQueries_top, are the same. Timeline points get one extra field, date, in ISO format.

Why are the values between 0 and 100?

Google Trends scales interest within each request: 100 is the peak of that request, not an absolute search count. To compare terms with each other, put them in one comparison. Trending now volumes are different: they are Google's lower bounds, so 50K+ shows as 50000.

Why are related topics empty?

Google currently withholds related topics from automated access, so relatedTopics_top and relatedTopics_rising are usually empty lists. They stay in the output so existing code does not break. Related queries are returned.

Can I get the data inside my own app without starting a run?

Yes. The Actor also runs as a Server Actor: an HTTP request with the same input fields returns the results in the response, billed the same way. See the Server tab on the Store page.

Is it legal to scrape Google Trends?

The Actor reads only public Google Trends pages. They show aggregated, anonymous search interest, so there is no data about people in the output. If you combine it with personal data, rules such as the GDPR apply. Check Google's terms and your use case with a lawyer. Background: Is web scraping legal?