example-data.com
Menu
Browse docs and collections

flights

flights

Page 13 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": 289,
      "flightNumber": "UA3612",
      "airline": "United Airlines",
      "departureAirport": "MEX",
      "arrivalAirport": "FRA",
      "departureAt": "2026-09-24T06:52:24.505Z",
      "arrivalAt": "2026-09-24T21:14:24.505Z",
      "durationMinutes": 862,
      "status": "delayed",
      "priceFrom": 580.41,
      "currency": "SGD",
      "createdAt": "2026-07-12T06:52:24.505Z"
    },
    {
      "id": 290,
      "flightNumber": "SQ6422",
      "airline": "Singapore Airlines",
      "departureAirport": "BCN",
      "arrivalAirport": "ORD",
      "departureAt": "2025-11-21T18:41:33.826Z",
      "arrivalAt": "2025-11-22T05:49:33.826Z",
      "durationMinutes": 668,
      "status": "landed",
      "priceFrom": 1153.87,
      "currency": "EUR",
      "createdAt": "2025-10-04T18:41:33.826Z"
    },
    {
      "id": 291,
      "flightNumber": "LH7716",
      "airline": "Lufthansa",
      "departureAirport": "ORD",
      "arrivalAirport": "MAD",
      "departureAt": "2026-08-14T08:04:22.874Z",
      "arrivalAt": "2026-08-14T18:26:22.874Z",
      "durationMinutes": 622,
      "status": "scheduled",
      "priceFrom": 627.53,
      "currency": "JPY",
      "createdAt": "2026-06-14T08:04:22.874Z"
    }
  ],
  "meta": {
    "page": 13,
    "limit": 24,
    "total": 400,
    "totalPages": 17
  },
  "links": {
    "self": "/api/v1/flights?page=13&limit=24",
    "first": "/api/v1/flights?page=1&limit=24",
    "last": "/api/v1/flights?page=17&limit=24",
    "next": "/api/v1/flights?page=14&limit=24",
    "prev": "/api/v1/flights?page=12&limit=24"
  }
}