Docs/Google Flights
Docs / API reference
POST/v1/data/google/flights
Google Flights
Search Google Flights for one-way or round-trip routes. Returns best/other flight listings with airline, flight number, timings, stops, duration, aircraft, emissions, and price metadata.
Execution model
Live request
Runtime depends on endpoint, target, pagination, rendering mode, and active plan limits.
Credit weight
Live catalog
Current weights are managed from the Data API Weights admin table and shown on pricing before use.
Parameters
| Name | Type | Requirement | Description |
|---|---|---|---|
| origin | string | Required | Origin IATA airport code, e.g. MAA or JFK. |
| destination | string | Required | Destination IATA airport code, e.g. BLR or LAX. |
| departure_date | string | Required | Departure date in YYYY-MM-DD format. |
| return_date | string | Optional | Return date in YYYY-MM-DD format. Omit for one-way. |
| adults | number | Optional | Adult passenger count (1-9). |
| children | number | Optional | Child passenger count (0-8). |
| infants_in_seat | number | Optional | Infants with own seat (0-4). |
| infants_on_lap | number | Optional | Lap infants (0-4). |
| seat | string | Optional | Cabin class: economy, premium_economy, business, first. |
| max_stops | number | Optional | Maximum stops, where 0 means nonstop. |
| language | string | Optional | Google UI language code. |
| currency | string | Optional | Currency code, e.g. USD, INR, EUR. |
| country | string | Optional | Country code for geo-targeting. |
Response fields
| Field | Type | Description |
|---|---|---|
| success | boolean | Whether the request completed successfully. |
| origin / destination | string | Requested airport codes. |
| trip_type | string | one_way or round_trip. |
| price_trend | string | Price trend indicator when available. |
| flights | array | Flight rows with airline, flight_number, times, duration, stops, price, aircraft, delay, and emissions. |
| time_taken | number | API response time in seconds. |
Request and response
curl -X POST "https://api.datablue.dev/v1/data/google/flights" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"origin": "MAA",
"destination": "BLR",
"departure_date": "2026-08-12",
"adults": 1,
"seat": "economy",
"currency": "INR",
"country": "IN"
}'Example response
{
"success": true,
"origin": "MAA",
"destination": "BLR",
"departure_date": "2026-08-12",
"trip_type": "one_way",
"adults": 1,
"seat": "economy",
"total_results": 8,
"price_trend": "typical",
"time_taken": 3.42,
"flights": [
{
"position": 1,
"is_best": true,
"airline": "IndiGo",
"flight_number": "6E 123",
"origin": "MAA",
"destination": "BLR",
"departure_time": "6:30 AM",
"arrival_time": "7:35 AM",
"duration": "1 hr 5 min",
"duration_minutes": 65,
"stops": 0,
"price": "₹4,213",
"price_value": 4213
}
]
}