Open Waters Currents API

The Currents API from Open Waters — 11 operation(s) for currents.

GitHub OpenAPI

Operations 11

GET /currents API information #
GET /currents/openapi.json Get OpenAPI specification #
GET /currents/events Get current events for a location #
GET /currents/timeline Get current speed timeline for a location #
GET /currents/stations Find current stations #
GET /currents/stations/{source}/{id} Get current station by ID #
GET /currents/stations/{id} Get current station by ID #
GET /currents/stations/{source}/{id}/events Get current events for a specific station #
GET /currents/stations/{id}/events Get current events for a specific station #
GET /currents/stations/{source}/{id}/timeline Get current speed timeline for a specific station #
GET /currents/stations/{id}/timeline Get current speed timeline for a specific station #

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-currents-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-currents-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Open Waters Currents 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: Currents
paths:
  /currents:
    get:
      operationId: getCurrents
      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:
      - Currents
  /currents/openapi.json:
    get:
      operationId: getCurrentsOpenapi
      summary: Get OpenAPI specification
      responses:
        '200':
          description: OpenAPI specification
          content:
            application/json:
              schema:
                type: object
      tags:
      - Currents
  /currents/events:
    get:
      operationId: getCurrentsEvents
      description: Returns slack water, maximum flood, and maximum ebb between start and end for the nearest current station, skipping stations with no model. When that station's source forbids redistributing its predictions the request is refused with 451 rather than answered from a station farther away. end must be within 366 days of start.
      summary: Get current events for a location
      parameters:
      - $ref: '#/components/parameters/latitude'
      - $ref: '#/components/parameters/longitude'
      - $ref: '#/components/parameters/start'
      - $ref: '#/components/parameters/end'
      responses:
        '200':
          description: Successful prediction
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CurrentEventsResponse'
        '400':
          description: Invalid parameters
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '451':
          description: The nearest current station's source does not allow its predictions to be redistributed
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      tags:
      - Currents
  /currents/timeline:
    get:
      operationId: getCurrentsTimeline
      description: Returns signed major-axis speed, magnitude, and direction when known every 10 minutes for the nearest current station, skipping stations with no model and refused with 451 when that station's source forbids redistributing its predictions. end must be within 366 days of start.
      summary: Get current speed timeline for a location
      parameters:
      - $ref: '#/components/parameters/latitude'
      - $ref: '#/components/parameters/longitude'
      - $ref: '#/components/parameters/start'
      - $ref: '#/components/parameters/end'
      responses:
        '200':
          description: Successful prediction
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CurrentTimelineResponse'
        '400':
          description: Invalid parameters
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '451':
          description: The nearest current station's source does not allow its predictions to be redistributed
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      tags:
      - Currents
  /currents/stations:
    get:
      operationId: getCurrentsStations
      description: 'Search current stations by name/ID, find them near the given coordinates, or list all. Each station appears once, at its primary bin, with its other bins listed in `bins`. Stations whose predictions can''t be served are included with `predictions: false`.'
      summary: Find current 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: Current stations found
          content:
            application/json:
              schema:
                anyOf:
                - type: array
                  items:
                    $ref: '#/components/schemas/CurrentStation'
                - type: array
                  items:
                    $ref: '#/components/schemas/CurrentStationSummary'
        '400':
          description: Invalid parameters
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      tags:
      - Currents
  /currents/stations/{source}/{id}:
    get:
      operationId: getCurrentsStationsBySourceAndId
      description: Find a current station by its ID. An ID without a bin is the station's primary bin; append `@N` for bin N.
      summary: Get current station by ID
      parameters:
      - $ref: '#/components/parameters/stationSource'
      - $ref: '#/components/parameters/currentStationId'
      responses:
        '200':
          description: Station found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CurrentStation'
        '404':
          description: Station or bin not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      tags:
      - Currents
  /currents/stations/{id}:
    get:
      operationId: getCurrentsStationsById
      description: Find a current station by its ID. An ID without a bin is the station's primary bin; append `@N` for bin N.
      summary: Get current station by ID
      parameters:
      - $ref: '#/components/parameters/unprefixedCurrentStationId'
      responses:
        '200':
          description: Station found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CurrentStation'
        '404':
          description: Station or bin not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      tags:
      - Currents
  /currents/stations/{source}/{id}/events:
    get:
      operationId: getCurrentsStationsBySourceAndIdEvents
      summary: Get current events for a specific station
      parameters:
      - $ref: '#/components/parameters/stationSource'
      - $ref: '#/components/parameters/currentStationId'
      - $ref: '#/components/parameters/start'
      - $ref: '#/components/parameters/end'
      responses:
        '200':
          description: Successful prediction
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CurrentEventsResponse'
        '400':
          description: Invalid parameters
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Station or bin not found, or the station has no model to predict from
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '451':
          description: The station's source does not allow its predictions to be redistributed
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      tags:
      - Currents
  /currents/stations/{id}/events:
    get:
      operationId: getCurrentsStationsByIdEvents
      summary: Get current events for a specific station
      parameters:
      - $ref: '#/components/parameters/unprefixedCurrentStationId'
      - $ref: '#/components/parameters/start'
      - $ref: '#/components/parameters/end'
      responses:
        '200':
          description: Successful prediction
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CurrentEventsResponse'
        '400':
          description: Invalid parameters
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Station or bin not found, or the station has no model to predict from
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '451':
          description: The station's source does not allow its predictions to be redistributed
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      tags:
      - Currents
  /currents/stations/{source}/{id}/timeline:
    get:
      operationId: getCurrentsStationsBySourceAndIdTimeline
      summary: Get current speed timeline for a specific station
      parameters:
      - $ref: '#/components/parameters/stationSource'
      - $ref: '#/components/parameters/currentStationId'
      - $ref: '#/components/parameters/start'
      - $ref: '#/components/parameters/end'
      responses:
        '200':
          description: Successful prediction
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CurrentTimelineResponse'
        '400':
          description: Invalid parameters
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Station or bin not found, or the station has no model to predict from
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '451':
          description: The station's source does not allow its predictions to be redistributed
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      tags:
      - Currents
  /currents/stations/{id}/timeline:
    get:
      operationId: getCurrentsStationsByIdTimeline
      summary: Get current speed timeline for a specific station
      parameters:
      - $ref: '#/components/parameters/unprefixedCurrentStationId'
      - $ref: '#/components/parameters/start'
      - $ref: '#/components/parameters/end'
      responses:
        '200':
          description: Successful prediction
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CurrentTimelineResponse'
        '400':
          description: Invalid parameters
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Station or bin not found, or the station has no model to predict from
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '451':
          description: The station's source does not allow its predictions to be redistributed
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      tags:
      - Currents
components:
  schemas:
    CurrentPredictionResponse:
      type: object
      properties:
        units:
          type: string
          enum:
          - knots
        floodDirection:
          type: number
          description: Degrees true, when the station has one
        ebbDirection:
          type: number
          description: Degrees true, when the station has one
        station:
          $ref: '#/components/schemas/CurrentStation'
        distance:
          type: number
          description: Distance from the query point in kilometers (location queries only)
      required:
      - units
      - station
    CurrentTimelineResponse:
      allOf:
      - $ref: '#/components/schemas/CurrentPredictionResponse'
      - type: object
        properties:
          timeline:
            type: array
            items:
              $ref: '#/components/schemas/CurrentTimelineEntry'
        required:
        - timeline
    CurrentBin:
      type: object
      properties:
        id:
          type: string
          description: Station ID for this bin
        bin:
          type: integer
          description: Bin number; absent for the primary bin, which the bare station ID selects
      required:
      - id
    CurrentAvailability:
      type: object
      properties:
        bins:
          type: array
          description: Every depth bin of this station, primary first
          items:
            $ref: '#/components/schemas/CurrentBin'
        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:
      - bins
      - predictions
    CurrentTimelineEntry:
      type: object
      properties:
        time:
          type: string
          format: date-time
        hour:
          type: number
          description: Hours since the first sample
        speed:
          type: number
          description: 'Signed knots along the flood axis: positive flood, negative ebb'
        magnitude:
          type: number
          minimum: 0
          description: Current magnitude in knots; absolute speed without minor-axis data
        direction:
          type: number
          minimum: 0
          description: Vector bearing in degrees true when minor-axis data is available; otherwise the published flood or ebb bearing. Absent at zero magnitude or when unknown.
          exclusiveMaximum: 360
      required:
      - time
      - speed
    CurrentStationSummary:
      allOf:
      - $ref: '#/components/schemas/StationSummary'
      - $ref: '#/components/schemas/CurrentAvailability'
    CurrentEvent:
      type: object
      properties:
        time:
          type: string
          format: date-time
        speed:
          type: number
          description: 'Signed knots along the flood axis: positive flood, negative ebb. Slack carries the near-zero residual.'
        kind:
          type: string
          enum:
          - slack
          - maxFlood
          - maxEbb
        direction:
          type: number
          description: Flood or ebb direction in degrees true; absent for slack and when the station has none
      required:
      - time
      - speed
      - kind
    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'
    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
    CurrentEventsResponse:
      allOf:
      - $ref: '#/components/schemas/CurrentPredictionResponse'
      - type: object
        properties:
          events:
            type: array
            items:
              $ref: '#/components/schemas/CurrentEvent'
        required:
        - events
    StationAttribution:
      type: string
      description: The credit to display wherever the station's data is shown
    CurrentStation:
      allOf:
      - $ref: '#/components/schemas/Station'
      - $ref: '#/components/schemas/CurrentAvailability'
      - type: object
        properties:
          kind:
            type: string
            enum:
            - current
          current:
            type: object
            properties:
              flood_direction:
                type: number
                description: Degrees true
              ebb_direction:
                type: number
                description: Degrees true
              mean_flow:
                type: number
                description: Knots
              minor_constituents:
                type: array
                description: Minor-axis amplitudes in knots and phases in degrees
                items:
                  type: object
                  properties:
                    name:
                      type: string
                    amplitude:
                      type: number
                    phase:
                      type: number
              minor_mean_flow:
                type: number
                description: Minor-axis mean flow in knots
              azimuth:
                type: number
                description: Major-axis azimuth in degrees true
              offsets:
                type: object
                description: Subordinate stations only. Times in minutes, ratios dimensionless.
                properties:
                  reference:
                    type: string
                  slack_before_flood:
                    type: number
                  slack_before_ebb:
                    type: number
                  flood_time:
                    type: number
                  ebb_time:
                    type: number
                  flood_speed_ratio:
                    type: number
                  ebb_speed_ratio:
                    type: number
    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
  parameters:
    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
    currentStationId:
      name: id
      in: path
      required: true
      description: Current station ID within the source, optionally with a depth bin (e.g. 'EPT0003' for the primary bin, 'EPT0003@11' for bin 11)
      schema:
        type: string
    optionalLatitude:
      name: latitude
      in: query
      description: Latitude for proximity search
      required: false
      schema:
        type: number
        minimum: -90
        maximum: 90
    unprefixedCurrentStationId:
      name: id
      in: path
      required: true
      description: Current station ID with no source prefix (e.g. 'chs-active-pass')
      schema:
        type: string
    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
    optionalLongitude:
      name: longitude
      in: query
      description: Longitude for proximity search
      required: false
      schema:
        type: number
        minimum: -180
        maximum: 180
    stationSource:
      name: source
      in: path
      required: true
      description: Station source (e.g., 'noaa', 'ticon')
      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.]+$
    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
externalDocs:
  url: https://openwaters.io/api/