example-data.com
Menu
Browse docs and collections

flights

flights

Page 7 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": 145,
      "flightNumber": "JL3624",
      "airline": "Japan Airlines",
      "departureAirport": "ORD",
      "arrivalAirport": "MEX",
      "departureAt": "2026-06-30T13:48:46.916Z",
      "arrivalAt": "2026-07-01T01:03:46.916Z",
      "durationMinutes": 675,
      "status": "landed",
      "priceFrom": 817.92,
      "currency": "AUD",
      "createdAt": "2026-06-02T13:48:46.916Z"
    },
    {
      "id": 146,
      "flightNumber": "SQ9393",
      "airline": "Singapore Airlines",
      "departureAirport": "FRA",
      "arrivalAirport": "NRT",
      "departureAt": "2026-12-23T12:43:09.363Z",
      "arrivalAt": "2026-12-23T22:53:09.363Z",
      "durationMinutes": 610,
      "status": "scheduled",
      "priceFrom": 273.92,
      "currency": "JPY",
      "createdAt": "2026-10-06T12:43:09.363Z"
    },
    {
      "id": 147,
      "flightNumber": "AF5597",
      "airline": "Air France",
      "departureAirport": "BCN",
      "arrivalAirport": "MAD",
      "departureAt": "2025-11-06T10:52:30.460Z",
      "arrivalAt": "2025-11-07T01:51:30.460Z",
      "durationMinutes": 899,
      "status": "landed",
      "priceFrom": 1858.94,
      "currency": "CAD",
      "createdAt": "2025-10-08T10:52:30.460Z"
    }
  ],
  "meta": {
    "page": 7,
    "limit": 24,
    "total": 400,
    "totalPages": 17
  },
  "links": {
    "self": "/api/v1/flights?page=7&limit=24",
    "first": "/api/v1/flights?page=1&limit=24",
    "last": "/api/v1/flights?page=17&limit=24",
    "next": "/api/v1/flights?page=8&limit=24",
    "prev": "/api/v1/flights?page=6&limit=24"
  }
}