# Google Flights Autocomplete

> Google Flights Autocomplete 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 Google Flights autocomplete suggestions for airport, city, or location queries as structured JSON

## Facts

- Endpoint: POST https://serp402.com/api/v1/google-flights-autocomplete?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/google-flights-autocomplete-77976cdc
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_xZjz8DFKpAfOZK_tplh3R

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 google-flights-autocomplete-77976cdc -d '<json body>'
```

Example prompt: Can you look up Google Flights autocomplete suggestions for 'London' in English, searching from a US context, and exclude region-level results so I only get specific airports and cities?

## When to prefer this

Choose this endpoint when you need Google Flights-specific location and airport autocomplete suggestions — especially useful for populating flight search dropdowns, resolving partial airport or city names to structured entries, or supporting a flight booking workflow. Prefer over generic geocoding APIs when the goal is specifically flight-relevant locations as surfaced by Google Flights, and when you need no-subscription per-call pricing via x402 USDC payments.

## Known failure modes

- Invalid or unsupported country code (gl) returns empty or error response
- Invalid language code (hl) may fall back to default or return error
- Empty query string may return empty suggestions array
- Payment failure returns HTTP 402 if USDC not provided
- Very ambiguous short queries may return generic or unexpected suggestions

## How this service works

Google Flights Autocomplete: Google Flights Autocomplete 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 list of autocomplete suggestions matching the query, each representing an airport, city, or location relevant to Google Flights searches. Results may include display names, codes, and location metadata.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "q": {
   "type": "string"
  },
  "gl": {
   "type": "string",
   "description": "country to use for the Google Flights Autocomplete search. It's a two-letter country code. (e.g., us for the United States, uk for United Kingdom, or fr for…"
  },
  "hl": {
   "type": "string",
   "description": "language to use for the Google Flights Autocomplete search. It's a two or three-letter language code. (e.g., en for English, es for Spanish, or fr for…"
  },
  "exclude_regions": {
   "type": "string",
   "description": "Set to true to exclude region-level locations from suggestions. Regions include countries, sub-national regions, and multi-country areas (e.g. South Korea,…"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/google-flights-autocomplete-77976cdc/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)
