Api Endpoint

StableTravel

Get booking options for a specific flight. Requires a departure_token from a search result.

Open interactive test console

Offering

Provider
stabletravel.dev
Method
GET
Offering type
Api Endpoint
Transport type
http
Category
Location And Travel
Delivery
Not provided
Pricing model
Not provided
x402 version
2

Endpoint context

URL
https://stabletravel.dev/api/google-flights/booking
MIME type
application/json
First seen
2026-10-16T01:50:14.534Z
Last seen
Tags
Google Flights

Payment pricing

x402 payment terms are the authoritative price for calling this endpoint.

Payment option 1
0.02 USDC
Atomic price: 20000 · Network: eip155:8453 · Asset: USDC · Scheme: exact
Payment option 2
0.02 USDC
Atomic price: 20000 · Network: solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp · Asset: USDC · Scheme: exact
Raw x402 terms
[
  {
    "scheme": "exact",
    "network": "eip155:8453",
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "amount": "20000",
    "payTo": "0xDd257723b86B4947483905cdAcBbBC70fACF2ec0"
  },
  {
    "scheme": "exact",
    "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
    "asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
    "amount": "20000",
    "payTo": "6u5LMGQC2qk9peNibahmRWxGVXrBypk8nhTCcqtiuqMY"
  }
]

Observed health

Status
Healthy
Latest latency
73 ms
Average latency
530 ms
HTTP status
402
Last checked
Reachability
100% over 14 checks

Latency is measured to the first response headers. A reachable result does not verify response accuracy or merchant identity.

Input schema

{
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "const": "http"
    },
    "method": {
      "type": "string",
      "enum": [
        "GET",
        "HEAD",
        "DELETE"
      ]
    },
    "queryParams": {
      "type": "object",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "properties": {
        "departure_id": {
          "type": "string"
        },
        "arrival_id": {
          "type": "string"
        },
        "outbound_date": {
          "type": "string",
          "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
        },
        "return_date": {
          "type": "string",
          "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
        },
        "type": {
          "default": "1",
          "description": "1 = Round trip, 2 = One way, 3 = Multi-city",
          "type": "string",
          "enum": [
            "1",
            "2",
            "3"
          ]
        },
        "travel_class": {
          "description": "1 = Economy, 2 = Premium economy, 3 = Business, 4 = First",
          "type": "string",
          "enum": [
            "1",
            "2",
            "3",
            "4"
          ]
        },
        "adults": {
          "default": 1,
          "type": "integer",
          "minimum": 1,
          "maximum": 9
        },
        "children": {
          "default": 0,
          "type": "integer",
          "minimum": 0,
          "maximum": 9
        },
        "infants_in_seat": {
          "default": 0,
          "type": "integer",
          "minimum": 0,
          "maximum": 9
        },
        "infants_on_lap": {
          "default": 0,
          "type": "integer",
          "minimum": 0,
          "maximum": 9
        },
        "currency": {
          "default": "USD",
          "type": "string",
          "minLength": 3,
          "maxLength": 3
        },
        "hl": {
          "default": "en",
          "type": "string"
        },
        "departure_token": {
          "type": "string",
          "description": "Token from a search result to get booking options"
        }
      },
      "required": [
        "departure_id",
        "arrival_id",
        "outbound_date",
        "type",
        "adults",
        "children",
        "infants_in_seat",
        "infants_on_lap",
        "currency",
        "hl",
        "departure_token"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "type",
    "method"
  ],
  "additionalProperties": false
}

Output schema

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "properties": {
    "input": {
      "additionalProperties": false,
      "properties": {
        "method": {
          "enum": [
            "GET",
            "HEAD",
            "DELETE"
          ],
          "type": "string"
        },
        "queryParams": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "additionalProperties": false,
          "properties": {
            "adults": {
              "default": 1,
              "maximum": 9,
              "minimum": 1,
              "type": "integer"
            },
            "arrival_id": {
              "type": "string"
            },
            "children": {
              "default": 0,
              "maximum": 9,
              "minimum": 0,
              "type": "integer"
            },
            "currency": {
              "default": "USD",
              "maxLength": 3,
              "minLength": 3,
              "type": "string"
            },
            "departure_id": {
              "type": "string"
            },
            "departure_token": {
              "description": "Token from a search result to get booking options",
              "type": "string"
            },
            "hl": {
              "default": "en",
              "type": "string"
            },
            "infants_in_seat": {
              "default": 0,
              "maximum": 9,
              "minimum": 0,
              "type": "integer"
            },
            "infants_on_lap": {
              "default": 0,
              "maximum": 9,
              "minimum": 0,
              "type": "integer"
            },
            "outbound_date": {
              "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
              "type": "string"
            },
            "return_date": {
              "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
              "type": "string"
            },
            "travel_class": {
              "description": "1 = Economy, 2 = Premium economy, 3 = Business, 4 = First",
              "enum": [
                "1",
                "2",
                "3",
                "4"
              ],
              "type": "string"
            },
            "type": {
              "default": "1",
              "description": "1 = Round trip, 2 = One way, 3 = Multi-city",
              "enum": [
                "1",
                "2",
                "3"
              ],
              "type": "string"
            }
          },
          "required": [
            "departure_id",
            "arrival_id",
            "outbound_date",
            "type",
            "adults",
            "children",
            "infants_in_seat",
            "infants_on_lap",
            "currency",
            "hl",
            "departure_token"
          ],
          "type": "object"
        },
        "type": {
          "const": "http",
          "type": "string"
        }
      },
      "required": [
        "type",
        "method"
      ],
      "type": "object"
    },
    "output": {
      "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"
    }
  },
  "required": [
    "input"
  ],
  "type": "object"
}