Trusted by 1,000+ developers
Google Flights API
Access real-time flights data globally, with ease.
Departure Airport
Arrival Airport
Departure Date
Jan 16, 2025
United States
LAX
January 16, 2025
No stops
8h 29m
No stops
United States
JFK
January 16, 2025
Best price
$498.00
United States
LAX
January 16, 2025
No stops
8h 45m
No stops
United States
JFK
January 16, 2025
Best price
$512.00
United States
LAX
January 16, 2025
No stops
8h 30m
No stops
United States
JFK
January 16, 2025
Best price
$475.00
+ 17 more flights
Sign up to see all
500+ airlines data
We leverage the Google network to aggregate data from more than 500 airlines in 80 countries.
Compare flight prices
Compare prices offered by different agencies for the same flights, to spot the cheapest option.
Real-time results
Always get the more up-to-date data with our real-time requests infrastructure.
Easy integration
Use our libraries to integrate FlightsAPI easily in your preferred language
1# Imports
2import requests
3import json
4from datetime import datetime
5
6# API configuration
7API_KEY = 'your_api_key'
8BASE_URL = 'https://api.flightsapi.io/flights/one-way'
9
10# Search parameters
11params = {
12 'departure_airport': 'LAX',
13 'arrival_airport': 'JFK',
14 'departure_date': datetime.now().strftime('%d-%m-%Y'),
15 'stops': 0
16}
17
18headers = {'Authorization': f'Bearer {API_KEY}'}
19response = requests.get(BASE_URL, params=params, headers=headers)
20
21# Parse the JSON response
22if response.status_code == 200:
23 flights = response.json()
24
25 # Process the first flight option
26 first_flight = flights['data'][0]
27 print(f"Flight: {first_flight['airline']} {first_flight['flight_number']}")
28 print(f"Departure: {first_flight['departure_time']}")
29 print(f"Arrival: {first_flight['arrival_time']}")
30 print(f"Price: {first_flight['price']}")
31else:
32 print(f"Error: {response.status_code}")
View our API docs
Flexible Pricing
We work with businesses of all sizes, from startups to large enterprises