# FastAF Google Flights Search API

> FastAF Google Flights Search API is a paid API for AI agents from api.fastaf.co, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-31).

Returns Google Flights itineraries and current fares as JSON for one-way or round-trip routes between two IATA airport codes

## Facts

- Endpoint: GET https://api.fastaf.co/x402/v1/flights?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-31
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/fastaf-google-flights-search-api-a1efabd1
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_yeXjoYF4gGK9yCpeW4nbT

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 fastaf-google-flights-search-api-a1efabd1
```

Example prompt: Search Google Flights for the cheapest round-trip economy class fares from JFK to LAX departing June 15 and returning June 22, for 2 adults, prices in USD.

## When to prefer this

Choose this endpoint when you need structured, up-to-date Google Flights fare data as JSON for agent-driven travel planning or fare comparison between any two airports worldwide. It is ideal for AI agents that need to programmatically retrieve and compare flight options without scraping and without booking. Prefer it over general web search endpoints when you specifically need structured flight itinerary and pricing data keyed by IATA codes.

## Known failure modes

- Invalid or unsupported IATA airport codes return an error or empty results
- Missing required parameters (departure_id, arrival_id, outbound_date) cause a 400-level error
- Round-trip requests missing return_date may fail or default to one-way
- Dates in the past or incorrectly formatted dates return no results
- Payment failure or insufficient USDC balance results in a 402 error blocking the call

## How this service works

Google Flights search API for AI agents: itineraries and current fares as JSON between two airports given as IATA codes, one way or round trip. For travel planning and fare comparison; it does not book tickets. Provided by Google Flights. Price: $0.005000 USDC per successful call. Docs: https://fastaf.co

## Output

A JSON object containing a best_flights array with itineraries, each listing price, airline, departure and arrival airport codes, flight segments, and schedule details sourced from Google Flights data.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "departure_id",
      "arrival_id",
      "outbound_date"
     ],
     "properties": {
      "gl": {
       "type": "string"
      },
      "hl": {
       "type": "string"
      },
      "type": {
       "enum": [
        "1",
        "2"
       ],
       "type": "string"
      },
      "adults": {
       "type": "integer"
      },
      "currency": {
       "type": "string"
      },
      "arrival_id": {
       "type": "string"
      },
      "return_date": {
       "type": "string"
      },
      "departure_id": {
       "type": "string"
      },
      "travel_class": {
       "enum": [
        "1",
        "2",
        "3",
        "4"
       ],
       "type": "string"
      },
      "outbound_date": {
       "type": "string"
      }
     }
    }
   }
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "best_flights": {
       "type": "array",
       "items": {
        "type": "object",
        "properties": {
         "price": {
          "type": "number"
         },
         "flights": {
          "type": "array",
          "items": {
           "type": "object",
           "properties": {
            "arrival_airport": {
             "type": "object",
             "properties": {
              "id": {
               "type": "string"
              }
             }
            },
            "departure_airport": {
             "type": "object",
             "properties": {
              "id": {
               "type": "string"
              }
             }
            }
           }
          }
         }
        }
       }
      }
     }
    }
   }
  }
 }
}
```

## More

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