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

# Google Flights Booking Options

> List the providers (airline and OTAs) that can book a selected itinerary, with per-provider prices.

Pass a `selection_token` from a [Flights Search](/api-reference/google/google-flights/flights-search)
offer — either a one-way offer, or a round-trip offer returned by the
`departure_token` step (i.e. with both legs selected). Prices include mandatory
taxes and fees for the whole party, same as search results.

An incomplete round-trip selection (outbound only, no return chosen yet)
returns an empty `booking_options` list — follow that offer's `departure_token`
first.


## OpenAPI

````yaml GET /v1/google/flights/booking_options
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/flights/booking_options:
    get:
      tags:
        - Google Flights
      summary: Google Flights booking options for a selected itinerary
      description: >-
        Return the provider booking list (airline + OTAs) for a selected flight.


        The provider list is rendered client-side, so this does a JS render of
        the

        Google Flights ``/booking`` page (slower/pricier than search). Each
        option

        has the provider name and price; the actual per-provider booking links
        open

        from the returned ``booking_url`` (Google exposes them only as JS
        actions,

        not stable URLs).


        Returns an empty ``booking_options`` for an incomplete round-trip
        selection

        (one that has not chosen a return leg) — follow that offer's
        ``booking_url``

        to pick a return first.
      operationId: googleFlightsBookingOptions
      parameters:
        - name: selection_token
          in: query
          required: true
          schema:
            type: string
            description: >-
              `selection_token` from a `/flights/search` offer (one-way or
              fully-selected itinerary).
            title: Selection Token
          description: >-
            `selection_token` from a `/flights/search` offer (one-way or
            fully-selected itinerary).
        - name: currency
          in: query
          required: false
          schema:
            type: string
            description: ISO-4217 currency code.
            default: USD
            title: Currency
          description: ISO-4217 currency code.
        - name: gl
          in: query
          required: false
          schema:
            type: string
            description: Country code.
            default: us
            title: Gl
          description: Country code.
        - name: hl
          in: query
          required: false
          schema:
            type: string
            description: Language for the returned `booking_url`.
            default: en
            title: Hl
          description: Language for the returned `booking_url`.
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FlightBookingOptionsResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    FlightBookingOptionsResponse:
      properties:
        booking_options:
          items:
            $ref: '#/components/schemas/BookingOption'
          type: array
          title: Booking Options
        booking_url:
          anyOf:
            - type: string
            - type: 'null'
          title: Booking Url
          description: >-
            Google Flights booking page for this selection (the actual
            per-provider booking links open from here).
        currency:
          type: string
          title: Currency
          default: USD
      type: object
      title: FlightBookingOptionsResponse
      description: Response for GET /api/v1/flights/booking_options.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    BookingOption:
      properties:
        book_with:
          type: string
          title: Book With
          description: Provider name, e.g. `LATAM`, `maxmilhas`.
        price:
          anyOf:
            - type: number
            - type: 'null'
          title: Price
        currency:
          anyOf:
            - type: string
            - type: 'null'
          title: Currency
        type:
          anyOf:
            - type: string
              enum:
                - airline
                - agency
            - type: 'null'
          title: Type
          description: '`airline` for the carrier itself, else `agency`.'
      type: object
      required:
        - book_with
      title: BookingOption
      description: One provider (airline or OTA) that can book the selected itinerary.
    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
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key

````