Lighthouse Lights API
A free, read-only web API. It decodes lighthouse light codes such as Fl(2) W 15s into exact on/off timings, and it finds real lights from the U.S. Coast Guard and NGA lists. It needs no key or sign-up.
Base URL
Version 1
GET only
No key
Not for navigation. Every answer says so. Timings marked typical are standard defaults for a code, not measurements of a real light.
Three requests. Copy, paste, run.
Decode a light code
Turns a code into its meaning, canonical form and on/off timeline.
curl
curl "/v1/characteristics/parse?code=Fl(2)%20W%2015s"
Response · 200
{
"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 timeline.
curl
curl "/v1/lights?q=cape%20hatteras&limit=1&include=timeline"
Response · 200
{
"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." }
}
Find lights near a position
Lights within a radius, nearest first, with distance in nautical miles.
curl
curl "/v1/lights/nearby?lat=35.25&lon=-75.53&radius_nm=5"
Response · 200
{
"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." }
}