Developer reference

WorldTides API Documentation

Use a single HTTPS endpoint to request tide heights, extremes, datums, station lists, tide plots, and timezone-aware local dates for locations worldwide.

Quick start

Request tide data by latitude and longitude

The API accepts GET or POST requests over HTTPS. Most integrations start with a location, an API key, and one or more requested data types such as heights, extremes, datums, or stations.

https://www.worldtides.info/api/v3?heights&extremes&date=2026-11-29&days=3&lat=33.768321&lon=-118.195617&key=YOUR_API_KEY
Access

Authentication

Every request requires an API key. You can create one by registering, and signed-in users can reset their key from the settings page if it is ever exposed.

Endpoint

https://www.worldtides.info/api/v3

Transport

Use HTTPS for production requests. HTTP is still documented for legacy clients, but HTTPS is preferred.

Billing

Credits per API request

API requests for one data type with default parameters typically cost 1 credit. A single request can return multiple data types or longer time intervals, which may increase the credit cost.

NameDescription
heights1 credit for every 7 days of data at 30 minute intervals.
extremes1 credit for every 7 days of data.
datums1 credit when all datums are returned.
plot1 additional credit.
stations1 credit for stationDistance up to 500 km, 2 credits up to 5000 km, and 3 credits above 5000 km.

Use the Credit Calculator for detailed estimates. Each API request may only be used for a single user except where the license explicitly allows otherwise.

Account API

Balance and expected renewal

Use your existing tide API key to retrieve available subscription or trial credits, prepaid credits and expected renewal information. This read-only request costs no credits and works at zero balance for active accounts.

https://www.worldtides.info/api/account/v1?key=YOUR_API_KEY

GET and POST are supported over HTTPS. Send key as a query parameter or form field, or use Authorization: Bearer YOUR_API_KEY. One successful request is allowed per account per rolling hour; HTTP 429 includes a Retry-After header.

Sample response

These are illustrative values. All dates are in UTC.

{
  "status": 200,
  "asOf": "2026-11-16T12:00:00Z",
  "credits": {
    "available": 1500,
    "subscription": 1000,
    "prepaid": 500,
    "expiresOn": "2026-12-01"
  },
  "subscription": {
    "productId": "worldtides_subscription_50000",
    "interval": "month",
    "creditsPerPeriod": 50000,
    "renewalStatus": "expected",
    "renewalDate": "2026-11-26"
  }
}

Response fields

NameDescription
statusHTTP-style response status. A successful response has status 200; failed requests return an error instead of account data.
asOfUTC time when the account information was evaluated, in ISO 8601 format. The trailing Z means UTC.
creditsObject containing available credit balances and the subscription or trial expiration date.
credits.availableTotal credits currently available for tide requests. Includes eligible subscription or trial credits and prepaid credits, accounts for signed adjustments, and cannot be negative.
credits.subscriptionRemaining eligible subscription or trial credits. Expired positive balances count as zero. Any existing negative adjustment remains signed.
credits.prepaidRemaining prepaid credits, including any signed adjustment. These do not expire when subscription or trial coverage ends.
credits.expiresOnExpiration of subscription or trial coverage as YYYY-MM-DD, or null if no valid date is known. Coverage ends at midnight UTC at the start of that date. The date can be in the past.
subscriptionObject describing the recognized subscription plan and its expected renewal.
subscription.productIdSubscription product identifier, such as worldtides_subscription_50000. Null for a trial, a cleared or canceled subscription, or an unrecognized plan.
subscription.intervalBilling interval: month or year. Website subscriptions use month. Null when no recognized subscription is set.
subscription.creditsPerPeriodNumber of credits allocated per subscription billing period. Null when no recognized subscription is set.
subscription.renewalStatusRenewal state: expected, overdue, expired, not_scheduled or unknown. See the status descriptions below.
subscription.renewalDateExpected renewal payment date as YYYY-MM-DD, inferred from unexpired subscription coverage with its five grace days removed. Null when renewal is not scheduled or cannot be inferred.
errorPresent only in an error response, alongside status. Describes why the request failed; account data is omitted.

Renewal status

NameDescription
expectedA recognized subscription has unexpired coverage and its expected renewal date has not passed.
overdueThe expected renewal date has passed, but coverage remains valid within its grace period.
expiredA recognized automatic subscription has reached its coverage expiration date.
not_scheduledNo subscription type is set, including trials and cleared or canceled subscriptions, or coverage is an internal or complementary grant.
unknownThe stored subscription type or coverage date cannot be interpreted.

The renewal date is inferred from stored payment information; it is not a live billing-provider schedule or a guarantee of another charge. A canceled subscription can still have eligible credits until its coverage expires.

Request

Parameters

All requests should target v3. Parameters without values, such as heights or extremes, can be included as query flags.

NameDescription
keyYour WorldTides API key. This is required for all API calls.
latLatitude in decimal degrees for the requested location.
lonLongitude in decimal degrees for the requested location.
date v2+Start date in YYYY-MM-DD format. You may also pass today to use the current date at the requested location.
days v2+Number of calendar days to retrieve for heights, extremes, or a plot. Plot requests must use 1 to 7 days.
heightsReturn tide heights. By default, heights cover 6 hours ago through 42 hours ahead at 30 minute intervals. Use date, days, start, length, and step to customize this.
extremesReturn low and high tide events. By default, extremes cover 6 hours ago through 42 hours ahead.
datumReturn heights and extremes relative to the requested datum. The default is MSL, but CD is recommended for many charting and navigation use cases. See the datums page.
datumsReturn available vertical reference datums for the requested location.
localtime v2+Return dates in ISO 8601 format with the local timezone offset. This also returns the timezone field.
timezone v2+Return the location timezone, for example America/Los_Angeles. v3 improves global timezone polygon mapping and Etc/GMT signs.
plot v2+Use with heights to return a base64 encoded PNG plot. Optional plot parameters include units, timemode, width, height, font, grid, color, background, and points.
points v2+Use with plot to return cursor-friendly plot points containing x, y, dt, and height values.
start*Unix timestamp for the start of the interval. Prefer date for calendar-day requests because date starts at local midnight and handles daylight saving transitions.
length*Interval length in seconds. Prefer days for full local calendar days, especially across daylight saving changes.
stepStep size in seconds for heights. Defaults to 1800 seconds. Must be at least 60 seconds.
stationDistanceMaximum station search distance in kilometers. Set to 0 to use only global background data. The account default can be changed in settings.
stationsReturn nearby tide stations within stationDistance kilometers. Requires lat and lon. This specific API call may be shared to multiple users under the license terms.
Response

JSON response fields

Responses are UTF-8 encoded JSON objects. Returned fields depend on the request, and additional fields may be added in the future.

NameDescription
statusHTTP-style status code. 200 indicates success.
errorStable error string returned when status is not 200. Treat these strings as error identifiers.
requestDatumDatum requested by the client.
responseDatumDatum actually used for returned values. This may differ when the requested datum is invalid or unavailable at the location.
requestLat / requestLonLatitude and longitude from the request.
responseLat / responseLonLatitude and longitude of the actual prediction point or station used.
callCountNumber of credits used by this request.
atlasDataset used for the tide calculation.
stationStation name when the response is based on a tide gauge.
copyrightRequired copyright attribution for the returned tidal information. Per the terms of service, this must be reproduced in any app or website using the data.
timezone v2+Timezone name returned when timezone or localtime is requested.
plot v2+Base64 encoded PNG data, for example data:image/png;base64,iVBORw0KGg....
points v2+Array of plot point values useful for interactive cursor behavior.
stationsArray of stations. Each station includes id, name, lat, lon, and timezone.
heightsArray of tide heights referenced to responseDatum. Each value includes dt, date, and height in meters.
extremesArray of low and high tide events referenced to responseDatum. Each value includes dt, date, height in meters, and type.
datumsArray of tidal datums. Each value includes name and height relative to responseDatum.
Examples

Common requests

LAT with datums

Get extremes referenced to Lowest Astronomical Tide and return datum offsets.

https://www.worldtides.info/api/v3?datum=LAT&datums&extremes&lat=33.768321&lon=-118.195617&key=YOUR_API_KEY
Version history

Change log

VersionChanges
v1Initial API release.
v2Added date, days, localtime, plot, and timezone request parameters plus plot, points, and timezone response fields.
v3Released December 26, 2021. Improved timezone responses and corrected the sign of Etc/GMT timezone responses.
Code examples

Code examples

See WorldTides API examples for short client implementations and platform examples in Swift, Kotlin, cURL, Python, PHP, Node.js, JavaScript, WordPress, Home Assistant, C#, R, and Go.