Skip to content
Scrappa Get API key
Flightradar24 API 1 credit/request

Flightradar24 Flight History API Documentation

GET https://scrappa.co/api/flightradar24/flight-history

Flightradar24 Flight History API Documentation List the legs of a flight number (LH400) or of an aircraft registration (D-AIXO), newest first. Each leg has the status, aircraft, airline, origin, destination and the scheduled, real and estimated times. The flight_id is null when the leg is not live. Use page to go back further. has_more tells you if another page exists. A query with no legs answers 200 and costs no credit. Cost: 1 credit per successful request.

Flightradar24 Flight History API Documentation 1 credit/request

Endpoint

Request preview
GET
https://scrappa.co/api/flightradar24/flight-history
Auth header
x-api-key
Cost
1 credit/request
query = coffee shops
Response preview
200 OK
{
    "data": {
        "page": 1,
        "count": 1,
        "query": "LH400",
        "flights": [
            {
                "times": {
                    "eta": null,
                    "real_arrival": null,
                    "real_departure": null,
                    "estimated_arrival": null,
                    "scheduled_arrival": "2026-11-11T18:35:00Z",
                    "estimated_departure": null,
...

Parameters

Start with the required fields, then add optional filters only when your use case needs them.

Runnable path

1 required parameter needed before sending a request.

3 optional filters available.

query string Required

Flight number or registration, e.g. LH400 or D-AIXO.

Example value coffee shops
fetch_by string Optional

flight (default) or reg.

Example value example
limit integer Optional

Legs per page, 1 to 100. Default: 10.

Example value 10
page integer Optional

Page number. Default: 1.

Example value 1

Response Schema

Example response fields are illustrative; inspect the JSON before integrating.

Example response fields

Scan these fields before integrating.

data meta success
JSON Response
200 OK
{
    "data": {
        "page": 1,
        "count": 1,
        "query": "LH400",
        "flights": [
            {
                "times": {
                    "eta": null,
                    "real_arrival": null,
                    "real_departure": null,
                    "estimated_arrival": null,
                    "scheduled_arrival": "2026-11-11T18:35:00Z",
                    "estimated_departure": null,
                    "scheduled_departure": "2026-11-11T10:00:00Z"
                },
                "origin": {
                    "lat": 50.037796,
                    "lon": 8.555783,
                    "city": "Frankfurt",
                    "gate": null,
                    "iata": "FRA",
                    "icao": "EDDF",
                    "name": "Frankfurt Airport",
                    "baggage": null,
                    "country": "Germany",
                    "website": null,
                    "terminal": null,
                    "timezone": "Europe/Berlin",
                    "country_code": "DE",
                    "elevation_ft": null,
                    "utc_offset_s": 3600
                },
                "status": {
                    "live": false,
                    "text": "Scheduled",
                    "type": "departure",
                    "state": "scheduled",
                    "diverted": null,
                    "event_time": null
                },
                "airline": null,
                "aircraft": {
                    "hex": null,
                    "model": null,
                    "age_years": null,
                    "model_code": "359",
                    "registration": null,
                    "serial_number": null
                },
                "callsign": null,
                "codeshare": [],
                "flight_id": null,
                "destination": {
                    "lat": 40.639751,
                    "lon": -73.7789,
                    "city": "New York",
                    "gate": null,
                    "iata": "JFK",
                    "icao": "KJFK",
                    "name": "New York John F. Kennedy International Airport",
                    "baggage": null,
                    "country": "United States",
                    "website": null,
                    "terminal": null,
                    "timezone": "America/New_York",
                    "country_code": "US",
                    "elevation_ft": null,
                    "utc_offset_s": -18000
                },
                "flight_number": "LH400"
            }
        ],
        "fetch_by": "flight",
        "has_more": true
    },
    "meta": {
        "credits": 1,
        "billable": true,
        "endpoint_family": "flight_history"
    },
    "success": true
}

Errors

Handle these documented responses before retrying or showing customer-facing failures.

422

Validation Error

A query parameter is missing or invalid. This response is not billable.

{
    "errors": {
        "query": [
            "A flight number or registration is required, e.g. LH400 or D-AIXO."
        ]
    },
    "message": "The request validation failed"
}
503

Service Unavailable

Flightradar24 could not be reached or changed its answer. This response is not billable. Retry later.

{
    "meta": {
        "billable": false,
        "retryable": true,
        "endpoint_family": "live_flights"
    },
    "error": {
        "code": "UPSTREAM_UNAVAILABLE",
        "message": "The Flightradar24 API is temporarily unavailable. Please retry."
    },
    "success": false
}

Generate Code with AI

Copy a ready-made prompt with all the endpoint details, parameters, and example responses. Paste it into ChatGPT, Claude, or any AI assistant to instantly generate working code.

Try It Live

Test this endpoint in our interactive playground with real data.