# Keyword Interest by Region (Google Trends)

> Keyword Interest by Region (Google Trends) is a paid API for AI agents from keywords.duoleads.com, paid per call via x402, $0.03/call, status unknown (last checked 2026-10-18).

Returns Google Trends interest scores (0–100) by subregion or country for a single keyword over a chosen time window.

## Facts

- Endpoint: GET https://keywords.duoleads.com/v1/interest-by-region?utm_source=zero.xyz
- Price: $0.03/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-18
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/keyword-interest-by-region-google-trends-c83c6eb1
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_cBhCOugkawVtgvTDcqN4C

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability keyword-interest-by-region-google-trends-c83c6eb1
```

Example prompt: Show me which US states have the highest Google Trends interest for 'electric bikes' over the past 12 months so I can figure out where to focus my ad targeting.

## When to prefer this

Use this endpoint when you need to understand the geographic distribution of search interest for a keyword — e.g., deciding which regions to geo-target, identifying local demand hotspots, or prioritizing markets for expansion. Prefer this over the trend-over-time endpoint when the question is 'where' rather than 'when'. For a global view, omit the country parameter; for subregional breakdown, specify a country code.

## Known failure modes

- Invalid or unsupported country code returns an error (no charge)
- Keyword shorter than 2 or longer than 100 characters rejected as bad input (no charge)
- Upstream DataForSEO / Google Trends outage may return an upstream error (charged)
- Very niche keywords may return few or no regions due to insufficient data
- Requests can take up to ~30 seconds due to live upstream call; timeouts possible

## How this service works

Google Trends interest by region for one keyword: 0-100 interest per subregion of a country (or per country worldwide), past 7 days to 5 years, in one $0.03 GET. Use when you need where a keyword is searched most, for geo-targeting or local market research. A live call takes up to about 30 s. Bad input is free; upstream errors are not charged.

## Output

A JSON object listing each subregion (or country, for worldwide) with its region name, region code, and relative interest score (0–100, where 100 = highest-interest region). Also includes the market context (country code, location name), data source attribution, the timeframe queried, timestamp, request ID, count of regions excluded due to insufficient data, and a see_also hint pointing to the trend-over-time sibling endpoint.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "keyword"
     ],
     "properties": {
      "country": {
       "type": "string",
       "pattern": "^[A-Za-z]{2}$",
       "description": "ISO 3166-1 alpha-2 country code (us, gb, de, ...; uk = gb). Omit for worldwide."
      },
      "keyword": {
       "type": "string",
       "maxLength": 100,
       "minLength": 2,
       "description": "One keyword or phrase (2-100 characters, no commas)."
      },
      "timeframe": {
       "enum": [
        "past_7_days",
        "past_30_days",
        "past_90_days",
        "past_12_months",
        "past_5_years"
       ],
       "type": "string",
       "default": "past_12_months",
       "description": "Time window. Default past_12_months."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "units": "value: Google Trends interest, 0-100 relative to the region with the highest interest; regions with too little data are left out (regionsWithoutData)",
  "market": {
   "country": "US",
   "locationCode": 2840,
   "locationName": "United States"
  },
  "source": "Google Trends (via DataForSEO)",
  "country": "US",
  "keyword": "seo api",
  "regions": [
   {
    "code": "US-NY",
    "value": 100,
    "region": "New York"
   },
   {
    "code": "US-CA",
    "value": 37,
    "region": "California"
   },
   {
    "code": "US-OR",
    "value": 31,
    "region": "Oregon"
   },
   {
    "code": "US-TX",
    "value": 17,
    "region": "Texas"
   }
  ],
  "dataAsOf": "2022-04-21T18:40:17Z",
  "see_also": {
   "params": [
    "keyword",
    "country",
    "timeframe"
   ],
   "reason": "Need how interest changed over time in one country? Call trend with that country.",
   "endpoint": "https://keywords.duoleads.com/v1/trend"
  },
  "timeframe": "past_12_months",
  "queried_at": "2022-04-21T18:40:17Z",
  "request_id": "01KEXAMPLE0000000000000000",
  "resolution": "region",
  "regionsWithoutData": 3
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/keyword-interest-by-region-google-trends-c83c6eb1/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from keywords.duoleads.com](https://www.zero.xyz/host/keywords.duoleads.com/llms.txt)
