Skip to content
onelayer.
All tools

Tool detail

flights

Searches Google Flights (via SerpApi) for a route and date, returning best flights, prices, airlines and price insights.

Categories: Travel booking

Use when

  • search flights between two airports on a date
  • compare round-trip flight prices and airlines
  • filter flight search by stops, class or max price

Not for

  • not booking — search results only

Inputs

GET query params: origin, destination, departureDate (IATA/YYYY-MM-DD, required); adults, children, currency, maxPrice, returnDate, stops, travelClass (optional)

Admitted input schema

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

Endpoint

Method
GET
URL
https://x402engine.app/api/travel/flights

Payment

Protocol
x402
Listed price
0.02 USDC per call on Base
Payment method
exact
Network
eip155:8453
Asset
0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913

Listed terms are catalog metadata. The caller supplies inputs and calls the tool outside Onelayer. If payment is required, the caller uses a compatible wallet to pay.

Source

Record
GET https://x402engine.app/api/travel/flights
Retrieved
2026-09-30T20:37:07.382Z
Catalog file SHA-256
6837ccddf886f0007cf3727ea9d27faaa5047b51b4f425345c554ce1c271a524
Catalog built
2026-09-30T22:31:58.034Z