> ## 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 search crawl

> Submit a multi-page Agoda search as an async job (up to 25 pages).



## OpenAPI

````yaml get /v1/agoda/search/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/agoda/search/crawl:
    get:
      tags:
        - Agoda
      summary: Queue an Agoda search crawl job
      description: >-
        Submits a multi-page Agoda search as an async job (up to 25 pages from
        `start_page`), returning a `job_id` to poll. Each page resolves via the
        same real capture-and-replay mechanism as the inline `page` param (no
        URL-based pagination exists), billed per page at the interact rate.
        Requires a Starter plan or higher. Does not accept
        `sort_by`/`min_price`/`max_price`/`stars`/`min_review_score` -- Agoda's
        search filters only apply via a single interact click session with no
        crawl-compatible equivalent.
      operationId: queueAgodaSearchCrawl
      parameters:
        - name: location
          in: query
          required: true
          schema:
            type: string
            minLength: 1
            description: Destination text
        - name: check_in
          in: query
          required: true
          schema:
            description: Check-in date (YYYY-MM-DD)
            type: string
            pattern: ^\d{4}-\d{2}-\d{2}$
        - name: check_out
          in: query
          required: true
          schema:
            description: Check-out date (YYYY-MM-DD)
            type: string
            pattern: ^\d{4}-\d{2}-\d{2}$
        - name: adults
          in: query
          required: false
          schema:
            description: Number of adults (default 2)
            type: string
            pattern: ^\d+$
        - name: children
          in: query
          required: false
          schema:
            description: Number of children (default 0)
            type: string
            pattern: ^\d+$
        - name: children_ages
          in: query
          required: false
          schema:
            description: Comma-separated child ages; length must match children
            type: string
            pattern: ^\d+(,\d+)*$
        - name: rooms
          in: query
          required: false
          schema:
            description: Number of rooms (default 1)
            type: string
            pattern: ^\d+$
        - name: currency
          in: query
          required: false
          schema:
            description: Display currency (ISO 4217)
            type: string
            pattern: ^[A-Za-z]{3}$
        - name: pos_country
          in: query
          required: false
          schema:
            description: Point-of-sale market (ISO country code)
            type: string
            pattern: ^[A-Za-z]{2}$
        - name: device
          in: query
          required: false
          schema:
            type: string
            enum:
              - desktop
              - mobile
              - tablet
            description: Device profile to emulate
        - name: start_page
          in: query
          required: false
          schema:
            description: First page to crawl (default 1)
            type: string
            pattern: ^\d+$
        - name: end_page
          in: query
          required: true
          schema:
            description: Last page to crawl, max 25 pages from start_page
            type: string
            pattern: ^\d+$
        - name: timeout_ms
          in: query
          required: false
          schema:
            description: Max time to wait per page, in ms
            type: string
            pattern: ^\d+$
      responses:
        '202':
          description: Agoda search crawl job queued.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AsyncJobAcceptedResponse'
        '400':
          description: Invalid crawl parameters.
          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: Plan upgrade required for this tenant.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      x-codeSamples:
        - lang: cURL
          label: cURL
          source: >-
            curl
            "https://api.scrapio.dev/v1/agoda/search/crawl?location=Paris&check_in=2026-08-10&check_out=2026-08-12&start_page=1&end_page=5&currency=EUR"
            \
              -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

````