Flight Query Parser API

Transform natural language flight requests into structured JSON data. Perfect for powering flight search applications with human-friendly queries.

Simple. Powerful. Intuitive.

// 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
}

Why developers choose FlyTo

Lightning Fast

Parse natural language queries into JSON in milliseconds.

Enterprise Security

Bank-level encryption and security protocols protect your data.

Context Understanding

Understands complex queries with dates, preferences, and passenger details.

AI-Powered

Advanced NLP converts human language into structured flight search parameters.

API Endpoints

POST/api/parseAPI Key

Parse natural language flight queries into structured JSON data

Test with Postman

Download our complete Postman collection with example requests, authentication samples, and rate limiting tests.

Download Postman Collection

Includes examples for all endpoints, authentication, and error handling

Ready to get started?

Join thousands of developers building amazing flight experiences with FlyTo API.

Start Building Now