Delivery endpoint
GraphQL
Fetch several series and only the fields you need in one query.
query MacroSnapshot {
policy: announcements(currency: "USD", indicator: "policy_rate", startDate: "2026-01-01") {
indicator
data { date val announcementDatetime }
}
upcoming: calendar(currency: "USD", indicator: "inflation") {
data { announcementDatetime release }
}
coverage: dataCatalogue(currency: "USD") {
indicators { slug name frequency }
}
}
curl -X POST "https://api.fxmacrodata.com/v1/graphql" \
-H "Content-Type: application/json" \
-H "X-API-Key: YOUR_API_KEY" \
-d '{"query": "query MacroSnapshot {\n policy: announcements(currency: \"USD\", indicator: \"policy_rate\", startDate: \"2026-01-01\") {\n indicator\n data { date val announcementDatetime }\n }\n upcoming: calendar(currency: \"USD\", indicator: \"inflation\") {\n data { announcementDatetime release }\n }\n coverage: dataCatalogue(currency: \"USD\") {\n indicators { slug name frequency }\n }\n}"}'
Queries
Ask for exactly the fields you need
One endpoint, https://api.fxmacrodata.com/v1/graphql, answers release history, the release calendar and the data catalogue in a single request. Send your key in the X-API-Key header, the same as the REST endpoints.
One request, three datasets
The reason to reach for GraphQL instead of REST: aliases let a single round trip return a policy-rate series, the next CPI release, and the currency's full indicator coverage.
query MacroSnapshot {
policy: announcements(currency: "USD", indicator: "policy_rate", startDate: "2026-01-01") {
indicator
data { date val announcementDatetime }
}
upcoming: calendar(currency: "USD", indicator: "inflation") {
data { announcementDatetime release }
}
coverage: dataCatalogue(currency: "USD") {
indicators { slug name frequency }
}
}
Inflation history with revisions and the central-bank target
Request retained revision values and the central-bank target alongside the series. captureHistory also includes retained snapshots whose publication time is unknown, with source qualifiers and native JSON when available. observedAtNs is a decimal-string capture clock, not a publisher timestamp. Use REST announcement history and as_of for point-in-time selection.
query CpiWithRevisions {
announcements(currency: "USD", indicator: "inflation", startDate: "2025-01-01") {
currency
indicator
hasOfficialForecast
cbTarget {
description
current { effectiveFrom target }
}
data {
date
val
pctChange
source
sourceUrl
revisions { epoch val }
captureHistory {
epoch val observedAtNs publicationTimeStatus
sourceObservationFlag sourceNativeRecord sourceAccessDate
}
}
}
}
Discover coverage before querying it
dataCatalogue needs no API key. Use it to resolve valid indicator slugs, units, and release frequency for a currency before requesting the series itself.
query EurCoverage {
dataCatalogue(currency: "EUR") {
currency
indicators {
slug
name
unit
frequency
hasOfficialForecast
}
}
}
Upcoming releases across several currencies
Alias the calendar field once per currency to build a multi-currency release schedule in one request. This query is also open without an API key.
query ReleaseWeek {
usd: calendar(currency: "USD") {
data { announcementDatetime release }
}
eur: calendar(currency: "EUR") {
data { announcementDatetime release }
}
gbp: calendar(currency: "GBP", indicator: "inflation") {
data { announcementDatetime release }
}
}
Works well with
Endpoints people use alongside GraphQL
The whole API
All 24 endpoint guides
Rates and markets