GET Advisories
Returns all emergency advisories.
Request Information
https://511.gov.pe.ca/api/v2/get/alerts
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
key |
Developer Key |
string |
Required |
format |
Valid values are 'xml' or 'json', default 'json'. |
string |
Optional |
lang |
Valid values are 'en' or 'fr', default 'en'. |
string |
Optional |
Response Information
Resource Description
Name | Description | Type |
---|---|---|
Id |
A unique identifier. |
integer |
Message |
The advisory details. |
string |
Notes |
Additional advisory details. |
string |
StartTime |
The start time of the advisory in Unix time. More information |
integer |
EndTime |
The end time of the advisory in Unix time. More information |
integer |
Regions |
A list of regions affected. |
list |
HighImportance |
Whether the advisory is flagged as high importance |
string |
SendNotification |
Whether the alert is disseminated over communication channels (SMS, Email, IVR) |
string |
Response Formats
JSON
[ { "Id": 8, "Message": "HWY 6 Northbound - Argyle Street between 6th Line and Braemar Avenue remains closed.", "Notes": "Argyle Street between 6th Line and Braemar Avenue remains closed.", "StartTime": 1652375940, "EndTime": 1652462280, "Regions": [ "Prince Edward Island Province-wide" ], "HighImportance": true, "SendNotification": true }, { "Id": 9, "Message": "The right lane is closed in both directions on 427 at South of Clairville due to flooding.", "Notes": "427 is still open but one should expect major delays in affected areas.", "StartTime": 1652376120, "EndTime": 1652462460, "Regions": [ "Prince Edward Island Province-wide" ], "HighImportance": true, "SendNotification": true } ]
XML
<AlertsList> <Alerts> <Id>8</Id> <Message>HWY 6 Northbound - Argyle Street between 6th Line and Braemar Avenue remains closed.</Message> <Notes>Argyle Street between 6th Line and Braemar Avenue remains closed.</Notes> <StartTime>1652375940</StartTime> <EndTime>1652462280</EndTime> <Regions>Prince Edward Island Province-wide</Regions> <HighImportance>true</HighImportance> <SendNotification>true</SendNotification> </Alerts> <Alerts> <Id>9</Id> <Message>The right lane is closed in both directions on 427 at South of Clairville due to flooding.</Message> <Notes>427 is still open but one should expect major delays in affected areas.</Notes> <StartTime>1652376120</StartTime> <EndTime>1652462460</EndTime> <Regions>Prince Edward Island Province-wide</Regions> <HighImportance>true</HighImportance> <SendNotification>true</SendNotification> </Alerts> </AlertsList>