Economic Calendar Events
Retrieve structured macroeconomic calendar events by country, importance, category keyword and date range. Returns event time, currency zone, importance, forecast and previous values for quant signals, trading agents and macro research.
Overview
Economic Calendar Events
Turn the current week's macroeconomic calendar into clean, structured rows for quant signals, trading agents and macro research. Each row includes the country or currency zone, event time, importance, event name, forecast and previous value.
Data notes
Coverage includes approximately nine major currency zones: USD, EUR, GBP, JPY, CNY, CAD, AUD, NZD and CHF. Times default to GMT+8 and can be changed with timeZone. Use timeFilter=time_remain for countdown displays.
The source is the Forex Factory weekly JSON feed because Investing.com is blocked by Cloudflare. The feed contains the current rolling week, including events already released and upcoming events. It does not provide released actual values, so actual is always an empty string. Use a market-data or professional macro database when comparing actual releases against forecasts.
Categories are English event-name keyword filters such as CPI, GDP or Claims because the feed has no category metadata. Event IDs are deterministic values derived from currency zone, original timestamp and event name, so the same event keeps the same ID across runs.
Inputs
| Field | Type | Description |
|---|---|---|
| country | string | One country or zone, or a currency code; empty means all |
| countries | array | Multiple countries or zones; combined with country |
| importances | string | high, medium or low; empty means all |
| categories | string | Case-insensitive English event-name keyword |
| fromDate / toDate | string | Inclusive YYYY-MM-DD range within the current week |
| timeZone | string | GMT offset such as GMT +2:00 or GMT -5:30; default GMT+8 |
| timeFilter | string | time_only for event time or time_remain for countdown |
Output
One row per event with 12 fields: stable ID, local date, local time or countdown, zone, currency, importance, event name, actual, forecast, previous, retrieval timestamp and record type.
Use cases
- Add event timing and forecast context to quantitative strategies.
- Give an AI trading agent a structured view of the week's macro events.
- Refresh a daily calendar dashboard or morning briefing by importance and time remaining.
Failure handling
The App respects source rate limits with bounded retries, rejects invalid countries and date formats with clear errors, and skips only individual entries that cannot be parsed.
Input
Parameters required to call this App.
- Country
countryOptionalstringOne country or economic zone, such as united states, euro zone, japan or china (case-insensitive). Currency codes USD/EUR/GBP/JPY/CNY/CAD/AUD/NZD/CHF are also accepted. Leave empty for all zones. Euro-zone members such as Germany and France are grouped into euro zone.Exampleunited states - Countries (multiple)
countriesOptionalarray<string>Multiple countries or zones. Combined with Country using union semantics; leave both empty for all zones.Example["euro zone","united kingdom"] - Importances
importancesOptionalstring(enum)Only include events at the selected importance. Leave empty for all levels, including holidays.Allowed valueshigh (high impact)highmedium (medium impact)mediumlow (low impact)low - Categories
categoriesOptionalstringFilter by a case-insensitive English event-name substring such as CPI, GDP, Rate or Claims. Leave empty for all categories.ExampleCPI - From Date
fromDateOptionalstringStart date in YYYY-MM-DD format. The source provides a rolling current-week calendar, including released events. Ranges outside the current week may return zero records; leave empty for the full week.Example2026-11-16 - To Date
toDateOptionalstringInclusive end date in YYYY-MM-DD format. Leave empty for the full current week.Example2026-11-22 - TimeZone
timeZoneOptionalstringOutput time zone in GMT offset format, such as 'GMT +2:00', 'GMT -5:30' or 'GMT+8'. Defaults to GMT +8:00.ExampleGMT +8:00 - Time Filter
timeFilterOptionalstring(enum)How the time field is displayed: time_only shows the event time; time_remain shows the time until the event starts, such as '2d 3h 15m', or 0m after it starts.Allowed valuestime_only (show event time)time_onlytime_remain (show time remaining)time_remainDefaulttime_only
Output
Field structure of a single record.
- ID
idintegerStable event identifier derived from currency zone, original timestamp and event nameExample110051664652747 - Date
datestringEvent date in DD/MM/YYYY format after conversion to the requested time zoneExample17/11/2026 - Time
timestringEvent time HH:MM in the requested time zone; with time_remain, the remaining time such as '2d 3h 15m', or 0m after startExample21:30 - Zone
zonestringLowercase country or economic zone, such as united states or euro zone; unknown zones use the lowercase currency codeExampleunited states
Pricing
Charged by the number of records successfully returned. Failed runs are not charged.
Multiple billing events accumulate independently. See each item for details. Failed runs are not charged.
View creditsRun now
Runs once for real with the parameters you enter, billed per Pricing.
Integration
With MCP you can call this Data App directly from AI clients such as Claude and Cursor.
Already connected to Octoparse Data Hub? Use it right in your chat
No setup needed. Copy this sentence to your AI and continue with what you want to do:
Not connected yet? Set it up once with any method below, and every Data App works from then on.
Client config
Replace YOUR_API_KEY with your own API key; works with all clients, CI and headless environments.Get API key →
{
"mcpServers": {
"octoparse_datahub": {
"type": "http",
"url": "https://mcp-v2.octoparse.com",
"headers": { "Authorization": "Bearer YOUR_API_KEY" }
}
}
}Let AI set it up for you
Don't want to edit configs by hand? Copy the install prompt and paste it into any AI client. It will complete the setup its own way. (By default it guides you through signing in, and never asks you to send your API key in the chat.)
Notes
Scope
Investing.com is blocked by Cloudflare, so the App uses the reachable Forex Factory weekly JSON feed. Coverage is approximately nine major currency zones, not every country. The feed provides forecast and previous values but no released actual values, so actual is always an empty string. Only the current rolling week is available. Categories filter English event-name keywords because the feed has no category metadata. Event IDs are deterministic synthetic values. Times default to GMT+8 and can be changed with timeZone.
Not suitable for
- Backtesting released actual values; this feed does not include them
- Every country or detailed category metadata; coverage is about nine major currency zones
- Historical or future dates outside the current rolling week
Running and canceling
This App runs asynchronously and can be canceled midway; results returned before you cancel are kept and billed as usual.
Failure handling
When connected via MCP, the AI reads these notes automatically; when using the API or SDK, handle them in your code.
- 1Honors HTTP 429 Retry-After within a 300-second total wait budget, then fails as retryable
- 2Rejects unrecognized countries with an explicit error listing supported zones
- 3Returns zero records when the requested range does not intersect the current week
- 4Skips individual entries with invalid timestamps without affecting other events
FAQ
How is it billed?
Per record: $0.005 / record; failed runs are not billed.See Pricing →
How much can one run collect? Any limits?
Investing.com is blocked by Cloudflare, so the App uses the reachable Forex Factory weekly JSON feed. Coverage is approximately nine major currency zones, not every country. The feed provides forecast and previous values but no released actual values, so actual is always an empty string. Only the current rolling week is available. Categories filter English event-name keywords because the feed has no category metadata. Event IDs are deterministic synthetic values. Times default to GMT+8 and can be changed with timeZone.See Notes →
Can I use it in an AI assistant or agent?
Yes. Connect Octoparse Data Hub once and you can call every Data App by name in your chat, including bzy/economic-calendar-data.See Integration →