Skip to content

Airports#

Airports your key can read, and the airfield model of each one.

The airport object#

Attributes#

idICAO coderequired
An ICAO airport code.
objectstringrequired
Always airport.
iatastringrequired
The IATA code.
namestringrequired
timezonestringrequired
IANA time zone. API times are always UTC; use this to display local time.
reference_pointobjectrequired
WGS 84 decimal degrees.
Child attributes
latnumberrequired
lonnumberrequired
elevation_ftnumber
home_regionenumrequired
Where the airport's data is stored and its write path runs. One of apac, eu, me, na.
airfield_versionstringrequired
The version of the airfield model in force now.
onprem_nodestring | nullrequired
Base URL of the airport's on-premise node, or null if it has none.
environmentenumrequired
test reads the sandbox, a simulated VTBS day. live reads production data. One of test, live.

Airport object

{
  "id": "VTBS",
  "object": "airport",
  "iata": "BKK",
  "name": "Suvarnabhumi Airport",
  "timezone": "Asia/Bangkok",
  "reference_point": {
    "lat": 13.69,
    "lon": 100.7501
  },
  "elevation_ft": 5,
  "home_region": "apac",
  "airfield_version": "2026-10-30.2",
  "onprem_node": "https://surfacelens.vtbs.internal/v1",
  "environment": "test"
}

List airports#

GET/v1/airports

Returns the airports the calling key is permitted to read, in ICAO order.

Requires airports:read.Preview 1

Query parameters#

limitinteger
Page size, from 1 to 500. Default 100.
cursorstring
The next_cursor from the previous page. Other parameters must not change between pages. Cursors expire after one hour.

Response#

200 A page of airports. data holds airport objects.

objectstringrequired
Always list.
dataarray of objectsrequired
Child attributes
idICAO coderequired
An ICAO airport code.
objectstringrequired
Always airport.
iatastringrequired
The IATA code.
namestringrequired
timezonestringrequired
IANA time zone. API times are always UTC; use this to display local time.
reference_pointobjectrequired
WGS 84 decimal degrees.
Child attributes
latnumberrequired
lonnumberrequired
elevation_ftnumber
home_regionenumrequired
Where the airport's data is stored and its write path runs. One of apac, eu, me, na.
airfield_versionstringrequired
The version of the airfield model in force now.
onprem_nodestring | nullrequired
Base URL of the airport's on-premise node, or null if it has none.
environmentenumrequired
test reads the sandbox, a simulated VTBS day. live reads production data. One of test, live.

next_cursorstring | nullrequired
Pass as cursor to fetch the next page. Null on the last page.
curl https://api.surfacelens.app/v1/airports \
  -H "Authorization: Bearer $SURFACELENS_KEY"
const res = await fetch("https://api.surfacelens.app/v1/airports", {
  headers: { Authorization: `Bearer ${process.env.SURFACELENS_KEY}` },
});
if (!res.ok) throw new Error(`${res.status} ${await res.text()}`);
const page = await res.json();
import httpx, os

res = httpx.get(
    "https://api.surfacelens.app/v1/airports",
    headers={"Authorization": f"Bearer {os.environ['SURFACELENS_KEY']}"},
)
res.raise_for_status()
page = res.json()

Response200

{
  "object": "list",
  "data": [
    {
      "id": "VTBS",
      "object": "airport",
      "iata": "BKK",
      "name": "Suvarnabhumi Airport",
      "timezone": "Asia/Bangkok",
      "reference_point": {
        "lat": 13.69,
        "lon": 100.7501
      },
      "elevation_ft": 5,
      "home_region": "apac",
      "airfield_version": "2026-10-30.2",
      "onprem_node": "https://surfacelens.vtbs.internal/v1",
      "environment": "test"
    }
  ],
  "next_cursor": null
}

Retrieve an airport#

GET/v1/airports/{airport}

Returns one airport, including its home region and the base URL of its on-premise node, if it has one.

Requires airports:read.Preview 1

Path parameters#

airportICAO coderequired
The airport's ICAO code.

Response#

200 The airport. Returns airport object.

curl https://api.surfacelens.app/v1/airports/VTBS \
  -H "Authorization: Bearer $SURFACELENS_KEY"
const res = await fetch("https://api.surfacelens.app/v1/airports/VTBS", {
  headers: { Authorization: `Bearer ${process.env.SURFACELENS_KEY}` },
});
if (!res.ok) throw new Error(`${res.status} ${await res.text()}`);
const airport = await res.json();
import httpx, os

res = httpx.get(
    "https://api.surfacelens.app/v1/airports/VTBS",
    headers={"Authorization": f"Bearer {os.environ['SURFACELENS_KEY']}"},
)
res.raise_for_status()
airport = res.json()

Response200

{
  "id": "VTBS",
  "object": "airport",
  "iata": "BKK",
  "name": "Suvarnabhumi Airport",
  "timezone": "Asia/Bangkok",
  "reference_point": {
    "lat": 13.69,
    "lon": 100.7501
  },
  "elevation_ft": 5,
  "home_region": "apac",
  "airfield_version": "2026-10-30.2",
  "onprem_node": "https://surfacelens.vtbs.internal/v1",
  "environment": "test"
}

Retrieve the airfield model#

GET/v1/airports/{airport}/airfield

Returns the airfield as a GeoJSON FeatureCollection: runways, taxiways, aprons, stands and named areas. Each feature's id is the entity ID you use everywhere else in the API. Coordinates follow GeoJSON order, longitude first.

Requires airports:read.Preview 1

Path parameters#

airportICAO coderequired
The airport's ICAO code.

Query parameters#

attimestamp
The instant to read, RFC 3339 in UTC. Omit for now.
feature_typescomma-separated enums
Comma-separated feature types to include. Omit for all. Values: runway, taxiway, apron, stand, area.

Response#

200 The airfield model in force at at.

typestringrequired
Always FeatureCollection.
airportICAO coderequired
An ICAO airport code.
versionstringrequired
attimestamprequired
RFC 3339 in UTC, with up to millisecond precision.
featuresarray of objectsrequired
Child attributes
typestringrequired
Always Feature.
identity IDrequired
type:key. The key is stable for the life of the entity.
geometryobjectrequired
A GeoJSON geometry.
propertiesobjectrequired
Type-specific properties such as designators and length_m for runways.
Child attributes
feature_typeenumrequired
One of runway, taxiway, apron, stand, area.
statusenumrequired
One of open, closed, restricted.

304 The airfield has not changed since the version in If-None-Match.

curl -G https://api.surfacelens.app/v1/airports/VTBS/airfield \
  -H "Authorization: Bearer $SURFACELENS_KEY" \
  -d feature_types=runway,stand
const res = await fetch("https://api.surfacelens.app/v1/airports/VTBS/airfield?feature_types=runway,stand", {
  headers: { Authorization: `Bearer ${process.env.SURFACELENS_KEY}` },
});
if (!res.ok) throw new Error(`${res.status} ${await res.text()}`);
const airfield = await res.json();
import httpx, os

res = httpx.get(
    "https://api.surfacelens.app/v1/airports/VTBS/airfield",
    params={
        "feature_types": "runway,stand",
    },
    headers={"Authorization": f"Bearer {os.environ['SURFACELENS_KEY']}"},
)
res.raise_for_status()
airfield = res.json()

Response200

{
  "type": "FeatureCollection",
  "airport": "VTBS",
  "version": "2026-10-30.2",
  "at": "2026-11-23T02:58:41Z",
  "features": [
    {
      "type": "Feature",
      "id": "runway:02R-20L",
      "geometry": {
        "type": "LineString",
        "coordinates": [
          [
            100.73897,
            13.67185
          ],
          [
            100.74912,
            13.70501
          ]
        ]
      },
      "properties": {
        "feature_type": "runway",
        "designators": [
          "02R",
          "20L"
        ],
        "length_m": 3700,
        "width_m": 60,
        "status": "open"
      }
    },
    {
      "type": "Feature",
      "id": "stand:C2",
      "geometry": {
        "type": "Point",
        "coordinates": [
          100.75388,
          13.69214
        ]
      },
      "properties": {
        "feature_type": "stand",
        "name": "C2",
        "contact": true,
        "max_wingspan_m": 65,
        "status": "open"
      }
    }
  ]
}