# Find a station and read its latest observation

Tideglass is a fictional API. The URLs and responses in this guide are illustrative.

## 1. Find a station

Filter the station catalog by coastline. The `data` array contains station IDs and names.

~~~sh
curl 'https://api.tideglass.example/v1/stations?coast=north&limit=1'
~~~

Use the returned `id`, such as `saltmere-pier`, in the observations path.

## 2. Read an observation

Results are newest first. Use `since` to include measurements at or after a UTC timestamp.

~~~sh
curl 'https://api.tideglass.example/v1/stations/saltmere-pier/observations?since=2026-06-18T00:00:00Z&limit=1'
~~~

Each record has an `observed_at` timestamp, water level in meters above
local chart datum, and water temperature in degrees Celsius.

## 3. Follow the cursor

If `next_cursor` is present and non-null, send it as `cursor` with the
same endpoint and filters. A null cursor marks the last page.

An invalid query returns `400`. An unknown station returns `404` with
a machine-readable `code` and a human-readable `message`.
