# ForexFactory Economic Calendar & High-Impact News Scraper (`wyle/forexfactory-economic-calendar-scraper`) Actor

Extract ForexFactory economic calendar events with currency, impact level (High/Medium/Low), ISO/UTC timestamps, forecast, previous, actual values, and event URLs. Ultra-lightweight 256 MB HTTP-only Actor for trading bots, n8n, and macro pipelines.

- **URL**: https://apify.com/wyle/forexfactory-economic-calendar-scraper.md
- **Developed by:** [Willy Lengkong](https://apify.com/wyle) (community)
- **Categories:** Automation, Developer tools
- **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

## ForexFactory Economic Calendar & High-Impact News Scraper

Extract structured **ForexFactory Economic Calendar** events—including currency (`USD`, `EUR`, `GBP`, `JPY`, `AUD`, `CAD`, `CHF`, `NZD`, `CNY`), impact tier (`High`, `Medium`, `Low`, `Holiday`), normalized ISO-8601 & UTC timestamps, forecast, previous, actual values, and canonical ForexFactory event URLs—at **$1.00 / 1,000 events** (no hidden platform usage fee, `256 MB` ultra-fast execution).

***

### Ways to Use

| Mode | Input Field | What You Get |
| :--- | :--- | :--- |
| **This Week Official Feed (`this_week`, Default)** | `currencies`, `impacts`, `searchKeywords` | Instant zero-proxy sync from ForexFactory's official JSON & XML feeds with ISO/UTC timestamps and canonical event URLs. |
| **Filtered High-Impact Alerts** | `currencies: ["USD", "EUR"]`, `impacts: ["High"]` | Clean high-volatility schedule (CPI, FOMC, NFP, Interest Rates) ready for algorithmic trading bots and Slack/Discord webhooks. |
| **Specific Calendar Week (`calendar_week`)** | `mode: "calendar_week"`, `weekSlug` | Fetch `this`, `next`, `last`, or custom weeks (`nov16.2026`) directly from ForexFactory's calendar pages. |

***

### Use Cases

1. **Algorithmic Forex, Gold & Crypto Bots:** Pause or adjust EA / trading bot exposure automatically before `High`-impact `USD` or `EUR` announcements (`impactLevel: 3`).
2. **Macro & AI Market Agents (MCP / n8n / Make):** Pipe upcoming weekly macro events (`CPI`, `Non-Farm Payrolls`, `Fed Rate`) into Slack, Telegram, Notion, or AI trading assistants.
3. **Econometric & Quantitative Research:** Export clean zero-null weekly calendars into JSON, CSV, or Excel with normalized `dateTimeUtc` timestamps.

***

### Input Parameters

| Parameter | Type | Default | Description |
| :--- | :--- | :--- | :--- |
| `mode` | `String` | `"this_week"` | `"this_week"` (official JSON/XML feed, fastest) or `"calendar_week"` (specific ForexFactory week slug). |
| `weekSlug` | `String` | `"this"` | Week selector when using `calendar_week` mode (`"this"`, `"next"`, `"last"`, or e.g. `"nov16.2026"`). |
| `currencies` | `Array` | `[]` | Currency filter list (e.g. `["USD", "EUR", "GBP"]`). Empty = all currencies. |
| `impacts` | `Array` | `["High", "Medium", "Low", "Holiday"]` | Impact levels to include. |
| `searchKeywords` | `Array` | `[]` | Case-insensitive title filters (e.g. `["CPI", "Rate", "GDP"]`). |
| `maxItems` | `Integer` | `200` | Maximum events to return (`1`–`2000`). |
| `proxyConfiguration` | `Object` | `{"useApifyProxy": false}` | Optional Apify Proxy configuration (`this_week` requires zero proxy). |

***

### Sample Output

```json
{
  "recordType": "economic_event",
  "eventId": "43",
  "title": "Prelim GDP Price Index y/y",
  "currency": "JPY",
  "impact": "Low",
  "impactLevel": 1,
  "dateYmd": "2026-11-15",
  "dateTimeIso": "2026-11-15T18:50:00-05:00",
  "dateTimeUtc": "2026-11-15T23:50:00Z",
  "timeLabel": "11:50pm",
  "actual": "",
  "forecast": "2.6%",
  "previous": "2.6%",
  "url": "https://www.forexfactory.com/calendar/43-jn-prelim-gdp-price-index-yy",
  "source": "cdn_feed",
  "scrapedAt": "2026-11-21T14:07:00.000000+00:00"
}
```

***

### Pricing & Cost Examples

Ultra-lightweight **`256 MB`** HTTP-only execution (**no browser, no hidden platform usage fee**): `$0.0005` Actor start + `$0.001` per event (`$1.00 / 1,000 events`, with Store discounts down to `$0.70 / 1,000` on Gold+).

| Run Size | Standard Estimate |
| :--- | :--- |
| Weekly full calendar (~`80–120` events) | `~$0.08 – $0.12` |
| `1,000` filtered events | `~$1.00` |

***

### API & Automation Integration (Python, Node.js, cURL, n8n, MCP)

#### Python

```python
from apify_client import ApifyClient

client = ApifyClient("<YOUR_APIFY_TOKEN>")
run = client.actor("wyle/forexfactory-economic-calendar-scraper").call(run_input={
    "mode": "this_week",
    "currencies": ["USD", "EUR"],
    "impacts": ["High"],
})
events = list(client.dataset(run["defaultDatasetId"]).iterate_items())
print(len(events), events[0]["dateTimeUtc"], events[0]["title"])
```

#### Node.js

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

const client = new ApifyClient({ token: "<YOUR_APIFY_TOKEN>" });
const run = await client.actor("wyle/forexfactory-economic-calendar-scraper").call({
  mode: "this_week",
  currencies: ["USD"],
  impacts: ["High", "Medium"],
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items.length, items[0]);
```

#### cURL

```bash
curl -X POST "https://api.apify.com/v2/acts/wyle~forexfactory-economic-calendar-scraper/run-sync-get-dataset-items?token=<YOUR_APIFY_TOKEN>" \
  -H "Content-Type: application/json" \
  -d '{"mode":"this_week","currencies":["USD"],"impacts":["High"]}'
```

***

### Related Finance & Market Data Suite by `wyle`

- [`wyle/yahoo-finance-scraper`](https://apify.com/wyle/yahoo-finance-scraper) — Extract stock quotes, OHLCV history, financials, and ticker news.
- [`wyle/polymarket-scraper`](https://apify.com/wyle/polymarket-scraper) — Track live macro, election, and Fed rate prediction market probabilities.
- [`wyle/northdata-companies-scraper`](https://apify.com/wyle/northdata-companies-scraper) — Scrape European corporate registries, executives, and multi-year financial KPIs.

# Actor input Schema

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

Use 'this_week' for the ultra-fast official ForexFactory JSON/XML feed (works with zero proxy), or 'calendar_week' to fetch a specific week page from ForexFactory.

## `weekSlug` (type: `string`):

Week identifier on ForexFactory when using calendar_week mode (e.g. 'this', 'next', 'last', or 'nov16.2026').

## `currencies` (type: `array`):

Only return events for specific currencies (e.g. \['USD', 'EUR', 'GBP', 'JPY']). Leave empty for all currencies.

## `impacts` (type: `array`):

Keep only events matching these impact levels (e.g. \['High', 'Medium']). Leave empty for all impacts.

## `searchKeywords` (type: `array`):

Only return events whose title contains at least one keyword (case-insensitive, e.g. \['CPI', 'Rate', 'Payroll', 'GDP']).

## `maxItems` (type: `integer`):

Maximum number of calendar events to return (1 to 2000).

## `proxyConfiguration` (type: `object`):

Optional Apify Proxy settings. Keep disabled for 'this_week' mode (zero proxy required).

## Actor input object example

```json
{
  "mode": "this_week",
  "weekSlug": "this",
  "currencies": [],
  "impacts": [
    "High",
    "Medium",
    "Low",
    "Holiday"
  ],
  "searchKeywords": [],
  "maxItems": 200,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

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

No description

# 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 = {
    "currencies": [],
    "impacts": [
        "High",
        "Medium",
        "Low",
        "Holiday"
    ],
    "searchKeywords": []
};

// Run the Actor and wait for it to finish
const run = await client.actor("wyle/forexfactory-economic-calendar-scraper").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 = {
    "currencies": [],
    "impacts": [
        "High",
        "Medium",
        "Low",
        "Holiday",
    ],
    "searchKeywords": [],
}

# Run the Actor and wait for it to finish
run = client.actor("wyle/forexfactory-economic-calendar-scraper").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 '{
  "currencies": [],
  "impacts": [
    "High",
    "Medium",
    "Low",
    "Holiday"
  ],
  "searchKeywords": []
}' |
apify call wyle/forexfactory-economic-calendar-scraper --silent --output-dataset

```

## MCP server setup

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

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/tNRiPOx7QpBdIRs9b/builds/bwAlZLQStSlsYqQ7X/openapi.json
