# KAYAK Flight Price Predictions

Return route flight-price predictions with their source date windows.

- **Documentation:** [https://scrappa.co/docs/kayak-api/kayak_best_time_flight_price_predictions](https://scrappa.co/docs/kayak-api/kayak_best_time_flight_price_predictions)
- **API group:** KAYAK API
- **Endpoint:** `GET https://scrappa.co/api/kayak/best-time/flight-price-predictions`

## 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 |
| --- | --- | --- | --- |
| `origin` | string | Yes | See the endpoint contract for the qualified value format and supported range. |
| `destination` | string | Yes | See the endpoint contract for the qualified value format and supported range. |

## Example request

```bash
#!/bin/bash

curl -X GET \
    -H "x-api-key: YOUR_API_KEY_HERE" \
    "https://scrappa.co/api/kayak/best-time/flight-price-predictions?origin=ICT&destination=LAS"
```

## Example response

```json
{
    "success": true,
    "operation": "best-time.flight-price-predictions",
    "data": {
        "results": [],
        "search_state": [],
        "warnings": [],
        "provenance": {
            "provider": "KAYAK",
            "freshness": "live"
        },
        "source_data": {
            "kayak": []
        }
    }
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 422 | Validation Error |  |
| 502 | Temporarily Unavailable |  |
| 503 | Capacity Unavailable |  |

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