Language selection

Search

The Web Data Services for both observations and predictions are no longer available through the tides.gc.ca website

Effective May 3rd, 2021: The Web Data Services for both observations and predictions are no longer available through this site and are now accessible through a Canadian Hydrographic Service API at: https://api-iwls.dfo-mpo.gc.ca/swagger-ui.html using Microsoft Edge or Google Chrome.

Send your feedback about our new tools to chsinfo@dfo-mpo.gc.ca.

APPENDIX A - REST API

Here are some instructions:

  1. https://api-iwls.dfo-mpo.gc.ca/swagger-ui.html
  2. Find the identifiers (ID) of your stations of interest :

    https://api-iwls.dfo-mpo.gc.ca/api/v1/stations

    (e.g. the ID of the Old Quebec station is "5cebf1e23d0f4a073c4bc0f6")

  3. Obtain the water level data using the following query :

    https://api-iwls.dfo-mpo.gc.ca/api/v1/stations/5cebf1e23d0f4a073c4bc0f6/data?time-series-code=wlo&from=2021-05-01T00%3A00%3A00Z&to=2021-05-01T12%3A00%3A00Z

    1. Replace the station ID "5cebf1e23d0f4a073c4bc0f6" with that of your station of interest ;

    2. Change the value of the "Time-series-code" parameter to use either :

      wlo - Observed water level

      wlf or wlf-spine - predicted water levels (at operational stations only)

      wlp - Predicted water levels

      wlp-hilo - High and low sea predictions (Tide tables)

    3. Adjust the "From" and "To" date parameters using the ISO 8061 UTC format

Date modified: