5¢ per search

Flight price API

Find fares under your budget.

Give your agent two airports, dates and a maximum price and get back the fares that fit, cheapest first.

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

Works with

Choose how your agent reads flight prices.

Fare data comes from a search provider or an application-only partner API.

Prices and access checked on 12 November 2026.
OptionPrice & billingChoose it forGood to knowAccess
Flight searchThrough TaskFuel$0.05 / searchPer request from your TaskFuel balanceRound trip with a $1,000 cap, sorted by price.Price cap, sort order and price context in one search.Fare search only. Booking is not included.TaskFuel
Skyscanner APIApplication to SkyscannerProvider referenceNot publishedPartner accessAccess starts with an application to Skyscanner’s partnerships team.Skyscanner’s own fare data through an official API.Approval is required before you get a key.Direct

Flight price API: what your agent gets.

One round-trip search with a $1,000 cap, sorted by price. It returned eight itineraries and none was nonstop.

  • Set a maximum fare

    Add a price cap in the search currency and the response keeps only the itineraries under it. Our test capped a round trip at $1,000.

    $0.05 / search
  • Sort the results

    Order the itineraries by top picks, price, departure, arrival, duration or emissions. Our test sorted by price.

    $0.05 / search
  • Read the stops and layovers

    Each itinerary lists its flights, the layover airports and the layover lengths. Our cheapest result had a 22 hour 33 minute layover in Toronto.

    $0.05 / search

Chicago to Lisbon under $1,000, tested.

One search returned eight itineraries from $815 to $984, none nonstop. The cheapest had a 22-hour layover in Toronto. An $870 option via Dublin took 15 hours 20 minutes less.

TaskFuel test run ·

Charged $0.05

Your agent asked

Find the cheapest round-trip flights from Chicago to Lisbon for 20 to 28 March 2027, under $1,000. Tell me if a slightly pricier option saves a lot of travel time.
Data from
Flight search

What came back

Cheapest returned
Air Canada via Toronto · $815 · 31 h 30 min outbound
Layover
Toronto: arrive 20 Mar 23:32, depart 21 Mar 22:05
Faster option
Aer Lingus via Dublin · $870 · 16 h 10 min outbound
Local times
Dublin option: ORD 20 Mar 21:05 → LIS 21 Mar 18:15
Provider price context
Typical range $510–$1,100; returned price level: typical

One dated round-trip economy search under a $1,000 cap.

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 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/ORD/LIS?outbound_date=2027-03-20&return_date=2027-03-28&currency=USD&sort_by=2&max_price=1000",
  "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 other_flights, and best_flights when present: each itinerary has flights[], price, total_duration and layovers. With sort_by=2 they come cheapest first. price_insights holds the typical range and price level.

Setup and API reference · Job polling and timeout recovery

Try it in your next task.

Sign in to TaskFuel and copy the connection prompt into your agent. Approve the connection, then ask for the work you need.

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 on a budget

Read only the fares within your budget.

Ask your agent for round trips under a price you set, cheapest first, with airline, stops and layover for each.

Weighing a layover

Find when a slightly higher fare saves hours.

In our test the cheapest fare had a 22-hour layover. A fare $55 higher got to Lisbon 15 hours 20 minutes sooner.

Good Questions.

What is a flight price API?

A request that returns fares for a route and dates. This guide covers a search with a price cap, which returns the itineraries that fit and their prices.

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 price search cost?

Our Chicago to Lisbon search cost $0.05 on 12 November 2026. Your agent shows the price for your own request before it pays.

Can I set a maximum price?

Yes. The search takes a maximum fare in the chosen currency. Our test capped a round trip at $1,000 and sorted by price, which returned eight itineraries from $815.

Can it track a fare over time?

Each search is one snapshot. The response also carries recent price history for the route, which our test did not use. Tracking a fare means repeating the search, and each search is a paid call.

What happens if no fare is under my cap?

The provider documents that a search with no matches returns a normal response with empty flight arrays. A normal response is a successful call, so it is charged. We did not test an empty result.

How is this different from the flight search and Google Flights API guides?

These guides use the same $0.05 flight search. The flight search guide tests a one-way search, and the Google Flights guide tests several airports in one call. This guide tests a price cap and sort order.

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

$1 in free credit, no card required.

Start for Free