example-data.com
Menu
Browse docs and collections

flights

flights

Page 17 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": 385,
      "flightNumber": "JL3576",
      "airline": "Japan Airlines",
      "departureAirport": "ATL",
      "arrivalAirport": "ICN",
      "departureAt": "2025-06-05T07:41:03.724Z",
      "arrivalAt": "2025-06-05T12:59:03.724Z",
      "durationMinutes": 318,
      "status": "in_air",
      "priceFrom": 356.02,
      "currency": "GBP",
      "createdAt": "2025-05-06T07:41:03.724Z"
    },
    {
      "id": 386,
      "flightNumber": "EK6214",
      "airline": "Emirates",
      "departureAirport": "CDG",
      "arrivalAirport": "FCO",
      "departureAt": "2025-09-13T11:09:43.001Z",
      "arrivalAt": "2025-09-13T12:23:43.001Z",
      "durationMinutes": 74,
      "status": "landed",
      "priceFrom": 735.93,
      "currency": "JPY",
      "createdAt": "2025-08-17T11:09:43.001Z"
    },
    {
      "id": 387,
      "flightNumber": "AF8644",
      "airline": "Air France",
      "departureAirport": "YYZ",
      "arrivalAirport": "DFW",
      "departureAt": "2026-01-05T07:43:29.192Z",
      "arrivalAt": "2026-01-05T20:50:29.192Z",
      "durationMinutes": 787,
      "status": "delayed",
      "priceFrom": 2011.23,
      "currency": "JPY",
      "createdAt": "2025-12-22T07:43:29.192Z"
    }
  ],
  "meta": {
    "page": 17,
    "limit": 24,
    "total": 400,
    "totalPages": 17
  },
  "links": {
    "self": "/api/v1/flights?page=17&limit=24",
    "first": "/api/v1/flights?page=1&limit=24",
    "last": "/api/v1/flights?page=17&limit=24",
    "next": null,
    "prev": "/api/v1/flights?page=16&limit=24"
  }
}