F

Flight Search & Airfares · Search

by Flight Search & Airfares

GETBaseArbitrumPolygon

$0.05

per call · USD Coin on Base

Flight search by departure and arrival airports in the URL — compare live itineraries, fares, schedules, stops and emissions across airlines, similar to Google Flights, as clean JSON.

Endpoint

GET https://flights.use.x402atlas.com/search/:departure/:arrival

126

Calls / 30d

15

Unique payers / 30d

Sep 8

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://flights.use.x402atlas.com/search/:departure/:arrival", {
  method: "GET",
});
const data = await res.json();
cURL
curl -X GET \
  "https://flights.use.x402atlas.com/search/:departure/:arrival" \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "arrival_id": "JFK",
  "best_flights": [
    {
      "carbon_emissions": {
        "difference_percent": -8,
        "this_flight": 410000,
        "typical_for_this_route": 445000
      },
      "departure_token": "opaque-return-selection-token",
      "flights": [
        {
          "airline": "British Airways",
          "arrival_airport": {
            "id": "JFK",
            "name": "John F. Kennedy International Airport",
            "time": "2026-08-11 13:25"
          },
          "departure_airport": {
            "id": "LHR",
            "name": "Heathrow Airport",
            "time": "2026-08-11 10:30"
          },
          "duration": 475,
          "flight_number": "EA 101",
          "travel_class": "Economy"
        }
      ],
      "price": 612,
      "total_duration": 475,
      "type": "Round trip"
    }
  ],
  "currency": "USD",
  "departure_id": "LHR",
  "other_flights": [],
  "outbound_date": "2026-08-11",
  "price_insights": {
    "lowest_price": 612,
    "price_level": "typical",
    "typical_price_range": [
      540,
      760
    ]
  },
  "queried_at": "2026-07-28T10:00:00Z",
  "return_date": "2026-08-18",
  "travel_class": "economy",
  "trip_type": "round_trip"
}

Payment details

Pay to0x8c128f1ee62bb5e47867cfbae2ad89be325df1b2
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase, Arbitrum, Polygon
Schemesexact

Is this your API?

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

Get featured →

More from Flight Search & Airfares & similar services