Chuyển đến nội dung
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
google.comGET/google/adsGET/google/ads/tr…GET/google/ai-mod…{ } JSON
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 minh

Flights

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ênKiểuBắt buộcMô tả
departure_idstringcóDeparture airport IATA code, e.g. 'JFK' or 'CDG'.
arrival_idstringcóArrival airport IATA code, e.g. 'AUS' or 'LAX'.
Bộ lọc nâng cao
outbound_datestringkhôngOutbound date, YYYY-MM-DD. Omit to get suggested (cheapest) dates for the route.
return_datestringkhôngReturn date, YYYY-MM-DD (round trips).
typeintegerkhôngTrip type: 1 round trip, 2 one way, 3 multi-city. (mặc định: 1)
travel_classintegerkhôngCabin: 1 economy, 2 premium economy, 3 business, 4 first. (mặc định: 1)
adultsintegerkhôngNumber of adult passengers. (mặc định: 1)
childrenintegerkhôngNumber of children. (mặc định: 0)
infants_in_seatintegerkhôngInfants in seat. (mặc định: 0)
infants_on_lapintegerkhôngInfants on lap. (mặc định: 0)
stopsintegerkhôngMax stops: 0 any, 1 nonstop, 2 up to 1, 3 up to 2.
max_priceintegerkhôngMaximum ticket price.
currencystringkhôngCurrency code for prices, e.g. USD, EUR. (mặc định: USD)
glstringkhôngTwo-letter country code, e.g. us, gb, de. (mặc định: us)
hlstringkhôngUI language, e.g. en, es, fr. (mặc định: en)