Sand AISand AI MAGI-2MAGI-2 hiện đã có trên SandBase: video 1080p với âm thanh gốcDùng thử ngay

Google Travel Explore

Tài liệu API
https://api.sandbase.ai/v1/api/google/travel-explore

Explore destinations from a departure airport on Google Travel, with cheapest flight and hotel prices, dates and travel time for each destination.

Giá
$0.01USD / lượt gọi
Phương thức
POST
Phản hồi
JSON
Tham số
1 bắt buộc · 24 tùy chọn

Phòng thử nghiệm

Đầu vào
Parameter defines the departure airport code or city location kgmid. An airport code is an uppercase 3-letter code. You can search for it on Google Flights or IATA. For example, `CDG` is Paris Charles de Gaulle Airport and `AUS` is Austin-Bergstrom International Airport. A location kgmid is a string that starts with `/m/` or `/g/`. You can search for a location on Wikidata and use its "Freebase ID" as the location kgmid. For example, `/m/0vzm` is the location kgmid for Austin, TX. You can specify multiple departure airports by separating them with a comma. For example, `CDG,ORY,/m/04jpl`.
Parameter defines the country to use for the Google Travel Explore search. It's a two-letter country code. (e.g., `us` for the United States, `uk` for United Kingdom, or `fr` for France) Head to the Google countries page for a full list of supported Google countries.
Parameter defines the language to use for the Google Travel Explore search. It's a two or three-letter language code. (e.g., `en` for English, `es` for Spanish, or `fr` for French), optionally followed by a two-letter or three-digit region code (e.g., `en-gb` for British English, or `es-419` for Latin American Spanish). Head to the Google languages page for a full list of supported Google languages.
Parameter defines the currency of the returned prices. Default to `USD`. Head to the Google Travel Currencies page for a full list of supported currency codes.
Parameter defines the arrival region or country as a location kgmid. A location kgmid is a string that starts with `/m/` or `/g/`. You can search for a region or country on Wikidata and use its "Freebase ID" as the location kgmid. For example, `/m/02j9z` is the location kgmid for Europe, and `/m/0f8l9c` is the location kgmid for France. This parameter is used when exploring flights to broader areas (regions or countries) rather than specific cities or airports.
Parameter defines the arrival airport code or city location kgmid. An airport code is an uppercase 3-letter code. You can search for it on Google Flights or IATA. For example, `CDG` is Paris Charles de Gaulle Airport and `AUS` is Austin-Bergstrom International Airport. A location kgmid is a string that starts with `/m/` or `/g/`. You can search for a location on Wikidata and use its "Freebase ID" as the location kgmid. For example, `/m/0vzm` is the location kgmid for Austin, TX.
Parameter defines the type of the flights. Available options: `1` - Round trip (default) `2` - One way When this parameter is set to `3`, use `multi_city_json` to set the flight information.
Parameter defines the outbound date. The format is YYYY-MM-DD. e.g. `2026-11-13`
Parameter defines the return date. The format is YYYY-MM-DD. e.g. `2026-11-19` Parameter is required if `type` parameter is set to: `1` (Round trip)
Parameter defines the month of the trip with flexible travel dates. The value must be a number from `1` to `12`, where `1` = January, `2` = February, …, `12` = December. `0` (default) means all months within the next 6 months are considered. Only the next 6 months from the current date are available for selection.
Parameter defines the duration of the trip with flexible travel dates. Available options: `1` - Weekend `2` - 1 week (default) `3` - 2 weeks
Parameter defines the travel class. Available options: `1` - Economy (default) `2` - Premium economy `3` - Business `4` - First
Parameter defines the number of adults. Default to 1.
Parameter defines the number of children. Default to 0.
Parameter defines the number of infants in seat. Default to 0.
Parameter defines the number of infants on lap. Default to 0.
Parameter defines the number of stops during the flight. Available options: `0` - Any number of stops (default) `1` - Nonstop only `2` - 1 stop or fewer `3` - 2 stops or fewer
Parameter defines the travel mode. Available options: `0` - All (default) `1` - Flight only `travel_mode` and `interest` parameters can't be used together.
Parameter defines the interest of the destination. Available options: `0` - Popular (default) `/g/11bc58l13w` - Outdoors `/m/0b3yr` - Beaches `/m/09cmq` - Museum `/m/03g3w` - History `/m/071k0` - Skiing `travel_mode` and `interest` parameters can't be used together.
Parameter defines the airline codes to be included. Split multiple airlines with a comma. Each airline code should be a 2-character IATA code consisting of either two uppercase letters or one uppercase letter and one digit. You can search for airline codes on IATA. For example, `UA` is United Airlines. Additionally, alliances can be also included here: `STAR_ALLIANCE` - Star Alliance `SKYTEAM` - SkyTeam `ONEWORLD` - Oneworld `exclude_airlines` and `include_airlines` parameters can't be used together.
Parameter defines the airline codes to be excluded. Split multiple airlines with a comma. Each airline code should be a 2-character IATA code consisting of either two uppercase letters or one uppercase letter and one digit. You can search for airline codes on IATA. For example, `UA` is United Airlines. Additionally, alliances can be also excluded here: `STAR_ALLIANCE` - Star Alliance `SKYTEAM` - SkyTeam `ONEWORLD` - Oneworld `exclude_airlines` and `include_airlines` parameters can't be used together.
Parameter defines the number of carry-on bags. Default to `0`. Parameter should not exceed the total number of passengers with carry-on bag allowance (`adults`, `children` and `infants_in_seat`).
Parameter defines the maximum ticket price. Default to unlimited.
Parameter defines the maximum flight duration, in minutes. For example, specify `1500` for 25 hours. If your search returns no results, try increasing your `max_duration` by up to `200` minutes to account for route-specific scheduling variances.
Parameter defines the fields you want to include in the output, reducing payload size for faster response. See the JSON Restrictor documentation for more details.
Đầu raSẵn sàng

Đầu ra của bạn sẽ xuất hiện ở đây

Hoàn tất đầu vào, rồi nhấp Run.

README API

Google Travel Explore

Explore destinations from a departure airport on Google Travel, with cheapest flight and hotel prices, dates and travel time for each destination.

Request

curl -X POST "https://api.sandbase.ai/v1/api/google/travel-explore" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"departure_id": "AUS"}'

The result is returned in outputs[0].data as structured JSON.

Parameters

NameTypeRequiredDescription
departure_idstringYesParameter defines the departure airport code or city location kgmid. An airport code is an uppercase 3-letter code. You can search for it on Google Flights or IATA. For example, CDG is Paris Charles de Gaulle Airport and AUS is Austin-B
glstringNoParameter defines the country to use for the Google Travel Explore search. It's a two-letter country code. (e.g., us for the United States, uk for United Kingdom, or fr for France) Head to the Google countries page for a full list of
hlstringNoParameter defines the language to use for the Google Travel Explore search. It's a two or three-letter language code. (e.g., en for English, es for Spanish, or fr for French), optionally followed by a two-letter or three-digit region
currencystringNoParameter defines the currency of the returned prices. Default to USD. Head to the Google Travel Currencies page for a full list of supported currency codes.
arrival_area_idstringNoParameter defines the arrival region or country as a location kgmid. A location kgmid is a string that starts with /m/ or /g/. You can search for a region or country on Wikidata and use its "Freebase ID" as the location kgmid. For examp
arrival_idstringNoParameter defines the arrival airport code or city location kgmid. An airport code is an uppercase 3-letter code. You can search for it on Google Flights or IATA. For example, CDG is Paris Charles de Gaulle Airport and AUS is Austin-Ber
typestringNoParameter defines the type of the flights. Available options: 1 - Round trip (default) 2 - One way When this parameter is set to 3, use multi_city_json to set the flight information.
outbound_datestringNoParameter defines the outbound date. The format is YYYY-MM-DD. e.g. 2026-11-13
return_datestringNoParameter defines the return date. The format is YYYY-MM-DD. e.g. 2026-11-19 Parameter is required if type parameter is set to: 1 (Round trip)
monthstringNoParameter defines the month of the trip with flexible travel dates. The value must be a number from 1 to 12, where 1 = January, 2 = February, …, 12 = December. 0 (default) means all months within the next 6 months are considered
travel_durationstringNoParameter defines the duration of the trip with flexible travel dates. Available options: 1 - Weekend 2 - 1 week (default) 3 - 2 weeks
travel_classstringNoParameter defines the travel class. Available options: 1 - Economy (default) 2 - Premium economy 3 - Business 4 - First
adultsstringNoParameter defines the number of adults. Default to 1.
childrenstringNoParameter defines the number of children. Default to 0.
infants_in_seatstringNoParameter defines the number of infants in seat. Default to 0.
infants_on_lapstringNoParameter defines the number of infants on lap. Default to 0.
stopsstringNoParameter defines the number of stops during the flight. Available options: 0 - Any number of stops (default) 1 - Nonstop only 2 - 1 stop or fewer 3 - 2 stops or fewer
travel_modestringNoParameter defines the travel mode. Available options: 0 - All (default) 1 - Flight only travel_mode and interest parameters can't be used together.
intereststringNoParameter defines the interest of the destination. Available options: 0 - Popular (default) /g/11bc58l13w - Outdoors /m/0b3yr - Beaches /m/09cmq - Museum /m/03g3w - History /m/071k0 - Skiing travel_mode and interest paramete
include_airlinesstringNoParameter defines the airline codes to be included. Split multiple airlines with a comma. Each airline code should be a 2-character IATA code consisting of either two uppercase letters or one uppercase letter and one digit. You can search f
exclude_airlinesstringNoParameter defines the airline codes to be excluded. Split multiple airlines with a comma. Each airline code should be a 2-character IATA code consisting of either two uppercase letters or one uppercase letter and one digit. You can search f
bagsstringNoParameter defines the number of carry-on bags. Default to 0. Parameter should not exceed the total number of passengers with carry-on bag allowance (adults, children and infants_in_seat).
max_pricestringNoParameter defines the maximum ticket price. Default to unlimited.
max_durationstringNoParameter defines the maximum flight duration, in minutes. For example, specify 1500 for 25 hours. If your search returns no results, try increasing your max_duration by up to 200 minutes to account for route-specific scheduling varia
json_restrictorstringNoParameter defines the fields you want to include in the output, reducing payload size for faster response. See the JSON Restrictor documentation for more details.

Pricing

$0.010 per successful call. Failed calls are not charged.

Khám phá thêm

APIs liên quan

Tất cả APIs
APIGiáPhản hồi
Google$0.01 mỗi lần gọiJSON
Google$0.01 mỗi lần gọiJSON
Google$0.015 mỗi lần gọiJSON
GoogleTừ $0.002 mỗi lần gọiJSON
GoogleTừ $0.0015 mỗi lần gọiJSON
Google$0.01 mỗi lần gọiJSON

Hướng dẫn:Best Google API in 2026: Pricing Compared

Câu hỏi

FAQ

Làm thế nào để dùng API Google Travel Explore?

Gửi yêu cầu POST đến https://api.sandbase.ai/v1/api/google/travel-explore với khóa API SandBase của bạn trong tiêu đề Authorization (Bearer) và các tham số trong phần thân JSON. Bạn cũng có thể thử trực tiếp trong Playground trên trang này mà không cần viết code.

API Google Travel Explore có giá bao nhiêu?

$0.01 mỗi lần gọi, được tính từ số dư SandBase của bạn. Bạn chỉ bị tính phí cho các lần gọi bạn thực hiện; không có gói đăng ký.

API Google Travel Explore chấp nhận những tham số nào?

Bắt buộc: departure_id (string). Tùy chọn: gl (string), hl (string), currency (string), arrival_area_id (string), arrival_id (string) và type (string) và 18 mục khác. Bảng Parameters và Playground trên trang này liệt kê mọi trường.

API Google Travel Explore trả về gì?

Phản hồi JSON được trả về trong cùng một yêu cầu HTTP (đồng bộ).

Tôi có cần tài khoản nhà phát triển hoặc API key của Google không?

Không. Google Travel Explore chạy thông qua SandBase, nên chỉ cần một API key SandBase là đủ cho endpoint này và mọi API cùng model khác trong danh mục. Bạn không cần đăng ký riêng để có quyền truy cập API của Google.