> ## 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 over time

> Time-series interest data for up to 5 search terms (TIMESERIES widget). Stable response shape; direct shortcut to /trends/search?data_type=TIMESERIES.

## Time range (`date`)

The `date` parameter only accepts Google Trends' own time-range formats — there is **no** arbitrary custom range outside the values Google itself supports.

| `date` value            | Range                                      |
| ----------------------- | ------------------------------------------ |
| `now 1-H`               | Past hour                                  |
| `now 4-H`               | Past 4 hours                               |
| `now 1-d`               | Past day                                   |
| `now 7-d`               | Past 7 days                                |
| `today 1-m`             | Past 30 days                               |
| `today 3-m`             | Past 90 days                               |
| `today 12-m`            | Past 12 months                             |
| `today 5-y`             | Past 5 years                               |
| `all`                   | 2004–present (default)                     |
| `YYYY-MM-DD YYYY-MM-DD` | Explicit start/end dates (space-separated) |

<Note>
  The explicit `YYYY-MM-DD YYYY-MM-DD` form must still fall within Google's accepted bounds (from 2004 to the present). Values outside these formats are rejected.
</Note>


## OpenAPI

````yaml GET /v1/google/trends/interest
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/interest:
    get:
      tags:
        - Google Trends
      summary: Interest over time
      description: Get interest over time for search terms via Google Trends internal API.
      operationId: trends_interest_api_v1_trends_interest_get
      parameters:
        - name: q
          in: query
          required: true
          schema:
            type: string
            description: Search term(s), comma-separated (max 5)
            title: Q
          description: Search term(s), comma-separated (max 5)
        - name: geo
          in: query
          required: false
          schema:
            type: string
            description: Geographic location (e.g. US, GB)
            default: ''
            title: Geo
          description: Geographic location (e.g. US, GB)
        - name: date
          in: query
          required: false
          schema:
            type: string
            description: >-
              Time range (e.g. 'now 1-H', 'today 12-m', 'all', or 'YYYY-MM-DD
              YYYY-MM-DD')
            default: today 12-m
            title: Date
          description: >-
            Time range (e.g. 'now 1-H', 'today 12-m', 'all', or 'YYYY-MM-DD
            YYYY-MM-DD')
        - name: category
          in: query
          required: false
          schema:
            type: integer
            description: Category filter (0 = all)
            default: 0
            title: Category
          description: Category filter (0 = all)
        - name: gprop
          in: query
          required: false
          schema:
            type: string
            description: 'Property: web, images, news, froogle, youtube'
            default: ''
            title: Gprop
          description: 'Property: web, images, news, froogle, youtube'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TrendsInterestResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    TrendsInterestResponse:
      properties:
        timeline:
          items:
            $ref: '#/components/schemas/TrendsTimelinePoint'
          type: array
          title: Timeline
        averages:
          items:
            $ref: '#/components/schemas/TrendsTimelineValue'
          type: array
          title: Averages
        query:
          type: string
          title: Query
      type: object
      required:
        - query
      title: TrendsInterestResponse
      description: Response for GET /api/v1/trends/interest.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    TrendsTimelinePoint:
      properties:
        date:
          type: string
          title: Date
        timestamp:
          anyOf:
            - type: integer
            - type: 'null'
          title: Timestamp
        values:
          items:
            $ref: '#/components/schemas/TrendsTimelineValue'
          type: array
          title: Values
      type: object
      required:
        - date
      title: TrendsTimelinePoint
      description: A single point in interest over time.
    TrendsTimelineValue:
      properties:
        query:
          type: string
          title: Query
        value:
          type: integer
          title: Value
        extracted_value:
          anyOf:
            - type: integer
            - type: 'null'
          title: Extracted Value
      type: object
      required:
        - query
        - value
      title: TrendsTimelineValue
      description: A single value in a trends timeline point.
    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

````