85trust / 100
Google Flights Search
by StableTravel in Weather & location
x402 APIPassing, checked 3 h ago
Search Google Flights for flight offers. Returns best flights, other flights, price insights, and airport info.
GET https://stabletravel.dev/api/google-flights/search
Last 30 days
All checks passedSome failedAll failedNot checked
- Uptime
- 100%
- Response time
- 243 ms typical, 243 ms slowest 5%
- Last check
- 3 h ago
- Next check
- any minute now
How to call it
# See the payment challenge (nothing is charged)
curl -i -X GET "https://stabletravel.dev/api/google-flights/search?adults=1&arrival_id=LAX&children=0¤cy=USD&departure_id=JFK&hl=en&infants_in_seat=0&infants_on_lap=0&outbound_date=2026-12-01&return_date=2026-12-08&type=1"import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";
const client = new x402Client().register(
"eip155:8453",
new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);
// Not sure it's safe to pay? Preflight it first for $0.03:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fstabletravel.dev%2Fapi%2Fgoogle-flights%2Fsearch
const res = await pay("https://stabletravel.dev/api/google-flights/search?adults=1&arrival_id=LAX&children=0¤cy=USD&departure_id=JFK&hl=en&infants_in_seat=0&infants_on_lap=0&outbound_date=2026-12-01&return_date=2026-12-08&type=1");
console.log(await res.json());Example input
{
"adults": 1,
"arrival_id": "LAX",
"children": 0,
"currency": "USD",
"departure_id": "JFK",
"hl": "en",
"infants_in_seat": 0,
"infants_on_lap": 0,
"outbound_date": "2026-12-01",
"return_date": "2026-12-08",
"type": "1"
}Example output
{
"best_flights": [
{
"flights": [
{
"airline": "American",
"arrival_airport": {
"id": "LAX",
"name": "Los Angeles International Airport",
"time": "2026-12-01 11:00"
},
"departure_airport": {
"id": "JFK",
"name": "John F. Kennedy International Airport",
"time": "2026-12-01 08:00"
},
"duration": 360,
"flight_number": "AA 100",
"travel_class": "Economy"
}
],
"price": 350,
"total_duration": 360,
"type": "Round trip"
}
],
"search_metadata": {
"created_at": "2026-04-22 12:00:00 UTC",
"google_flights_url": "https://www.google.com/travel/flights",
"id": "search-123",
"status": "Success"
}
}Security scan
- No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.
Recent checks
| When | Result | HTTP | Time | Price |
|---|---|---|---|---|
| 3 h ago | Passed | 402 | 243 ms | $0.02 |