Google Flights Details
POST /api/v1/google-flights/details
Get specific flight details, airline contacts, emissions, and layover schedules on Google Flights.
Overview
Get specific flight details, airline contacts, emissions, and layover schedules on Google Flights.
POST /api/v1/google-flights/details
Method: POST Path: /api/v1/google-flights/details Category: Travel
Request Parameters
Endpoint Parameters
| Name | Type | Requirement | Description |
|---|---|---|---|
| date | string | Optional | Departure date (YYYY-MM-DD or today) |
| destination | string | Required | Arrival city or airport code |
| flight_or_airline | string | Required | Airline name or flight identifier, e.g. Emirates |
| origin | string | Required | Departure city or airport code |
Request Example
Google Flights Details Request Examples
curl -X POST "https://api.dataguru.cc/api/v1/google-flights/details" \ -H "Authorization: Api-Key YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{"date": "today", "destination": "example", "flight_or_airline": "example", "origin": "example"}'
Response Example
200 OK
Typical 200 OK JSON response structure with envelope metadata.
{ "flight_query": "string", "origin": "string", "origin_hub": "string", "destination": "string", "destination_hub": "string", "date": "2026-01-01T12:00:00Z", "url": "https://example.com/...", "total_matched": 0, "message": "string", "flight_details": {}, "matched_flights": [ { "airline": "string", "price": "string", "departure_airport": "string", "departure_iata": "string", "departure_time": "string", "departure_date": "2026-01-01T12:00:00Z", "arrival_airport": "string", "arrival_iata": "string", "arrival_time": "string", "arrival_date": "2026-01-01T12:00:00Z", "duration": "string", "stops": "string", "layovers": [ "string" ], "delay": "string", "emissions": "string", "summary": "string", "booking_contact": { "airline": "string", "official_website": "https://example.com/...", "booking_url": "https://example.com/...", "customer_support": "string" } } ], "error": "string", "_metadata": { "request_id": "3f6c1a2e-8b4d-4c1e-9a7f-2d5e6b7c8d9e", "execution_time_ms": 842, "endpoint": "Google Flights 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 |
|---|---|---|---|
| flight_query | string | Yes | |
| origin | string | Yes | |
| origin_hub | string | Yes | |
| destination | string | Yes | |
| destination_hub | string | Yes | |
| date | string | Yes | |
| url | string | Yes | |
| total_matched | integer | Yes | |
| message | string | No | |
| flight_details | object | null | No | |
| matched_flights | array<object> | Yes | |
| matched_flights[].airline | string | No | |
| matched_flights[].price | string | No | |
| matched_flights[].departure_airport | string | No | |
| matched_flights[].departure_iata | string | No | |
| matched_flights[].departure_time | string | No | |
| matched_flights[].departure_date | string | No | |
| matched_flights[].arrival_airport | string | No | |
| matched_flights[].arrival_iata | string | No | |
| matched_flights[].arrival_time | string | No | |
| matched_flights[].arrival_date | string | No | |
| matched_flights[].duration | string | No | |
| matched_flights[].stops | string | No | |
| matched_flights[].layovers | array<string> | No | |
| matched_flights[].delay | string | No | |
| matched_flights[].emissions | string | No | |
| matched_flights[].summary | string | No | |
| matched_flights[].booking_contact | object | No | |
| matched_flights[].booking_contact.airline | string | No | |
| matched_flights[].booking_contact.official_website | string | No | |
| matched_flights[].booking_contact.booking_url | string | No | |
| matched_flights[].booking_contact.customer_support | string | No | |
| error | string | No |
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/google-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
destination,flight_or_airline,origin,date example,example,example,today
Pricing & Rate Limits
Endpoint Pricing
$0.0022 / 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. |