Skip to content
onelayer.
All tools

Tool detail

search

Searches live airline flight offers for an origin, destination and departure date, with filters for cabin class, stops, price, time window and sort order.

Categories: Travel booking

Use when

  • search flights between two airports on a given date
  • find the cheapest or fastest flight for a route
  • filter flight search by nonstop only, price cap or departure time window

Not for

  • not booking - a separate /air/intents plus /air/book flow completes the purchase
  • not for multi-city itineraries (origin/destination/return only)

Inputs

POST JSON body: { origin_iata, destination_iata, depart_date, adults (1-9) } (required); cabin_class, return_date, max_stops, max_price, sort, limit, time-window filters (optional)

Admitted input schema

{
  "type": "object",
  "properties": {
    "adults": {
      "type": "integer",
      "minimum": 1,
      "maximum": 9,
      "description": "1 to 9. The offer is priced for this many travellers and /air/book must supply exactly this many passengers, lead first."
    },
    "cabin_class": {
      "type": "string",
      "minLength": 0,
      "maxLength": 4096,
      "enum": [
        "economy",
        "premium_economy",
        "business",
        "first"
      ],
      "description": "Optional, defaults to economy."
    },
    "cheapest_per_itinerary": {
      "type": "boolean",
      "description": "Optional. Collapse each physical itinerary (comparison_key) to its cheapest fare; fare_options_count reports how many fares were folded. Drill into a finalist with POST /air/offer-details."
    },
    "depart_date": {
      "type": "string",
      "minLength": 0,
      "maxLength": 4096,
      "format": "date"
    },
    "departure_after": {
      "type": "string",
      "minLength": 0,
      "maxLength": 4096,
      "pattern": "^([01][0-9]|2[0-3]):[0-5][0-9]$",
      "description": "Optional. Outbound departs at or after this local time (HH:MM)."
    },
    "departure_before": {
      "type": "string",
      "minLength": 0,
      "maxLength": 4096,
      "pattern": "^([01][0-9]|2[0-3]):[0-5][0-9]$",
      "description": "Optional. Outbound departs at or before this local time (HH:MM). Combine both for a window: afternoon = after 12:00 before 18:00."
    },
    "destination_iata": {
      "type": "string",
      "minLength": 0,
      "maxLength": 4096,
      "description": "Destination IATA code."
    },
    "limit": {
      "type": "integer",
      "minimum": 1,
      "maximum": 9007199254740991,
      "description": "Optional. Cap the number of offers returned, cheapest first. Full responses can exceed 300 KB — LLM agents should combine this with cheapest_per_itinerary."
    },
    "max_price": {
      "type": "string",
      "minLength": 0,
      "maxLength": 4096,
      "description": "Optional decimal cap on total_amount, e.g. \"250.00\"."
    },
    "max_stops": {
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991,
      "description": "Optional. Maximum plane changes per direction; 0 = direct only."
    },
    "origin_iata": {
      "type": "string",
      "minLength": 0,
      "maxLength": 4096,
      "description": "Origin IATA code."
    },
    "return_date": {
      "type": "string",
      "minLength": 0,
      "maxLength": 4096,
      "format": "date",
      "description": "Optional. Adds the inbound (destination back to origin); round-trip offers book both directions in one /air/book."
    },
    "sort": {
      "type": "string",
      "minLength": 0,
      "maxLength": 4096,
      "enum": [
        "price",
        "duration",
        "departure",
        "emissions"
      ],
      "description": "Optional ordering, ascending. Default price."
    }
  },
  "required": [
    "origin_iata",
    "destination_iata",
    "depart_date",
    "adults"
  ],
  "additionalProperties": false
}

Endpoint

Method
POST
URL
https://travel.brij.fi/air/search

Payment

Protocol
x402
Listed price
0.10 USDC per call on Solana; docs cite $0.10 x1-50 scaled by result count
Payment method
exact
Network
solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp
Asset
EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v

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
POST https://travel.brij.fi/air/search
Retrieved
2026-09-30T20:37:07.382Z
Catalog file SHA-256
6837ccddf886f0007cf3727ea9d27faaa5047b51b4f425345c554ce1c271a524
Catalog built
2026-09-30T22:31:58.034Z