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

# Google Trends interest over time

> Compare interest over time for up to 5 keywords. Cached for 6 hours.



## OpenAPI

````yaml https://api.surnex.io/openapi.json get /v1/trends/explore
openapi: 3.1.0
info:
  title: Surnex API
  description: |-
    Surnex SEO Platform API — api.surnex.io

    Provides the complete backend for the Surnex SEO dashboard including:
    - Multi-tenant organization management
    - Project tracking (domains)
    - Keyword rank tracking (Phase 1+)
    - Backlink analysis (Phase 3+)
    - Site auditing (Phase 4+)
    - Stripe billing integration
    - MCP endpoint for AI agents at /mcp
  version: 0.1.0
servers: []
security: []
paths:
  /v1/trends/explore:
    get:
      tags:
        - Trends
      summary: Google Trends interest over time
      description: Compare interest over time for up to 5 keywords. Cached for 6 hours.
      operationId: get_trends_explore_v1_trends_explore_get
      parameters:
        - name: keywords
          in: query
          required: true
          schema:
            type: string
            description: Comma-separated keywords (max 5)
            title: Keywords
          description: Comma-separated keywords (max 5)
        - name: location_code
          in: query
          required: true
          schema:
            type: integer
            title: Location Code
        - name: date_range
          in: query
          required: false
          schema:
            type: string
            title: Date Range
            default: past_12_months
        - name: X-API-Key
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: X-Api-Key
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/APIResponse_TrendsExploreResponse_'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
components:
  schemas:
    APIResponse_TrendsExploreResponse_:
      properties:
        success:
          type: boolean
          title: Success
          default: true
        data:
          anyOf:
            - $ref: '#/components/schemas/TrendsExploreResponse'
            - type: 'null'
      type: object
      title: APIResponse[TrendsExploreResponse]
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    TrendsExploreResponse:
      properties:
        keywords:
          items:
            type: string
          type: array
          title: Keywords
        date_range:
          type: string
          title: Date Range
          default: past_12_months
        location_code:
          type: integer
          title: Location Code
        series:
          items:
            $ref: '#/components/schemas/TrendsKeywordData'
          type: array
          title: Series
      type: object
      required:
        - location_code
      title: TrendsExploreResponse
    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
    TrendsKeywordData:
      properties:
        keyword:
          type: string
          title: Keyword
          description: The keyword.
        data_points:
          items:
            $ref: '#/components/schemas/TrendsDataPoint'
          type: array
          title: Data Points
      type: object
      required:
        - keyword
      title: TrendsKeywordData
    TrendsDataPoint:
      properties:
        date:
          type: string
          title: Date
          description: Date string for this data point.
        date_to:
          anyOf:
            - type: string
            - type: 'null'
          title: Date To
        value:
          type: integer
          title: Value
          description: Interest value (0-100).
          default: 0
        values:
          items:
            type: integer
          type: array
          title: Values
      type: object
      required:
        - date
      title: TrendsDataPoint
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer

````