Kayak Flight Details
POST /api/v1/kayak/flights/details
Retrieve route details, direct carriers, airline deals, layover insights, and contacts from Kayak.
Overview
Retrieve route details, direct carriers, airline deals, layover insights, and contacts from Kayak.
POST /api/v1/kayak/flights/details
Method: POST Path: /api/v1/kayak/flights/details Category: Travel
Request Parameters
Endpoint Parameters
| Name | Type | Requirement | Description |
|---|---|---|---|
| airline_query | string | Optional | Airline name filter |
| destination | string | Optional | Arrival airport IATA code or city name |
| origin | string | Required | Departure airport IATA code or city name |
Request Example
Kayak Flight Details Request Examples
curl -X POST "https://api.dataguru.cc/api/v1/kayak/flights/details" \ -H "Authorization: Api-Key YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{"airline_query": "Emirates", "destination": "example", "origin": "example"}'
Response Example
200 OK
Typical 200 OK JSON response structure with envelope metadata.
{ "query": "string", "origin": "string", "destination": "string", "url": "https://example.com/...", "canonical_url": "https://example.com/...", "heading": "string", "route_stats": {}, "direct_airlines": [ "string" ], "airline_matched": false, "total_deals": 0, "primary_flight": { "deal_type": "string", "dates": "string", "airline": "string", "price": "string", "legs": [ { "times": "string", "route": "string", "duration": "string", "stops": "string" } ] }, "booking_contact": { "airline": "string", "official_website": "string", "booking_url": "https://example.com/...", "customer_support": "string" }, "deals": [ { "deal_type": "string", "dates": "string", "airline": "string", "price": "string", "legs": [ { "times": "string", "route": "string", "duration": "string", "stops": "string" } ] } ], "structured_flights": [ { "airline": "string", "departure_time": "string", "duration": "string", "origin_airport": "string", "origin_geo": {}, "destination_airport": "string", "destination_geo": {}, "price": 0.0, "currency": "USD" } ], "layover_and_delay_insights": [ { "question": "string", "answer": "string" } ], "faqs": [ { "question": "string", "answer": "string" } ], "message": "string", "error": "string", "_metadata": { "request_id": "3f6c1a2e-8b4d-4c1e-9a7f-2d5e6b7c8d9e", "execution_time_ms": 842, "endpoint": "Kayak Flight Details", "mode": "live", "format": "json", "timestamp": "2026-01-01T12:00:00+00:00" } }
Response Schema
Fields returned in a successful response. Nested fields use dot notation and `[]` marks items of a list. Fields that are not required can be missing or `null` when the source does not provide them. Every response also includes a `_metadata` block.
Response Fields
| Field | Type | Required | Description |
|---|---|---|---|
| query | string | No | Queried airline filter or route |
| origin | string | Yes | Departure airport IATA code or city query |
| destination | string | Yes | Arrival airport IATA code or city query |
| url | string | Yes | Kayak flight route URL searched |
| canonical_url | string | No | Canonical URL from page metadata |
| heading | string | No | Main H1 heading on the page |
| route_stats | object | No | Route statistics (e.g. flight time, distance, popular airline) |
| direct_airlines | array<string> | No | List of airlines offering non-stop flights on this route |
| airline_matched | boolean | No | Whether the requested airline filter matched deals on this route |
| total_deals | integer | No | Number of flight deals returned |
| primary_flight | object | null | No | Primary featured or best-matching flight deal |
| primary_flight.deal_type | string | No | |
| primary_flight.dates | string | No | |
| primary_flight.airline | string | No | |
| primary_flight.price | string | No | |
| primary_flight.legs | array<object> | No | |
| primary_flight.legs[].times | string | No | |
| primary_flight.legs[].route | string | No | |
| primary_flight.legs[].duration | string | No | |
| primary_flight.legs[].stops | string | No | |
| booking_contact | object | No | Contact and direct booking links for the airline |
| booking_contact.airline | string | No | |
| booking_contact.official_website | string | No | |
| booking_contact.booking_url | string | No | |
| booking_contact.customer_support | string | No | |
| deals | array<object> | Yes | Flight deals matching the query filter |
| deals[].deal_type | string | Yes | |
| deals[].dates | string | No | |
| deals[].airline | string | Yes | |
| deals[].price | string | Yes | |
| deals[].legs | array<object> | No | |
| deals[].legs[].times | string | No | |
| deals[].legs[].route | string | No | |
| deals[].legs[].duration | string | No | |
| deals[].legs[].stops | string | No | |
| structured_flights | array<object> | No | Structured flight entities from JSON-LD metadata |
| structured_flights[].airline | string | No | |
| structured_flights[].departure_time | string | No | |
| structured_flights[].duration | string | No | |
| structured_flights[].origin_airport | string | No | |
| structured_flights[].origin_geo | object | No | |
| structured_flights[].destination_airport | string | No | |
| structured_flights[].destination_geo | object | No | |
| structured_flights[].price | number | string | null | No | |
| structured_flights[].currency | string | No | |
| layover_and_delay_insights | array<object> | No | Layover and flight delay guidance questions and answers |
| layover_and_delay_insights[].question | string | Yes | |
| layover_and_delay_insights[].answer | string | Yes | |
| faqs | array<object> | No | Frequently asked questions from FAQPage schema |
| faqs[].question | string | Yes | |
| faqs[].answer | string | Yes | |
| message | string | No | Informational status message (e.g. fallback when airline query has no exact match) |
| error | string | No | Error message if scrape fails |
Asynchronous Requests
Long-running requests can be processed in the background. Add `?async=true` (or the `Prefer: respond-async` header) to receive a `job_id` immediately, then poll the job until its status is `COMPLETED`.
Async Workflow
curl -X POST "https://api.dataguru.cc/api/v1/kayak/flights/details?async=true" \ -H "Authorization: Api-Key YOUR_API_KEY" # 202 Accepted { "success": true, "status": "SUBMITTED", "job_id": "0ca215ce-244f-4b28-b481-dc1b551983c8", "status_url": "/api/v1/jobs/0ca215ce-244f-4b28-b481-dc1b551983c8/" }
Batch Processing
To run many requests at half price, upload them as a CSV file: one row per request, with the parameter names above as the header row. Rows run in the background within 24 hours (up to 7 days for large files) and each successful row costs 50% of the price below. Poll /api/v1/batches/{batch_id}/ for progress and download results.json when it has finished. See the Batch Processing guide for details.
Batch Workflow
origin,airline_query,destination example,Emirates,example
Pricing & Rate Limits
Endpoint Pricing
$0.02 / per successful request (USD)
Consumed per successful call: 1 request unit(s), 1 credit(s).
Endpoint Rate Limits
Common Errors
Common HTTP Errors
| Status | Code | Description |
|---|---|---|
| 400 | VALIDATION_ERROR | A required parameter is missing or malformed. |
| 401 | UNAUTHORIZED | Missing or invalid API key. |
| 402 | INSUFFICIENT_BALANCE | Your balance cannot cover this request. |
| 403 | ENDPOINT_DISABLED | This endpoint is currently unavailable. |
| 405 | METHOD_NOT_ALLOWED | The endpoint was called with the wrong HTTP method. |
| 429 | RATE_LIMIT_EXCEEDED | Too many requests. See the Retry-After header. |
| 502 | PROVIDER_ERROR | The upstream data source failed. Retry with exponential backoff. |