Language selection

Search


Notice

Due to recent time zone changes in some provinces and territories, time information may not appear in the local standard time of the station on our website. We are in the process of updating our systems to reflect these changes and appreciate your patience. Please ensure your browser is up to date.

Web Service

General Information
  • A user is expected to write a script to request data.
  • Response Codes:
    • 405 Method Not Allowed if the incorrect method is used
    • 422 Unprocessable Entity if the required parameters are missing or the values are formatted incorrectly
  • If there is no data available for the stations/parameters/time period specified, the script will return an empty file (with only the column headers).
  • All times are in UTC, unless otherwise noted below.
Real-Time Data
Real-Time Data

Technical Information

  • URL:
    https://wateroffice.ec.gc.ca/services/real_time_data/csv/inline?stations[]=&parameters[]=&start_date=&end_date=
  • Request Method: GET
  • Parameters:
    • stations[]
      • Multiple stations can be requested,
        e.g. stations[]=07EA004&stations[]=07EA005
    • parameters[]
      • See available parameters below.
      • Multiple parameters can be requested,
        e.g. parameters[]=46&parameters[]=47
    • start_date
      • In the format YYYY-MM-DD HH24:MI:SS,
        e.g. 2026-11-12 01:07:46
    • end_date
      • In the format YYYY-MM-DD HH24:MI:SS,
        e.g. 2026-11-12 01:07:46
  • File Format:
    • CSV
  • Notes:
    • If you require a large amount of data, it may be necessary to split the request into multiple requests with either a reduced amount of stations or a reduced time period.
    • If you only require the most recent data available (the latest 5 minutes), please use "Recent Real-Time Data" below.
    • Water level (daily mean values) (parameterid = 3) and Discharge (daily mean values) (parameterid = 6) are available for the past 60 months. Other parameters are available for the last 18 months.
List of Parameters
Parameter ID Parameter Name
3 Water level (daily mean values)
6 Discharge (daily mean values)
46 Water level (unit values)
47 Discharge (unit values)

Request Parameters

File Format (required)

Dates

All times are in UTC.

Link

Recent Real-Time Data

Technical Information

  • URL:
    https://wateroffice.ec.gc.ca/services/recent_real_time_data/csv/inline?stations[]=&parameters[]=
  • Request Method: GET
  • Parameters:
    • stations[]
      • Multiple stations can be requested,
        e.g. stations[]=07EA004&stations[]=07EA005
      • If this is omitted, all stations will be returned.
    • parameters[]
      • Only parameters 46 and 47 are available.
      • Multiple parameters can be requested,
        e.g. parameters[]=46&parameters[]=47
  • File Format:
    • CSV

Request Parameters

File Format (required)

Stations

Parameters (required)

Link

Current Conditions

Technical Information

  • URL:
    https://wateroffice.ec.gc.ca/services/current_conditions/xml/inline?stations[]=&lang=
  • Request Method: GET
  • Parameters:
    • stations[]
      • Multiple stations can be requested,
        e.g. stations[]=07EA004&stations[]=07EA005
      • If this is omitted, all stations will be returned.
    • lang
      • en or fr
  • File Format:
    • KML

Request Parameters

File Format (required)

Stations

Link

- GET
Historical Data
Daily Mean

Technical Information

  • URL:
    https://wateroffice.ec.gc.ca/services/daily_data/csv/inline?stations[]=&parameters[]=&start_date=&end_date=
  • Request Method: GET
  • Parameters:
    • stations[]
      • Multiple stations can be requested,
        e.g. stations[]=07EA004&stations[]=07EA005
    • parameters[]
      • level or flow
      • Multiple parameters can be requested,
        e.g. parameters[]=level&parameters[]=flow
    • start_date
      • In the format YYYY-MM-DD,
        e.g. 2026-11-12
    • end_date
      • In the format YYYY-MM-DD,
        e.g. 2026-11-12
  • File Format:
    • CSV
  • Notes:
    • If you require a large amount of data, it may be necessary to split the request into multiple requests with either a reduced amount of stations or a reduced time period.

Request Parameters

File Format (required)

Parameters (required)

Dates

Link

- GET
Monthly Mean

Technical Information

  • URL:
    https://wateroffice.ec.gc.ca/services/monthly_data/csv/inline?stations[]=&parameters[]=&start_year=&end_year=
  • Request Method: GET
  • Parameters:
    • stations[]
      • Multiple stations can be requested,
        e.g. stations[]=07EA004&stations[]=07EA005
    • parameters[]
      • level or flow
      • Multiple parameters can be requested,
        e.g. parameters[]=level&parameters[]=flow
    • start_year
      • In the format YYYY,
        e.g. 2026
    • end_year
      • In the format YYYY,
        e.g. 2026
  • File Format:
    • CSV
  • Notes:
    • If you require a large amount of data, it may be necessary to split the request into multiple requests with either a reduced amount of stations or a reduced time period.

Request Parameters

File Format (required)

Parameters (required)

Dates

Link

- GET
Annual Daily Extremes

Technical Information

  • URL:
    https://wateroffice.ec.gc.ca/services/annual_extremes/csv/inline?stations[]=&parameters[]=&start_year=&end_year=
  • Request Method: GET
  • Parameters:
    • stations[]
      • Multiple stations can be requested,
        e.g. stations[]=07EA004&stations[]=07EA005
    • parameters[]
      • level or flow
      • Multiple parameters can be requested,
        e.g. parameters[]=level&parameters[]=flow
    • start_year
      • In the format YYYY,
        e.g. 2026
    • end_year
      • In the format YYYY,
        e.g. 2026
  • File Format:
    • CSV
  • Notes:
    • If you require a large amount of data, it may be necessary to split the request into multiple requests with either a reduced amount of stations or a reduced time period.

Request Parameters

File Format (required)

Parameters (required)

Dates

Link

- GET
Annual Instantaneous Extremes

Technical Information

  • URL:
    https://wateroffice.ec.gc.ca/services/peak_data/csv/inline?stations[]=&parameters[]=&start_year=&end_year=
  • Request Method: GET
  • Parameters:
    • stations[]
      • Multiple stations can be requested,
        e.g. stations[]=07EA004&stations[]=07EA005
    • parameters[]
      • level or flow
      • Multiple parameters can be requested,
        e.g. parameters[]=level&parameters[]=flow
    • start_year
      • In the format YYYY,
        e.g. 2026
    • end_year
      • In the format YYYY,
        e.g. 2026
  • File Format:
    • CSV
  • Notes:
    • If you require a large amount of data, it may be necessary to split the request into multiple requests with either a reduced amount of stations or a reduced time period.

Request Parameters

File Format (required)

Parameters (required)

Dates

Link

- GET
Statistics
Daily Mean

Technical Information

  • URL:
    https://wateroffice.ec.gc.ca/services/daily_stats/csv/inline?stations[]=
  • Request Method: GET
  • Parameters:
    • stations[]
      • Multiple stations can be requested,
        e.g. stations[]=07EA004&stations[]=07EA005
    • start_date
      • mmdd
        • e.g. 0101 for January 1
    • end_date
      • mmdd
        • e.g. 1231 for December 31
  • File Format:
    • CSV

Request Parameters

File Format (required)

Link

- GET

What we are doing

Page details

Date modified: