> ## Documentation Index
> Fetch the complete documentation index at: https://docs.scrapebadger.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Interest by region

> Geographic interest breakdown for a search term (GEO_MAP widget). `resolution=auto` uses Google's hierarchy — COUNTRY worldwide, REGION inside a country, DMA inside the US.



## OpenAPI

````yaml GET /v1/google/trends/regions
openapi: 3.1.0
info:
  title: ScrapeBadger Google Scraper
  description: >-
    Dedicated API for scraping Google products (SERP, Maps, News, Hotels,
    Trends, Jobs, Shopping, Patents, Scholar, Autocomplete, Images, Videos,
    Finance, AI Mode, Lens, Products).
  version: 1.0.0
servers:
  - url: https://scrapebadger.com
    description: Production
security:
  - apiKeyAuth: []
paths:
  /v1/google/trends/regions:
    get:
      tags:
        - Google Trends
      summary: Interest by region
      description: |-
        Get interest by region for a search term.

        Google's widget has a resolution hierarchy — you can't ask for
        country-level data inside a specific country. Passing
        ``resolution=auto`` (the default) uses whatever resolution the
        widget itself returned, which is always valid.
      operationId: trends_regions_api_v1_trends_regions_get
      parameters:
        - name: q
          in: query
          required: true
          schema:
            type: string
            description: Search term
            title: Q
          description: Search term
        - name: geo
          in: query
          required: false
          schema:
            type: string
            description: Geographic location
            default: ''
            title: Geo
          description: Geographic location
        - name: date
          in: query
          required: false
          schema:
            type: string
            default: today 12-m
            title: Date
        - name: resolution
          in: query
          required: false
          schema:
            enum:
              - COUNTRY
              - REGION
              - DMA
              - CITY
              - auto
            type: string
            description: >-
              Region granularity. `auto` (default) uses Google's widget default,
              which is `COUNTRY` for worldwide queries and `REGION`
              (state/province) for single-country queries. Overriding to
              `COUNTRY` when `geo` is set returns HTTP 400 from Google — use
              `REGION`, `DMA`, or `CITY` in that case.
            default: auto
            title: Resolution
          description: >-
            Region granularity. `auto` (default) uses Google's widget default,
            which is `COUNTRY` for worldwide queries and `REGION`
            (state/province) for single-country queries. Overriding to `COUNTRY`
            when `geo` is set returns HTTP 400 from Google — use `REGION`,
            `DMA`, or `CITY` in that case.
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TrendsRegionsResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    TrendsRegionsResponse:
      properties:
        regions:
          items:
            $ref: '#/components/schemas/TrendsRegionInterest'
          type: array
          title: Regions
        query:
          type: string
          title: Query
      type: object
      required:
        - query
      title: TrendsRegionsResponse
      description: Response for GET /api/v1/trends/regions.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    TrendsRegionInterest:
      properties:
        region:
          type: string
          title: Region
        region_code:
          anyOf:
            - type: string
            - type: 'null'
          title: Region Code
        value:
          type: integer
          title: Value
          default: 0
        max_value_index:
          type: integer
          title: Max Value Index
          default: 0
      type: object
      required:
        - region
      title: TrendsRegionInterest
      description: Interest for a specific region.
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key

````