Open Waters Tides API

The Tides API from Open Waters — 9 operation(s) for tides.

GitHub OpenAPI

Operations 9

GET /tides API information #
GET /tides/extremes Get extremes prediction for a location #
GET /tides/timeline Get timeline prediction for a location #
GET /tides/stations/{id} Get station by unprefixed ID #
GET /tides/stations/{source}/{id} Get station by ID #
GET /tides/stations Find stations #
GET /tides/stations/{source}/{id}/extremes Get extremes prediction for a specific station #
GET /tides/stations/{source}/{id}/timeline Get timeline prediction for a specific station #
GET /tides/openapi.json Get OpenAPI specification #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/openwaters-io:openwaters-io-tides-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

openwaters-io-tides-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Open Waters Tides API
  version: 1.0.0-beta.6
  description: Tide predictions under /tides and tidal current predictions under /currents, from harmonic constituents. The AIS API is described separately at https://ais.openwaters.io/openapi.json. 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 https://openwaters.io/api/user-agent/.
  license:
    name: MIT
servers:
- url: https://api.openwaters.io
security: []
tags:
- name: Tides
paths:
  /tides:
    get:
      operationId: getTides
      summary: API information
      responses:
        '200':
          description: API information
          content:
            application/json:
              schema:
                type: object
                properties:
                  name:
                    type: string
                  version:
                    type: string
                  docs:
                    type: string
      tags:
      - Tides
  /tides/extremes:
    get:
      operationId: getTidesExtremes
      description: Returns high and low tide predictions for the nearest station to the given coordinates
      summary: Get extremes prediction for a location
      parameters:
      - $ref: '#/components/parameters/latitude'
      - $ref: '#/components/parameters/longitude'
      - $ref: '#/components/parameters/start'
      - $ref: '#/components/parameters/end'
      - $ref: '#/components/parameters/datum'
      - $ref: '#/components/parameters/units'
      responses:
        '200':
          description: Successful prediction
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExtremesResponse'
        '400':
          description: Invalid parameters
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      tags:
      - Tides
  /tides/timeline:
    get:
      operationId: getTidesTimeline
      description: Returns water level predictions at regular intervals for the nearest station
      summary: Get timeline prediction for a location
      parameters:
      - $ref: '#/components/parameters/latitude'
      - $ref: '#/components/parameters/longitude'
      - $ref: '#/components/parameters/start'
      - $ref: '#/components/parameters/end'
      - $ref: '#/components/parameters/datum'
      - $ref: '#/components/parameters/units'
      responses:
        '200':
          description: Successful prediction
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TimelineResponse'
        '400':
          description: Invalid parameters
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      tags:
      - Tides
  /tides/stations/{id}:
    get:
      operationId: getTidesStationsById
      description: 'Find a station whose ID has no source prefix (the curated CHS records). These carry identity only, with `predictions: false`.'
      summary: Get station by unprefixed ID
      parameters:
      - $ref: '#/components/parameters/unprefixedStationId'
      responses:
        '200':
          description: Station found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TideStation'
        '404':
          description: Station not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      tags:
      - Tides
  /tides/stations/{source}/{id}:
    get:
      operationId: getTidesStationsBySourceAndId
      description: 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.
      summary: Get station by ID
      parameters:
      - $ref: '#/components/parameters/stationSource'
      - $ref: '#/components/parameters/stationId'
      responses:
        '200':
          description: Station found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TideStation'
        '404':
          description: Station not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      tags:
      - Tides
  /tides/stations:
    get:
      operationId: getTidesStations
      description: 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.
      summary: Find stations
      parameters:
      - $ref: '#/components/parameters/stationQuery'
      - $ref: '#/components/parameters/optionalLatitude'
      - $ref: '#/components/parameters/optionalLongitude'
      - $ref: '#/components/parameters/maxResults'
      - $ref: '#/components/parameters/maxDistance'
      - $ref: '#/components/parameters/bbox'
      responses:
        '200':
          description: Stations found
          content:
            application/json:
              schema:
                anyOf:
                - type: array
                  items:
                    $ref: '#/components/schemas/TideStation'
                - type: array
                  items:
                    $ref: '#/components/schemas/TideStationSummary'
        '400':
          description: Invalid parameters
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      tags:
      - Tides
  /tides/stations/{source}/{id}/extremes:
    get:
      operationId: getTidesStationsBySourceAndIdExtremes
      description: 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.
      summary: Get extremes prediction for a specific station
      parameters:
      - $ref: '#/components/parameters/stationSource'
      - $ref: '#/components/parameters/stationId'
      - $ref: '#/components/parameters/start'
      - $ref: '#/components/parameters/end'
      - $ref: '#/components/parameters/datum'
      - $ref: '#/components/parameters/units'
      responses:
        '200':
          description: Successful prediction
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExtremesResponse'
        '400':
          description: Invalid parameters
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Station not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      tags:
      - Tides
  /tides/stations/{source}/{id}/timeline:
    get:
      operationId: getTidesStationsBySourceAndIdTimeline
      description: 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.
      summary: Get timeline prediction for a specific station
      parameters:
      - $ref: '#/components/parameters/stationSource'
      - $ref: '#/components/parameters/stationId'
      - $ref: '#/components/parameters/start'
      - $ref: '#/components/parameters/end'
      - $ref: '#/components/parameters/datum'
      - $ref: '#/components/parameters/units'
      responses:
        '200':
          description: Successful prediction
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TimelineResponse'
        '400':
          description: Invalid parameters
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Station not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      tags:
      - Tides
  /tides/openapi.json:
    get:
      operationId: getTidesOpenapi
      summary: Get OpenAPI specification
      responses:
        '200':
          description: OpenAPI specification
          content:
            application/json:
              schema:
                type: object
      tags:
      - Tides
components:
  parameters:
    unprefixedStationId:
      name: id
      in: path
      required: true
      description: Station ID with no source prefix (e.g. 'chs-campbell-river')
      schema:
        type: string
    datum:
      name: datum
      in: query
      required: false
      description: Vertical datum (defaults to station's chart datum)
      schema:
        type: string
        enum:
        - CD
        - CRD_OFFSET
        - DHQ
        - DLQ
        - DTL
        - GT
        - GUVD04
        - HAT
        - HWI
        - LAT
        - LLWLT
        - LWI
        - MHHW
        - MHW
        - MHWN
        - MHWS
        - MLLW
        - MLW
        - MLWN
        - MLWS
        - MN
        - MSL
        - MTL
        - NAVD88
        - NLLW
        - NMVD03
        - NN2000
        - PRVD02
        - STND
        - TLT
        - VIVD09
    start:
      name: start
      in: query
      required: false
      description: Start date/time (ISO 8601 format, defaults to now)
      schema:
        type: string
        format: date-time
    maxResults:
      name: maxResults
      in: query
      description: Maximum number of stations to return
      required: false
      schema:
        type: integer
        minimum: 1
        maximum: 100
        default: 10
    optionalLatitude:
      name: latitude
      in: query
      description: Latitude for proximity search
      required: false
      schema:
        type: number
        minimum: -90
        maximum: 90
    end:
      name: end
      in: query
      required: false
      description: End date/time (ISO 8601 format, defaults to 7 days from start)
      schema:
        type: string
        format: date-time
    maxDistance:
      name: maxDistance
      in: query
      description: Maximum search radius for proximity search, in kilometers
      required: false
      schema:
        type: number
        minimum: 0
    stationId:
      name: id
      in: path
      required: true
      description: Station ID within the source (e.g., '8722588', 'some-dash-string')
      schema:
        type: string
    bbox:
      name: bbox
      in: query
      description: '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.'
      required: false
      schema:
        type: string
        pattern: ^-?[\d.]+,-?[\d.]+,-?[\d.]+,-?[\d.]+$
    stationSource:
      name: source
      in: path
      required: true
      description: Station source (e.g., 'noaa', 'ticon')
      schema:
        type: string
    optionalLongitude:
      name: longitude
      in: query
      description: Longitude for proximity search
      required: false
      schema:
        type: number
        minimum: -180
        maximum: 180
    stationQuery:
      name: query
      in: query
      description: Full-text search query (name, ID, or location)
      required: false
      allowReserved: true
      schema:
        type: string
    longitude:
      name: longitude
      in: query
      description: Longitude
      required: true
      schema:
        type: number
        minimum: -180
        maximum: 180
    latitude:
      name: latitude
      in: query
      description: Latitude
      required: true
      schema:
        type: number
        minimum: -90
        maximum: 90
    units:
      name: units
      in: query
      required: false
      description: Units for water levels (defaults to meters)
      schema:
        type: string
        enum:
        - meters
        - feet
        default: meters
  schemas:
    TimelineEntry:
      type: object
      properties:
        time:
          type: string
          format: date-time
        level:
          type: number
      required:
      - time
      - level
    TideAvailability:
      type: object
      properties:
        predictions:
          type: boolean
          description: Whether this API can serve predictions for the station
        unavailable:
          type: string
          description: Why predictions can't be served, when `predictions` is false
      required:
      - predictions
    TideStationSummary:
      allOf:
      - $ref: '#/components/schemas/StationSummary'
      - $ref: '#/components/schemas/TideAvailability'
    TideStation:
      allOf:
      - $ref: '#/components/schemas/Station'
      - $ref: '#/components/schemas/TideAvailability'
    ExtremesResponse:
      type: object
      properties:
        datum:
          type: string
        units:
          type: string
          enum:
          - meters
          - feet
        station:
          $ref: '#/components/schemas/Station'
        distance:
          type: number
        extremes:
          type: array
          items:
            $ref: '#/components/schemas/Extreme'
    StationSummary:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        latitude:
          type: number
        longitude:
          type: number
        region:
          type: string
        country:
          type: string
        continent:
          type: string
        timezone:
          type: string
        type:
          type: string
          enum:
          - reference
          - subordinate
        license:
          $ref: '#/components/schemas/StationLicense'
        attribution:
          $ref: '#/components/schemas/StationAttribution'
    Extreme:
      type: object
      properties:
        time:
          type: string
          format: date-time
        level:
          type: number
        high:
          type: boolean
        low:
          type: boolean
        label:
          type: string
      required:
      - time
      - level
      - high
      - low
      - label
    Error:
      type: object
      properties:
        message:
          type: string
        errors:
          type: array
          items:
            type: object
            properties:
              path:
                type: string
              message:
                type: string
              errorCode:
                type: string
      required:
      - message
    Station:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        latitude:
          type: number
        longitude:
          type: number
        region:
          type: string
        country:
          type: string
        continent:
          type: string
        timezone:
          type: string
        type:
          type: string
          enum:
          - reference
          - subordinate
        source:
          type: object
          properties:
            id:
              type: string
            name:
              type: string
            url:
              type: string
        license:
          $ref: '#/components/schemas/StationLicense'
        attribution:
          $ref: '#/components/schemas/StationAttribution'
        disclaimers:
          type: string
        distance:
          type: number
          description: Distance from query point in kilometers (only for proximity searches)
        datums:
          type: object
          properties:
            CD:
              type: number
            CRD_OFFSET:
              type: number
            DHQ:
              type: number
            DLQ:
              type: number
            DTL:
              type: number
            GT:
              type: number
            GUVD04:
              type: number
            HAT:
              type: number
            HWI:
              type: number
            LAT:
              type: number
            LLWLT:
              type: number
            LWI:
              type: number
            MHHW:
              type: number
            MHW:
              type: number
            MHWN:
              type: number
            MHWS:
              type: number
            MLLW:
              type: number
            MLW:
              type: number
            MLWN:
              type: number
            MLWS:
              type: number
            MN:
              type: number
            MSL:
              type: number
            MTL:
              type: number
            NAVD88:
              type: number
            NLLW:
              type: number
            NMVD03:
              type: number
            NN2000:
              type: number
            PRVD02:
              type: number
            STND:
              type: number
            TLT:
              type: number
            VIVD09:
              type: number
          additionalProperties:
            type: number
        harmonic_constituents:
          type: array
          items:
            type: object
            properties:
              name:
                type: string
              amplitude:
                type: number
              phase:
                type: number
        defaultDatum:
          type: string
        offsets:
          type: object
          properties:
            reference:
              type: string
            height:
              type: object
              properties:
                high:
                  type: number
                low:
                  type: number
                type:
                  type: string
                  enum:
                  - ratio
                  - fixed
            time:
              type: object
              properties:
                high:
                  type: number
                low:
                  type: number
    TimelineResponse:
      type: object
      properties:
        datum:
          type: string
        units:
          type: string
          enum:
          - meters
          - feet
        station:
          $ref: '#/components/schemas/Station'
        distance:
          type: number
        timeline:
          type: array
          items:
            $ref: '#/components/schemas/TimelineEntry'
    StationAttribution:
      type: string
      description: The credit to display wherever the station's data is shown
    StationLicense:
      type: object
      description: 'The license of the station''s data. Hosts must honor `commercial_use: false` (CC BY-NC stations).'
      properties:
        type:
          type: string
        commercial_use:
          type: boolean
        url:
          type: string
        notes:
          type: string
externalDocs:
  url: https://openwaters.io/api/