Reference
Seven endpoints, all GET. Every example uses the base URL on the Overview page.
Not for navigation. Every answer says so. Timings marked typical are standard defaults for a code, not measurements of a real light.
Concepts
The characteristic
A light's pattern, written as a code. Fl(2) W 15s means flashing, two flashes in each group, white, repeating every 15 seconds. The parts are Fl (flashing), (2) (two flashes per group), W (white) and 15s (the period).
Timeline
timeline lists the lit parts of one cycle as start and end times in seconds. A steady light has one segment with steady: true and both times set to 0. A timeline segment has color: null when a light shows more than one colour.
Timing basis
source means the flash times come from the source record. typical means standard defaults for the code. Every decoded code is typical, because a code gives only the period.
Radio signals
kind: "radio_signal" marks a racon or Morse identity. These are searchable, but they have no lamp pattern, so characteristic.status is not_animated.
Height and rapid flashing
Height is given only for U.S. records, in feet. NGA records have no height in this version. rapid_flash is true above three flashes a second. Check a pattern before animating it for people who are sensitive to flashing. For example, UQ W decodes to 4 flashes a second, so its answer has "rapid_flash": true.
Search
Search is best match first, and typo tolerance applies to words of four or more letters. Use the full name, such as cape hatteras.
Decode a light code
Turns one code into its meaning, its canonical form, its timings and any warnings.
Parameters
| Name | Type | Required | Allowed range |
|---|---|---|---|
code | string | Required | 1 to 64 characters, such as Fl(2) W 15s |
Example request
curl "/v1/characteristics/parse?code=Fl(2)%20W%2015s"
Example response
{
"data": {
"input": "Fl(2) W 15s",
"canonical": "Fl(2) W 15s",
"rhythm": "Fl",
"groups": [2],
"colors": ["W"],
"period_seconds": 15,
"timing_basis": "typical",
"explanation": "A flashing light. It repeats two flashes in each group. ...",
"timeline": {
"period_seconds": 15,
"segments": [
{ "start": 0, "end": 0.5, "color": "W", "level": 1 },
{ "start": 1.5, "end": 2, "color": "W", "level": 1 }
]
},
"max_flashes_per_second": 1,
"rapid_flash": false,
"warnings": []
},
"meta": { "api_version": "1", "data_version": "2026-10-28", "notice": "Not for navigation." }
}
Search lights by name
Finds lights by name, best match first. Add include=timeline to get each light's timing segments.
Parameters
| Name | Type | Required | Default | Allowed range |
|---|---|---|---|---|
q | string | Required | — | 2 to 64 characters |
limit | integer | Optional | 10 | 1 to 50 |
include | string | Optional | — | timeline |
Example request
curl "/v1/lights?q=cape%20hatteras&limit=1&include=timeline"
Example response
{
"data": [
{
"id": "US625-100116431105",
"name": "Cape Hatteras Light",
"kind": "light",
"position": { "lat": 35.2505, "lon": -75.5288 },
"region": { "state": "NC" },
"major": true,
"nominal_range_nm": 14,
"height": { "value": 192, "unit": "ft" },
"characteristic": { "code": "Fl W 7.5s", "status": "parsed", "timing_basis": "typical" },
"source": { "id": "uscg", "name": "U.S. Coast Guard Light List", "retrieved": "2026-10-28" },
"timeline": { "period_seconds": 7.5, "segments": [{ "start": 0, "end": 1, "color": "W", "level": 1 }] }
}
],
"meta": { "api_version": "1", "data_version": "2026-10-28", "notice": "Not for navigation." }
}
Get one light
One light by the ID that search returns. Add include=timeline for its timing segments.
Parameters
| Name | Type | Required | Allowed range |
|---|---|---|---|
id (path) | string | Required | Up to 64 characters |
include | string | Optional | timeline |
Example request
curl "/v1/lights/US625-100116431105"
Find lights near a position
Lights within a radius, nearest first, with the distance in nautical miles.
Parameters
| Name | Type | Required | Default | Allowed range |
|---|---|---|---|---|
lat | number | Required | — | -90 to 90 |
lon | number | Required | — | -180 to 180 |
radius_nm | number | Optional | 10 | 1 to 100 |
limit | integer | Optional | 10 | 1 to 50 |
Example request
curl "/v1/lights/nearby?lat=35.25&lon=-75.53&radius_nm=5"
Example response
{
"data": [
{
"id": "US625-100116431105",
"name": "Cape Hatteras Light",
"kind": "light",
"characteristic": { "code": "Fl W 7.5s", "status": "parsed", "timing_basis": "typical" },
"source": { "id": "uscg", "name": "U.S. Coast Guard Light List", "retrieved": "2026-10-28" },
"distance_nm": 0.07
}
],
"meta": { "api_version": "1", "data_version": "2026-10-28", "notice": "Not for navigation." }
}
Data sources
The two source lists, their licences, retrieval dates and record counts. The same details are on the Errors, limits and notes page.
Example request
curl "/v1/sources"
Service status
Returns the service status.
Example request
curl "/v1/health"
The contract
The machine-readable OpenAPI description of every endpoint on this page.
Example request
curl "/v1/openapi.json"