SearchAPI.io - Google Travel Explore API
SearchAPI.io tool searchapi-io-google-travel-explore on looot: input fields, $0.004 per call, output shape, and code to run it with curl, JavaScript or Python.
The Google Travel Explore API helps you discover travel destinations based on your preferences. It provides curated destination suggestions with pricing, flight information, and accommodation costs for various interests and time periods. Cross-linking: - Use the destination’s kgmid as arrival_id with the Google Travel Explore Destination API to get detailed flight options for that specific destination - Use the destination’s kgmid with Google Hotels API to search for accommodations - Use flight details with Google Flights API for detailed flight searches - Departure_id accepts 3-letter IATA codes (e.g., “JFK”) or kgmid with /m/ prefix (e.g., “/m/02_286” for New York)
- Tool id:
searchapi-io-google-travel-explore - Provider: SearchAPI.io
- Job: Google travel explore search (
search.google-travel-explore) - Price: $0.004 per call. A call that fails at the provider costs $0.
Inputs
| Name | Type | Required | Description |
|---|---|---|---|
adults |
integer | no | |
arrival_id |
string | no | |
carry_on_bags |
integer | no | |
children |
integer | no | |
currency |
string | no | |
departure_id |
string | yes | |
engine |
string | no | Fixed to “google_travel_explore” for this endpoint. Example: “google_travel_explore” |
gl |
string | no | |
hl |
string | no | |
included_airlines |
string | no | |
infants_in_seat |
integer | no | |
infants_on_lap |
integer | no | |
interests |
string | no | |
max_flight_duration |
integer | no | |
max_price |
integer | no | |
stops |
string | no | |
time_period |
string | no | |
travel_class |
string | no | |
travel_mode |
string | no |
Output
The run’s result holds the provider’s answer. Signed in, looot inspect searchapi-io-google-travel-explore prints its fields.
Run it
Every call needs your API token in LOOOT_TOKEN; Sign in shows how to get one. Each run also needs a new idempotency key, so a retry never pays twice. With wait: 30 the answer comes back inline when the run ends within 30 seconds. Otherwise you get the running run back: poll GET /v1/runs/<runId>.
Example input with placeholder values:
curl -X POST "https://api.looot.ai/v1/runs" \
-H "Authorization: Bearer $LOOOT_TOKEN" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{"endpointId":"searchapi-io-google-travel-explore","input":{"departure_id":"<departure_id>","engine":"google_travel_explore"},"wait":30}'const response = await fetch("https://api.looot.ai/v1/runs", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.LOOOT_TOKEN}`,
"Content-Type": "application/json",
"Idempotency-Key": crypto.randomUUID(),
},
body: JSON.stringify({
endpointId: "searchapi-io-google-travel-explore",
input: {
departure_id: "<departure_id>",
engine: "google_travel_explore",
},
wait: 30,
}),
});
const run = await response.json();
console.log(run.status, run.result);import os
import uuid
import requests
response = requests.post(
"https://api.looot.ai/v1/runs",
headers={
"Authorization": f"Bearer {os.environ['LOOOT_TOKEN']}",
"Idempotency-Key": str(uuid.uuid4()),
},
json={
"endpointId": "searchapi-io-google-travel-explore",
"input": {
"departure_id": "<departure_id>",
"engine": "google_travel_explore",
},
"wait": 30,
},
timeout=90,
)
run = response.json()
print(run["status"], run.get("result"))To let looot pick among every provider of this job instead, send job:search.google-travel-explore as endpointId; see the job page.