flights

Poll results of an async search

Poll every 5–10 seconds. Results expire 10 minutes after the search completes — a 404 means the result has expired, start a new search.

get/flights/results/{search_id}

Request

  • Base URL: https://letsfg.co/developers/api/v1
  • URL: https://letsfg.co/developers/api/v1/flights/results/{search_id}
  • Auth: API key in header X-API-Key

Path parameters

search_idstring required

search_id returned by POST /flights/search/async.

Response

Current search status and results (if complete).

status'pending' | 'complete' | 'error'

pending = poll again in 5 seconds; complete = offers ready; error = search failed.

originstring
destinationstring
offersobject[]
total_resultsinteger
passenger_idsstring[]
currencystring
progressstring
errorstring

Present only when status is error.

Changes

No recorded changes to this operation across all 1 revision of this API.