# serp402 Google Flights

> serp402 Google Flights is a paid API for AI agents from serp402.com, paid per call via x402, $0.05/call, status unknown (last checked 2026-10-31).

Returns structured JSON flight search results from Google Flights including prices, itineraries, airlines, and layover details

## Facts

- Endpoint: POST https://serp402.com/api/v1/google-flights?utm_source=zero.xyz
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-31
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/serp402-google-flights-e7a48789
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_GpJ5diY-xOxxq9WtP7DUi

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability serp402-google-flights-e7a48789 -d '<json body>'
```

Example prompt: Search Google Flights for round-trip economy flights from JFK to CDG, departing May 20 and returning June 3, for 2 adults in USD — and include hidden results.

## When to prefer this

Choose this endpoint when you need programmatic access to Google Flights data in structured JSON format without managing a Google API account or subscription. It is ideal for AI agents comparing flight options, automating travel research, or building itineraries. Best suited for per-call, pay-as-you-go flight lookups at $0.05/call via USDC — no API key or minimum commitment required.

## Known failure modes

- Invalid airport code returns an error or empty results
- Missing required departure_id or arrival_id causes a validation error
- Invalid date format (not YYYY-MM-DD) may cause an error or bad results
- Missing return_date for round-trip searches causes an error
- No flights found for the route/date combination returns empty results array
- Unsupported currency code may fall back to USD or return an error
- Deep search enabled may increase response latency significantly

## How this service works

Google Flights: Google Flights results, returned as JSON. Structured JSON, USD 0.05 per call in USDC — no API key, no account, no subscription, no minimum. Not affiliated with, endorsed by or an official channel of any of the services the results come from. All trademarks and copyright remain the property of their respective owners.

## Output

A structured JSON object containing available flight itineraries matching the search criteria, including outbound and return legs, airline names, flight numbers, departure and arrival times, total duration, number of stops, layover airports and durations, prices in the requested currency, and booking links. May also include hidden/extra results if show_hidden is enabled.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "gl": {
   "type": "string",
   "description": "country to use for the Google Flights search. It's a two-letter country code. (e.g., us for the United States, uk for United Kingdom, or fr for France) Head…"
  },
  "hl": {
   "type": "string",
   "description": "language to use for the Google Flights search. It's a two or three-letter language code. (e.g., en for English, es for Spanish, or fr for French), optionally…"
  },
  "type": {
   "type": "string",
   "description": "type of the flights. Available options: 1 - Round trip (default) 2 - One way 3 - Multi-city When this parameter is set to 3 , use multi_city_json to set the…"
  },
  "adults": {
   "type": "string",
   "description": "number of adults. Default to 1."
  },
  "currency": {
   "type": "string",
   "description": "currency of the returned prices. Default to USD . Head to the Google Travel Currencies page for a full list of supported currency codes."
  },
  "arrival_id": {
   "type": "string",
   "description": "arrival airport code or location kgmid. An airport code is an uppercase 3-letter code. You can search for it on Google Flights or IATA . For example, CDG is…"
  },
  "deep_search": {
   "type": "string",
   "description": "Set to true to enable deep search, which may yield better results but with a longer response time. Deep search results are identical to those found on Google…"
  },
  "return_date": {
   "type": "string",
   "description": "return date. The format is YYYY-MM-DD. e.g. 2026-10-31 Parameter is required when type is 1 (Round trip), unless selected_flights_json is used. Parameter…"
  },
  "show_hidden": {
   "type": "string",
   "description": "Set to true to include the hidden flight results. This is equivalent to clicking 'View more flights' on Google Flights. Default to false ."
  },
  "departure_id": {
   "type": "string",
   "description": "departure airport code or location kgmid. An airport code is an uppercase 3-letter code. You can search for it on Google Flights or IATA . For example, CDG is…"
  },
  "travel_class": {
   "type": "string",
   "description": "travel class. Available options: 1 - Economy (default) 2 - Premium economy 3 - Business 4 - First"
  },
  "exclude_basic": {
   "type": "string",
   "description": "Set to true to exclude basic results. Resulting fares will have free seat selection and carry on bags. Default to false . As of now, this filter only works…"
  },
  "outbound_date": {
   "type": "string",

… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/serp402-google-flights-e7a48789/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from serp402.com](https://www.zero.xyz/host/serp402.com/llms.txt)
