# Booking Details

Get detailed booking information for a specific flight including price insights, price history, fare options, and baggage information.

- **Documentation:** [https://scrappa.co/docs/google-flights-api/google_flights_booking_details](https://scrappa.co/docs/google-flights-api/google_flights_booking_details)
- **API group:** Google Flights API
- **Endpoint:** `GET https://scrappa.co/api/flights/booking-details`

## Authentication

Send your Scrappa API key in the `X-API-KEY` request header. Paid endpoints also support accountless x402 payments when called without an API key.

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `booking_token` | string | Yes | The booking token from search results, up to 4096 characters |
| `origin` | string | Yes | Origin airport IATA code |
| `destination` | string | Yes | Destination airport IATA code |
| `departure_date` | string | Yes | Departure date in Y-m-d format |
| `airline` | string | Yes | Airline IATA code |
| `flight_number` | string | Yes | Flight number |
| `adults` | integer | No | Number of adult passengers (1-9, default: 1) |
| `children` | integer | No | Number of child passengers (0-9, default: 0) |
| `infants_in_seat` | integer | No | Number of infants in seat (0-9, default: 0) |
| `infants_on_lap` | integer | No | Number of infants on lap (0-9, default: 0) |
| `cabin_class` | string | No | Cabin class: economy, premium_economy, business, or first (default: economy) |
| `hl` | string | No | Language code (e.g., en, de, en-US) |
| `gl` | string | No | Country/region code (e.g., us, de, gb) |
| `currency` | string | No | Currency code for prices and fare options (e.g., USD, EUR, GBP) |

## Example request

```bash
#!/bin/bash

curl -X GET \
    -H "x-api-key: YOUR_API_KEY_HERE" \
    "https://scrappa.co/api/flights/booking-details?booking_token=abc123&origin=JFK&destination=LAX&departure_date=2026-09-15&airline=AA&flight_number=123"
```

## Example response

```json
{
    "flight_details": [],
    "price_insights": [],
    "fare_options": [],
    "baggage_info": []
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 422 | Validation Error | booking_token, origin, destination, departure_date, airline, and flight_number are required; passenger counts, cabin_class, hl, and gl must be valid when provided. |
| 402 | Insufficient Credits | Your API key is valid, but the account has no free, subscription, or package credits available. |
| 502 | Booking Upstream Unavailable | The booking details lookup could not be completed because the upstream provider was temporarily unavailable. |
| 500 | Booking Details Service Error | Scrappa could not complete the booking details request after validation passed. |

## More Scrappa resources

- [API documentation](https://scrappa.co/docs)
- [Full LLM-readable API reference](https://scrappa.co/llms-full.txt)
- [OpenAPI specification](https://scrappa.co/docs/api.json)
- [Pricing](https://scrappa.co/pricing)
