Timing endpoint
Release calendar
The exact official time of the next release, so your job runs the moment it lands instead of on a timer.
The USD release calendar is available without a key, up to 100 no-key requests per day. Other currencies require an Individual API key.
curl -H "X-API-Key: YOUR_API_KEY" \
"https://api.fxmacrodata.com/v1/calendar/usd"
import os
import requests
response = requests.get(
"https://api.fxmacrodata.com/v1/calendar/usd",
headers={"X-API-Key": os.environ["FXMACRODATA_API_KEY"]},
timeout=30,
)
response.raise_for_status()
print(response.json())
const response = await fetch("https://api.fxmacrodata.com/v1/calendar/usd", {
headers: { "X-API-Key": process.env.FXMACRODATA_API_KEY },
});
const payload = await response.json();
console.log(payload);
What it can do
5 routes in this endpoint
Get upcoming economic data release dates
Use for upcoming and recent scheduled economic-release dates by currency.
GET/v1/holidays/{currency}Public holidays and bank closures by currency
Returns national public holidays for the country or countries that use a currency, within a date range.
GET/v1/calendar/{currency}/coverageInspect calendar archive evidence coverage and capture gaps
Reports, per source, what we captured and the dates it covers. A source with coverage_type month_listing lists the publisher's month pages we captured in listing_pages, with coverage_start and coverage_end and the event kinds those pages cover. complete is true for such a source, false after a failed capture and null where a source has no whole-month page. Pass as_of for the coverage known at a past time; checkpoint is then the last one accepted by that time. Pass start_date or end_date to add, per source, window_events, window_listing (whole_window, part_of_window, none or not_applicable) and window_status (events_held, no_events_listed, none_held_inside_held_range, outside_held_range or not_applicable). Requires an active API key.
GET/v1/calendar/{currency}/snapshotGet the economic schedule known at a historical time
Selects the latest eligible version of each event at as_of before applying scheduled-date, importance and event-kind filters. Times are UTC; date-only events retain their publisher date without an invented UTC time. Includes explicit cancellations. Use the returned checkpoint and cursor on every subsequent page for a consistent export. Historical reconstruction is an explicit evidence-qualified mode. Coverage is reported separately at `/v1/calendar/{currency}/coverage`. Requires an active API key.
GET/v1/calendar/{currency}/events/{archive_event_id}/versionsGet immutable schedule versions for an event
Returns accepted versions and their source, capture and documentary evidence. The archive event ID remains stable when its scheduled time changes; existing calendar_event_id values on the current calendar retain their original meaning. Reuse checkpoint and cursor to continue an export. Requires an active API key.
Example response
What comes back
A shortened example of the JSON this endpoint returns. Lists are cut to two rows here.
{
"currency": "USD",
"timezone": "America/New_York",
"indicator": "inflation",
"data": [
{
"announcement_datetime": 1773077400,
"announcement_datetime_local": "2026-03-11T08:30:00-04:00",
"release": "inflation",
"calendar_event_id": "usd_inflation_1773077400"
},
{
"announcement_datetime": 1773682200,
"announcement_datetime_local": "2026-03-18T08:30:00-04:00",
"release": "non_farm_payrolls",
"calendar_event_id": "usd_non_farm_payrolls_1773682200"
}
]
}
Reference
Parameters and response fields
GET /v1/calendar/{currency} Get upcoming economic data release dates
The USD release calendar is available without a key, up to 100 no-key requests per day. Other currencies require an Individual API key.
Returns upcoming economic data release dates for a given currency.
Announcement rows keep the release slug mapping to /v1/announcements/{currency}/{indicator}, while other domains such as COT may also include additive fields like domain, endpoint_family, and endpoint_path. Each row also includes a deterministic calendar_event_id for joins across calendar exports.
Scheduled speeches, press conferences, policy minutes and policy reports appear for central banks whose schedule is covered. These rows set event_type, carry the publisher's title in name, hold no values and have no /v1/announcements series. The COMM calendar also lists OPEC meetings and the OPEC and EIA oil-market outlook dates as such rows.
Past releases are retained for a bounded window. When start_date is given, history_start_date reports the oldest retained release and history_truncated is true if the requested window starts before it. Released values and their announcement times for older periods are available from /v1/announcements/{currency}/{indicator}.
Time not announced: some official publishers announce a release date but not its time. Those rows are included with time_announced: false and announcement_date set to the publisher's local date; their announcement_datetime is 00:00 of that date in the publisher's timezone and is not a release time. Rows with an exact official time have time_announced: true. When the publisher later announces the time, the timed row replaces the date-only row. Native publication events with an unknown source timezone explicitly label their timestamp as a date-only presentation coordinate; the original date, unknown source clock/timezone status and provisional publisher caveat are retained.
Window and paging: without start_date the response holds the whole upcoming schedule, which is several hundred rows for a major currency. Send start_date and end_date for the days you display, or limit to cap the rows; with limit the response adds total_rows, has_more and next_start_date.
Language: lang=es returns name and a short description in Spanish (pt returns names in Portuguese). The stored name is kept in name_original, and name_localized says whether a translation was held. An unsupported language answers 422.
Values: include=values adds a values object to each data-release row: previous, actual once the release is stored, official_forecasts with each publisher named, fxmacrodata_forecast for our own model forecast, unit and reference_period. Only forecasts made before the release are returned. Values that are not held are omitted.
Text: include=text adds a text object to each data-release row with a headline and a summary, written from the stored figures in English or Spanish (lang=en or lang=es). Once the actual is stored the text compares it with the official forecast, when one is held, and with the previous value; before the release it gives the date, time, forecast and previous value. locale sets the number format: es-CL, es-PE, es-UY, es-MX or en. Our own model forecast is never used in the text.
Chart: include=chart_url adds chart_url to each data-release row whose actual is stored: a link to the PNG chart of that figure in lang (en or es). The link carries no key; send your own key with it.
Date-only rows: a row with time_announced: false and announcement_date set has no converted announcement_datetime_utc, announcement_datetime_local or announcement_datetime_requested_timezone, because it has no time to convert.
Returns: List of release rows sorted by announcement time ascending (nearest scheduled release first). Core fields remain announcement_datetime and release; additive routing metadata may also be present.
Parameters
| Name | In | Type | Details |
|---|---|---|---|
| currencyRequired | path | string | Allowed: 58 currencies. |
| indicator | query | string | Filter by indicator name (e.g., gdp, inflation, unemployment) Allowed: 1481 indicators. |
| start_date | query | string | Optional inclusive lower bound in YYYY-MM-DD format. |
| end_date | query | string | Optional inclusive upper bound in YYYY-MM-DD format. |
| timezone | query | string | Optional IANA timezone for an additional converted timestamp field, for example America/Sao_Paulo. |
| lang | query | string | Language for name and description: en (default), es or pt. A regional tag such as es-CL is accepted. |
| include | query | string | Comma-separated extras. values adds previous, actual and forecast values to each data-release row; text adds a ready-to-send headline and summary; chart_url adds a chart image link once the actual is stored; instruments adds the instruments each event is associated with (editorial rule). |
| instrument | query | string | Optional instrument code, for example USDCLP or COPPER: only rows whose instruments (see include=instruments) contain it. |
| locale | query | string | Number format for include=text: es-CL, es-PE, es-UY, es-MX, es or en. Defaults to the language of lang. |
| limit | query | integer | Optional maximum number of rows. The response then reports has_more and next_start_date. |
| api_key | query | string | Deprecated: legacy query-string API key. Still accepted so existing integrations keep working, but new integrations must send the key in the X-API-Key header (or Authorization: Bearer). A key is required for non-USD, paid-only, or full-history requests. Responses to requests authenticated this way carry a Deprecation header. |
Response fields
| Field | Type | Details |
|---|---|---|
| currency | string | |
| timezone | string | |
| requested_timezone | string | |
| indicator | string | |
| requested_indicator | string | |
| start_date | string | |
| end_date | string | |
| history_start_date | string | |
| history_truncated | boolean | |
| lang | string | |
| include[] | string[] | |
| instrument | string | |
| limit | integer | |
| has_more | boolean | With limit: true when rows after the last returned row were left out. |
| next_start_date | string | With has_more: pass as start_date to continue. Rows of that date are returned again. |
| total_rows | integer | With limit: number of rows in the window before the limit was applied. |
| data_quality | object | |
| data_quality.source_freshness | string | |
| data_quality.source_monitoring_complete | boolean | |
| data_quality.known_source_gap | boolean | |
| data_quality.source_checked_at | integer | |
| data_quality.source_check_expires_at | integer | |
| data_quality.latest_published_period | string | |
| data_quality.source_permission_status | string | |
| data_quality.commodity_coverage | object | |
| data_quality.commodity_coverage.scope | string | |
| data_quality.commodity_coverage.requested_start | string | |
| data_quality.commodity_coverage.requested_end | string | |
| data_quality.commodity_coverage.available_start | string | |
| data_quality.commodity_coverage.available_end | string | |
| data_quality.commodity_coverage.input_row_count | integer | |
| data_quality.commodity_coverage.row_count | integer | |
| data_quality.commodity_coverage.distinct_date_count | integer | |
| data_quality.commodity_coverage.duplicate_date_row_count | integer | |
| data_quality.commodity_coverage.excluded_weekend_row_count | integer | |
| data_quality.commodity_coverage.invalid_date_row_count | integer |
GET /v1/holidays/{currency} Public holidays and bank closures by currency
No API key required.
Returns national public holidays for the country or countries that use a currency, within a date range.
Each row gives the date, the English name, the local-language name where held (Spanish for Chile, Peru, Uruguay and Mexico), and whether it is a statutory public holiday.
banks_closed and markets_closed are stated only where an official closure calendar is held for that country and year. Otherwise they are null, which means not stated, never open.
basis is calculated (from the country's published holiday rules), official_rule (confirmed by our own review of the official rules) or official_closure_calendar. verification says whether the year was checked against the government's own list; coverage[] lists the official pages used.
Dates from 2025-01-01 to 2030-12-31 are available. Without dates the response covers the next 365 days.
Authentication: USD is public. Other currencies need an API key.
Parameters
| Name | In | Type | Details |
|---|---|---|---|
| currencyRequired | path | string | |
| start_date | query | string | First date, YYYY-MM-DD. Defaults to today. |
| end_date | query | string | Last date, YYYY-MM-DD. Defaults to 365 days after start_date. |
| jurisdiction | query | string | Optional ISO 3166-1 alpha-2 country code, for currencies used by more than one country (for example DE with EUR). |
| api_key | query | string | Deprecated: legacy query-string API key. Still accepted so existing integrations keep working, but new integrations must send the key in the X-API-Key header (or Authorization: Bearer). A key is required for non-USD, paid-only, or full-history requests. Responses to requests authenticated this way carry a Deprecation header. |
Response fields
| Field | Type | Details |
|---|---|---|
| currency | string | |
| start_date | string | |
| end_date | string | |
| count | integer | |
| data[] | object[] | |
| data[].date | string | |
| data[].weekday | string | |
| data[].currency | string | |
| data[].jurisdiction | string | |
| data[].name | string | |
| data[].name_local | string | |
| data[].local_language | string | |
| data[].is_public_holiday | boolean | |
| data[].banks_closed | boolean | |
| data[].markets_closed | boolean | |
| data[].basis | string | |
| data[].verification | string | |
| coverage[] | object[] | |
| coverage[].jurisdiction | string | |
| coverage[].year | integer | |
| coverage[].verification | string | |
| coverage[].sources[] | string[] | |
| coverage[].bank_closure_source | string | |
| coverage[].bank_closure_authority | string | |
| coverage[].note | string | |
| coverage[].weekend_days[] | integer[] | |
| method | string | |
| limitations | string |
GET /v1/calendar/{currency}/coverage Inspect calendar archive evidence coverage and capture gaps
An active Individual subscription and API key are required for every request.
Reports, per source, what we captured and the dates it covers. A source with coverage_type month_listing lists the publisher's month pages we captured in listing_pages, with coverage_start and coverage_end and the event kinds those pages cover. complete is true for such a source, false after a failed capture and null where a source has no whole-month page. Pass as_of for the coverage known at a past time; checkpoint is then the last one accepted by that time. Pass start_date or end_date to add, per source, window_events, window_listing (whole_window, part_of_window, none or not_applicable) and window_status (events_held, no_events_listed, none_held_inside_held_range, outside_held_range or not_applicable). Requires an active API key.
Parameters
| Name | In | Type | Details |
|---|---|---|---|
| currencyRequired | path | string | Allowed: 58 currencies. |
| start_date | query | date | First scheduled date of the window to inspect, inclusive. |
| end_date | query | date | Last scheduled date of the window to inspect, inclusive. |
| as_of | query | string | Report coverage known at this time, ISO 8601 date-time with UTC offset. |
| api_key | query | string | Deprecated: legacy query-string API key. Still accepted so existing integrations keep working, but new integrations must send the key in the X-API-Key header (or Authorization: Bearer). A key is required for non-USD, paid-only, or full-history requests. Responses to requests authenticated this way carry a Deprecation header. |
GET /v1/calendar/{currency}/snapshot Get the economic schedule known at a historical time
An active Individual subscription and API key are required for every request.
Selects the latest eligible version of each event at as_of before applying scheduled-date, importance and event-kind filters. Times are UTC; date-only events retain their publisher date without an invented UTC time. Includes explicit cancellations. Use the returned checkpoint and cursor on every subsequent page for a consistent export. Historical reconstruction is an explicit evidence-qualified mode. Coverage is reported separately at /v1/calendar/{currency}/coverage. Requires an active API key.
Parameters
| Name | In | Type | Details |
|---|---|---|---|
| currencyRequired | path | string | Allowed: 58 currencies. |
| as_ofRequired | query | date-time | Knowledge cutoff, ISO 8601 date-time with UTC offset, for example 2026-11-24T12:00:00Z. |
| start_date | query | date | |
| end_date | query | date | |
| importance | query | string | Allowed: high, medium, low, unknown. |
| event_kind | query | string | Allowed: release, speech, meeting, policy_decision, press_conference, other. |
| knowledge_mode | query | string | Allowed: accepted, reconstruction. Default: accepted. |
| checkpoint | query | integer | |
| cursor | query | string | |
| limit | query | integer | Default: 250. |
| api_key | query | string | Deprecated: legacy query-string API key. Still accepted so existing integrations keep working, but new integrations must send the key in the X-API-Key header (or Authorization: Bearer). A key is required for non-USD, paid-only, or full-history requests. Responses to requests authenticated this way carry a Deprecation header. |
Response fields
| Field | Type | Details |
|---|---|---|
| currency | string | |
| as_of | string | |
| knowledge_mode | string | |
| checkpoint | integer | |
| next_cursor | string | |
| events[] | object[] | |
| evidence_notice | string |
GET /v1/calendar/{currency}/events/{archive_event_id}/versions Get immutable schedule versions for an event
An active Individual subscription and API key are required for every request.
Returns accepted versions and their source, capture and documentary evidence. The archive event ID remains stable when its scheduled time changes; existing calendar_event_id values on the current calendar retain their original meaning. Reuse checkpoint and cursor to continue an export. Requires an active API key.
Parameters
| Name | In | Type | Details |
|---|---|---|---|
| currencyRequired | path | string | Allowed: 58 currencies. |
| archive_event_idRequired | path | string | |
| checkpoint | query | integer | |
| cursor | query | string | |
| limit | query | integer | Default: 250. |
| api_key | query | string | Deprecated: legacy query-string API key. Still accepted so existing integrations keep working, but new integrations must send the key in the X-API-Key header (or Authorization: Bearer). A key is required for non-USD, paid-only, or full-history requests. Responses to requests authenticated this way carry a Deprecation header. |
Response fields
| Field | Type | Details |
|---|---|---|
| currency | string | |
| archive_event_id | string | |
| checkpoint | integer | |
| next_cursor | string | |
| versions[] | object[] |
Works well with
Endpoints people use alongside Release calendar
The whole API
All 24 endpoint guides
Rates and markets