B

Brij · AIR Search

by Brij

POSTSolana

per call · USDC on Solana

Flight search

Endpoint

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

11

Calls / 30d

1

Unique payers / 30d

Sep 7

Last called

exact

Payment scheme

Call this service

TypeScript · @x402/fetch
import { wrapFetchWithPayment } from "@x402/fetch";
import { privateKeyToAccount } from "viem/accounts";

const account = privateKeyToAccount(process.env.PRIVATE_KEY);
const fetchWithPay = wrapFetchWithPayment(fetch, account);

const res = await fetchWithPay("https://travel.brij.fi/air/search", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    "adults": 1,
    "cabin_class": "economy",
    "depart_date": "2026-06-10",
    "destination_iata": "LIS",
    "origin_iata": "MAD"
  }),
});
const data = await res.json();
cURL
curl -X POST \
  "https://travel.brij.fi/air/search" \
  -H "Content-Type: application/json" \
  -d '{"adults":1,"cabin_class":"economy","depart_date":"2026-06-10","destination_iata":"LIS","origin_iata":"MAD"}' \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "search": {
    "offers": [
      {
        "arriving_at": "2026-08-02T21:10:00",
        "base_amount_decimal": "65.00",
        "cabin_class": "economy",
        "cabin_class_marketing_name": "ECONOMY",
        "carry_on_bags_included": 1,
        "checked_bags_included": 1,
        "comparison_key": "cmp_abc123",
        "conditions": {
          "change_allowed": true,
          "change_penalty_amount": "0",
          "change_penalty_currency": "USD",
          "refund_allowed": false
        },
        "departing_at": "2026-08-02T14:42:00",
        "destination_iata": "LIS",
        "destination_time_zone": "Europe/Lisbon",
        "duration": "PT1H15M",
        "fare_brand_name": "Flexible Balearic",
        "id": "off_0000000000000000000000",
        "identity_documents_required": false,
        "origin_iata": "MAD",
        "origin_time_zone": "Europe/Madrid",
        "owner_name": "Iberia",
        "segments": [
          {
            "arriving_at": "2026-08-02T17:44:00",
            "carrier_name": "Iberia",
            "departing_at": "2026-08-02T14:42:00",
            "destination_iata": "MXP",
            "flight_number": "1953",
            "origin_iata": "MAD"
          },
          {
            "arriving_at": "2026-08-02T21:10:00",
            "carrier_name": "Iberia",
            "departing_at": "2026-08-02T19:28:00",
            "destination_iata": "LIS",
            "flight_number": "1430",
            "origin_iata": "MXP"
          }
        ],
        "stops": 1,
        "tax_amount_decimal": "24.50",
        "technical_stops": 0,
        "total_amount": 216950000,
        "total_amount_decimal": "216.95",
        "total_currency": "USD",
        "total_emissions_kg": "21"
      }
    ],
    "request_id": "orq_0000000000000000000000"
  }
}

Payment details

Pay to4wvcrhictleqwod3pew3iffjmjfscbprqfkenb2rq59b
Assetepjfwdd5aufqssqem2qn1xzybapc8g4weggkzwytdt1v
NetworksSolana
Schemesexact

Is this your API?

Pin it to the top of Search & Web and the homepage with a featured placement.

Get featured →

More from Brij & similar services