Filtering
Every fare search accepts optional filters that narrow results before they reach your code. Combine as many as you need.
Departure time
Use departure_time_range to restrict departures to a window. Hours are 0–23 in the departure airport's local time.
curl -X POST "https://ignav.com/api/fares/one-way" \
-H "X-Api-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"origin":"SFO","destination":"JFK","departure_date":"2026-05-12","departure_time_range":{"earliest_hour":6,"latest_hour":11}}'Arrival time
The same object also supports arrival_earliest_hour and arrival_latest_hour to filter by when the flight lands, using the arrival airport's local time.
curl -X POST "https://ignav.com/api/fares/one-way" \
-H "X-Api-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"origin":"LAX","destination":"LHR","departure_date":"2026-05-12","departure_time_range":{"arrival_earliest_hour":6,"arrival_latest_hour":12}}'Include specific airlines
Pass airlines_include with an array of 2-character airline codes to only see flights from those carriers.
curl -X POST "https://ignav.com/api/fares/one-way" \
-H "X-Api-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"origin":"JFK","destination":"LHR","departure_date":"2026-05-12","airlines_include":["BA","AA"]}'Exclude airlines
Or use airlines_exclude to remove specific carriers from results. Cannot be combined with airlines_include.
curl -X POST "https://ignav.com/api/fares/one-way" \
-H "X-Api-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"origin":"LAX","destination":"CDG","departure_date":"2026-05-12","airlines_exclude":["NK","FR"]}'Baggage requirements
Set min_checked_bags or min_carry_on_bags to only see fares that include baggage.
curl -X POST "https://ignav.com/api/fares/one-way" \
-H "X-Api-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"origin":"SFO","destination":"NRT","departure_date":"2026-05-12","min_checked_bags":1}'Maximum price
Use max_price to cap results at a price threshold in the market's currency. Results above the value are excluded.
curl -X POST "https://ignav.com/api/fares/one-way" \
-H "X-Api-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"origin":"JFK","destination":"MIA","departure_date":"2026-05-12","max_stops":0,"max_price":200}'Separate tickets
By default, results may include itineraries that require booking separate tickets (self-transfer). Set allow_separate_tickets to false to exclude them.
curl -X POST "https://ignav.com/api/fares/one-way" \
-H "X-Api-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"origin":"SFO","destination":"FCO","departure_date":"2026-05-12","allow_separate_tickets":false}'Infants
Use infants_on_lap for lap infants (cannot exceed the number of adults) or infants_in_seat for infants with their own seat. Total passengers cannot exceed 9.
curl -X POST "https://ignav.com/api/fares/one-way" \
-H "X-Api-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"origin":"LHR","destination":"JFK","departure_date":"2026-05-12","adults":2,"infants_on_lap":1}'Combining filters
Filters compose freely. Here's an afternoon business-class round-trip on select carriers, capped at $3,000 with at most one stop:
curl -X POST "https://ignav.com/api/fares/round-trip" \
-H "X-Api-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"origin":"SFO","destination":"LHR","departure_date":"2026-05-12","return_date":"2026-05-19","adults":2,"cabin_class":"business","max_price":3000,"departure_time_range":{"earliest_hour":14,"latest_hour":22},"airlines_include":["BA","VS","AA"]}'Ready to get started?
Create a free account to get your API key, or try the playground — no signup required.