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

Airportia Flight History API Documentation

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

Airportia Flight History API Documentation Read the table of the last 10 days of a flight number (LH1392). Pass the flight number. The route is found automatically for any flight that flew in the last 7 days. Pass origin and destination (IATA codes, e.g. FRA and PRG) to look up a flight that did not fly in the last 7 days, or to pick one route when a flight number has several: the newest route is used and all routes are listed in routes. Each leg has the date, route, airline, status and the time Airportia shows (the actual time when known, otherwise the scheduled time), in local time and UTC. Scheduled and actual times, delay, terminal, gate, aircraft type and registration are not part of this table: those fields are null. If no route can be found, the answer is 404: send origin and destination. Older history is not available. An empty answer and every failed request cost no credit. Cost: 1 credit per successful request. Scrappa is an independent service and is not affiliated with Airportia.

Airportia Flight History API Documentation 1 credit / request

Endpoint

Request preview
GET
https://scrappa.co/api/airportia/flight-history
Auth header
x-api-key
Cost
1 credit / request
query = coffee shops
Response preview
200 OK
{
    "data": {
        "count": 10,
        "query": "LH1392",
        "routes": [
            {
                "origin": "FRA",
                "destination": "PRG"
            }
        ],
        "flights": [
            {
                "date": "2026-11-13",
                "origin": {
...

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.

2 optional filters available.

query string Required

Flight number, e.g. LH1392 or DLH1392.

Example value coffee shops
origin string Optional

IATA code of the departure airport, e.g. FRA. Optional: the route is found from the flight number. Use it with destination to look up a route yourself, or to pick one route.

Example value example
destination string Optional

IATA code of the arrival airport, e.g. PRG. Optional. Picks one route of a flight number.

Example value example

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": {
        "count": 10,
        "query": "LH1392",
        "routes": [
            {
                "origin": "FRA",
                "destination": "PRG"
            }
        ],
        "flights": [
            {
                "date": "2026-11-13",
                "origin": {
                    "iata": "FRA",
                    "icao": "EDDF",
                    "name": "Frankfurt Airport",
                    "timezone": "Europe/Berlin"
                },
                "source": "airportia",
                "status": "Landed",
                "airline": {
                    "iata": "LH",
                    "name": "Lufthansa"
                },
                "arrival": {
                    "gate": null,
                    "baggage": null,
                    "terminal": null,
                    "actual_utc": null,
                    "actual_local": null,
                    "delay_minutes": null,
                    "scheduled_utc": null,
                    "shown_time_utc": "2026-11-13T08:39:00Z",
                    "scheduled_local": null,
                    "shown_time_local": "2026-11-13T09:39:00+01:00"
                },
                "aircraft": {
                    "model": null,
                    "registration": null
                },
                "departure": {
                    "gate": null,
                    "baggage": null,
                    "terminal": null,
                    "actual_utc": null,
                    "actual_local": null,
                    "delay_minutes": null,
                    "scheduled_utc": null,
                    "shown_time_utc": "2026-11-13T07:50:00Z",
                    "scheduled_local": null,
                    "shown_time_local": "2026-11-13T08:50:00+01:00"
                },
                "destination": {
                    "iata": "PRG",
                    "icao": "LKPR",
                    "name": "Prague Vaclav Havel Airport",
                    "timezone": "Europe/Prague"
                },
                "status_state": "landed",
                "flight_number": "LH1392"
            }
        ]
    },
    "meta": {
        "credits": 1,
        "billable": true,
        "oldest_date": "2026-11-05",
        "window_days": 10,
        "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": {
        "destination": [
            "The destination is an IATA airport code like PRG."
        ]
    },
    "message": "The request validation failed"
}
404

Not Found

No route was found for the flight number, or the flight page does not exist. Send origin and destination (IATA codes). This response is not billable.

{
    "meta": {
        "billable": false,
        "retryable": false,
        "endpoint_family": "flight_history"
    },
    "error": {
        "code": "NOT_FOUND",
        "message": "No route was found for this flight. Pass origin and destination (IATA codes) to look it up."
    },
    "success": false
}
503

Service Unavailable

Airportia could not be reached or changed its page. This response is not billable. Retry later.

{
    "meta": {
        "billable": false,
        "retryable": true,
        "endpoint_family": "flight_history"
    },
    "error": {
        "code": "UPSTREAM_UNAVAILABLE",
        "message": "The Airportia data 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.