Google Trends All-in-One API avatar

Google Trends All-in-One API

Pricing

from $3.90 / 1,000 explores

Go to Apify Store
Google Trends All-in-One API

Google Trends All-in-One API

Unofficial always-on REST API for Google Trends: trending searches, daily trending list with filters, and keyword explore data (interest over time, by region, related topics/queries). No account or API key needed.

Pricing

from $3.90 / 1,000 explores

Rating

0.0

(0)

Developer

Romy

Romy

Maintained by Community

Actor stats

0

Bookmarked

1

Total users

0

Monthly active users

18 days ago

Last modified

Categories

Features

Limited permissionsSingle-tenantServer interface

Share

Google Trends All-in-One API is a REST endpoint for live Google Trends data — today's top trending searches, the full daily trending list with filters, and keyword explore data (interest over time, interest by region, related topics and queries). All from a single always-on API powered by Apify Standby.

Google Trends has no official public API and no mobile app — this Actor wraps the same data sources the Google Trends web app itself uses: a dedicated RSS feed, the same internal JSON RPC the Trending Now page calls client-side (no HTML/SSR scraping involved), and the Explore API. Confirmed live via real browser traffic capture. No account, API key, or signing needed for any of it.

  • No auth of any kind — every endpoint works fully anonymously, confirmed live
  • Two ways to get trending data — a lightweight RSS-backed endpoint safe for frequent polling, and a fuller filterable endpoint (period/category/status/sort) for when you need more than the top 10
  • Full keyword explore in one call — interest over time, interest by region, and related topics/queries for a keyword in a single request, mirroring exactly how the real Trends UI drives one search (one token-issuing call + four widget calls)
  • Always-on — Standby mode means no cold start, responds in milliseconds
  • Use cases: trend/news monitoring dashboards, content and SEO research, market/consumer-interest research, social listening

Endpoints

MethodPathDescription
GET/trendingTop-10 current trending searches + related news (RSS-backed)
GET/trending/detailedFull daily trending list (~450 items), with filters
GET/exploreInterest over time/region + related topics/queries for a keyword
  1. Open this Actor's Standby API URL (shown on the Actor's page, under the API tab, once linked/deployed on the Apify platform).
  2. Call any endpoint — for example:
    curl "https://<your-actor-standby-url>/trending?geo=US"
    curl "https://<your-actor-standby-url>/trending/detailed?geo=US&hours=24&sort=search-volume"
    curl "https://<your-actor-standby-url>/explore?q=bitcoin&geo=US"
    Every call needs your Apify API token, either as Authorization: Bearer <token> or ?token=<token> — the Actor's page API tab has a ready-to-copy version with your token filled in.
  3. Read the JSON response — no setup required.

Parameters

GET /trending — geo required (ISO 3166-1 alpha-2 country code, e.g. US). No other parameters have any effect — confirmed live: the upstream RSS feed silently ignores period/category/sort filters and always returns the current top-10 for the given geo.

GET /trending/detailed — geo required.

ParamTypeExampleMeaning
hoursint, enum 4|24|48|16824Period filter (168 = 7 days) — real upstream server-side filter, all 4 values confirmed live
categoryint, enum (see table below)17Filters on each item's categoryIds field
activeOnlybooleantrueKeeps only items whose endTime field is null
sortstring, enum title|search-volume|recency|relevancesearch-volumeOmit for relevance (the order Google's own response returns)

geo and hours are the only parameters Google's endpoint actually filters on server-side. category/activeOnly/sort are applied by this Actor itself, locally, on top of one full fetch — this mirrors exactly what the live Trends UI does (confirmed: changing those filters in the UI does not trigger any new network request, only hours does). The category id space is the Trending Now UI's own category picker — confirmed (not assumed) by clicking every one of the UI's 19 category filters live and cross-checking the items each one showed against those same items' categoryIds field: every category with a meaningful sample size matched exactly (e.g. selecting "Business and Finance" in the UI showed 25 items, and all 25 had categoryIds containing 3 — the same id the UI's own URL uses for that category). This is a fixed taxonomy (id 12 is skipped — never appeared in the live dropdown):

idCategoryidCategory
1Autos and Vehicles11Other
2Beauty and Fashion13Pets and Animals
3Business and Finance14Politics
4Entertainment15Science
5Food and Drink16Shopping
6Games17Sports
7Health18Technology
8Hobbies and Leisure19Travel and Transportation
9Jobs and Education20Climate
10Law and Government

GET /explore — q required.

ParamTypeDefaultExampleMeaning
qstring—bitcoinThe keyword to explore
geostringworldwideUSISO 3166-1 alpha-2 country code
timestringtoday 12-mtoday 12-mGoogle Trends time-range syntax — now 1-H, now 7-d, today 1-m, today 12-m, today 5-y, all, or YYYY-MM-DD YYYY-MM-DD
categoryint0 (all)0Explore category id — a separate id space from /trending/detailed's category

Output

Every response is returned directly over HTTP — this Actor does not write to an Apify dataset. Real responses (trimmed for readability):

GET /trending?geo=US (trimmed to one item, one news item):

{
"success": true,
"trending": [
{
"title": "dolly parton",
"approxTraffic": "10000000+",
"pubDate": "Tue, 25 Aug 2026 17:00:00 -0700",
"picture": "https://encrypted-tbn0.gstatic.com/images?q=...",
"pictureSource": "AP News",
"newsItems": [
{ "title": "Dolly Parton's cause of death revealed", "url": "https://...", "source": "AP News" }
]
}
]
}

GET /trending/detailed?geo=US (one item, trimmed):

{
"success": true,
"trending": [
{
"query": "dolly parton",
"geo": "US",
"startTime": 1787680200,
"endTime": null,
"searchVolumeBucket": 10000000,
"growthPercent": 1000,
"relatedQueries": ["dolly parton", "..."],
"categoryIds": [4],
"newsArticles": [{ "storyId": 4797548791, "language": "en", "geo": "US" }],
"displayQuery": "dolly parton"
}
]
}

GET /explore?q=bitcoin&geo=US (interestOverTime, trimmed to two points):

{
"success": true,
"interestOverTime": {
"default": {
"timelineData": [
{ "time": "1755993600", "formattedTime": "Aug 24 – 30, 2025", "value": [29], "formattedValue": ["29"] },
{
"time": "1756598400",
"formattedTime": "Aug 31 – Sep 6, 2025",
"value": [26],
"formattedValue": ["26"]
}
]
}
},
"interestByRegion": { "...": "..." },
"relatedTopics": { "...": "..." },
"relatedQueries": { "...": "..." }
}

Data notes

  • No auth of any kind, confirmed live for all three endpoints — no signature, token exchange with credentials, or session cookie. /explore does use a short-lived per-widget token, but it's issued freely by an unauthenticated POST /trends/api/explore call, not a proof of identity.
  • /trending/detailed uses no HTML/SSR scraping at all — it calls the same internal JSON RPC (i0OFE via /_/TrendsUi/data/batchexecute) the live Trending Now page itself fires client-side when its period filter changes. Found by watching that request rather than guessing an endpoint, then confirmed via direct curl with no prior page load and an arbitrary/random session id — the endpoint doesn't validate the session id at all for this read. This replaced an earlier version of this Actor that parsed the trending page's raw HTML instead; the data is identical (byte-for-byte matching item count against the HTML version), just reached without any HTML parsing.
  • /trending and /trending/detailed genuinely differ in capability, not just size. The RSS feed backing /trending was confirmed (by diffing responses with and without each query param) to silently ignore hours/category/sort entirely — it's a fixed top-10 snapshot. /trending/detailed calls the upstream RPC with real hours filtering, then applies category/activeOnly/sort itself afterward (see Parameters above) — Google's own frontend does the exact same thing on the exact same response, it doesn't ask its server to filter those either.
  • /trending/detailed's upstream item shape is positional, not named JSON — Google serializes it using its own JSPB (protobuf-over-JSON) convention: real internal .proto-defined fields, but written to the wire as an array where index position, not a key name, identifies each field. This Actor maps that raw array into the named TrendingSearchItem shape shown under Output before returning it — see the RawTrendingItem/toTrendingSearchItem code in src/google-trends-client.ts for the field-by-field mapping, with fields marked either fully confirmed (cross-checked against the rendered UI, e.g. the "10M+" / "1,000%" badges) or best-effort/unconfirmed. Three raw fields that were always observed null with no known purpose are dropped in the named output rather than exposed as meaningless null properties.
  • The array position of each field is grounded in JSPB's actual implementation (confirmed by reading protobuf-javascript's own message.js: array index N maps to protobuf field number N+1). The field names used in this README and in the code are not Google's real internal names, though — no public .proto source exists for this internal-only service, and the page's own JS is Closure-Advanced-Compiled, which strips every real identifier (confirmed by downloading and inspecting the actual compiled bundle). No public prior art publishes real names either. Treat field names here as this Actor's own descriptive labels for the data, not as official Google terminology.
  • The old dailytrends/realtimetrends REST endpoints documented by third-party libraries (e.g. pytrends) are dead — confirmed a real HTTP 404 on both. Google fully migrated this feature to the two /trending surfaces this Actor uses instead.
  • /trending/detailed's category id space is confirmed identical to the Trending Now UI's own category picker, not a separate/unmapped taxonomy — verified by clicking every one of the UI's 19 category filters live, recording which items each one showed, and cross-referencing those items' categoryIds field: the match was exact for every category with enough items to check meaningfully (e.g. "Other" showed 25 items, all 25 tagged categoryIds: [11], no exceptions). An earlier version of this Actor incorrectly documented these as two separate, unmapped id spaces before this was checked.
  • /explore's HTTP 429 is (mostly) a session-cookie gate, not an IP-based rate limit — confirmed with a controlled test: a cookieless request to Google's /trends/api/explore reliably gets a 429 (even from a fresh proxy IP that had never hit Google before), but that same 429 response comes with a Set-Cookie: NID=..., and replaying the identical request with that cookie attached succeeds immediately. This Actor captures and reuses that cookie automatically (in-memory, for the life of the running Standby container, up to 4 retry attempts) — see fetchWithCookieRetry in src/google-trends-client.ts.
  • RELATED_TOPICS and RELATED_QUERIES hit the same upstream endpoint path and throttle each other independently of the cookie gate above — confirmed live: calling the second one soon after the first 429s it even with an already-valid session cookie (a manually-replayed call with a fresh, unused cookie succeeds immediately, so it isn't a cookie problem). This Actor retries the second call with increasing backoff (1.5s/3s/6s) rather than trusting a single fixed delay.
  • This Actor's own dev/test IP got progressively more rate-limited across ~2 days of heavy manual testing during development — by the end, even the initial /explore token call started failing with what looks like a harder/different block (a non-Google-styled error page), beyond what the cookie-retry logic is designed to route around. This is expected to not apply to a fresh Standby container running from Apify's infrastructure with no such history — but if /explore starts erroring persistently in production despite the retry logic, that's the likely explanation, and routing it through a proxy (not built in by default) would be the next mitigation to reach for.

Pricing

Pay-per-event, billed only on a successful call — one event per request, tiered by your Apify plan (Free/Bronze/Silver/Gold/Platinum/Diamond get progressively cheaper rates). See the Actor's Pricing tab for the exact current rate per tier.

EventWhat it charges for
trending-rssTop-10 trending searches
trending-detailedFull daily trending list
exploreInterest over time/region + related topics/queries

Known limitations

  • /trending cannot be filtered — this is a real, confirmed limitation of Google's own RSS feed, not something this Actor can work around while keeping the lightweight/low-rate-limit-risk path. Use /trending/detailed when filters are needed.
  • Some /trending/detailed field semantics are best-effort, not fully confirmed — see the RawTrendingItem type's inline comments in src/google-trends-client.ts for exactly which fields (endTime in the non-null case, displayQuery's exact purpose) are cross-checked against the live UI vs. inferred from value patterns alone. (categoryIds itself, and its id-to-name mapping, ARE fully confirmed — see the category table under Parameters above.)
  • /explore's first-ever call in a freshly-started container may still take one extra round-trip to capture the session cookie described in Data notes above — every call after that within the same running container reuses the cached cookie. If Google ever changes this behavior, this Actor still passes the upstream error through as-is rather than silently masking it.
  • /trending/detailed's category param uses a different id space than /explore's category param — /trending/detailed's is confirmed and listed in the category table under Parameters above; /explore's is Google's separate Ads-style category taxonomy for that feature, not independently catalogued by this Actor.
  • This is an unofficial, reverse-engineered integration, not affiliated with or endorsed by Google. Behavior may change if Google changes its Trends web app.

Found a bug or have a feature request? Use the Issues tab on this Actor's page.