example-data.com
Menu
Browse docs and collections

flights

flights

Page 15 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": 337,
      "flightNumber": "DL3284",
      "airline": "Delta Air Lines",
      "departureAirport": "NRT",
      "arrivalAirport": "CDG",
      "departureAt": "2025-07-20T14:45:43.150Z",
      "arrivalAt": "2025-07-21T00:42:43.150Z",
      "durationMinutes": 597,
      "status": "in_air",
      "priceFrom": 2301.18,
      "currency": "GBP",
      "createdAt": "2025-04-27T14:45:43.150Z"
    },
    {
      "id": 338,
      "flightNumber": "JL9149",
      "airline": "Japan Airlines",
      "departureAirport": "BCN",
      "arrivalAirport": "YYZ",
      "departureAt": "2026-06-16T16:40:39.439Z",
      "arrivalAt": "2026-06-16T23:24:39.439Z",
      "durationMinutes": 404,
      "status": "delayed",
      "priceFrom": 1917.65,
      "currency": "SGD",
      "createdAt": "2026-06-09T16:40:39.439Z"
    },
    {
      "id": 339,
      "flightNumber": "DL3604",
      "airline": "Delta Air Lines",
      "departureAirport": "SYD",
      "arrivalAirport": "FCO",
      "departureAt": "2025-07-17T15:07:29.241Z",
      "arrivalAt": "2025-07-17T17:35:29.241Z",
      "durationMinutes": 148,
      "status": "cancelled",
      "priceFrom": 1817.87,
      "currency": "EUR",
      "createdAt": "2025-06-04T15:07:29.241Z"
    }
  ],
  "meta": {
    "page": 15,
    "limit": 24,
    "total": 400,
    "totalPages": 17
  },
  "links": {
    "self": "/api/v1/flights?page=15&limit=24",
    "first": "/api/v1/flights?page=1&limit=24",
    "last": "/api/v1/flights?page=17&limit=24",
    "next": "/api/v1/flights?page=16&limit=24",
    "prev": "/api/v1/flights?page=14&limit=24"
  }
}