GET Advisories

Returns all advisories.

Request Information

https://511.idaho.gov/api/v2/get/alerts

URI Parameters

URI Parameters
NameDescriptionTypeAdditional information
key

Developer Key

string

Required

format

Valid values are 'xml' or 'json', default 'json'.

string

Optional

Response Information

Resource Description


Resource Description
NameDescriptionType
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.

boolean
SendNotification

Whether the advisory is disseminated over communication channels (SMS, Email, IVR).

boolean

Response Formats

JSON

Sample:
[
  {
    "Id": 1,
    "Message": "System Interchange Construction in Full Swing",
    "Notes": "The Idaho Transportation Department’s rebuild of the System Interchange for I-86 and I-15...",
    "StartTime": 1665746940,
    "EndTime": 1666178880,
    "Regions": [
      "Idaho State-wide"
    ],
    "HighImportance": true,
    "SendNotification": false
  },
  {
    "Id": 2,
    "Message": "I-86 to I-15 detour scheduled for tonight",
    "Notes": "<h2><a href=\"https://itd.idaho.gov/news/i-86-to-i-15-detour-scheduled-for-tonight/\" target=\"_self\">I-86 to I-15 detour scheduled for tonight</a></h2>\r\n",
    "StartTime": 1665747060,
    "EndTime": 1666351800,
    "Regions": [
      "Idaho State-wide"
    ],
    "HighImportance": false,
    "SendNotification": false
  }
]

XML

Sample:
<AlertsList>
	<Alerts>
		<Id>1</Id>
		<Message>System Interchange Construction in Full Swing</Message>
		<Notes>The Idaho Transportation Department&rsquo;s rebuild of the System Interchange for I-86 and I-15...</Notes>
		<StartTime>1665746940</StartTime>
		<EndTime>1666178880</EndTime>
		<Regions>Idaho State-wide</Regions>
		<HighImportance>true</HighImportance>
		<SendNotification>false</SendNotification>
	</Alerts>
	<Alerts>
		<Id>2</Id>
		<Message>I-86 to I-15 detour scheduled for tonight</Message>
		<Notes><h2><a href="https://itd.idaho.gov/news/i-86-to-i-15-detour-scheduled-for-tonight/" target="_self">I-86 to I-15 detour scheduled for tonight</a></h2> </Notes>
		<StartTime>1665747060</StartTime>
		<EndTime>1666351800</EndTime>
		<Regions>Idaho State-wide</Regions>
		<HighImportance>false</HighImportance>
		<SendNotification>false</SendNotification>
	</Alerts>
</AlertsList>