5¢ per search

Flight search API

Compare fares, stops and flight times.

Search ticket fares by route and date through x402atlas. Compare the cheapest and fastest returned itineraries in one response. This page covers fare search, not booking or a live departure board.

One TaskFuel account and prepaid balance. Connect your agent and it shows the price before it pays.

Works with

Flight search, tested.

One search returned 20 itineraries. The cheapest was $249; one of the fastest was $300 and took 20 minutes less.

TaskFuel test run ·

Charged $0.05

Your agent asked

Find one-way economy flights from JFK to LHR on 4 December 2026. Compare the cheapest and fastest returned options, including airline, stops, local times and price in USD.
Data from
x402atlas

What came back

Cheapest returned
JetBlue B6 1107 · $249 · nonstop · 7 h 10 min
Local times
4 Dec: JFK 08:45 → LHR 20:55
One of the fastest
British Airways BA 182 · $300 · nonstop · 6 h 50 min
Local times
JFK 4 Dec 23:20 → LHR 5 Dec 11:10
Provider price context
Typical range $270–$480; returned price level: low

One dated, one-way economy search in USD. Fares are a snapshot, not a booking offer.

Try the API request Quote first, then run

1. Check the price

Use your TaskFuel API key as TASKFUEL_API_KEY in your terminal or server. Keep it out of browser code. This request checks the price without paying.

This is the exact fare search from the test. Fares change, so a new search can return different prices.

curl --fail-with-body https://app.taskfuel.ai/v1/call \
  -H "Authorization: Bearer $TASKFUEL_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-binary @- <<'TASKFUEL_REQUEST'
{
  "url": "https://flights.use.x402atlas.com/search/JFK/LHR?type=2&outbound_date=2026-12-04&currency=USD",
  "method": "GET",
  "dryRun": true
}
TASKFUEL_REQUEST

2. Run the request

Review amount_usd in the quote. To pay and run, change dryRun to false and add maxAmountUsd with that approved amount inside the same JSON object. Keep the inputs unchanged; this limit applies to one call.

3. Read the result

Read best_flights and other_flights: each itinerary has flights[], price, total_duration and layovers. price_insights holds the typical price range and price level for the route.

Setup and API reference · Job polling and timeout recovery

Flight search API: what your agent gets.

The tested request returned 20 one-way economy itineraries. Round-trip and filtering options are documented by the provider.

  • Search fares by route and date

    Compare returned itineraries by airline, stops, local times, duration and fare. Our test returned 20 one-way options.

    $0.05 / search
  • Narrow the search

    Filter by stops, cabin, airlines, maximum price, duration and departure times. Each filtered search is a separate paid call.

    $0.05 / search
  • Choose a return flight

    For a round trip, repeat the search with the chosen outbound itinerary’s departure token to get return options.

    $0.05 / search

Try it in your next task.

Sign in to TaskFuel and connect your existing agent. Ask it to search flights between two airports and show the price before it makes the paid call.

01

Name the task

Tell your agent what the output needs to contain.

02

See the price

Your agent shows the provider and price before spending.

03

Review the response

Check the output against your task. The call reports its cost and remaining balance.

When to use it.

Planning a trip

Compare fares for one route and date.

Ask your agent for the cheapest and fastest options between two airports. Results list airlines, flight numbers, stops and durations.

Judging a fare

Compare a fare with the typical range.

The response includes a typical price range and a price level for the route, next to the itineraries.

Filtering by what matters

Narrow by stops, cabin or airline.

The search accepts filters for stops, cabin, airlines, price, duration and departure times. Each filtered search is a separate paid call.

Providers for this task.

CapabilityProvidersReference
Search flight faresMunition, 2s, Flight Search & Airfares, StableTravelCompare providers · Endpoint data

Good Questions.

Do I need a flight data account?

No. Your agent pays from your TaskFuel balance, so there is nothing else to sign up for.

What does a flight search cost?

Our JFK to London search cost $0.05 on 11 November 2026. Your agent shows the price for your own request before it pays.

What does a search return?

Itineraries with airlines, flight numbers, stops, local times, duration and fare, plus route-level price context when available. Our test returned 20 options.

Does it cover round trips and filters?

Yes. A round trip uses a second search with the chosen outbound itinerary, and filters cover stops, cabin, airlines, price and times. We tested a one-way search without filters.

Can it book a flight?

No. This guide searches fares and schedules. Booking and ticketing are separate and not included here.

Is this the same as the airport departures guide?

No. This guide searches fares by route and date. The airport departures guide reads a live departure board.

Your agent can do things it couldn’t this morning.

$1 in free credit, no card required.

Start for Free