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.2025-11-09 04:52:54
- In the format
end_date- In the format
YYYY-MM-DD HH24:MI:SS,
e.g.2025-11-09 04:52:54
- 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.
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.2025-11-09 - All times are in Local Standard Time (LST)
- In the format
end_date- In the format
YYYY-MM-DD,
e.g.2025-11-09 - All times are in Local Standard Time (LST)
- 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: