On this page
Tides API
Tide predictions from harmonic constituents, powered by the open source Slackwater engine. Open and free, no authentication required, and described by an OpenAPI specification. Browse tide stations at slackwater.xyz or in the Slackwater app.
Getting Started
Authentication
The tides API is open and does not require authentication.
User-Agent
All requests require a valid User-Agent header that names your app, version, and a URL or email address, such as my-app/1.2 (you@example.org). See the User-Agent policy.
Rate Limits
- 100 requests per minute per IP address
- 10,000 requests per day per IP address
If you need higher limits for a production application, please contact us.
Error Handling
Errors are returned with appropriate HTTP status codes and a JSON body:
{
"message": "Invalid parameters",
"errors": [
{
"path": "/latitude",
"message": "must be between -90 and 90",
"errorCode": "INVALID_NUMBER"
}
]
}API information
Get extremes prediction for a location
Returns high and low tide predictions for the nearest station to the given coordinates
Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| latitude | query | number | ✓ | Latitude |
| longitude | query | number | ✓ | Longitude |
| start | query | string | — | Start date/time (ISO 8601 format, defaults to now) |
| end | query | string | — | End date/time (ISO 8601 format, defaults to 7 days from start) |
| datum | query | string | — | Vertical datum (defaults to station's chart datum) |
| units | query | string | — | Units for water levels (defaults to meters) |
Get timeline prediction for a location
Returns water level predictions at regular intervals for the nearest station
Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| latitude | query | number | ✓ | Latitude |
| longitude | query | number | ✓ | Longitude |
| start | query | string | — | Start date/time (ISO 8601 format, defaults to now) |
| end | query | string | — | End date/time (ISO 8601 format, defaults to 7 days from start) |
| datum | query | string | — | Vertical datum (defaults to station's chart datum) |
| units | query | string | — | Units for water levels (defaults to meters) |
Get station by unprefixed ID
Find a station whose ID has no source prefix (the curated CHS records). These carry identity only, with predictions: false.
Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| id | path | string | ✓ | Station ID with no source prefix (e.g. 'chs-campbell-river') |
Get station by ID
Find a tide station by source and ID. Redundant IDs resolve to accepted replacement models that preserve commercial-use permission; the response carries the replacement's canonical ID, license and attribution.
Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| source | path | string | ✓ | Station source (e.g., 'noaa', 'ticon') |
| id | path | string | ✓ | Station ID within the source (e.g., '8722588', 'some-dash-string') |
Find stations
Search stations by name/ID, find stations near the given coordinates, or list all stations when no filters are provided. Tide listings include only stations with a prediction model; identity-only stations can be looked up directly.
Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| query | query | string | — | Full-text search query (name, ID, or location) |
| latitude | query | number | — | Latitude for proximity search |
| longitude | query | number | — | Longitude for proximity search |
| maxResults | query | integer | — | Maximum number of stations to return |
| maxDistance | query | number | — | Maximum search radius for proximity search, in kilometers |
| bbox | query | string | — | Bounding box in GeoJSON order: minLon,minLat,maxLon,maxLat (longitude first). Longitudes must be within -180..180, latitudes within -90..90, and minLat <= maxLat. minLon > maxLon denotes an antimeridian crossing. |
Get extremes prediction for a specific station
Return extremes for the resolved station. A redundant ID may resolve to an accepted replacement; the response station ID and datum describe that record and its height reference.
Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| source | path | string | ✓ | Station source (e.g., 'noaa', 'ticon') |
| id | path | string | ✓ | Station ID within the source (e.g., '8722588', 'some-dash-string') |
| start | query | string | — | Start date/time (ISO 8601 format, defaults to now) |
| end | query | string | — | End date/time (ISO 8601 format, defaults to 7 days from start) |
| datum | query | string | — | Vertical datum (defaults to station's chart datum) |
| units | query | string | — | Units for water levels (defaults to meters) |
Get timeline prediction for a specific station
Return samples for the resolved station. A redundant ID may resolve to an accepted replacement; the response station ID and datum describe that record and its height reference.
Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| source | path | string | ✓ | Station source (e.g., 'noaa', 'ticon') |
| id | path | string | ✓ | Station ID within the source (e.g., '8722588', 'some-dash-string') |
| start | query | string | — | Start date/time (ISO 8601 format, defaults to now) |
| end | query | string | — | End date/time (ISO 8601 format, defaults to 7 days from start) |
| datum | query | string | — | Vertical datum (defaults to station's chart datum) |
| units | query | string | — | Units for water levels (defaults to meters) |
Get OpenAPI specification