Transform natural language flight requests into structured JSON data. Perfect for powering flight search applications with human-friendly queries.
// Parse human queries into structured JSON (requires API key)
const parseResponse = await fetch('https://www.flyto.dev/api/parse', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'Authorization': 'Bearer fly_your_api_key_here'
},
body: JSON.stringify({
query: "Business class to Tokyo next month for 2 passengers"
})
});
const data = await parseResponse.json();
// Returns structured flight search data
{
"success": true,
"parsedQuery": {
"origin": "JFK",
"destination": "NRT",
"departure_date": "2025-09-15",
"return_date": null,
"passengers": {
"adults": 2,
"children": 0,
"infants": 0
},
"cabin_class": "business",
"trip_type": "one_way",
"flexible_dates": false,
"preferences": {
"direct_flights": false,
"max_stops": null,
"airlines": []
}
},
"confidence": 0.95,
"processing_time_ms": 234
}
Parse natural language queries into JSON in milliseconds.
Bank-level encryption and security protocols protect your data.
Understands complex queries with dates, preferences, and passenger details.
Advanced NLP converts human language into structured flight search parameters.
/api/parse
API KeyParse natural language flight queries into structured JSON data
Download our complete Postman collection with example requests, authentication samples, and rate limiting tests.
Download Postman CollectionIncludes examples for all endpoints, authentication, and error handling
Join thousands of developers building amazing flight experiences with FlyTo API.
Start Building Now