Skip to page navigation
U.S. flag

An official website of the United States government

Official websites use .gov
A .gov website belongs to an official government organization in the United States.

Secure .gov websites use HTTPS
A lock ( ) or https:// means you’ve safely connected to the .gov website. Share sensitive information only on official, secure websites.

Status Types API

Overview

The xml operating status API provides real time data on the Federal Government operating status for the DC area.

xml

URI

The endpoint for this API is /xml/statustypes.xml.

Arguments

Currently, there are no supported arguments. All information can be parsed from the main URI.

Attributes

The response code contains the following xml attributes:

StatusTypes (root node), OperatingStatusTypes, OperatingStatusType, Id, Name, Icon, Abbreviation, and IsDefault (boolean).

Sample Response

The code below shows the default status types xml response:

<StatusTypes xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

<OperatingStatusTypes>

<OperatingStatusType>

<Id>e3e3d34b-05ae-451a-b13a-93a1ac92dfe4</Id>

<Name>Open</Name>

<Icon>Open</Icon>

<Abbreviation>Open</Abbreviation>

<IsDefault>true</IsDefault>

</OperatingStatusType>

<OperatingStatusType>

<Id>a306b527-b677-414f-9abe-da2120ae9ae8</Id>

<Name>Open</Name>

<Icon>Open</Icon>

<Abbreviation>Open</Abbreviation>

<IsDefault>false</IsDefault>

</OperatingStatusType>

<OperatingStatusType>

<Id>d67af175-e7f8-4c83-93c3-0b18f4046f02</Id>

<Name>Open with Option for Unscheduled Leave or Unscheduled Telework</Name>

<Icon>Alert</Icon>

<Abbreviation>Unsch Leave/Telework</Abbreviation>

<IsDefault>false</IsDefault>

</OperatingStatusType>

...

</OperatingStatusTypes>

</StatusTypes>

Back to Top

json

URI

The endpoint for this API is /json/statustypes.json.

Arguments

The json operating status API supports the following optional arguments:

callback

Returns a string of records wrapped in a placeholder method().

Valid values: string

Sample Request

To request the status types wrapped in a placeholder method:

/json/statustypes.json?callback=SomeMethod

Name/Value Pairs

The response code contains the following name/value pairs:

Operating Status Types, Id, Name, Icon, Abbreviation, IsDefault, TotalCount, and LastUpdate (unix time).

Sample Response

The code below shows the default status history json response:

{"OperatingStatusTypes":

[{"Id":"e3e3d34b-05ae-451a-b13a-93a1ac92dfe4",

"Name":"Open",

"Icon":"Open",

"Abbreviation":"Open",

"IsDefault":true},

{"Id":"a306b527-b677-414f-9abe-da2120ae9ae8",

"Name":"Open",

"Icon":"Open",

"Abbreviation":"Open",

"IsDefault":false},

...],

"TotalCount":11,

"LastUpdate":"\/Date(1361768400000)\/"}

Back to Top

Control Panel