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

# /skyscanner/flights/dates

> Find the cheapest Skyscanner flight price for each nearby departure date (and, for round trips, each nearby return date) around a requested date — the flexible-dates price grid. Origin and destination are Skyscanner place entity ids (resolve them via the places autosuggest). For round trips also pass a return date; the result is then a grid of departure x return date combinations. Each cell carries the cheapest total price, the cheapest non-stop price and the cheapest price with stops (in the requested currency), plus availability and a price-level indicator highlighting unusually low fares.

**Price:** 1 credit per 15 results

**⚠️ Common errors:** 412: No flexible-date prices found for the given route, date and passenger combination



## OpenAPI

````yaml /openapi/travel-hospitality.json post /api/skyscanner/flights/dates
openapi: 3.1.0
info:
  title: Any Site API
  description: >+
    Any Site API provides programmatic access to data from LinkedIn, Instagram,
    Twitter, and other platforms.


    ## Authentication


    All API endpoints require an `access-token` header with a valid API token.
    Tokens can be created in the [dashboard](https://app.anysite.io/).


    ## Pricing


    Each endpoint has a credit cost listed in its description. Credits are
    deducted from your token balance per request.

  version: 0.0.1
servers: []
security:
  - AccessToken: []
paths:
  /api/skyscanner/flights/dates:
    post:
      tags:
        - /skyscanner
      summary: /skyscanner/flights/dates
      description: >-
        Find the cheapest Skyscanner flight price for each nearby departure date
        (and, for round trips, each nearby return date) around a requested date
        — the flexible-dates price grid. Origin and destination are Skyscanner
        place entity ids (resolve them via the places autosuggest). For round
        trips also pass a return date; the result is then a grid of departure x
        return date combinations. Each cell carries the cheapest total price,
        the cheapest non-stop price and the cheapest price with stops (in the
        requested currency), plus availability and a price-level indicator
        highlighting unusually low fares.


        **Price:** 1 credit per 15 results


        **⚠️ Common errors:** 412: No flexible-date prices found for the given
        route, date and passenger combination
      operationId: __api_skyscanner_flights_dates_post
      parameters:
        - name: access-token
          in: header
          required: true
          schema:
            anyOf:
              - type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SkyscannerFlightsDatesPayload'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/SkyscannerDateOption'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    SkyscannerFlightsDatesPayload:
      properties:
        timeout:
          type: integer
          maximum: 1500
          minimum: 20
          default: 300
        origin:
          type: string
          pattern: ^\d+$
        destination:
          type: string
          pattern: ^\d+$
        depart_date:
          type: string
          format: date
        return_date:
          anyOf:
            - type: string
              format: date
            - type: 'null'
        cabin_class:
          $ref: '#/components/schemas/SkyscannerCabinClass'
          default: ECONOMY
        adults:
          type: integer
          maximum: 8
          minimum: 1
          default: 1
        child_ages:
          items:
            type: integer
          type: array
          default: []
        count:
          type: integer
          minimum: 1
      type: object
      required:
        - origin
        - destination
        - depart_date
        - count
    SkyscannerDateOption:
      properties:
        '@type':
          type: string
          default: SkyscannerDateOption
        departure_date:
          anyOf:
            - type: string
            - type: 'null'
        return_date:
          anyOf:
            - type: string
            - type: 'null'
        currency:
          anyOf:
            - type: string
            - type: 'null'
        price:
          anyOf:
            - type: number
            - type: 'null'
        direct_price:
          anyOf:
            - type: number
            - type: 'null'
        non_direct_price:
          anyOf:
            - type: number
            - type: 'null'
        availability:
          anyOf:
            - type: string
            - type: 'null'
        direct_availability:
          anyOf:
            - type: string
            - type: 'null'
        price_category:
          anyOf:
            - type: string
            - type: 'null'
        direct_price_category:
          anyOf:
            - type: string
            - type: 'null'
      type: object
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
      type: object
    SkyscannerCabinClass:
      type: string
      enum:
        - ECONOMY
        - PREMIUM_ECONOMY
        - BUSINESS
        - FIRST
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
        msg:
          type: string
        type:
          type: string
        input: {}
        ctx:
          type: object
      type: object
      required:
        - loc
        - msg
        - type
  securitySchemes:
    AccessToken:
      type: apiKey
      in: header
      name: access-token
      description: API token from the dashboard

````