# Route Detection



Which route endpoint should you call — callsign resolution, airport route list, or route-pair statistics? Route endpoints use SkyLink's own database of routes to map **callsigns** (flight identifiers on [ADS-B](https://www.faa.gov/air_traffic/technology/adsb), e.g. `BAW178`) to city pairs and expose airport route lists with frequency statistics.

| Endpoint                          | Page                                          | When to use                                                     |
| --------------------------------- | --------------------------------------------- | --------------------------------------------------------------- |
| `GET /routes/callsign/{callsign}` | [Callsign → Route](/docs/v31/routes-callsign) | Map a live callsign to departure/arrival airports               |
| `GET /routes/airport/{code}`      | [Airport Routes](/docs/v31/routes-airport)    | List all routes from or to an airport                           |
| `GET /routes/pairs`               | [Route Pairs](/docs/v31/routes-pairs)         | Query route-pair stats — airlines, distance, typical block time |

**Choosing an endpoint.** Start with [Callsign → Route](/docs/v31/routes-callsign) when you have a live [ADS-B](https://www.faa.gov/air_traffic/technology/adsb) callsign and need a city pair. Use [Airport Routes](/docs/v31/routes-airport) to enumerate departures or arrivals at a hub. Use [Route Pairs](/docs/v31/routes-pairs) when you already know one or both airport codes and want carrier and distance context.

After resolving airports, chain to [Airports](/docs/v31/airports) for runway data or [Distance](/docs/v31/distance) for precise great-circle calculations. For live flight status, see [Flight Status](/docs/v31/flight-status).

## Error responses [#error-responses]

Shared platform errors: [Error Handling](/docs/errors). Endpoint-specific:

### 422 — validation error [#422--validation-error]

Returned when path or query parameters fail schema validation (for example `limit` outside 1–500).

```json
{
  "detail": [
    {
      "type": "greater_than_equal",
      "loc": ["query", "limit"],
      "msg": "Input should be greater than or equal to 1"
    }
  ]
}
```

Per-endpoint parameter tables and response fields are on the reference pages linked above.

***

Related: [Flight Status](/docs/v31/flight-status) · [Schedules](/docs/v31/schedules) · [Distance](/docs/v31/distance)
