API Hop

Documentation

API Hop Docs

Google Trends endpoint reference

Explore Google Trends interest, suggestions, trending searches and related news.

Concurrency limit

AI and Data each share an account-wide pool of concurrent slots: 5 AI / 2 Data by default, adjusted by your subscription. Endpoint overrides still cannot exceed the category pool. Reaching either limit returns HTTP 429. Asynchronous tasks occupy a slot until execution ends.

GET /v1/google-trends/search
Default limit: 2
GET /v1/google-trends/autocomplete
Default limit: 2
GET /v1/google-trends/news
Default limit: 2
GET /v1/google-trends/trending-now
Default limit: 2

Explore Google Trends interest, suggestions, trending searches and related news.

Authentication and billing

The default price is $0.0003 (300 credits) per successful request. Use your API Hop API key. Availability depends on active gateways and key permissions. Check the current catalog and your account for the price per successful request; account-specific pricing takes precedence. Successful empty results are billable. Failed requests release the credit reservation. Requests time out after 60 seconds, with no automatic retry or pagination. Settlement failures never repeat the upstream request.

http
Authorization: Bearer YOUR_API_KEY

Send query parameters only, without a request body. Unknown, repeated, empty or invalid values are rejected, except the documented empty geo and gprop values. JSON only; no automatic pagination or retry. AND = both, OR = either, XOR = exactly one, NOT = excluded, => = requires. Copy identifiers and news tokens from fresh responses; illustrative examples are not live acceptance results. Each successful lookup is billed separately.

GET https://api.apihop.ai/v1/google-trends/search

Request parameters

FieldTypeConstraintsExample
querystringText to search for on the selected service. At most 8,192 UTF-8 bytes.; query: REQUIREDtesla
countrystringTwo-letter country or storefront code, such as us or gb.; country: optional; ^[A-Za-z]{2}$-
languagestringProvider-supported language code, such as en.; language: optional-
categorystringA category identifier supported by this operation.; category: optional; interest_over_time, interest_by_region, related_queries, related_topicsinterest_over_time
time_rangestringProvider-supported time filter.; time_range: optional-
devicestringDevice presentation for the source request.; device: optional; desktop, mobile, tabletdesktop
zero_tracebooleanDo not archive source or parsed response artifacts.; zero_trace: optionaltrue
data_typestringChart: TIMESERIES (default), GEO_MAP for comparing terms, GEO_MAP_0 for one term, or related topics/queries. Cannot be combined with the legacy category selector.; data_type: optional; TIMESERIES, GEO_MAP, GEO_MAP_0, RELATED_TOPICS, RELATED_QUERIESTIMESERIES
geostringGoogle Trends location code. An empty string selects worldwide. A comma-separated location per term is supported for TIMESERIES. Overrides country.; geo: optional; UTF-8 bytes: 100-
regionstringGeographic chart resolution, for GEO_MAP and GEO_MAP_0 only.; region: optional; COUNTRY, REGION, DMA, CITYCOUNTRY
catintegerGoogle Trends topic category ID. Defaults to 0 (all categories).; cat: optional; 0, 3, 5, 7, 8, 11, 12, 13, 14, 16, ... 11330
gpropstringSearch property: empty for web search, images, news, froogle (shopping), or youtube.; gprop: optional; `, images, news, froogle, youtube`
datestringRelative or custom date range; alias of time_range. For TIMESERIES, comma-separated custom ranges match the query order.; date: optional; UTF-8 bytes: 256-
csvbooleanAlso retrieve the source CSV rows.; csv: optionaltrue
include_low_search_volumebooleanInclude low search volume regions in geographic charts.; include_low_search_volume: optionaltrue
tzintegerUTC offset in minutes, using the browser convention (420 = UTC-07:00). Defaults to 0.; tz: optional; min: -1439; max: 1439-1439

Validation rules

  • GET query only; body = null; response = JSON; html, output, json_restrictor, no_cache: NOT supported
  • string: UTF-8 bytes <= maxLength (default 8192); boolean = true OR false; integer: safe integer
  • language: /^[A-Za-z]{2,3}(?:[-_][A-Za-z]{2,4})?$/
  • query: 1..5 nonempty comma-separated terms; NOT (category AND data_type); NOT (date AND time_range)
  • category: interest_over_time = TIMESERIES, interest_by_region = GEO_MAP_0, related_queries = RELATED_QUERIES, related_topics = RELATED_TOPICS; default TIMESERIES
  • region OR include_low_search_volume => data_type = GEO_MAP OR GEO_MAP_0; GEO_MAP_0 requires exactly one term
  • geo: empty = worldwide; uppercase country or subdivision; overrides country; comma-separated locations require TIMESERIES and one location per term
  • gprop: empty = web search; froogle = shopping; tz: browser offset minutes (420 = UTC-07:00)
  • date, time_range: all, now 1-H, now 4-H, now 1-d, now 7-d, today 1-m, today 3-m, today 12-m, today 5-y, OR ordered YYYY-MM-DD YYYY-MM-DD within 2004-01-01..today
  • date: multiple comma-separated custom ranges require TIMESERIES and one range per term; cat: topic ID (default 0)

Examples

bash
curl --get "https://api.apihop.ai/v1/google-trends/search" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  --data-urlencode "query=tesla"

GET https://api.apihop.ai/v1/google-trends/autocomplete

Request parameters

FieldTypeConstraintsExample
querystringText to search for on the selected service. At most 8,192 UTF-8 bytes.; query: REQUIREDtesla
languagestringProvider-supported language code, such as en.; language: optional-
limitintegerMaximum number of items to return. The provider may return fewer.; limit: optional; min: 1; max: 1001
devicestringDevice presentation for the source request.; device: optional; desktop, mobile, tabletdesktop
zero_tracebooleanDo not archive source or parsed response artifacts.; zero_trace: optionaltrue

Validation rules

  • GET query only; body = null; response = JSON; html, output, json_restrictor, no_cache: NOT supported
  • string: UTF-8 bytes <= maxLength (default 8192); boolean = true OR false; integer: safe integer
  • language: /^[A-Za-z]{2,3}(?:[-_][A-Za-z]{2,4})?$/

Examples

bash
curl --get "https://api.apihop.ai/v1/google-trends/autocomplete" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  --data-urlencode "query=tesla"

GET https://api.apihop.ai/v1/google-trends/news

Request parameters

FieldTypeConstraintsExample
page_tokenstringnews_page_token from a Trending Now result.; page_token: REQUIRED; UTF-8 bytes: 32768; ^gtn1\.[A-Za-z0-9_-]+$${NEWS_PAGE_TOKEN}
devicestringDevice presentation for the source request.; device: optional; desktop, mobile, tabletdesktop
zero_tracebooleanDo not archive source or parsed response artifacts.; zero_trace: optionaltrue

Validation rules

  • GET query only; body = null; response = JSON; html, output, json_restrictor, no_cache: NOT supported
  • string: UTF-8 bytes <= maxLength (default 8192); boolean = true OR false; integer: safe integer
  • language: /^[A-Za-z]{2,3}(?:[-_][A-Za-z]{2,4})?$/
  • page_token: exact news_page_token from a fresh Trending Now response; account-bound opaque continuation, do not fabricate or reuse expired tokens

Examples

bash
curl --get "https://api.apihop.ai/v1/google-trends/news" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  --data-urlencode "page_token=${NEWS_PAGE_TOKEN}"

GET https://api.apihop.ai/v1/google-trends/trending-now

Request parameters

FieldTypeConstraintsExample
countrystringTwo-letter country or storefront code, such as us or gb.; country: optional; ^[A-Za-z]{2}$us
languagestringProvider-supported language code, such as en.; language: optional-
limitintegerMaximum number of items to return. The provider may return fewer.; limit: optional; min: 1; max: 1001
devicestringDevice presentation for the source request.; device: optional; desktop, mobile, tabletdesktop
zero_tracebooleanDo not archive source or parsed response artifacts.; zero_trace: optionaltrue
geostringTrending Now country or subdivision. Empty selects US; overrides country.; geo: optional; `, AL, DZ, AO, AR, AR-C, AR-B, AR-K, AR-H, AR-U`, ... 1445
hoursintegerPast 4, 24 (default), 48, or 168 hours.; hours: optional; 4, 24, 48, 1684
category_idintegerTrending Now topic category ID; 0 means all categories.; category_id: optional; 0, 1, 2, 3, 20, 4, 5, 6, 7, 8, 9, 10, 11, 13, 14, 15, 16, 17, 18, 190
only_activebooleanReturn only trends that are still active.; only_active: optionaltrue

Validation rules

  • GET query only; body = null; response = JSON; html, output, json_restrictor, no_cache: NOT supported
  • string: UTF-8 bytes <= maxLength (default 8192); boolean = true OR false; integer: safe integer
  • language: /^[A-Za-z]{2,3}(?:[-_][A-Za-z]{2,4})?$/
  • geo: empty = US; overrides country; hours: default 24; category_id: 0 = all; only_active: active trends only

Examples

bash
curl --get "https://api.apihop.ai/v1/google-trends/trending-now" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  --data-urlencode "country=us"

Responses and errors

The native JSON response and numeric precision are preserved. The example below illustrates an empty successful result, not a live call. HTTP 400 means invalid input; 401 authentication required; 402 insufficient credit; 403 unavailable or unauthorized; 405 unsupported method; 429 rate limit; 5xx service or upstream failure. Keep X-Request-Id for diagnosis.

json
{
  "success": true,
  "request_id": "example-request",
  "data": {
    "format": "json",
    "content": {
      "results": []
    }
  }
}