example-data.com
Menu
Browse docs and collections

flights

flights

Page 6 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": 121,
      "flightNumber": "AF7015",
      "airline": "Air France",
      "departureAirport": "SYD",
      "arrivalAirport": "JFK",
      "departureAt": "2026-05-22T18:33:29.344Z",
      "arrivalAt": "2026-05-22T21:27:29.344Z",
      "durationMinutes": 174,
      "status": "landed",
      "priceFrom": 1908.54,
      "currency": "AED",
      "createdAt": "2026-05-06T18:33:29.344Z"
    },
    {
      "id": 122,
      "flightNumber": "DL5390",
      "airline": "Delta Air Lines",
      "departureAirport": "JFK",
      "arrivalAirport": "DFW",
      "departureAt": "2025-09-17T01:02:36.285Z",
      "arrivalAt": "2025-09-17T07:49:36.285Z",
      "durationMinutes": 407,
      "status": "in_air",
      "priceFrom": 1491.4,
      "currency": "JPY",
      "createdAt": "2025-09-11T01:02:36.285Z"
    },
    {
      "id": 123,
      "flightNumber": "JL2268",
      "airline": "Japan Airlines",
      "departureAirport": "MAD",
      "arrivalAirport": "SYD",
      "departureAt": "2025-09-18T07:00:46.959Z",
      "arrivalAt": "2025-09-18T17:32:46.959Z",
      "durationMinutes": 632,
      "status": "landed",
      "priceFrom": 2025.92,
      "currency": "EUR",
      "createdAt": "2025-08-21T07:00:46.959Z"
    }
  ],
  "meta": {
    "page": 6,
    "limit": 24,
    "total": 400,
    "totalPages": 17
  },
  "links": {
    "self": "/api/v1/flights?page=6&limit=24",
    "first": "/api/v1/flights?page=1&limit=24",
    "last": "/api/v1/flights?page=17&limit=24",
    "next": "/api/v1/flights?page=7&limit=24",
    "prev": "/api/v1/flights?page=5&limit=24"
  }
}