example-data.com
Menu
Browse docs and collections

flights

flights

Page 3 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": 49,
      "flightNumber": "WN1811",
      "airline": "Southwest Airlines",
      "departureAirport": "SYD",
      "arrivalAirport": "YYZ",
      "departureAt": "2026-07-04T20:33:05.237Z",
      "arrivalAt": "2026-07-04T22:01:05.237Z",
      "durationMinutes": 88,
      "status": "boarding",
      "priceFrom": 778.07,
      "currency": "AUD",
      "createdAt": "2026-06-18T20:33:05.237Z"
    },
    {
      "id": 50,
      "flightNumber": "WN9951",
      "airline": "Southwest Airlines",
      "departureAirport": "LAX",
      "arrivalAirport": "GRU",
      "departureAt": "2026-08-10T14:31:15.780Z",
      "arrivalAt": "2026-08-10T19:39:15.780Z",
      "durationMinutes": 308,
      "status": "in_air",
      "priceFrom": 837.43,
      "currency": "JPY",
      "createdAt": "2026-06-01T14:31:15.780Z"
    },
    {
      "id": 51,
      "flightNumber": "UA1628",
      "airline": "United Airlines",
      "departureAirport": "YYZ",
      "arrivalAirport": "BCN",
      "departureAt": "2026-09-17T13:35:37.561Z",
      "arrivalAt": "2026-09-17T20:38:37.561Z",
      "durationMinutes": 423,
      "status": "boarding",
      "priceFrom": 1714.25,
      "currency": "AUD",
      "createdAt": "2026-07-15T13:35:37.561Z"
    }
  ],
  "meta": {
    "page": 3,
    "limit": 24,
    "total": 400,
    "totalPages": 17
  },
  "links": {
    "self": "/api/v1/flights?page=3&limit=24",
    "first": "/api/v1/flights?page=1&limit=24",
    "last": "/api/v1/flights?page=17&limit=24",
    "next": "/api/v1/flights?page=4&limit=24",
    "prev": "/api/v1/flights?page=2&limit=24"
  }
}