80trust / 100

Search

by Flight Search & Airfares in Weather & location

x402 APIPassing, checked 1 h ago

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.

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

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
393 ms typical, 393 ms slowest 5%
Last check
1 h ago
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X GET "https://flights.use.x402atlas.com/search/:departure/:arrival"
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client().register(
  "eip155:8453",
  new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fflights.use.x402atlas.com%2Fsearch%2F%3Adeparture%2F%3Aarrival
const res = await pay("https://flights.use.x402atlas.com/search/:departure/:arrival");
console.log(await res.json());

Example output

{
  "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"
}

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
1 h agoPassed402393 ms$0.05
6 h agoPassed402468 ms$0.05