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.USgives US states; leave it out to get countries.data_type—GEO_MAPfor interest by region.region— optional.DMAbreaks 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):
| Request | Rows in geo_interest | Top row |
|---|---|---|
geo: "US" | 51 (50 states + DC) | Wyoming, 100 |
geo: "US", region: "DMA" | 210 metro areas | Cheyenne WY-Scottsbluff NE, 100 |
no geo (worldwide) | 250 countries, 34 of them above 0 | Philippines, 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.
valuesis a list. With one term it holds one number; readvalues[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
- The same endpoint for interest over time and comparing up to five terms
- Topic IDs from Trends autocomplete
Cost and docs
Each Trends request costs 2 credits, and failed requests are not charged. New accounts get 500 free credits.
- Parameters and response: Google Trends docs
- Try it in the browser: Google Trends API
- Credit packs: pricing