# Plane Finder Flight History API Documentation

<p><strong>Plane Finder Flight History API Documentation</strong> Read the legs of a flight number (LH400). One request returns every known leg of the flight, up to about 1000, newest first. Each leg has the flight_key, callsign, registration, aircraft type, ICAO hex code, origin and destination (IATA), and first_seen: the time the tracker first saw the aircraft, in UTC and in local time at the origin airport, with the IANA time zone. First seen is usually on the stand, minutes to about 40 minutes before take-off. It is not a scheduled or actual departure time. Read the exact take-off and landing time from Flight Track. Filter with date (one day) or date_from and date_to (a range). The date filter uses the first-seen time. A single date matches the UTC day or the local day at the origin airport: date_match says which one (utc, local or both). A range uses the local day. If the airport has no known time zone, the local fields are null and the UTC day is used. Use per_page (up to 1000) and page to read the list in parts. The coverage block says how far back the data reaches: oldest_leg_date, newest_leg_date, leg_count, and truncated (true when the list is cut at about 1000 legs, so older legs exist but are not available). A busy daily flight reaches back one to two years, a rare flight reaches back further. The data does not cover all of 2026 for every flight: read coverage first. A date before the oldest leg answers 200 with an empty list and error.code not_covered. A date inside the span without a leg answers 200 with an empty list. A leg first seen late in the evening can take off on the next day. Legs first seen less than 20 hours ago are left out. Send a flight number (LH400 or DLH400), not a registration. A flight that is not known answers 404. An empty answer, a date that is not covered and every failed request cost no credit. Cost: 15 credits per successful request with legs. Scrappa is an independent service and is not affiliated with Plane Finder.</p>

- **Documentation:** [https://scrappa.co/docs/planefinder-api/planefinder_flight_history](https://scrappa.co/docs/planefinder-api/planefinder_flight_history)
- **API group:** Plane Finder API
- **Endpoint:** `GET https://scrappa.co/api/planefinder/flight-history`

## Authentication

Send your Scrappa API key in the `X-API-KEY` request header. Paid endpoints also support accountless x402 payments when called without an API key.

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `flight` | string | Yes | Flight number, e.g. LH400 or DLH400. A registration is not accepted. |
| `date` | string | No | One day, YYYY-MM-DD. Matches the UTC day or the local day at the origin airport of the first-seen time. Not together with date_from. |
| `date_from` | string | No | First day of a range, YYYY-MM-DD. Matches the local day at the origin airport of the first-seen time. Use with date_to. |
| `date_to` | string | No | Last day of a range, YYYY-MM-DD. |
| `page` | integer | No | Page number, default 1. |
| `per_page` | integer | No | Legs per page, 1 to 1000, default 100. |

## Example response

```json
{
    "data": {
        "legs": [
            {
                "adshex": "3c4a8b",
                "origin": "FRA",
                "callsign": "DLH400",
                "timezone": "Europe/Berlin",
                "date_match": "both",
                "flight_key": "5-25480183",
                "destination": "JFK",
                "registration": "D-ABTK",
                "aircraft_type": "B744",
                "flight_number": "LH400",
                "first_seen_utc": "2025-07-10T09:15:00Z",
                "timezone_known": true,
                "first_seen_local": "2025-07-10T11:15:00+02:00",
                "first_seen_utc_date": "2025-07-10",
                "first_seen_local_date": "2025-07-10",
                "first_seen_local_time": "11:15"
            }
        ],
        "query": {
            "date": "2025-07-10",
            "date_to": null,
            "date_from": null
        },
        "flight": "LH400",
        "coverage": {
            "leg_count": 993,
            "truncated": true,
            "newest_leg_date": "2026-11-13",
            "oldest_leg_date": "2024-03-20",
            "requested_in_window": true
        },
        "pagination": {
            "page": 1,
            "total": 1,
            "has_more": false,
            "per_page": 100,
            "total_pages": 1
        }
    },
    "meta": {
        "cached": false,
        "source": "planefinder",
        "credits": 15,
        "billable": true,
        "endpoint_family": "flight_history"
    },
    "success": true
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 422 | Validation Error | A query parameter is missing or invalid. This response is not billable. |
| 404 | Not Found | The flight number is not known. This response is not billable. |
| 502 | Bad Gateway | Plane Finder answered in a form this API does not read. This response is not billable. Retry later. |
| 503 | Service Unavailable | Plane Finder could not be reached. This response is not billable. Retry later. |

## More Scrappa resources

- [API documentation](https://scrappa.co/docs)
- [Full LLM-readable API reference](https://scrappa.co/llms-full.txt)
- [OpenAPI specification](https://scrappa.co/docs/api.json)
- [Pricing](https://scrappa.co/pricing)
