example-data.com
Menu
Browse docs and collections

flights

flights

Page 11 of 17.

Overview

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": 241,
      "flightNumber": "EK561",
      "airline": "Emirates",
      "departureAirport": "LHR",
      "arrivalAirport": "FCO",
      "departureAt": "2027-01-05T07:41:50.763Z",
      "arrivalAt": "2027-01-05T13:42:50.763Z",
      "durationMinutes": 361,
      "status": "landed",
      "priceFrom": 1899.84,
      "currency": "EUR",
      "createdAt": "2026-12-09T07:41:50.763Z"
    },
    {
      "id": 242,
      "flightNumber": "EK8888",
      "airline": "Emirates",
      "departureAirport": "DFW",
      "arrivalAirport": "GRU",
      "departureAt": "2025-06-08T10:12:00.124Z",
      "arrivalAt": "2025-06-08T21:56:00.124Z",
      "durationMinutes": 704,
      "status": "landed",
      "priceFrom": 1018.21,
      "currency": "AUD",
      "createdAt": "2025-06-02T10:12:00.124Z"
    },
    {
      "id": 243,
      "flightNumber": "UA7870",
      "airline": "United Airlines",
      "departureAirport": "NRT",
      "arrivalAirport": "LAX",
      "departureAt": "2025-09-18T02:50:12.851Z",
      "arrivalAt": "2025-09-18T05:50:12.851Z",
      "durationMinutes": 180,
      "status": "cancelled",
      "priceFrom": 2164.8,
      "currency": "CAD",
      "createdAt": "2025-06-21T02:50:12.851Z"
    }
  ],
  "meta": {
    "page": 11,
    "limit": 24,
    "total": 400,
    "totalPages": 17
  },
  "links": {
    "self": "/api/v1/flights?page=11&limit=24",
    "first": "/api/v1/flights?page=1&limit=24",
    "last": "/api/v1/flights?page=17&limit=24",
    "next": "/api/v1/flights?page=12&limit=24",
    "prev": "/api/v1/flights?page=10&limit=24"
  }
}