
curl -X POST https://api.orthogonal.com/v1/run \
-H 'Authorization: Bearer orth_live_••••' \
-H 'Content-Type: application/json' \
-d '{
"api": "fiber",
"path": "/v1/flights/search",
"method": "POST",
"body": {
"travelClass": "",
"adults": ,
"children": ,
"infantsInSeat": ,
"infantsOnLap": ,
"sortBy": "",
"onlyShowLowEmissionFlights": ,
"showHidden": ,
"hideSeparateTickets": ,
"currencyCode": "",
"searchMarketCountryCode": "",
"languageCode": "",
"trip": {
"flightType": ""
}
}
}'
$0.0436per call
Every call costs the same.
You aren't charged for failed calls. A wallet payment for a failed call is refunded.
API-wide: 97.6% success · 1,136 ms median · 30 days
About this endpoint
Search flights. Searches flight itineraries between cities of interest and returns trips, fares, timing, etc. Rate limit: 120 requests per 1 minute Cost: 2 credits per search
Body parameters
travelClassstringPreferred cabin class. Omit to consider flights across all cabin classes.adultsintegerNumber of adult passengers (ages 12+).childrenintegerNumber of child passengers (ages 2-11).infantsInSeatintegerNumber of infants (under 2) with their own seat.infantsOnLapintegerNumber of infants (under 2) on an adult's lap.maxStopsintegerMaximum number of stops allowed. 0 = nonstop only, 1 = one stop or fewer, 2 = two stops or fewer. Omit to allow any number of stops.sortBystringSort criterion for results. 'top' ranks by overall value. 'price' sorts cheapest first. 'departureTime' and 'arrivalTime' sort earliest first. 'duration' sorts shortest first. 'emissions' sorts lowest carbon first. Direction is always ascending and cannot be changed. Omit to sort by 'top'.airlinesobjectFilter by airline. By default all airlines are considered. If you pass 'include', only flights from those airlines are returned. If you pass 'exclude', flights from those airlines are removed.minCarryOnBagsintegerMinimum carry-on bags the itinerary must include. Omit for no requirement.minCheckedBagsintegerMinimum checked bags the itinerary must include. Omit for no requirement. Honored on a best-effort basis: not every itinerary exposes checked-bag inclusion.maxPriceintegerMaximum total itinerary price in whole currency units. You may want to set currencyCode as well so the price cap is in the currency you expect (default currency is USD). Omit for no price cap.outboundTimeWindowobjectTime-of-day window for outbound flights. For multi-city trips this constrains the first segment. Both startHour and endHour must be provided together per sub-window.returnTimeWindowobjectTime-of-day window for return flights (round-trip only). Both startHour and endHour must be provided together per sub-window.layoverDurationobjectConstrain layover duration. Omit to allow any layover length.maxFlightDurationMinutesintegerMaximum total flight duration in minutes. Omit for no limit.connectingAirportsobjectFilter by connecting airports. By default all connecting airports are allowed. We recommend not passing this unless you have a good reason — it significantly reduces the number of results returned.onlyShowLowEmissionFlightsbooleanWhen true, only return flights with lower-than-typical carbon emissions. When false (default), return all flights.showHiddenbooleanWhen true, include itineraries that would normally be hidden (e.g. very late or undesirable schedules).hideSeparateTicketsbooleanWhen true, drop itineraries that combine separately-issued tickets (which carry higher disruption risk).currencyCodestringISO 4217 currency code for prices in the response (e.g. 'EUR', 'GBP', 'CAD'). Case-insensitive. Defaults to USD.searchMarketCountryCodestringISO 3166-1 alpha-3 country code that sets the search market (e.g. 'GBR', 'BRA'). This affects regional pricing and flight availability — the same route may show different prices and options depending on the market. Case-insensitive.languageCodestringLanguage for search results (airport names, airline names, labels). Pass a BCP-47 language tag such as 'en', 'en-US', 'pt-BR', 'zh-CN', 'ja', 'ko', 'fr', 'de', 'es'.nextPageTokenstringToken to retrieve the next page. Pass as nextPageToken in the next request. Null if no more pages.triprequiredobjectTrip configuration. The shape is determined by flightType — see each variant for its required fields.More from Fiber AI
- YouTube transcriptPOST/v1/youtube/transcript$0.0436 per callFixed
- Phone validationPOST/v1/validate-phone/single$0.0654 per callFixed
- Hashed email lookupPOST/v1/email-to-person/hashed$0.0436 per email returnedResponse-based · up to $4.36
- Premium phone lookupPOST/v1/contact-details/premium-phone/sync$0.109 per callFixed
- Person match lookupPOST/v1/kitchen-sink/person$0.0436 per result returnedResponse-based · up to $0.872
- LinkedIn post commentsPOST/v1/linkedin-live-fetch/post-comments$0.0436 per callFixed
- Social profile finderPOST/v1/social-media-lookup/triggerFrom $0.0654 per callRequest-based · up to $0.1308
- Skills autocompletePOST/v1/typeahead/skillsFree
- NAICS code listGET/v1/enums/naics-codesFree
- Time zone listGET/v1/enums/time-zonesFree
- TikTok followingPOST/v1/tiktok/user-following$0.0436 per callFixed
- Batch social finder resultsPOST/v1/social-media-lookup/batch/pollFree