SerpBase
Back to Blog

Google Trends Interest by Region API: States, Metros and Countries as JSON

Add data_type GEO_MAP to a Google Trends request to get interest by US state, metro area (DMA) or country as JSON. Tested with pickleball across three breakdowns.

November 30, 2026
By SerpBase Team2 min read

Short answer: add "data_type":"GEO_MAP" to a /google/trends request. Instead of a line over time you get Google Trends' "Interest by subregion" table: every state, metro area or country with its 0–100 score for your term.

The request

curl -X POST 'https://api.serpbase.dev/google/trends' \
  -H 'Content-Type: application/json' \
  -H 'X-API-Key: YOUR_API_KEY' \
  -d '{"q":"pickleball","geo":"US","data_type":"GEO_MAP"}'
  • q — the search term.
  • geo — the area to break down. US gives US states; leave it out to get countries.
  • data_type — GEO_MAP for interest by region.
  • region — optional. DMA breaks the US into metro areas (Nielsen DMAs) instead of states.

What came back

We ran three versions on 1 December 2026, each for the default range (past 12 months):

RequestRows in geo_interestTop row
geo: "US"51 (50 states + DC)Wyoming, 100
geo: "US", region: "DMA"210 metro areasCheyenne WY-Scottsbluff NE, 100
no geo (worldwide)250 countries, 34 of them above 0Philippines, 100

The state response, shortened:

{
  "status": 0,
  "credits_charged": 2,
  "trends": {
    "query": "pickleball",
    "geo": "US",
    "time_range": "today 12-m",
    "geo_interest": [
      {"code": "US-WY", "name": "Wyoming", "values": [100]},
      {"code": "US-UT", "name": "Utah", "values": [64]},
      {"code": "US-FL", "name": "Florida", "values": [62]},
      {"code": "US-HI", "name": "Hawaii", "values": [59]}
    ]
  }
}

The lowest states were South Dakota (27), Mississippi (25) and West Virginia (20). In the metro breakdown, after Cheyenne came Ft. Myers-Naples FL (43), Bend OR (36), Palm Springs CA (33) and West Palm Beach-Ft. Pierce FL (33). Metro rows use the DMA number as code (for example 759).

In Python

import requests

def by_region(q, geo=None, region=None):
    body = {"q": q, "data_type": "GEO_MAP"}
    if geo:
        body["geo"] = geo
    if region:
        body["region"] = region
    r = requests.post("https://api.serpbase.dev/google/trends",
                      headers={"X-API-Key": "YOUR_API_KEY"},
                      json=body, timeout=60).json()
    if r["status"] != 0:
        raise RuntimeError(r.get("error"))
    rows = [x for x in r["trends"]["geo_interest"] if x["values"][0] > 0]
    return sorted(rows, key=lambda x: -x["values"][0])

for row in by_region("pickleball", geo="US", region="DMA")[:5]:
    print(row["code"], row["name"], row["values"][0])

Things that trip people up

  • The score is share of searches, not volume. 100 means the region where the term made up the largest share of all searches. Wyoming beats California here because pickleball is a bigger part of what Wyoming searches for, not because more people searched.
  • The worldwide list is not sorted and includes zeros. In our test 216 of the 250 countries scored 0 and appeared in no particular order, so sort and filter yourself, as the Python above does. The state list came back already sorted.
  • values is a list. With one term it holds one number; read values[0].
  • Scores depend on the time range. Add date (for example "today 3-m") to change it; a region's score in one range cannot be compared with another range.

Related

Cost and docs

Each Trends request costs 2 credits, and failed requests are not charged. New accounts get 500 free credits.