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 Allowedif the incorrect method is used422 Unprocessable Entityif 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[]=¶meters[]=&start_date=&end_date= - Request Method:
GET - Parameters:
stations[]- Multiple stations can be requested,
e.g.stations[]=07EA004&stations[]=07EA005
- Multiple stations can be requested,
parameters[]- See available parameters below.
- Multiple parameters can be requested,
e.g.parameters[]=46¶meters[]=47
start_date- In the format
YYYY-MM-DD HH24:MI:SS,
e.g.2026-11-12 01:07:46
- In the format
end_date- In the format
YYYY-MM-DD HH24:MI:SS,
e.g.2026-11-12 01:07:46
- In the format
- 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) |
Recent Real-Time Data
Technical Information
- URL:
https://wateroffice.ec.gc.ca/services/recent_real_time_data/csv/inline?stations[]=¶meters[]= - 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.
- Multiple stations can be requested,
parameters[]- Only parameters
46and47are available. - Multiple parameters can be requested,
e.g.parameters[]=46¶meters[]=47
- Only parameters
- File Format:
CSV
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.
- Multiple stations can be requested,
langenorfr
- File Format:
KML
Historical Data
Daily Mean
Technical Information
- URL:
https://wateroffice.ec.gc.ca/services/daily_data/csv/inline?stations[]=¶meters[]=&start_date=&end_date= - Request Method:
GET - Parameters:
stations[]- Multiple stations can be requested,
e.g.stations[]=07EA004&stations[]=07EA005
- Multiple stations can be requested,
parameters[]levelorflow- Multiple parameters can be requested,
e.g.parameters[]=level¶meters[]=flow
start_date- In the format
YYYY-MM-DD,
e.g.2026-11-12
- In the format
end_date- In the format
YYYY-MM-DD,
e.g.2026-11-12
- In the format
- 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.
Monthly Mean
Technical Information
- URL:
https://wateroffice.ec.gc.ca/services/monthly_data/csv/inline?stations[]=¶meters[]=&start_year=&end_year= - Request Method:
GET - Parameters:
stations[]- Multiple stations can be requested,
e.g.stations[]=07EA004&stations[]=07EA005
- Multiple stations can be requested,
parameters[]levelorflow- Multiple parameters can be requested,
e.g.parameters[]=level¶meters[]=flow
start_year- In the format
YYYY,
e.g.2026
- In the format
end_year- In the format
YYYY,
e.g.2026
- In the format
- 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.
Annual Daily Extremes
Technical Information
- URL:
https://wateroffice.ec.gc.ca/services/annual_extremes/csv/inline?stations[]=¶meters[]=&start_year=&end_year= - Request Method:
GET - Parameters:
stations[]- Multiple stations can be requested,
e.g.stations[]=07EA004&stations[]=07EA005
- Multiple stations can be requested,
parameters[]levelorflow- Multiple parameters can be requested,
e.g.parameters[]=level¶meters[]=flow
start_year- In the format
YYYY,
e.g.2026
- In the format
end_year- In the format
YYYY,
e.g.2026
- In the format
- 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.
Annual Instantaneous Extremes
Technical Information
- URL:
https://wateroffice.ec.gc.ca/services/peak_data/csv/inline?stations[]=¶meters[]=&start_year=&end_year= - Request Method:
GET - Parameters:
stations[]- Multiple stations can be requested,
e.g.stations[]=07EA004&stations[]=07EA005
- Multiple stations can be requested,
parameters[]levelorflow- Multiple parameters can be requested,
e.g.parameters[]=level¶meters[]=flow
start_year- In the format
YYYY,
e.g.2026
- In the format
end_year- In the format
YYYY,
e.g.2026
- In the format
- 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.
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
- Multiple stations can be requested,
start_date- mmdd
- e.g. 0101 for January 1
- mmdd
end_date- mmdd
- e.g. 1231 for December 31
- mmdd
- File Format:
CSV
Page details
- Date modified: