flights
Parse a natural language flight query into structured search params
Free — no credit charge. Powered by Gemini. Returns resolved IATA codes, dates, passenger count, time preferences, and a list of any fields still missing. Pass the resolved params to POST /flights/search or POST /flights/discover.
post/flights/parse-query
Request
- Base URL: https://letsfg.co/developers/api/v1
- URL: https://letsfg.co/developers/api/v1/flights/parse-query
- Auth: API key in header X-API-Key
Request body
Example request
{
"query": "morning flight from New York to LA next Friday, 2 adults"
}Response
Parsed flight intent.
Changes
No recorded changes to this operation across all 1 revision of this API.