example-data.com
Menu
Browse docs and collections

flights

flights

Browse 400 flights records. Explore sample records and fetch JSON over a free REST API for prototypes, tests, and learning.

Overview

Cards

Compact

Detailed

May
22
Thu

Air France AF1294

11:23 AM – 3:37 PM

MAD → ICN

From USD 772.03

Apr
10
Fri

United Airlines UA5598

2:09 PM – 10:30 PM

CDG → SIN

From AED 1996.76

Apr
17
Sat

Lufthansa LH3261

9:17 PM – 11:55 PM

YYZ → ATL

From AUD 494.66

Aug
6
Thu

Lufthansa LH776

8:51 AM – 8:59 PM

BCN → JFK

From CAD 312.42

Jan
4
Mon

Singapore Airlines SQ8464

5:21 PM – 6:24 PM

SYD → SIN

From USD 1973.82

Jan
4
Mon

British Airways BA7173

7:00 PM – 8:28 AM

CDG → ICN

From JPY 89.95

Showing first 6 of 24 on this page.

Request

curl example

curl -sS \
  "https://example-data.com/api/v1/flights?limit=25"

JavaScript example

const res = await fetch(
  "https://example-data.com/api/v1/flights?limit=25"
);
const { data, meta } = await res.json();

TypeScript example

// Download once: mkdir -p types && curl -o types/flights.d.ts https://example-data.com/types/flights.d.ts
import type { Flight, ListEnvelope } from "./types/flights";

const res = await fetch(
  "https://example-data.com/api/v1/flights?limit=25"
);
const { data, meta } = (await res.json()) as ListEnvelope<Flight>;

Python example

import requests

res = requests.get(
    "https://example-data.com/api/v1/flights",
    params={"limit": 25},
)
data = res.json()

Response

{
  "data": [
    {
      "id": 1,
      "flightNumber": "AF1294",
      "airline": "Air France",
      "departureAirport": "MAD",
      "arrivalAirport": "ICN",
      "departureAt": "2025-05-22T11:23:57.954Z",
      "arrivalAt": "2025-05-22T15:37:57.954Z",
      "durationMinutes": 254,
      "status": "in_air",
      "priceFrom": 772.03,
      "currency": "USD",
      "createdAt": "2025-02-23T11:23:57.954Z"
    },
    {
      "id": 2,
      "flightNumber": "UA5598",
      "airline": "United Airlines",
      "departureAirport": "CDG",
      "arrivalAirport": "SIN",
      "departureAt": "2026-04-10T14:09:05.599Z",
      "arrivalAt": "2026-04-10T22:30:05.599Z",
      "durationMinutes": 501,
      "status": "scheduled",
      "priceFrom": 1996.76,
      "currency": "AED",
      "createdAt": "2026-03-11T14:09:05.599Z"
    },
    {
      "id": 3,
      "flightNumber": "LH3261",
      "airline": "Lufthansa",
      "departureAirport": "YYZ",
      "arrivalAirport": "ATL",
      "departureAt": "2027-04-17T21:17:22.081Z",
      "arrivalAt": "2027-04-17T23:55:22.081Z",
      "durationMinutes": 158,
      "status": "boarding",
      "priceFrom": 494.66,
      "currency": "AUD",
      "createdAt": "2027-01-17T21:17:22.081Z"
    }
  ],
  "meta": {
    "page": 1,
    "limit": 25,
    "total": 400,
    "totalPages": 16
  },
  "links": {
    "self": "/api/v1/flights?page=1",
    "first": "/api/v1/flights?page=1",
    "last": "/api/v1/flights?page=16",
    "next": "/api/v1/flights?page=2",
    "prev": null
  }
}

View full response →