Governor order active today in honor of a local public servant.
- Start
- 6:37 AM EDT
- End
- 8:34 PM EDT
Use these JSON endpoints to power flag status badges, dashboards, or automation.
Loading pipeline health metrics...
Developer API access
Mast API access requires a developer API key for requests. Keys keep API traffic authorized and connected to the account that owns it. Free developer accounts include 250 API requests per month.
Send your key in the x-mast-license-key header, not in the URL.
Create a developer account or sign in to use the API. Higher-usage paid tiers are coming; contact Mast for more information.
The API is designed to turn official flag orders into simple UI: read the status object, then render the current flag position, authority, and timing in your app.
GET /api/v1/status?countryCode=US&stateCode=FL
x-mast-license-key: YOUR_LICENSE_KEY
{
"status": {
"stateCode": "FL",
"isHalfMast": true,
"title": "Governor orders flags to half-staff",
"authority": "Florida Governor",
"effectiveFrom": "2026-05-29T10:37:00.000Z",
"effectiveUntil": "2026-05-30T00:34:00.000Z"
}
}
Governor order active today in honor of a local public servant.
Mast refreshes official sources on a configured server interval, usually about every four hours. API responses come from the latest Mast cache, so your app can read stable JSON quickly without polling state or federal source pages directly.
Use the cache.refreshedAt,
cache.refreshIntervalMs, and
cache.isStale fields when they appear to show data age
or decide when to refresh your own UI.
Mast records accepted and rejected API usage for operations and abuse prevention. Accepted API requests can be reviewed by developer account in the admin dashboard with masked license-key labels. Free developer usage resets on the first of each month.
/api/v1/status?countryCode=US
curl -H "x-mast-license-key: YOUR_LICENSE_KEY" \
https://www.mast.today/api/v1/status?countryCode=US
const response = await fetch(
"https://www.mast.today/api/v1/status?countryCode=US",
{
headers: {
"x-mast-license-key": "YOUR_LICENSE_KEY"
}
}
);
const data = await response.json();
Returns the current half-staff status for a country plus the same calendar events used by the app. For the United States, Mast includes recurring federal observances from official federal sources.
US.AZ.{
"ok": true,
"status": {
"countryCode": "US",
"countryName": "US",
"isHalfMast": false,
"scope": "unknown",
"title": "No active order",
"authority": "Unknown",
"source": "",
"reason": "No active half-staff order has been recorded for this country."
},
"calendar": {
"countryCode": "US",
"events": [
{
"title": "Memorial Day",
"scope": "federal",
"authority": "4 U.S.C. 6(d) and 4 U.S.C. 7(m)",
"source": "https://uscode.house.gov/...",
"effectiveFrom": "2026-05-25T00:00:00.000Z",
"effectiveUntil": "2026-05-25T23:59:59.000Z",
"timeRule": "half-staff until noon local time, then full-staff",
"type": "recurring-federal-observance"
}
]
},
"cache": {
"refreshedAt": "2026-04-30T20:00:00.000Z",
"refreshIntervalMs": 14400000
}
}
/api/v1/calendar?countryCode=US
curl -H "x-mast-license-key: YOUR_LICENSE_KEY" \
https://www.mast.today/api/v1/calendar?countryCode=US
const response = await fetch(
"https://www.mast.today/api/v1/calendar?countryCode=US",
{
headers: {
"x-mast-license-key": "YOUR_LICENSE_KEY"
}
}
);
const data = await response.json();
Returns known half-staff date ranges for a country. The app uses this endpoint to highlight calendar days and display source details.
US.AZ.{
"ok": true,
"calendar": {
"countryCode": "US",
"events": [
{
"countryCode": "US",
"countryName": "United States",
"title": "Peace Officers Memorial Day",
"scope": "federal",
"authority": "4 U.S.C. 7(m) and 36 U.S.C. 136",
"source": "https://uscode.house.gov/...",
"effectiveFrom": "2026-05-15T00:00:00.000Z",
"effectiveUntil": "2026-05-15T23:59:59.000Z",
"reason": "Federal law provides for the U.S. flag to be displayed at half-staff from sunrise to sunset on Peace Officers Memorial Day, unless it falls on Armed Forces Day. The observance honors law enforcement officers who lost their lives in the line of duty and recognizes the service and sacrifice of peace officers across the country.",
"timeRule": "half-staff sunrise to sunset local time",
"type": "recurring-federal-observance"
}
]
},
"cache": {
"refreshedAt": "2026-04-30T20:00:00.000Z",
"refreshIntervalMs": 14400000
}
}
/api/v1/state/sources?countryCode=US&stateCode=AZ
curl -H "x-mast-license-key: YOUR_LICENSE_KEY" \
https://www.mast.today/api/v1/state/sources?countryCode=US&stateCode=AZ
const response = await fetch(
"https://www.mast.today/api/v1/state/sources?countryCode=US&stateCode=AZ",
{
headers: {
"x-mast-license-key": "YOUR_LICENSE_KEY"
}
}
);
const data = await response.json();
Returns registered state-level source metadata for official state flag status pages and notice archives.
{
"ok": true,
"countryCode": "US",
"stateCode": "AZ",
"sources": [
{
"stateName": "Arizona",
"authority": "Arizona Governor / az.gov",
"sourceType": "official-state-notice-page",
"statusUrl": "https://az.gov/half-staff-notices",
"supportsCurrentStatus": true,
"supportsHistoricalNotices": true
}
]
}
/api/v1/pipeline/status
curl -H "x-mast-license-key: YOUR_LICENSE_KEY" \
https://www.mast.today/api/v1/pipeline/status
const response = await fetch(
"https://www.mast.today/api/v1/pipeline/status",
{
headers: {
"x-mast-license-key": "YOUR_LICENSE_KEY"
}
}
);
const data = await response.json();
Returns federal and U.S. state pipelines with source metadata, pull health, fetch errors, cache freshness, and active or upcoming retained events.
{
"ok": true,
"summary": {
"total": 52,
"fresh": 52,
"stale": 0,
"degraded": 0,
"disabled": 0
},
"pipelines": [
{
"pipelineType": "federal",
"label": "United States Federal",
"code": "US",
"pullStatus": "fresh"
},
{
"pipelineType": "state",
"label": "Connecticut",
"code": "CT",
"pullStatus": "fresh",
"source": {
"authority": "Connecticut Governor / portal.ct.gov",
"supportsCurrentStatus": true,
"supportsHistoricalNotices": true
},
"eventCount": 1
}
]
}
The same data powers the pipeline status page.
/api/v1/federal/feed?year=2026
curl -H "x-mast-license-key: YOUR_LICENSE_KEY" \
https://www.mast.today/api/v1/federal/feed?year=2026
const response = await fetch(
"https://www.mast.today/api/v1/federal/feed?year=2026",
{
headers: {
"x-mast-license-key": "YOUR_LICENSE_KEY"
}
}
);
const data = await response.json();
Returns U.S. federal feed source metadata and recurring federal half-staff observances for a given year.
{
"ok": true,
"countryCode": "US",
"scope": "federal",
"sources": [
{
"id": "white-house-proclamations",
"name": "White House Presidential Proclamations",
"url": "https://www.whitehouse.gov/presidential-actions/proclamations/"
}
],
"recurringEvents": [
{
"id": "memorial-day-2026",
"title": "Memorial Day",
"effectiveFrom": "2026-05-25T00:00:00.000Z",
"timeRule": "half-staff until noon local time, then full-staff"
}
],
"liveCandidates": null
}
/api/v1/status/us
curl -H "x-mast-license-key: YOUR_LICENSE_KEY" \
https://www.mast.today/api/v1/status/us
const response = await fetch(
"https://www.mast.today/api/v1/status/us",
{
headers: {
"x-mast-license-key": "YOUR_LICENSE_KEY"
}
}
);
const data = await response.json();
Convenience endpoint for the current U.S. status. It returns the same
status object as /api/v1/status?countryCode=US, without
the calendar wrapper.
Use this endpoint when a user needs to send Mast a correction for inaccurate flag-status information.
POST /api/v1/report/inaccuracy
Here are some projects that use the Mast API and are tagged with the
mast-today topic.
Loading GitHub projects...