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

Flightera Search API Documentation

GET https://scrappa.co/api/flightera/search

Flightera Search API Documentation 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.

Flightera Search API Documentation 1 credit / request

Endpoint

Request preview
GET
https://scrappa.co/api/flightera/search
Auth header
x-api-key
Cost
1 credit / request
query = coffee shops
Response preview
200 OK
{
    "data": {
        "kind": "flnr",
        "count": 1,
        "query": "LH40",
        "results": [
            {
                "arr": "JFK",
                "dep": "FRA",
                "kind": "flight",
                "live": false,
                "value": "LH400",
                "airline_code": "LH"
            }
...

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.

1 optional filter available.

query string Required

Search text, at least 2 characters, e.g. LH40, Frankfurt or A38.

Example value coffee shops
type string Optional

flight (default), airport, airline or aircraft_model.

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": {
        "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

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

422

Validation Error

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

{
    "errors": {
        "query": [
            "The query field is required."
        ]
    },
    "message": "The request validation failed"
}
503

Service Unavailable

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

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