Google Flights Search

POST/v1/run/google_flights.search

VerifiedPublished by AnyAPIPublisher docs
curl -X POST https://api.orthogonal.com/v1/run \
-H 'Authorization: Bearer orth_live_โ€ขโ€ขโ€ขโ€ข' \
-H 'Content-Type: application/json' \
-d '{
"api": "anyapi",
"path": "/v1/run/google_flights.search",
"method": "POST",
"body": {
"adults": ,
"allowFallbacks": ,
"cabinClass": "",
"currency": "",
"departureDate": "",
"destination": "",
"maxStops": "",
"origin": "",
"requireFields": [
""
],
"sortBy": ""
}
}'
{
"success": true,
"data": {
"hint": "large_result: this response is ~13 KB. To keep future runs from flooding your context, re-run with `fields` (keep only the keys you need), `max_items` (cap rows), `summary=true` (outline only), or `jq` for arbitrary reshaping (e.g. `jq=.data.markdown[:2000]`) โ€” these trim the response only, never the charge.",
"items": 25,
"output": { โ€ฆ },
"source": { โ€ฆ },
"provider": "AnyAPI",
"replayed": false,
"resultId": "f3289ab9-5f6c-4111-8386-b3b60b400125"
}
}
A real response, recorded when Orthogonal checked this endpoint.

The final charge depends on what comes back. It shows after Run.

up to$0.000927per call

Response-basedThe price is worked out from the usage reported in the response, never more than $0.000927 per call.

You aren't charged for failed calls. A wallet payment for a failed call is refunded.

About this endpoint

Search Google Flights between two airports on a date and get about 20 itineraries: price, airline, stops, total duration, CO2 emissions against the typical figure for the route, and every leg's airline code, flight number, airports, local departure and arrival times and duration, as normalized JSON. Filter by cabin class, stops, airlines and maximum price. One-way searches return the total fare for all passengers. With a returnDate, each result is an outbound option priced at the cheapest round trip that starts with it (priceType round_trip_starting); the return flights are not included. Price: \$1.00 per 1,000 requests (flat per request - same cost regardless of results returned). Routing: 2 independent lanes are available in execution order. A failed attempt uses the next lane only when the request's payment authorizes that lane's price; the normalized schema stays the same. Catalog: [Google Flights Search pricing and uptime](https://getanyapi.com/api/google-flights/se

Query parameters

Body parameters

Response types

More from AnyAPI

  1. YouTube Channel ShortsPOST/v1/run/youtube.channel_shortsUp to $0.003488 per callResponse-based
  2. YouTube Hashtag SearchPOST/v1/run/youtube.search_hashtagUp to $0.001308 per callResponse-based
  3. TikTok Shop Store ProductsPOST/v1/run/tiktok_shop.shop_productsUp to $0.001308 per callResponse-based
  4. Upwork JobsPOST/v1/run/upwork.jobsUp to $0.031174 per callResponse-based
  5. Google AutocompletePOST/v1/run/google.autocompleteUp to $0.001079 per callResponse-based
  6. Reddit Subreddit PostsPOST/v1/run/reddit.subreddit_postsUp to $0.001308 per callResponse-based
  7. App Store SearchPOST/v1/run/appstore.searchUp to $0.000927 per callResponse-based
  8. Glassdoor JobsPOST/v1/run/glassdoor.jobsUp to $0.1199 per callResponse-based
  9. X / Twitter User SearchPOST/v1/run/twitter.search_usersUp to $0.002289 per callResponse-based
  10. Instagram Profile Contact InfoPOST/v1/run/instagram.profile_contactUp to $0.007859 per callResponse-based
  11. Redfin SearchPOST/v1/run/redfin.searchUp to $0.014824 per callResponse-based
  12. TikTok Trending FeedPOST/v1/run/tiktok.trending_feedUp to $0.001308 per callResponse-based
All 410 AnyAPI endpoints