# ADS-B Exchange live aircraft by hex, registration or callsign API

Look up ADS-B Exchange aircraft by hex, registration or callsign via REST or OpenAny MCP—with pay-per-use pricing, no subscription, and no proxies required. Powered by Apish, pass parameters such as hex, output, raw, and retrieve structured data including source registration label, source position latitude, barometric altitude in feet, and ground speed in knots for aircraft reference, and observation display.

Documentation: https://openany.si/ads-b-exchange/ads-b-exchange-live-aircraft-by-hex-registration-or-callsign-api/a038c0f9-52db-4735-9fa2-bbca5e023a5a/
API ID: a038c0f9-52db-4735-9fa2-bbca5e023a5a
Provider: apish
Contract revision: 3
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/apish/adsbexchange/v1/aircraft
Page update time: 2026-12-03T02:47:13.424Z
Access: OpenAny REST
OpenAny MCP: availability is not supplied by this REST contract. Check get_api on the configured OpenAny MCP server before execution.
Request content type: none
Execution mode: sync
Authentication: Authorization: Bearer $OPENANY_API_KEY

## Billing
Price: $0.002 / billing credit
API-key calls use your shared balance. Review the published billing rules before making a paid request.
Price source: OpenAny public API contract.
Contract update time: 2026-12-03T02:47:11.490Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "rules",
  "parameters": [],
  "policy_version": 2,
  "sale": {
    "addons": [],
    "base_price_micro_usd": "0",
    "max_cost_micro_usd": "2000",
    "quantities": [
      {
        "id": "upstream_credits",
        "label": "Actual API.SH credits consumed",
        "max_quantity": "1",
        "measure": "value",
        "pointer": "/credits_used",
        "price_micro_usd": "2000",
        "quantity_scale": 0,
        "source": "response",
        "unit": "credit",
        "unit_quantity": "1"
      }
    ],
    "rounding": "ceil",
    "variants": []
  }
}
```

## Usage and limits
## ADS-B Exchange Aircraft Lookup API

Use hex, registration or callsign to identify the source target. Position age and message age are different fields; a tracked reference may be on the ground and optional measurements can be absent.

## What You Can Build

- **Aircraft reference**: Match the source identifier before displaying its position.
- **Observation display**: Keep units, source labels and position age together.

## Returned Data

| Field | Meaning |
| --- | --- |
| `aircraft[].hex` | Source ICAO 24-bit aircraft address |
| `aircraft[].registration` | Source registration label |
| `aircraft[].latitude` | Source position latitude |
| `aircraft[].altitude_baro_ft` | Barometric altitude in feet when available |
| `aircraft[].ground_speed_kt` | Ground speed in knots when available |
| `aircraft[].seconds_since_position` | Seconds since source position update |

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "ADS-B Exchange live aircraft by hex, registration or callsign API request inputs",
  "$comment": "Declared input types grouped by HTTP location. Path, query and header values describe decoded inputs and are serialized as text on the wire; body is the payload. This is not an exhaustive provider contract or a schema for the raw HTTP request.",
  "type": "object",
  "properties": {
    "path": {
      "type": "object",
      "properties": {}
    },
    "query": {
      "type": "object",
      "properties": {
        "hex": {
          "type": "string",
          "description": "ICAO 24-bit address (6 hex characters)."
        },
        "registration": {
          "type": "string",
          "description": "Registration, e.g. `G-XLEA`."
        },
        "callsign": {
          "type": "string",
          "description": "Callsign as broadcast, e.g. `BAW117`."
        },
        "raw": {
          "type": "string",
          "description": "0 leaves out the bulky `raw` source blocks (often 10-30x smaller).",
          "enum": [
            "0",
            "1"
          ]
        },
        "fields": {
          "type": "string",
          "description": "Comma-separated fields to return, e.g. `posts.id,posts.title`. Call metadata is always included."
        },
        "fresh": {
          "type": "string",
          "description": "1 skips the 24-hour cache and fetches live.",
          "enum": [
            "1"
          ]
        },
        "output": {
          "type": "string",
          "description": "JSON only for this OpenAny product. Omit output or use json; CSV and NDJSON are not supported.",
          "enum": [
            "json"
          ]
        },
        "records": {
          "type": "string",
          "description": "With output=csv|ndjson: the top-level list to turn into rows (e.g. `reviews`), or `.` for the whole object as one row."
        }
      }
    },
    "headers": {
      "type": "object",
      "properties": {}
    }
  },
  "required": [
    "path",
    "query",
    "headers"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "object",
  "properties": {
    "aircraft": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "adsb_version": {
            "type": "integer"
          },
          "aircraft_type": {
            "type": "string"
          },
          "altitude_baro_ft": {
            "type": "null"
          },
          "altitude_geom_ft": {
            "type": "null"
          },
          "callsign": {
            "type": "null"
          },
          "category": {
            "type": "null"
          },
          "emergency": {
            "type": "null"
          },
          "ground_speed_kt": {
            "type": "integer"
          },
          "hex": {
            "type": "string"
          },
          "indicated_airspeed_kt": {
            "type": "null"
          },
          "interesting": {
            "type": "boolean"
          },
          "latitude": {
            "type": "number"
          },
          "longitude": {
            "type": "number"
          },
          "mach": {
            "type": "null"
          },
          "magnetic_heading_deg": {
            "type": "null"
          },
          "messages": {
            "type": "integer"
          },
          "military": {
            "type": "boolean"
          },
          "nac_p": {
            "type": "integer"
          },
          "nac_v": {
            "type": "null"
          },
          "nic": {
            "type": "integer"
          },
          "on_ground": {
            "type": "boolean"
          },
          "outside_air_temp_c": {
            "type": "null"
          },
          "qnh_hpa": {
            "type": "null"
          },
          "receivers": {
            "type": "integer"
          },
          "registration": {
            "type": "string"
          },
          "roll_deg": {
            "type": "null"
          },
          "rssi": {
            "type": "number"
          },
          "sda": {
            "type": "null"
          },
          "seconds_since_position": {
            "type": "number"
          },
          "seconds_since_seen": {
            "type": "number"
          },
          "selected_altitude_fms_ft": {
            "type": "null"
          },
          "selected_altitude_ft": {
            "type": "null"
          },
          "selected_heading_deg": {
            "type": "null"
          },
          "sil": {
            "type": "integer"
          },
          "source": {
            "type": "string"
          },
          "squawk": {
            "type": "null"
          },
          "total_air_temp_c": {
            "type": "null"
          },
          "track_deg": {
            "type": "integer"
          },
          "track_rate": {
            "type": "null"
          },
          "true_airspeed_kt": {
            "type": "null"
          },
          "true_heading_deg": {
            "type": "null"
          },
          "vertical_rate_baro_fpm": {
            "type": "null"
          },
          "vertical_rate_geom_fpm": {
            "type": "null"
          },
          "wind_direction_deg": {
            "type": "null"
          },
          "wind_speed_kt": {
            "type": "null"
          }
        }
      }
    },
    "cached": {
      "type": "boolean"
    },
    "count": {
      "type": "integer"
    },
    "credits_used": {
      "type": "integer"
    },
    "fetched_at": {
      "type": "string"
    },
    "next_offset": {
      "type": "null"
    },
    "offset": {
      "type": "integer"
    },
    "query": {
      "type": "object",
      "properties": {
        "hex": {
          "type": "string"
        }
      }
    },
    "time": {
      "type": "string"
    },
    "total": {
      "type": "integer"
    }
  }
}
```

## Request example
Scenario: Official example · Live API.SH response · Minimal request
```bash
curl \
  'https://api.openany.si/v1/agent-apis/apish/adsbexchange/v1/aircraft?hex=42584b&output=json&raw=0' \
  -X GET \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json'
```

## Response example
Example from the provider's documentation. Field values in your results will differ.
Sample response · Documented HTTP 200
```json
{
  "aircraft": [
    {
      "adsb_version": 0,
      "aircraft_type": "TWR",
      "altitude_baro_ft": null,
      "altitude_geom_ft": null,
      "callsign": null,
      "category": null,
      "emergency": null,
      "ground_speed_kt": 0,
      "hex": "42584b",
      "indicated_airspeed_kt": null,
      "interesting": false,
      "latitude": 51.470575,
      "longitude": -0.447044,
      "mach": null,
      "magnetic_heading_deg": null,
      "messages": 8,
      "military": false,
      "nac_p": 11,
      "nac_v": null,
      "nic": 11,
      "on_ground": true,
      "outside_air_temp_c": null,
      "qnh_hpa": null,
      "receivers": 2,
      "registration": "TWR",
      "roll_deg": null,
      "rssi": -23.5,
      "sda": null,
      "seconds_since_position": 1.2,
      "seconds_since_seen": 1.2,
      "selected_altitude_fms_ft": null,
      "selected_altitude_ft": null,
      "selected_heading_deg": null,
      "sil": 2,
      "source": "adsb_icao_nt",
      "squawk": null,
      "total_air_temp_c": null,
      "track_deg": 0,
      "track_rate": null,
      "true_airspeed_kt": null,
      "true_heading_deg": null,
      "vertical_rate_baro_fpm": null,
      "vertical_rate_geom_fpm": null,
      "wind_direction_deg": null,
      "wind_speed_kt": null
    }
  ],
  "cached": false,
  "count": 1,
  "credits_used": 1,
  "fetched_at": "2026-11-19T12:23:51.307Z",
  "next_offset": null,
  "offset": 0,
  "query": {
    "hex": "42584b"
  },
  "time": "2026-11-19T12:23:51.001Z",
  "total": 1
}
```

## Error handling
400: Check the request fields.
401 / 403: Verify credentials and access permissions.
402: Inspect payment requirements and balance.
429: Respect returned retry guidance.
5xx: Inspect the error and usage record before retrying a paid operation.

## Common questions
### Which identifiers are accepted?
hex is a six-character ICAO 24-bit hexadecimal address; registration is a tail reference, and callsign is the value broadcast by the target.

### What happens when a target is not tracked?
The contract documents HTTP 404 for an aircraft not currently tracked. It does not establish a historical search result.

### Are message age and position age interchangeable?
No. seconds_since_seen and seconds_since_position describe different observations. Preserve the response time and source labels.

### Does a missing altitude mean zero?
No. Preserve missing values and on_ground independently; barometric and geometric altitude are distinct measurements.

### How do I bypass cached results?
Pass fresh=1. A cache bypass retrieves available source data; it does not make unpublished or restricted records available.

### Can I request CSV or NDJSON?
This OpenAny implementation serves JSON only. Omit output or set output=json.

## Available implementations
- apish: https://openany.si/ads-b-exchange/ads-b-exchange-live-aircraft-by-hex-registration-or-callsign-api/a038c0f9-52db-4735-9fa2-bbca5e023a5a/

Integration guide: https://openany.si/docs/
Agent setup: https://openany.si/SKILL.md
