> ## 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.

# Trending searches

> Trending searches with related queries from Google's TrendsUi batchexecute backend. Richer payload than the RSS feed surfaced by /trending-now.



## OpenAPI

````yaml GET /v1/google/trends/trending
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/trending:
    get:
      tags:
        - Google Trends
      summary: Trending searches
      description: |-
        Get trending searches with related queries via Google's TrendsUi.

        Primary path: ``POST /_/TrendsUi/data/batchexecute?rpcids=i0OFE``,
        Google's internal RPC backend for the ``/trending`` page. This
        endpoint is **not** protected by SearchGuard / BotGuard — no
        cookies or anti-abuse token required — and returns the trending
        list **with related queries embedded per trend** (10-25 queries
        each), the same data that powers the trending UI's expanded view.

        Fallback: ``GET /trending/rss?geo=US`` — also cookieless but
        returns only title + approximate traffic, no related queries.

        Verified working 2026-05-08 (research from a parallel investigation
        confirmed 30 rapid bursts from one IP all returned 200, payloads
        145 KB - 1 MB).
      operationId: trends_trending_api_v1_trends_trending_get
      parameters:
        - name: geo
          in: query
          required: false
          schema:
            type: string
            description: Country code
            default: US
            title: Geo
          description: Country code
        - name: hl
          in: query
          required: false
          schema:
            type: string
            default: en-US
            title: Hl
        - name: hours
          in: query
          required: false
          schema:
            type: integer
            maximum: 168
            minimum: 1
            description: >-
              Hours-back window for the trending list. Google supports 24, 48,
              168 (= 1 week).
            default: 24
            title: Hours
          description: >-
            Hours-back window for the trending list. Google supports 24, 48, 168
            (= 1 week).
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TrendsTrendingResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    TrendsTrendingResponse:
      properties:
        trending:
          items:
            $ref: '#/components/schemas/TrendsTrendingItem'
          type: array
          title: Trending
        country:
          type: string
          title: Country
          default: US
      type: object
      title: TrendsTrendingResponse
      description: Response for GET /api/v1/trends/trending.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    TrendsTrendingItem:
      properties:
        title:
          type: string
          title: Title
        traffic:
          anyOf:
            - type: string
            - type: 'null'
          title: Traffic
        articles:
          items:
            $ref: '#/components/schemas/TrendsTrendingArticle'
          type: array
          title: Articles
      type: object
      required:
        - title
      title: TrendsTrendingItem
      description: A trending search item.
    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
    TrendsTrendingArticle:
      properties:
        title:
          type: string
          title: Title
        link:
          anyOf:
            - type: string
            - type: 'null'
          title: Link
        source:
          anyOf:
            - type: string
            - type: 'null'
          title: Source
        thumbnail:
          anyOf:
            - type: string
            - type: 'null'
          title: Thumbnail
      type: object
      required:
        - title
      title: TrendsTrendingArticle
      description: An article associated with a trending search.
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key

````