interest_by_region
Get relative search interest by state or region for a keyword within a specific country, using Google Trends data.
Instructions
Search interest for a keyword broken down by state/region within the given geo.
Args: keyword: a single search term. timeframe: pytrends timeframe string, e.g. "today 12-m". geo: ISO country code (e.g. "IN"), or "" for worldwide.
Returns: A list of records, one per state/region within the specified geo, each containing: - "geoName": the name of the state or region (e.g. "Maharashtra", "Delhi", "Karnataka" for India) - A column with the keyword name as the key: relative search interest (0-100 scale) for that region. Higher values indicate higher relative interest in that region compared to others in the same country. This is Google Trends' standard region-relative scale.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| geo | No | IN | |
| keyword | Yes | ||
| timeframe | No | today 12-m |