example-data.com
Menu
Browse docs and collections

flights

flights

Page 4 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": 73,
      "flightNumber": "BA7325",
      "airline": "British Airways",
      "departureAirport": "DFW",
      "arrivalAirport": "FCO",
      "departureAt": "2026-12-12T05:10:15.754Z",
      "arrivalAt": "2026-12-12T17:28:15.754Z",
      "durationMinutes": 738,
      "status": "delayed",
      "priceFrom": 1357.84,
      "currency": "CAD",
      "createdAt": "2026-10-22T05:10:15.754Z"
    },
    {
      "id": 74,
      "flightNumber": "SQ2013",
      "airline": "Singapore Airlines",
      "departureAirport": "JFK",
      "arrivalAirport": "YYZ",
      "departureAt": "2026-03-10T15:14:47.182Z",
      "arrivalAt": "2026-03-10T21:28:47.182Z",
      "durationMinutes": 374,
      "status": "landed",
      "priceFrom": 2227.62,
      "currency": "AED",
      "createdAt": "2026-03-09T15:14:47.182Z"
    },
    {
      "id": 75,
      "flightNumber": "WN1348",
      "airline": "Southwest Airlines",
      "departureAirport": "YYZ",
      "arrivalAirport": "MAD",
      "departureAt": "2025-06-20T06:17:41.433Z",
      "arrivalAt": "2025-06-20T11:40:41.433Z",
      "durationMinutes": 323,
      "status": "delayed",
      "priceFrom": 854.66,
      "currency": "SGD",
      "createdAt": "2025-06-04T06:17:41.433Z"
    }
  ],
  "meta": {
    "page": 4,
    "limit": 24,
    "total": 400,
    "totalPages": 17
  },
  "links": {
    "self": "/api/v1/flights?page=4&limit=24",
    "first": "/api/v1/flights?page=1&limit=24",
    "last": "/api/v1/flights?page=17&limit=24",
    "next": "/api/v1/flights?page=5&limit=24",
    "prev": "/api/v1/flights?page=3&limit=24"
  }
}