> ## 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/prices/months

> Get the cheapest flight price for each upcoming month between two places by entity id. Returns a calendar of monthly lowest prices (one entry per month for the next year) with the year and month, the cheapest price and currency, and a relative price level (low, lowest) marking the best-value months. Origin and destination are Skyscanner place entity ids (resolve them via the places autosuggest). Prices are indicative lowest fares and change frequently.

**Price:** 1 credit per 12 results

**⚠️ Common errors:** 412: No price calendar available for the given route



## OpenAPI

````yaml /openapi/travel-hospitality.json post /api/skyscanner/flights/prices/months
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/prices/months:
    post:
      tags:
        - /skyscanner
      summary: /skyscanner/flights/prices/months
      description: >-
        Get the cheapest flight price for each upcoming month between two places
        by entity id. Returns a calendar of monthly lowest prices (one entry per
        month for the next year) with the year and month, the cheapest price and
        currency, and a relative price level (low, lowest) marking the
        best-value months. Origin and destination are Skyscanner place entity
        ids (resolve them via the places autosuggest). Prices are indicative
        lowest fares and change frequently.


        **Price:** 1 credit per 12 results


        **⚠️ Common errors:** 412: No price calendar available for the given
        route
      operationId: __api_skyscanner_flights_prices_months_post
      parameters:
        - name: access-token
          in: header
          required: true
          schema:
            anyOf:
              - type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SkyscannerFlightsPricesMonthsPayload'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/SkyscannerMonthPrice'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    SkyscannerFlightsPricesMonthsPayload:
      properties:
        timeout:
          type: integer
          maximum: 1500
          minimum: 20
          default: 300
        origin:
          type: string
          pattern: ^\d+$
        destination:
          type: string
          pattern: ^\d+$
        trip_type:
          $ref: '#/components/schemas/SkyscannerTripType'
          default: ROUND_TRIP
        count:
          type: integer
          minimum: 1
      type: object
      required:
        - origin
        - destination
        - count
    SkyscannerMonthPrice:
      properties:
        '@type':
          type: string
          default: SkyscannerMonthPrice
        date:
          anyOf:
            - type: string
            - type: 'null'
        year:
          anyOf:
            - type: integer
            - type: 'null'
        month:
          anyOf:
            - type: integer
            - type: 'null'
        price:
          anyOf:
            - type: number
            - type: 'null'
        currency:
          anyOf:
            - type: string
            - type: 'null'
        price_category:
          anyOf:
            - type: string
            - type: 'null'
      type: object
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
      type: object
    SkyscannerTripType:
      type: string
      enum:
        - ROUND_TRIP
        - ONE_WAY
    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

````