Travel · x402

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

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

Use with an agent

  1. Discover. Agents find this listing with GET https://bazaar.saylorinnovations.com/discovery/search?query=…, the MCP tool search_resources, or /discovery/resources.
  2. Inspect. Fetch /resources/26821.json for the price and payment options.
  3. Pay. Call GET https://stabletravel.dev/api/google-flights/search. The provider answers 402 with its payment requirements. An x402 client signs one of the options below and retries with PAYMENT-SIGNATURE.
  4. Execute. The provider returns 200 with 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
Calls (30d)
205 · 17 unique payers (third-party data from the public x402 Bazaar)

x402 payment requirements

SchemeNetworkAssetAmountPay toTimeout
exactBase
eip155:8453
USDC$0.020xDd257723b86B4947483905cdAcBbBC70fACF2ec0300s
exactSolana
solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp
USDC$0.026u5LMGQC2qk9peNibahmRWxGVXrBypk8nhTCcqtiuqMY300s
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 paid
JavaScript
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 header

Details

Provider
stabletravel.dev
Endpoint
https://stabletravel.dev/api/google-flights/search
Machine-readable
/resources/26821.json