Tất cả trang web
Data API
Google Data API
Dữ liệu tìm kiếm, tin tức, bằng sáng chế và xu hướng từ Google.
57 endpointRate Limit · recaptcha được xử lý giúp bạn
Ví dụ (thu thập trực tiếp) Mở playground
google.com
Ví dụPhản hồi JSONnhấp vào trang để truy vết một trường
{
"search_metadata": {
"status": "Success",
"created_at": "2026-11-19T10:53:42.937843+00:00",
"engine": "google",
"google_url": "https://www.google.com/travel/flights/search?tfs=GhoSCjIwMjYtMTItMTVqBRIDSkZLcgUSA0xBWBoaEgoyMDI2LTEyLTIwagUSA0xBWHIFEgNKRktAAUgBmAEB&hl=en&gl=us&curr=USD"
},
"search_parameters": {
"engine": "google_flights",
"departure_id": "JFK",
"arrival_id": "LAX",
"outbound_date": "2026-12-15",
"return_date": "2026-12-20",
"type": 1,
"adults": 1,
"currency": "USD",
"gl": "us",
"hl": "en"
},
"best_flights": [
{
"flights": [
{
"departure_airport": {
"name": "John F. Kennedy International Airport",
"id": "JFK",
"time": "6:05 AM"
},
"arrival_airport": {
"name": "Los Angeles International Airport",
"id": "LAX",
"time": "9:30 AM"
},
"duration": 385,
"airplane": null,
"airline": "American",
"airline_logo": "https://www.gstatic.com/flights/airline_logos/70px/AA.png",
"travel_class": "Economy",
"flight_number": null,
"legroom": null,
"extensions": [
]
}
],
"layovers": [
],
"total_duration": 385,
"carbon_emissions": {
"this_flight": null,
"typical_for_this_route": null,
"difference_percent": null
},
"price": 400,
"type": "Round trip",
"airline_logo": "https://www.gstatic.com/flights/airline_logos/70px/AA.png",
"extensions": [
],
"departure_token": null,
"scraped_at": "2026-11-19T10:53:50.393493+00:00"
},
{
"flights": [
{
"departure_airport": {
"name": "John F. Kennedy International Airport",
"id": "JFK",
"time": "7:00 AM"
},
"arrival_airport": {
"name": "Los Angeles International Airport",
"id": "LAX",
"time": "10:15 AM"
},
"duration": 375,
"airplane": null,
"airline": "Delta",
"airline_logo": "https://www.gstatic.com/flights/airline_logos/70px/DL.png",
"travel_class": "Economy",
"flight_number": null,
"legroom": null,
"extensions": [
]
}
],
"layovers": [
],
"total_duration": 375,
"carbon_emissions": {
"this_flight": null,
"typical_for_this_route": null,
"difference_percent": null
},
"price": 517,
"type": "Round trip",
"airline_logo": "https://www.gstatic.com/flights/airline_logos/70px/DL.png",
"extensions": [
],
"departure_token": null,
"scraped_at": "2026-11-19T10:53:50.393493+00:00"
},
{
"flights": [
{
"departure_airport": {
"name": "John F. Kennedy International Airport",
"id": "JFK",
"time": "9:00 AM"
},
"arrival_airport": {
"name": "Los Angeles International Airport",
"id": "LAX",
"time": "12:20 PM"
},
"duration": 380,
"airplane": null,
"airline": "JetBlue",
"airline_logo": "https://www.gstatic.com/flights/airline_logos/70px/B6.png",
"travel_class": "Economy",
"flight_number": null,
"legroom": null,
"extensions": [
]
}
],
"layovers": [
],
"total_duration": 380,
"carbon_emissions": {
"this_flight": null,
"typical_for_this_route": null,
"difference_percent": null
},
"price": 527,
"type": "Round trip",
"airline_logo": "https://www.gstatic.com/flights/airline_logos/70px/B6.png",
"extensions": [
],
"departure_token": null,
"scraped_at": "2026-11-19T10:53:50.393493+00:00"
}
],
"other_flights": [
{
"flights": [
{
"departure_airport": {
"name": "John F. Kennedy International Airport",
"id": "JFK",
"time": "7:30 AM"
},
"arrival_airport": {
"name": "Los Angeles International Airport",
"id": "LAX",
"time": "2:53 PM"
},
"duration": 623,
"airplane": null,
"airline": "JetBlue",
"airline_logo": "https://www.gstatic.com/flights/airline_logos/70px/B6.png",
"travel_class": "Economy",
"flight_number": null,
"legroom": null,
"extensions": [
]
}
],
"layovers": [
{
"duration": null,
"name": null,
"id": null
}
],
"total_duration": 623,
"carbon_emissions": {
"this_flight": null,
"typical_for_this_route": null,
"difference_percent": null
},
"price": 405,
"type": "Round trip",
"airline_logo": "https://www.gstatic.com/flights/airline_logos/70px/B6.png",
"extensions": [
],
"departure_token": null,
"scraped_at": "2026-11-19T10:53:50.393493+00:00"
},
{
"flights": [
{
"departure_airport": {
"name": "John F. Kennedy International Airport",
"id": "JFK",
"time": "7:00 AM"
},
"arrival_airport": {
"name": "Los Angeles International Airport",
"id": "LAX",
"time": "12:17 PM"
},
"duration": 497,
"airplane": null,
"airline": "American",
"airline_logo": "https://www.gstatic.com/flights/airline_logos/70px/AA.png",
"travel_class": "Economy",
"flight_number": null,
"legroom": null,
"extensions": [
]
}
],
"layovers": [
{
"duration": null,
"name": null,
"id": null
}
],
"total_duration": 497,
"carbon_emissions": {
"this_flight": null,
"typical_for_this_route": null,
"difference_percent": null
},
"price": 417,
"type": "Round trip",
"airline_logo": "https://www.gstatic.com/flights/airline_logos/70px/AA.png",
"extensions": [
],
"departure_token": null,
"scraped_at": "2026-11-19T10:53:50.393493+00:00"
},
{
"flights": [
{
"departure_airport": {
"name": "John F. Kennedy International Airport",
"id": "JFK",
"time": "7:59 AM"
},
"arrival_airport": {
"name": "Los Angeles International Airport",
"id": "LAX",
"time": "11:27 AM"
},
"duration": 388,
"airplane": null,
"airline": "American",
"airline_logo": "https://www.gstatic.com/flights/airline_logos/70px/AA.png",
"travel_class": "Economy",
"flight_number": null,
"legroom": null,
"extensions": [
]
}
],
"layovers": [
],
"total_duration": 388,
"carbon_emissions": {
"this_flight": null,
"typical_for_this_route": null,
"difference_percent": null
},
"price": 467,
"type": "Round trip",
"airline_logo": "https://www.gstatic.com/flights/airline_logos/70px/AA.png",
"extensions": [
],
"departure_token": null,
"scraped_at": "2026-11-19T10:53:50.393493+00:00"
},
{
"flights": [
{
"departure_airport": {
"name": "John F. Kennedy International Airport",
"id": "JFK",
"time": "5:40 PM"
},
"arrival_airport": {
"name": "Los Angeles International Airport",
"id": "LAX",
"time": "9:06 PM"
},
"duration": 386,
"airplane": null,
"airline": "American",
"airline_logo": "https://www.gstatic.com/flights/airline_logos/70px/AA.png",
"travel_class": "Economy",
"flight_number": null,
"legroom": null,
"extensions": [
]
}
],
"layovers": [
],
"total_duration": 386,
"carbon_emissions": {
"this_flight": null,
"typical_for_this_route": null,
"difference_percent": null
},
"price": 467,
"type": "Round trip",
"airline_logo": "https://www.gstatic.com/flights/airline_logos/70px/AA.png",
"extensions": [
],
"departure_token": null,
"scraped_at": "2026-11-19T10:53:50.393493+00:00"
},
{
"flights": [
{
"departure_airport": {
"name": "John F. Kennedy International Airport",
"id": "JFK",
"time": "8:01 AM"
},
"arrival_airport": {
"name": "Los Angeles International Airport",
"id": "LAX",
"time": "11:25 AM"
},
"duration": 384,
"airplane": null,
"airline": "JetBlue",
"airline_logo": "https://www.gstatic.com/flights/airline_logos/70px/B6.png",
"travel_class": "Economy",
"flight_number": null,
"legroom": null,
"extensions": [
]
}
],
"layovers": [
],
"total_duration": 384,
"carbon_emissions": {
"this_flight": null,
"typical_for_this_route": null,
"difference_percent": null
},
"price": 527,
"type": "Round trip",
"airline_logo": "https://www.gstatic.com/flights/airline_logos/70px/B6.png",
"extensions": [
],
"departure_token": null,
"scraped_at": "2026-11-19T10:53:50.393493+00:00"
},
{
"flights": [
{
"departure_airport": {
"name": "John F. Kennedy International Airport",
"id": "JFK",
"time": "10:00 AM"
},
"arrival_airport": {
"name": "Los Angeles International Airport",
"id": "LAX",
"time": "1:19 PM"
},
"duration": 379,
"airplane": null,
"airline": "JetBlue",
"airline_logo": "https://www.gstatic.com/flights/airline_logos/70px/B6.png",
"travel_class": "Economy",
"flight_number": null,
"legroom": null,
"extensions": [
]
}
],
"layovers": [
],
"total_duration": 379,
"carbon_emissions": {
"this_flight": null,
"typical_for_this_route": null,
"difference_percent": null
},
"price": 527,
"type": "Round trip",
"airline_logo": "https://www.gstatic.com/flights/airline_logos/70px/B6.png",
"extensions": [
],
"departure_token": null,
"scraped_at": "2026-11-19T10:53:50.393493+00:00"
}
],
"price_insights": {
"lowest_price": 400,
"price_level": null,
"typical_price_range": [
],
"price_history": [
]
},
"airports": [
{
"departure": [
{
"airport": {
"id": "JFK",
"name": "John F. Kennedy International Airport"
},
"city": null,
"country": null,
"country_code": null,
"image": null,
"thumbnail": null
}
],
"arrival": [
{
"airport": {
"id": "LAX",
"name": "Los Angeles International Airport"
},
"city": null,
"country": null,
"country_code": null,
"image": null,
"thumbnail": null
}
]
}
]
}
GET
/v1/google/flights1 tín dụng / lượt chạy Đã xác minhFlights
Flight itineraries for a route: best and other options with airline, times, duration, layovers, carbon estimate and price. Omit the dates to get Google's suggested (cheapest) dates for the route instead.
Được xử lý giúp bạn:Rate Limitrecaptcha
Tham số
| Tên | Kiểu | Bắt buộc | Mô tả |
|---|---|---|---|
| departure_id | string | có | Departure airport IATA code, e.g. 'JFK' or 'CDG'. |
| arrival_id | string | có | Arrival airport IATA code, e.g. 'AUS' or 'LAX'. |
| Bộ lọc nâng cao | |||
| outbound_date | string | không | Outbound date, YYYY-MM-DD. Omit to get suggested (cheapest) dates for the route. |
| return_date | string | không | Return date, YYYY-MM-DD (round trips). |
| type | integer | không | Trip type: 1 round trip, 2 one way, 3 multi-city. (mặc định: 1) |
| travel_class | integer | không | Cabin: 1 economy, 2 premium economy, 3 business, 4 first. (mặc định: 1) |
| adults | integer | không | Number of adult passengers. (mặc định: 1) |
| children | integer | không | Number of children. (mặc định: 0) |
| infants_in_seat | integer | không | Infants in seat. (mặc định: 0) |
| infants_on_lap | integer | không | Infants on lap. (mặc định: 0) |
| stops | integer | không | Max stops: 0 any, 1 nonstop, 2 up to 1, 3 up to 2. |
| max_price | integer | không | Maximum ticket price. |
| currency | string | không | Currency code for prices, e.g. USD, EUR. (mặc định: USD) |
| gl | string | không | Two-letter country code, e.g. us, gb, de. (mặc định: us) |
| hl | string | không | UI language, e.g. en, es, fr. (mặc định: en) |