Skip to content
Lighthouse Lights APIDeveloper docs · v1

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.

GET/v1/characteristics/parse?code=

Decode a light code

Turns one code into its meaning, its canonical form, its timings and any warnings.

Parameters

NameTypeRequiredAllowed range
codestringRequired1 to 64 characters, such as Fl(2) W 15s

Example request

curl
curl "/v1/characteristics/parse?code=Fl(2)%20W%2015s"

Example response

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." }
}
GET/v1/lights/{id}

Get one light

One light by the ID that search returns. Add include=timeline for its timing segments.

Parameters

NameTypeRequiredAllowed range
id (path)stringRequiredUp to 64 characters
includestringOptionaltimeline

Example request

curl
curl "/v1/lights/US625-100116431105"
GET/v1/lights/nearby?lat=&lon=

Find lights near a position

Lights within a radius, nearest first, with the distance in nautical miles.

Parameters

NameTypeRequiredDefaultAllowed range
latnumberRequired—-90 to 90
lonnumberRequired—-180 to 180
radius_nmnumberOptional101 to 100
limitintegerOptional101 to 50

Example request

curl
curl "/v1/lights/nearby?lat=35.25&lon=-75.53&radius_nm=5"

Example response

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." }
}
GET/v1/sources

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
curl "/v1/sources"
GET/v1/health

Service status

Returns the service status.

Example request

curl
curl "/v1/health"
GET/v1/openapi.json

The contract

The machine-readable OpenAPI description of every endpoint on this page.

Example request

curl
curl "/v1/openapi.json"