Click here to skip navigation
This website uses features which update page content based on user actions. If you are using assistive technology to view web content, please ensure your settings allow for the page content to update after initial load (this is sometimes called "forms mode"). Additionally, if you are using assistive technology and would like to be notified of items via alert boxes, please follow this link to enable alert boxes for your session profile.
An official website of the United States Government.

Developer Center Current Status 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/operatingstatus.xml.

Arguments

The xml operating status API supports the following optional arguments:

markup

Returns records with html markup. Defaults to off.

Valid values: on, off

useutc

Changes date to UTC time. Defaults to false.

Valid values: true, false

date

Returns the records for a specific date. Defaults to current date.

Valid values: MM/DD/YYYY

id

Returns the status for a specific id. Defaults to 0 (current status id).

Valid values: intiger

Sample Request

To request the operating status on May 10, 2013, with html markup:

/xml/operatingstatus.xml?date=05/10/2013&markup=on

Attributes

The response code contains the following xml attributes:

Current Status (parent node), ID (first child), StatusTitle, Location, OperatingStatus, StatusWebPage, ShortStatusMessage, LongStatusMessage, ExtendedInformation, DateStatusPosted, CurrentDate, DateStatusComplete, AppliesTo, Icon, StatusType, and Url (last child).

Sample Response

The code below shows the default operating status xml response:

<!-- These feeds are provided as a resource for parties familiar with this form of technology. We do not offer technical support for this tool. -->

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

<Id>0</Id>

<StatusTitle> Federal Government Operating Status in the Washington, DC, Area </StatusTitle>

<Location>Washington, DC, Area</Location>

<OperatingStatus>Open</OperatingStatus>

<StatusWebPage>/policy-data-oversight/snow-dismissal-procedures/current-status/ </StatusWebPage>

<ShortStatusMessage> Federal agencies in the Washington, DC, area are OPEN. Employees are expected to report to their worksite or begin telework on time. </ShortStatusMessage>

<LongStatusMessage> Federal agencies in the Washington, DC, area are OPEN. Employees are expected to report to their worksite or begin telework on time. Normal operating procedures are in effect. Employees account for their hours of work by WATS: Working at a worksite (typically the office) in the DC area, Alternative work schedules (AWS) day off, Teleworking (at home or at a telework center), or Scheduled leave or other paid time off. </LongStatusMessage>

<ExtendedInformation> Normal operating procedures are in effect. Employees account for their hours of work by WATS: Working at a worksite (typically the office) in the DC area, Alternative work schedules (AWS) day off, Teleworking (at home or at a telework center), or Scheduled leave or other paid time off. </ExtendedInformation>

<DateStatusPosted>2013-05-09T13:28:16.507</DateStatusPosted>

<CurrentDate>2013-05-09T13:28:56.5465275-04:00</CurrentDate>

<DateStatusComplete xsi:nil="true"/>

<AppliesTo>May 9, 2013</AppliesTo>

<Icon>Open</Icon>

<StatusType>Open</StatusType>

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

<Url>/policy-data-oversight/snow-dismissal-procedures/current-status/ </Url>

</CurrentStatus>

Back to Top

json

URI

The endpoint for this API is /json/operatingstatus.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

markup

Returns records with html markup. Defaults to off.

Valid values: on, off

useutc

Changes date to UTC time. Defaults to false.

Valid values: true, false

date

Returns the records for a specific date. Defaults to current date.

Valid values: MM/DD/YYYY

id

Returns the status for a specific id. Defaults to 0 (current status id).

Valid values: intiger

Sample Request

To request the operating status on May 10, 2013, with html markup:

/xml/operatingstatus.json?date=05/10/2013&markup=on

Name/Value Pairs

The response code contains the following name/value pairs:

ID, Title, Location, StatusSummary, StatusWebPage, ShortStatusMessage, LongStatusMessage, Extended Information, DateStatusPosted, CurrentDate, DateStatusComplete, AppliesTo, Icon, StatusType, StatusTypeGuid, and Url.

Sample Code

The code below shows the default operating status json response:

{"Id":0,

"Title":"Federal Government Operating Status in the Washington, DC, Area",

"Location":"Washington, DC, Area",

"StatusSummary":"Open",

"StatusWebPage":"http//:www.opm.gov/policy-data-oversight/snow-dismissal-procedures/current-status/",

"ShortStatusMessage":"Federal agencies in the Washington, DC, area are OPEN. Employees are expected to report to their worksite or begin telework on time.",

"LongStatusMessage":"Federal agencies in the Washington, DC, area are OPEN. Employees are expected to report to their worksite or begin telework on time.\r\n Normal operating procedures are in effect. Employees account for their hours of work by WATS:\r\n\t\r\n\t\tWorking at a worksite (typically the office) in the DC area,\r\n\t\tAlternative work schedules (AWS) day off,\r\n\t\tTeleworking (at home or at a telework center), or\r\n\t\tScheduled leave or other paid time off.\r\n\t",

"ExtendedInformation":" Normal operating procedures are in effect. Employees account for their hours of work by WATS:\r\n\t\r\n\t\tWorking at a worksite (typically the office) in the DC area,\r\n\t\tAlternative work schedules (AWS) day off,\r\n\t\tTeleworking (at home or at a telework center), or\r\n\t\tScheduled leave or other paid time off.\r\n\t",

"DateStatusPosted":"\/Date(1368193097823)\/",

"CurrentDate":"\/Date(1368193125150)\/",

"DateStatusComplete":null,

"AppliesTo":"May 10, 2013",

"Icon":"Open",

"StatusType":"Open",

"StatusTypeGuid":"e3e3d34b-05ae-451a-b13a-93a1ac92dfe4",

"Url":"/policy-data-oversight/snow-dismissal-procedures/current-status/"}

Back to Top

Control Panel