# Flightradar24 Search API Documentation

<p><strong>Flightradar24 Search API Documentation</strong> Search by name, code, flight number or registration. Each result has a type: airport, airline, live_flight, scheduled_flight or aircraft. Airports carry the IATA code and position. Airlines carry the ICAO code, IATA code and name. A live_flight carries the flight_id for the flight endpoint. An aircraft carries the registration and the hex code. An empty result answers 200 and costs no credit. Cost: 1 credit per successful request.</p>

- **Documentation:** [https://scrappa.co/docs/flightradar24-api/flightradar24_search](https://scrappa.co/docs/flightradar24-api/flightradar24_search)
- **API group:** Flightradar24 API
- **Endpoint:** `GET https://scrappa.co/api/flightradar24/search`

## 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 |
| --- | --- | --- | --- |
| `query` | string | Yes | Text, 2 to 60 characters, e.g. frankfurt, LH400 or D-AIXO. |
| `limit` | integer | No | Results to return, 1 to 50. Default: 10. |

## Example response

```json
{
    "data": {
        "count": 5,
        "query": "frankfurt",
        "results": [
            {
                "id": "DLH",
                "iata": "LH",
                "icao": "DLH",
                "logo": "https://cdn.flightradar24.com/assets/airlines/logotypes/1.png",
                "name": "Lufthansa",
                "type": "airline",
                "label": "Lufthansa (DLH / LH)",
                "match": "iata"
            },
            {
                "id": "LH400",
                "logo": "https://cdn.flightradar24.com/assets/airlines/logotypes/1.png",
                "type": "scheduled_flight",
                "label": "LH400 / DLH400",
                "match": "begins",
                "callsign": "DLH400",
                "airline_icao": "DLH",
                "flight_number": "LH400"
            },
            {
                "id": "FRA",
                "lat": 50.037796,
                "lon": 8.555783,
                "iata": "FRA",
                "type": "airport",
                "label": "Frankfurt Airport (FRA / EDDF)",
                "match": "begins"
            },
            {
                "id": "D-AIXO",
                "hex": "3C670F",
                "logo": "https://cdn.flightradar24.com/assets/airlines/logotypes/1.png",
                "type": "aircraft",
                "label": "D-AIXO (A359) - DLH",
                "match": "begins",
                "airline_icao": "DLH",
                "registration": "D-AIXO",
                "aircraft_type": "A359"
            },
            {
                "id": "426a4f1b",
                "lat": 37.4573,
                "lon": 126.4236,
                "type": "live_flight",
                "label": "LH718 / DLH718",
                "match": "begins",
                "origin": "MUC",
                "callsign": "DLH718",
                "flight_id": "426a4f1b",
                "destination": "ICN",
                "airline_icao": "DLH",
                "registration": "D-AIXO",
                "aircraft_type": "A359",
                "flight_number": "LH718"
            }
        ]
    },
    "meta": {
        "credits": 1,
        "billable": true,
        "endpoint_family": "search"
    },
    "success": true
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 422 | Validation Error | A query parameter is missing or invalid. This response is not billable. |
| 503 | Service Unavailable | Flightradar24 could not be reached or changed its answer. 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)
