example-data.com
Menu
Browse docs and collections

flights

flights

Page 14 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": 313,
      "flightNumber": "LH1841",
      "airline": "Lufthansa",
      "departureAirport": "SYD",
      "arrivalAirport": "BCN",
      "departureAt": "2025-09-17T08:38:52.750Z",
      "arrivalAt": "2025-09-17T22:11:52.750Z",
      "durationMinutes": 813,
      "status": "boarding",
      "priceFrom": 2048.98,
      "currency": "EUR",
      "createdAt": "2025-09-11T08:38:52.750Z"
    },
    {
      "id": 314,
      "flightNumber": "UA2616",
      "airline": "United Airlines",
      "departureAirport": "ORD",
      "arrivalAirport": "FCO",
      "departureAt": "2027-04-21T17:43:47.760Z",
      "arrivalAt": "2027-04-21T20:27:47.760Z",
      "durationMinutes": 164,
      "status": "delayed",
      "priceFrom": 144.19,
      "currency": "AUD",
      "createdAt": "2027-04-01T17:43:47.760Z"
    },
    {
      "id": 315,
      "flightNumber": "UA731",
      "airline": "United Airlines",
      "departureAirport": "SYD",
      "arrivalAirport": "LAX",
      "departureAt": "2026-10-29T17:59:14.348Z",
      "arrivalAt": "2026-10-29T19:13:14.348Z",
      "durationMinutes": 74,
      "status": "landed",
      "priceFrom": 2362.6,
      "currency": "CAD",
      "createdAt": "2026-10-25T17:59:14.348Z"
    }
  ],
  "meta": {
    "page": 14,
    "limit": 24,
    "total": 400,
    "totalPages": 17
  },
  "links": {
    "self": "/api/v1/flights?page=14&limit=24",
    "first": "/api/v1/flights?page=1&limit=24",
    "last": "/api/v1/flights?page=17&limit=24",
    "next": "/api/v1/flights?page=15&limit=24",
    "prev": "/api/v1/flights?page=13&limit=24"
  }
}