# Economic Calendar API - Official CPI, Jobs, FOMC Dates, MCP (`martin10291/economic-calendar-api`) Actor

Economic calendar from official agency schedules only, no API key: US (BLS, BEA, Census, Federal Reserve FOMC), UK (ONS) and euro area (ECB). Exact release time in UTC and local time, importance, category and period for CPI, jobs report, GDP, PCE, retail sales, FOMC and ECB rate decisions. Monitor m

- **URL**: https://apify.com/martin10291/economic-calendar-api.md
- **Developed by:** [Martin Petrov](https://apify.com/martin10291) (community)
- **Categories:** Developer tools, AI, Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.70 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Economic Calendar API - Official CPI, Jobs, FOMC Dates, MCP

**Problem:** your trading bot, fintech app, newsletter or AI agent needs to know which market-moving releases come today and this week (CPI, jobs report, GDP, PCE, retail sales, FOMC, ECB, UK CPI) and the exact minute they drop. Most economic calendar feeds copy Investing.com or ForexFactory, whose terms forbid reuse, and break when those sites change.

**This API:** one JSON call, no API key. Every row comes from the agency that publishes the number: BLS, BEA, U.S. Census Bureau, Federal Reserve (FOMC), UK Office for National Statistics and the European Central Bank. Exact release time in UTC and in the agency's local time (daylight saving handled), importance, category, reference period, status and a link to the official source.

- **upcoming** (default): releases from now for the next `days` (default 7, max 120).
- **today** / **week**: this UTC day or ISO week (Mon-Sun).
- **range**: `from` / `to` (YYYY-MM-DD), past dates allowed (max 370 days).
- **next**: the next release of every indicator matching `search`, e.g. `cpi` returns the next US CPI (BLS) and UK CPI (ONS).
- **events**: distinct indicators with agency, importance, category and next date: build your own watch list.
- **Filters:** `country` (US, GB, EA), `importance` (high = market movers only), `category` (inflation, employment, growth, central bank, trade, housing, consumer, business), `agency`, `search`, `limit`.
- **Monitor mode:** `onlyNew` + `monitorId` returns only releases that are new, moved to another time or changed status since the last run. Schedule it daily and push changes to Slack or your app.

Coverage now: about 1,600 releases (US 2025-2027, UK upcoming + last 4 months, ECB future meetings). Measured 2026-11-17: cold call 0.9 s for all 6 agencies, cached 15 ms.

### Example (API)

```bash
curl -X POST "https://api.apify.com/v2/acts/martin10291~economic-calendar-api/run-sync-get-dataset-items?token=YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"mode": "next", "search": "cpi", "country": ["US"]}'
```

Row (measured 2026-11-17):

```json
{"type": "release", "country": "US", "agency": "BLS", "event": "Consumer Price Index (CPI)",
 "releaseTimeUtc": "2026-12-10T13:30:00Z", "releaseTimeLocal": "2026-12-10T08:30:00-05:00",
 "timezone": "America/New_York", "date": "2026-12-10", "importance": "high", "category": "inflation",
 "status": "scheduled", "sourceUrl": "https://www.bls.gov/schedule/news_release/",
 "source": "BLS (public domain)", "estimated": false}
```

High-importance releases this week: `{"mode": "week", "importance": "high"}`
Central bank decisions next 90 days: `{"days": 90, "category": "central bank"}`

### Use it from AI agents (MCP)

Add the Apify MCP server to Claude, Cursor or any MCP client and call this Actor as a tool:

```json
{"mcpServers": {"apify": {"url": "https://mcp.apify.com/?actors=martin10291/economic-calendar-api",
  "headers": {"Authorization": "Bearer YOUR_APIFY_TOKEN"}}}}
```

Then ask: "Which US and UK high-impact data releases are due this week, in UTC?"

### Output fields

`event`, `agency`, `country`, `period`, `releaseTimeUtc`, `releaseTimeLocal`, `timezone`, `date`, `importance`, `category`, `status` (scheduled / released / cancelled / postponed), `estimated` (true for FOMC minutes without a published date and ONS provisional dates), `sourceUrl`, `source`, `id`.

### Notes

- Times are what the agencies publish. FOMC decisions use the official 14:00 ET statement time, ECB decisions the official 14:15 Frankfurt time.
- BLS publishes its next-year schedule late in the year; rows appear here within 6 hours of publication.
- Release dates and times only (no forecasts or actual values).
- Sources and licences: BLS, BEA, U.S. Census Bureau and Federal Reserve (U.S. public domain); ONS (Open Government Licence v3.0); ECB (reproduction permitted with the source acknowledged). Not endorsed by any of these agencies.

Pricing: pay per result, $1.00 per 1,000 rows.

# Actor input Schema

## `mode` (type: `string`):

upcoming = releases from now for the next Days; today / week = this UTC day or ISO week; range = From..To (past dates allowed, max 370 days); next = the next release of each indicator matching Search (e.g. cpi, nonfarm, gdp, fomc); events = distinct indicators with agency, importance and next date.

## `days` (type: `integer`):

For mode upcoming: how many days ahead (1-120).

## `from` (type: `string`):

For mode range: start date YYYY-MM-DD (UTC).

## `to` (type: `string`):

For mode range: end date YYYY-MM-DD (UTC). Empty = From + 30 days.

## `country` (type: `array`):

Filter by country code: US, GB (UK) or EA (euro area). Empty = all.

## `importance` (type: `string`):

high = market movers only (CPI, jobs report, GDP, PCE, retail sales, PPI, FOMC, ECB, UK CPI/labour/GDP). Empty = all.

## `category` (type: `string`):

Only releases of this category. Empty = all.

## `agency` (type: `string`):

Only releases of this agency. Empty = all.

## `search` (type: `string`):

Text in the indicator name, e.g. cpi, nonfarm, gdp, pce, retail sales, fomc, labour market. Required for mode next.

## `limit` (type: `integer`):

Maximum number of rows (1-1000).

## `onlyNew` (type: `boolean`):

Return only releases that are new, moved to another time or changed status since the last run with the same Monitor ID. Schedule daily.

## `monitorId` (type: `string`):

Name of this watch (any text). Each Monitor ID keeps its own memory of releases already returned.

## Actor input object example

```json
{
  "mode": "upcoming",
  "days": 7,
  "limit": 200,
  "onlyNew": false
}
```

# Actor output Schema

## `results` (type: `string`):

One row per official release (event, agency, country, releaseTimeUtc, local time, importance, category, period, status, source link) or one row per indicator in events mode.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "mode": "upcoming",
    "days": 7
};

// Run the Actor and wait for it to finish
const run = await client.actor("martin10291/economic-calendar-api").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "mode": "upcoming",
    "days": 7,
}

# Run the Actor and wait for it to finish
run = client.actor("martin10291/economic-calendar-api").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "mode": "upcoming",
  "days": 7
}' |
apify call martin10291/economic-calendar-api --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,martin10291/economic-calendar-api"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/hBHN6gD8MvL4WSP1N/builds/JLtrZORiqGEQc7ZHY/openapi.json
