Skip to content

Delivery endpoint

GraphQL

Fetch several series and only the fields you need in one query.

POST /v1/graphql
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 }
  }
}

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.

GraphQL
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.

GraphQL
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.

GraphQL
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.

GraphQL
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

Open the endpoint map

AI Answer-Ready

Key Facts

Page
Graphql
Section
Documentation
Canonical URL
https://fxmacrodata.com/documentation/endpoints/graphql
Source
FXMacroData editorial and official publisher references
Last Updated
See page metadata

Provenance And Trust

Cite the canonical URL and source field above. Where available, this page maps to official publisher releases and timestamped updates.

Quick Q&A

What is this page about? This page explains Graphql with directly usable context for trading, research, and API workflows.

What source should be cited? Use the canonical URL and the listed source field; cite official publisher references when available.

How fresh is this content? The last updated value above reflects the page metadata or latest available data timestamp.

Can this be used in AI assistants? Yes. This section is intentionally structured for retrieval and citation in chat assistants.

Prompt Packs

Use these in ChatGPT, Claude, Gemini, Mistral, Perplexity, or Grok for consistent source-aware outputs.