Apinoa Docs

Explore

Compare up to five search terms on Google Trends: interest over time and by region, and related topics and queries.

View raw .mdx
GET | POST /v1/google-trends/explore

Send parameters as a query string with GET, or as a JSON body with POST. Both are equivalent.

Request

curl "https://gateway.apinoa.com/v1/google-trends/explore?terms=chatgpt,gemini&country=US&timeRange=month" \
  -H "x-api-key: $APINOA_API_KEY"

Parameters

ParameterTypeRequiredNotes
termsstringyesUp to five search terms to compare, separated by commas.
categoryinteger ≥ 0A Trends category id, to measure the terms within it (0 = all categories).
countryenumThe country, as an ISO 3166 code. Absent: worldwide. AD AE AF AG AI AL AM AO AQ AR AS AT AU AW AX AZ BA BB BD BE BF BG BH BI BJ BL BM BN BO BQ BR BS BT BV BW BY BZ CA CC CD CF CG CH CI CK CL CM CN CO CR CU CV CW CX CY CZ DE DJ DK DM DO DZ EC EE EG EH ER ES ET FI FJ FK FM FO FR GA GB GD GE GF GG GH GI GL GM GN GP GQ GR GS GT GU GW GY HK HM HN HR HT HU ID IE IL IM IN IO IQ IR IS IT JE JM JO JP KE KG KH KI KM KN KP KR KW KY KZ LA LB LC LI LK LR LS LT LU LV LY MA MC MD ME MF MG MH MK ML MM MN MO MP MQ MR MS MT MU MV MW MX MY MZ NA NC NE NF NG NI NL NO NP NR NU NZ OM PA PE PF PG PH PK PL PM PN PR PS PT PW PY QA RE RO RS RU RW SA SB SC SD SE SG SH SI SJ SK SL SM SN SO SR SS ST SV SX SY SZ TC TD TF TG TH TJ TK TL TM TN TO TR TT TV TW TZ UA UG UM US UY UZ VA VC VE VG VI VN VU WF WS XK YE YT ZA ZM ZW
fromstringA custom period's first day (YYYY-MM-DD), or hour within the past week (YYYY-MM-DDTHH), with to.
langstringInterface language: the language of topic names and labels (en, pt-BR).
lowVolumeenum | booleanInclude regions with low search volume in interest by region.
propertyenumWhich Google search: web (default), images, news, shopping or youtube. web images news shopping youtube
resolutionenumInterest by region by country, region, metro (US only) or city. Default: the next level below the place asked. country region metro city
subregionstringA state, province or US metro inside country (US-CA, US-CA-807), instead of the whole country.
timeRangeenumThe period: the past hour, 4 hours, day, week (7 days), month, quarter (3 months), year (12 months, the default), 5 years, or all (since 2004). hour 4hours day week month quarter year 5years all
tostringA custom period's last day (YYYY-MM-DD) or hour (YYYY-MM-DDTHH), with from.

The same parameters, and every response type, are in the OpenAPI document.

Response

Returns TrendsExplore in data. A real response, shortened: arrays keep their first entries and long text is cut.

{
  "success": true,
  "data": {
    "engine": "google-trends",
    "terms": ["chatgpt", "gemini"],
    "country": "US",
    "timeRange": "month",
    "interestOverTime": {
      "points": [{"date": "2026-09-30", "values": [90]}, {"date": "2026-10-01", "values": [87]}],
      "averages": [82, 36]
    },
    "interestByRegion": {
      "resolution": "region",
      "measure": "share",
      "regions": [
        {"code": "US-CA", "name": "California", "values": [69]},
        {"code": "US-NJ", "name": "New Jersey", "values": [71]}
      ]
    },
    "related": [
      {
        "term": "chatgpt",
        "queries": {
          "top": [
            {
              "title": "what is chatgpt",
              "url": "https://trends.google.com/trends/explore?q=what+is+chatgpt&date=today+1-m&geo=US",
              "value": 100
            }
          ],
          "rising": [
            {
              "title": "david rosenthal chatgpt complaint",
              "url": "https://trends.google.com/trends/explore?q=david+rosenthal+chatgpt+complaint&date=today+1-m&geo=US",
              "growth": "+1,150%",
              "growthValue": 1150
            }
          ]
        }
      },
      {
        "term": "gemini",
        "queries": {
          "top": [
            {
              "title": "gemini google",
              "url": "https://trends.google.com/trends/explore?q=gemini+google&date=today+1-m&geo=US",
              "value": 100
            }
          ],
          "rising": [
            {
              "title": "gemini 4 argon",
              "url": "https://trends.google.com/trends/explore?q=gemini+4+argon&date=today+1-m&geo=US",
              "growth": "Breakout",
              "growthValue": 23100
            }
          ]
        }
      }
    ],
    "fetchedAt": "2026-10-30T01:04:54.914Z",
    "ext": {
      "keywords": [
        {"term": "chatgpt", "name": "chatgpt", "type": "Search term"},
        {"term": "gemini", "name": "gemini", "type": "Search term"}
      ],
      "period": {"from": "2026-09-30", "to": "2026-10-30"},
      "periodLabel": "Past 30 days",
      "interval": "day",
      "risingComparedWith": {"from": "2026-08-30", "to": "2026-09-29"}
    }
  }
}

Errors

StatusCodeMeaning
400INVALID_PARAMSA parameter is missing, unknown or out of range, or the engine does not take it. The message names it.
401UNAUTHORIZEDThe x-api-key header is missing, or the key is revoked or unknown.
402INSUFFICIENT_BALANCEThe balance does not cover this call. Top up in the dashboard.
429MARKETPLACE_SATURATEDToo many concurrent calls. Retry after the Retry-After seconds.
502UPSTREAM_ERRORThe engine answered with something unusable. Retry with backoff.
503SERVICE_UNAVAILABLEA temporary failure. Retry with backoff.

Every code is listed in Errors. Failed calls are not billed.

Pricing

Price $0.0012 per call. List price; the rate steps down above 1,000 calls a day.

Notes

  • Values are relative interest from 0 to 100, measured against the busiest point of the request. A 0 is a value Trends stated.
  • For a custom period, pass from and to instead of timeRange.

On this page