ST
Travel · x402 · active demand
Search Google Flights for flight offers
Search Google Flights for flight offers. Returns best flights, other flights, price insights, and airport info.
by stabletravel.dev · discovered, not yet claimed by its owner · updated 2026-10-13
30d calls205
30d payers17
MethodGET
Outputjson
Mirrored from Coinbase's public x402 Bazaar. The description is the provider's own text and has not been reviewed here; the payment requirements are copied as published.
What it does
Search Google Flights for flight offers. Returns best flights, other flights, price insights, and airport info.
Tags: Google Flights · bazaar
Call contract
- Method
- GET
- Input
- query parameters
- Output
- json
- Last paid call
- 2026-10-13
Input example from Bazaar metadata
{
"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"
}Output example
{
"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"
}
}Use with an agent
- Discover. Agents find this listing with
GET https://bazaar.saylorinnovations.com/discovery/search?query=…, the MCP toolsearch_resources, or/discovery/resources. - Inspect. Fetch
/resources/26821.jsonfor the price and payment options. - Pay. Call
GET https://stabletravel.dev/api/google-flights/search. The provider answers402with its payment requirements. An x402 client signs one of the options below and retries withPAYMENT-SIGNATURE. - Execute. The provider returns
200with the data. Agent Bazaar is not in the request path and never sees your payment.
For humans
You don't need an account or an API key; you need a wallet holding a small amount of USDC on Base, Solana, and an x402-capable client (see the examples below). Call the endpoint unpaid first to see exactly what it asks for.
Pricing & payment
- Price
- $0.02 / request
- Protocol
- x402 v2
- Auth
- No account or API key. Pay per request.
- Networks
- Base, Solana
- Demand
- 205 calls · 17 unique payers in 30d (public x402 Bazaar data)
x402 payment requirements
| Scheme | Network | Asset | Amount | Pay to | Timeout |
|---|---|---|---|---|---|
| exact | Base eip155:8453 | USDC | $0.02 | 0xDd257723b86B4947483905cdAcBbBC70fACF2ec0 | 300s |
| exact | Solana solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp | USDC | $0.02 | 6u5LMGQC2qk9peNibahmRWxGVXrBypk8nhTCcqtiuqMY | 300s |
accepts[] (raw JSON)
[
{
"scheme": "exact",
"network": "eip155:8453",
"payTo": "0xDd257723b86B4947483905cdAcBbBC70fACF2ec0",
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"amount": "20000",
"amountUsd": 0.02,
"maxTimeoutSeconds": 300
},
{
"scheme": "exact",
"network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
"payTo": "6u5LMGQC2qk9peNibahmRWxGVXrBypk8nhTCcqtiuqMY",
"asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
"amount": "20000",
"amountUsd": 0.02,
"maxTimeoutSeconds": 300
}
]Schemas
Output schema (JSON Schema)
{
"properties": {
"example": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false,
"properties": {
"airports": {
"items": {
"additionalProperties": false,
"properties": {
"arrival": {
"items": {
"additionalProperties": false,
"properties": {
"airport": {
"additionalProperties": false,
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
},
"time": {
"type": "string"
}
},
"type": "object"
},
"city": {
"type": "string"
},
"country": {
"type": "string"
},
"country_code": {
"type": "string"
},
"image": {
"type": "string"
},
"thumbnail": {
"type": "string"
}
},
"type": "object"
},
"type": "array"
},
"departure": {
"items": {
"additionalProperties": false,
"properties": {
"airport": {
"additionalProperties": false,
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
},
"time": {
"type": "string"
}
},
"type": "object"
},
"city": {
"type": "string"
},
"country": {
"type": "string"
},
"country_code": {
"type": "string"
},
"image": {
"type": "string"
},
"thumbnail": {
"type": "string"
}
},
"type": "object"
},
"type": "array"
}
},
"type": "object"
},
"type": "array"
},
"best_flights": {
"items": {
"additionalProperties": false,
"properties": {
"airline_logo": {
"type": "string"
},
"carbon_emissions": {
"additionalProperties": false,
"properties": {
"difference_percent": {
"type": "number"
},
"this_flight": {
"type": "number"
},
"typical_for_this_route": {
"type": "number"
}
},
"type": "object"
},
"departure_token": {
"type": "string"
},
"extensions": {
"items": {
"type": "string"
},
"type": "array"
},
"flights": {
"items": {
"additionalProperties": false,
"properties": {
"airline": {
"type": "string"
},
"airline_logo": {
"type": "string"
},
"airplane": {
"type": "string"
},
"arrival_airport": {
"additionalProperties": false,
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
},
"time": {
"type": "string"
}
},
"type": "object"
},
"departure_airport": {
"additionalProperties": false,
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
},
"time": {
"type": "string"
}
},
"type": "object"
},
"duration": {
"type": "number"
},
"extensions": {
"items": {
"type": "string"
},
"type": "array"
},
"flight_number": {
"type": "string"
},
"legroom": {
"type": "string"
},
"often_delayed_by_over_30_min": {
"type": "boolean"
},
"overnight": {
"type": "boolean"
},
"travel_class": {
"type": "string"
}
},
"type": "object"
},
"type": "array"
},
"layovers": {
"items": {
"additionalProperties": false,
"properties": {
"duration": {
"type": "number"
},
"id": {
"type": "string"
},
"name": {
"type": "string"
},
"overnight": {
"type": "boolean"
}
},
"type": "object"
},
"type": "array"
},
"price": {
"type": "number"
},
"total_duration": {
"type": "number"
},
"type": {
"type": "string"
}
},
"type": "object"
},
"type": "array"
},
"other_flights": {
"items": {
"additionalProperties": false,
"properties": {
"airline_logo": {
"type": "string"
},
"carbon_emissions": {
"additionalProperties": false,
"properties": {
"difference_percent": {
"type": "number"
},
"this_flight": {
"type": "number"
},
"typical_for_this_route": {
"type": "number"
}
},
"type": "object"
},
"departure_token": {
"type": "string"
},
"extensions": {
"items": {
"type": "string"
},
"type": "array"
},
"flights": {
"items": {
"additionalProperties": false,
"properties": {
"airline": {
"type": "string"
},
"airline_logo": {
"type": "string"
},
"airplane": {
"type": "string"
},
"arrival_airport": {
"additionalProperties": false,
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
},
"time": {
"type": "string"
}
},
"type": "object"
},
"departure_airport": {
"additionalProperties": false,
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
},
"time": {
"type": "string"
}
},
"type": "object"
},
"duration": {
"type": "number"
},
"extensions": {
"items": {
"type": "string"
},
"type": "array"
},
"flight_number": {
"type": "string"
},
"legroom": {
"type": "string"
},
"often_delayed_by_over_30_min": {
"type": "boolean"
},
"overnight": {
"type": "boolean"
},
"travel_class": {
"type": "string"
}
},
"type": "object"
},
"type": "array"
},
"layovers": {
"items": {
"additionalProperties": false,
"properties": {
"duration": {
"type": "number"
},
"id": {
"type": "string"
},
"name": {
"type": "string"
},
"overnight": {
"type": "boolean"
}
},
"type": "object"
},
"type": "array"
},
"price": {
"type": "number"
},
"total_duration": {
"type": "number"
},
"type": {
"type": "string"
}
},
"type": "object"
},
"type": "array"
},
"price_insights": {
"additionalProperties": false,
"properties": {
"lowest_price": {
"type": "number"
},
"price_history": {
"items": {
"items": {
"type": "number"
},
"type": "array"
},
"type": "array"
},
"price_level": {
"type": "string"
},
"typical_price_range": {
"items": {
"type": "number"
},
"type": "array"
}
},
"type": "object"
},
"search_metadata": {
"additionalProperties": false,
"properties": {
"created_at": {
"type": "string"
},
"google_flights_url": {
"type": "string"
},
"id": {
"type": "string"
},
"json_endpoint": {
"type": "string"
},
"processed_at": {
"type": "string"
},
"status": {
"type": "string"
},
"total_time_taken": {
"type": "number"
}
},
"type": "object"
},
"search_parameters": {
"additionalProperties": {},
"propertyNames": {
"type": "string"
},
"type": "object"
}
},
"type": "object"
},
"type": {
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
}Example shape — generated from the schema, not a captured live response
{
"example": {
"airports": [
{
"arrival": [
{
"airport": {
"id": null,
"name": null,
"time": null
},
"city": "string",
"country": "string",
"country_code": "string",
"image": "string",
"thumbnail": "string"
}
],
"departure": [
{
"airport": {
"id": null,
"name": null,
"time": null
},
"city": "string",
"country": "string",
"country_code": "string",
"image": "string",
"thumbnail": "string"
}
]
}
],
"best_flights": [
{
"airline_logo": "string",
"carbon_emissions": {
"difference_percent": 0,
"this_flight": 0,
"typical_for_this_route": 0
},
"departure_token": "string",
"extensions": [
"string"
],
"flights": [
{
"airline": "string",
"airline_logo": "string",
"airplane": "string",
"arrival_airport": {
"id": null,
"name": null,
"time": null
},
"departure_airport": {
"id": null,
"name": null,
"time": null
},
"duration": 0,
"extensions": [
"value"
],
"flight_number": "string",
"legroom": "string",
"often_delayed_by_over_30_min": true,
"overnight": true,
"travel_class": "string"
}
],
"layovers": [
{
"duration": 0,
"id": "string",
"name": "string",
"overnight": true
}
],
"price": 0,
"total_duration": 0,
"type": "string"
}
],
"other_flights": [
{
"airline_logo": "string",
"carbon_emissions": {
"difference_percent": 0,
"this_flight": 0,
"typical_for_this_route": 0
},
"departure_token": "string",
"extensions": [
"string"
],
"flights": [
{
"airline": "string",
"airline_logo": "string",
"airplane": "string",
"arrival_airport": {
"id": null,
"name": null,
"time": null
},
"departure_airport": {
"id": null,
"name": null,
"time": null
},
"duration": 0,
"extensions": [
"value"
],
"flight_number": "string",
"legroom": "string",
"often_delayed_by_over_30_min": true,
"overnight": true,
"travel_class": "string"
}
],
"layovers": [
{
"duration": 0,
"id": "string",
"name": "string",
"overnight": true
}
],
"price": 0,
"total_duration": 0,
"type": "string"
}
],
"price_insights": {
"lowest_price": 0,
"price_history": [
[
0
]
],
"price_level": "string",
"typical_price_range": [
0
]
},
"search_metadata": {
"created_at": "string",
"google_flights_url": "string",
"id": "string",
"json_endpoint": "string",
"processed_at": "string",
"status": "string",
"total_time_taken": 0
},
"search_parameters": {}
},
"type": "string"
}Examples
curl
curl "https://stabletravel.dev/api/google-flights/search"
# -> 402 Payment Required, accepts[] lists how to pay
# retry with a PAYMENT-SIGNATURE (or PAYMENT header) once paidJavaScript
const res = await fetch("https://stabletravel.dev/api/google-flights/search");
if (res.status === 402) {
const { accepts } = await res.json();
// pay one of accepts[] via an x402 client, then retry with the payment header
}Python
import httpx
res = httpx.get("https://stabletravel.dev/api/google-flights/search")
if res.status_code == 402:
accepts = res.json()["accepts"]
# pay one of accepts[] via an x402 client, then retry with the payment headerDetails
- Provider
- stabletravel.dev
- Endpoint
- https://stabletravel.dev/api/google-flights/search
- Machine-readable
/resources/26821.json