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

# Queue a leaderboard crawl

> Submit an async job that scrolls a Product Hunt leaderboard to its genuine end.



## OpenAPI

````yaml get /v1/product-hunt/leaderboard/crawl
openapi: 3.1.0
info:
  title: Scrapio
  version: 1.0.0
  description: >-
    Turn any URL into structured data. Fetch raw HTML, crawl sites, extract
    structured content, interact with dynamic pages, and search the web through
    one API.
  contact:
    name: Scrapio Support
    url: https://scrapio.dev
  license:
    name: Proprietary
servers:
  - url: https://api.scrapio.dev
    description: Production
security:
  - bearerAuth: []
tags:
  - name: System
  - name: Fetch
  - name: Crawl
  - name: Map
  - name: Interact
  - name: Search
  - name: Google
  - name: Fast Search
  - name: Jobs
  - name: YouTube
  - name: Amazon
  - name: Walmart
  - name: Booking
  - name: Agoda
  - name: Airbnb
  - name: ChatGPT
  - name: Perplexity
  - name: Gemini
  - name: Bing
  - name: Reddit
  - name: TikTok
  - name: Apple App Store
  - name: Target
  - name: Monitors
paths:
  /v1/product-hunt/leaderboard/crawl:
    get:
      tags:
        - Product Hunt
      summary: Queue a Product Hunt leaderboard crawl job
      description: >-
        Submits a Product Hunt leaderboard scrape as an async job that scrolls
        to the leaderboard's genuine end, returning a `job_id` to poll via `GET
        /v1/jobs/{id}` and `GET /v1/jobs/{id}/result`. Requires a Starter plan
        or higher.
      operationId: queueProductHuntLeaderboardCrawl
      parameters:
        - name: period
          in: query
          required: false
          schema:
            description: Leaderboard window (default daily)
            type: string
            enum:
              - daily
              - weekly
              - monthly
        - name: date
          in: query
          required: false
          schema:
            description: >-
              Date the leaderboard is anchored to (YYYY-MM-DD, daily/weekly
              only). Defaults to today.
            type: string
            pattern: ^\d{4}-\d{2}-\d{2}$
        - name: category
          in: query
          required: false
          schema:
            description: Topic slug to filter by, e.g. 'artificial-intelligence'
            type: string
            minLength: 1
      responses:
        '202':
          description: Product Hunt leaderboard crawl job queued.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AsyncJobAcceptedResponse'
        '400':
          description: Invalid period, date, or category.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Missing or invalid API key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '402':
          description: Product Hunt dedicated endpoints require a Starter plan or higher.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      x-codeSamples:
        - lang: cURL
          label: cURL
          source: >-
            curl
            "https://api.scrapio.dev/v1/product-hunt/leaderboard/crawl?period=monthly"
            \
              -H "Authorization: Bearer $SCRAPIO_API_KEY"
components:
  schemas:
    AsyncJobAcceptedResponse:
      type: object
      properties:
        request_id:
          type: string
        mode:
          type: string
          enum:
            - async
        status:
          type: string
          enum:
            - queued
        job_id:
          type: string
        job_type:
          type: string
      required:
        - request_id
        - mode
        - status
        - job_id
      additionalProperties: false
    ErrorResponse:
      type: object
      properties:
        request_id:
          type: string
        error:
          type: object
          properties:
            code:
              type: string
            message:
              type: string
          required:
            - code
            - message
        diagnostics:
          type: object
          properties:
            outcome:
              type: string
              enum:
                - failed
            retryable:
              type: boolean
            blocked:
              type: boolean
            timed_out:
              type: boolean
          required:
            - outcome
            - retryable
          additionalProperties: false
      required:
        - request_id
        - error
      additionalProperties: false
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API Key

````