ST
Travel · x402 · early usage
Get booking options for a specific flight
Get booking options for a specific flight. Requires a departure_token from a search result.
by stabletravel.dev · discovered, not yet claimed by its owner · updated 2026-10-13
30d calls11
30d payers3
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
Get booking options for a specific flight. Requires a departure_token from a search result.
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",
"departure_token": "token-abc123",
"hl": "en",
"infants_in_seat": 0,
"infants_on_lap": 0,
"outbound_date": "2026-12-01",
"return_date": "2026-12-08",
"type": "1"
}Output example
{
"booking_options": [
{
"book_with": "American Airlines",
"option_title": "Book with American Airlines",
"price": 350,
"url": "https://www.aa.com/booking"
}
],
"selected_flights": [
{
"flights": [
{
"airline": "American",
"arrival_airport": {
"id": "LAX",
"name": "LAX",
"time": "2026-12-01 11:00"
},
"departure_airport": {
"id": "JFK",
"name": "JFK",
"time": "2026-12-01 08:00"
},
"duration": 360,
"flight_number": "AA 100"
}
],
"price": 350,
"total_duration": 360
}
]
}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/26829.jsonfor the price and payment options. - Pay. Call
GET https://stabletravel.dev/api/google-flights/booking. 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
- 11 calls · 3 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": {
"booking_options": {
"items": {
"additionalProperties": false,
"properties": {
"airline_logo": {
"type": "string"
},
"baggage_prices": {
"items": {
"type": "string"
},
"type": "array"
},
"book_with": {
"type": "string"
},
"extensions": {
"items": {
"type": "string"
},
"type": "array"
},
"local_prices": {
"items": {
"additionalProperties": false,
"properties": {
"currency": {
"type": "string"
},
"price": {
"type": "number"
}
},
"type": "object"
},
"type": "array"
},
"option_title": {
"type": "string"
},
"price": {
"type": "number"
},
"url": {
"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": {},
"propertyNames": {
"type": "string"
},
"type": "object"
},
"search_parameters": {
"additionalProperties": {},
"propertyNames": {
"type": "string"
},
"type": "object"
},
"selected_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"
}
},
"type": "object"
},
"type": {
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
}Example shape — generated from the schema, not a captured live response
{
"example": {
"booking_options": [
{
"airline_logo": "string",
"baggage_prices": [
"string"
],
"book_with": "string",
"extensions": [
"string"
],
"local_prices": [
{
"currency": "string",
"price": 0
}
],
"option_title": "string",
"price": 0,
"url": "string"
}
],
"price_insights": {
"lowest_price": 0,
"price_history": [
[
0
]
],
"price_level": "string",
"typical_price_range": [
0
]
},
"search_metadata": {},
"search_parameters": {},
"selected_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"
}
]
},
"type": "string"
}Examples
curl
curl "https://stabletravel.dev/api/google-flights/booking"
# -> 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/booking");
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/booking")
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/booking
- Machine-readable
/resources/26829.json