# 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 round-trip search with a $1,000 cap, sorted by price. It returned eight itineraries and none was nonstop.

Provider in the worked example: Flight search.

Price shown for this route: 5¢ per search.

## 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.

| Option | Price and billing | Strength | Good to know | Access |
| --- | --- | --- | --- | --- |
| Flight search (Through TaskFuel) | $0.05 / search. Per request from your TaskFuel balance. Round 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 API (Application to Skyscanner) | Not published. Partner access. Access 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 search: provider reference](https://taskfuel.ai/pricing/). Checked 2026-11-12.
- [Skyscanner API: provider reference](https://developers.skyscanner.net/docs/getting-started/authentication). Checked 2026-11-12.


## What it can do

### 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.

Price: $0.05 / search.

### Sort the results

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

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.

Price: $0.05 / search.


## A real example

Tested on 2026-11-12 through Flight search.

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.

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.

Returned in this test:

- 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

Charged in this test: $0.05.

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




## Try the API request

Use your TaskFuel API key as TASKFUEL_API_KEY in your terminal or server. Keep it out of browser code.

### 1. Check the price

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.

```sh
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](https://taskfuel.ai/docs/) · [Job polling and timeout recovery](https://app.taskfuel.ai/using.md)


## Connect your agent

Read the [setup guide](https://taskfuel.ai/docs/setup/) and choose the connection your agent supports.

Use one TaskFuel account and prepaid balance. Inspect the provider and request quote before a paid call, then review the returned response and recorded charge.



## When to use it

### 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.

### 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.




## 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.

## Related tool guides

- [Search a one-way fare by route and date](https://taskfuel.ai/tools/flight-search-api/)
- [Compare fares across several airports](https://taskfuel.ai/tools/google-flights-api/)
- [Check an airport departure board](https://taskfuel.ai/tools/flight-data/)
- [Read an airline’s baggage or fare rules page](https://taskfuel.ai/tools/extract-webpage/)


## Reference

- [Read this guide on the website](https://taskfuel.ai/tools/flight-price-api/).
- [Browse providers and capabilities](https://taskfuel.ai/catalog/).
- [Pricing](https://taskfuel.ai/pricing/).
- [Agent instructions](https://taskfuel.ai/llms.txt).
