# x402-gateway-production.up.railway.app Flight Search

> x402-gateway-production.up.railway.app Flight Search is a paid API for AI agents from x402-gateway-production.up.railway.app, paid per call via x402, $0.020000/call, status unknown (last checked 2026-09-14).

Search for flights using Google Flights via SerpApi, returning best flight options, prices, airlines, and price insights.

## Facts

- Endpoint: GET https://x402-gateway-production.up.railway.app/api/travel/flights
- Price: $0.020000/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 1
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-gateway-production-up-railway-app-421a1e6d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_6nDoau6iE0RXWvZpHOoZt

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 x402-gateway-production-up-railway-app-421a1e6d
```

Example prompt: Search Google Flights for round-trip tickets from JFK to London Heathrow, departing June 15 and returning June 22, for 2 passengers in economy class — show me the best prices and airlines.

## When to prefer this

Choose this endpoint when you need real-time flight search data powered by Google Flights, including price insights and best-flight recommendations, as a lightweight $0.02 pay-per-call alternative to direct SerpApi integration or full travel booking APIs.

## Known failure modes

- Invalid or unrecognized airport/city codes return an error
- Dates in the past or improperly formatted may cause lookup failure
- SerpApi rate limits or outages result in upstream errors
- No flights available for the requested route/date combination
- Missing required parameters (origin, destination, date) result in a 400-level error

## How this service works

Search flights via Google Flights (SerpApi). Returns best flights, prices, airlines, and price insights.

## Output

A list of best flight options including airline names, departure and arrival times, layovers, prices per passenger, total prices, and price insights (e.g. whether current prices are low, typical, or high for the route).

## 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": [
      "origin",
      "destination",
      "departureDate"
     ],
     "properties": {
      "stops": {
       "type": "string",
       "description": "0=Nonstop only, 1=Up to 1 stop, 2=Up to 2 stops"
      },
      "adults": {
       "type": "string",
       "default": "1",
       "description": "Number of adult passengers"
      },
      "origin": {
       "type": "string",
       "example": "JFK",
       "description": "Departure airport IATA code"
      },
      "children": {
       "type": "string",
       "description": "Number of children"
      },
      "currency": {
       "type": "string",
       "default": "USD",
       "description": "Currency code (e.g. USD, EUR)"
      },
      "maxPrice": {
       "type": "string",
       "description": "Maximum price filter"
      },
      "returnDate": {
       "type": "string",
       "description": "Return date for round trips (YYYY-MM-DD)"
      },
      "destination": {
       "type": "string",
       "example": "LAX",
       "description": "Arrival airport IATA code"
      },
      "travelClass": {
       "type": "string",
       "default": "1",
       "description": "1=Economy, 2=Premium Economy, 3=Business, 4=First"
      },
      "departureDate": {
       "type": "string",
       "example": "2026-04-15",
       "description": "Departure date (YYYY-MM-DD)"
      }
     },
     "additionalProperties": false
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-gateway-production-up-railway-app-421a1e6d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-gateway-production.up.railway.app](https://www.zero.xyz/host/x402-gateway-production.up.railway.app/llms.txt)
