# Flightera Search API Documentation

<p><strong>Flightera Search API Documentation</strong> Search suggestions for flight numbers (with route), airports (with ICAO code, city and position), airlines and aircraft models. Use it to find the codes for the other calls. Cost: 1 credit per request. An empty answer is free.</p>

- **Documentation:** [https://scrappa.co/docs/flightera-api/flightera_search](https://scrappa.co/docs/flightera-api/flightera_search)
- **API group:** Flightera API
- **Endpoint:** `GET https://scrappa.co/api/flightera/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 | Search text, at least 2 characters, e.g. LH40, Frankfurt or A38. |
| `type` | string | No | flight (default), airport, airline or aircraft_model. |

## Example response

```json
{
    "data": {
        "kind": "flnr",
        "count": 1,
        "query": "LH40",
        "results": [
            {
                "arr": "JFK",
                "dep": "FRA",
                "kind": "flight",
                "live": false,
                "value": "LH400",
                "airline_code": "LH"
            }
        ]
    },
    "meta": {
        "credits": 1,
        "billable": true,
        "endpoint_family": "search"
    },
    "success": true
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 422 | Validation Error | A parameter is missing or invalid. This response is not billable. |
| 503 | Service Unavailable | Flightera 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)
