# ForexFactory Economic Calendar Scraper (`xtracto/forexfactory-calendar`) Actor

Scrape the ForexFactory economic calendar with released actual values alongside forecast and previous readings, plus revision, impact level and currency. Choose this/next/last week, a month, a day or any date range. Clean JSON, no account or API key.

- **URL**: https://apify.com/xtracto/forexfactory-calendar.md
- **Developed by:** [Farhan Febrian Nauval](https://apify.com/xtracto) (community)
- **Categories:** Lead generation, Integrations, Developer tools
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.99 / 1,000 results

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

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

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).


# README

## ForexFactory Economic Calendar Scraper

Scrape the **ForexFactory economic calendar** as clean JSON — every scheduled event with its **actual** released value alongside the **forecast** and **previous** readings, plus revisions, impact level, currency, and event time. Pick this week, next/last week, a month, a single day, or any custom date range.

### Why use this actor

- **No account, no login, no API key** — just press Run.
- **Actual vs forecast vs previous** on every data release — the numbers traders and analysts actually watch, not just the schedule.
- **Revision, impact level, and "better/worse than expected"** signals included, so you can rank surprises at a glance.
- **Any date window** — this/next/last week, the current month, a single day, or a custom `From`–`To` range (long ranges are fetched and merged automatically).
- **Filter by currency and minimum impact** (e.g. only high-impact USD & EUR events).
- **Stable JSON output** ready for spreadsheets, databases, dashboards, or trading pipelines. Automatic retries; runs on Apify's schedule.

### How it works

1. Choose a **date range** (or a specific day / custom span).
2. Optionally narrow to specific **currencies** and a **minimum impact** level, or keep only **upcoming** events.
3. The actor pulls the calendar for that window and returns one clean row per event.
4. Export to JSON, CSV, or Excel, or pull it straight from the dataset via the API.

You don't manage any scrapers, browsers, or blocks — just the inputs.

### Input

```json
{
  "dateRange": "lastWeek",
  "currencies": ["USD", "CAD"],
  "minImpact": "medium",
  "upcomingOnly": false,
  "maxItems": 500
}
````

| Field | Type | Description |
| --- | --- | --- |
| `dateRange` | string | `thisWeek`, `nextWeek`, `lastWeek`, `thisMonth`, `day`, or `range`. |
| `day` | string | Used when `dateRange = day`. A single date, `YYYY-MM-DD` (e.g. `2026-07-06`). |
| `rangeFrom` | string | Used when `dateRange = range`. Start date, `YYYY-MM-DD`. |
| `rangeTo` | string | Used when `dateRange = range`. End date, `YYYY-MM-DD`. Long spans are split and merged automatically. |
| `currencies` | array | Keep only these currencies (`USD`, `EUR`, `GBP`, `JPY`, `AUD`, `CAD`, `CHF`, `NZD`, `CNY`). Empty = all. |
| `minImpact` | string | `low` (all, incl. holidays), `medium` (medium + high), or `high` (high only). |
| `upcomingOnly` | boolean | Keep only events scheduled from now onward. |
| `maxItems` | integer | Max events to return (0 = no cap). |
| `proxyConfiguration` | object | Optional. Not required — ForexFactory is a public source. |

### Output

One row per event. Real sample (a released US-session data event from `lastWeek`):

```json
{
  "_input": "lastWeek",
  "_source": "S1-onsite",
  "_scrapedAt": "2026-07-10T20:21:57Z",
  "id": 149224,
  "title": "GDP m/m",
  "prefixedName": "CA GDP m/m",
  "currency": "CAD",
  "country": "CA",
  "dateline": 1782822600,
  "datetimeISO": "2026-06-30T12:30:00Z",
  "timeLabel": "7:30pm",
  "impact": "high",
  "impactTitle": "High Impact Expected",
  "actual": "0.5%",
  "forecast": "0.4%",
  "previous": "-0.1%",
  "revision": "",
  "actualBetterWorse": 1,
  "revisionBetterWorse": 0,
  "leaked": false,
  "soloUrl": "/calendar/29-ca-gdp-mm",
  "url": "/calendar?day=jun30.2026#detail=149224"
}
```

| Field | Type | Description |
| --- | --- | --- |
| `_input` | string | The date range you requested. |
| `_source` | string | Where the row came from (`S1-onsite` = live calendar with actuals). |
| `_scrapedAt` | string | When the row was captured (UTC). |
| `id` | number | Stable event ID (used to de-duplicate across a long range). |
| `title` | string | Event name (e.g. `GDP m/m`, `Core CPI m/m`). |
| `prefixedName` | string | Event name prefixed with its currency/region. |
| `currency` | string | Currency the event affects. |
| `country` | string | Country/region code. |
| `dateline` | number | Event time as a Unix timestamp. |
| `datetimeISO` | string | Event time as UTC ISO 8601. |
| `timeLabel` | string | Human-readable event time as shown on the calendar. |
| `impact` | string | Expected impact: `high`, `medium`, `low`, or `holiday`. |
| `impactTitle` | string | Full impact label. |
| `actual` | string / null | The released value. `null` for events that haven't been released yet (all future events) and for speeches/holidays with no reading. |
| `forecast` | string | Consensus forecast (may be empty). |
| `previous` | string | Prior period's value (may be empty). |
| `revision` | string | Revised prior value, if any. |
| `actualBetterWorse` | number | `1` = better than forecast, `-1` = worse, `0` = in line / n/a. |
| `revisionBetterWorse` | number | Same scale, applied to the revision. |
| `leaked` | boolean | Whether the figure was released early. |
| `soloUrl` | string | Path to the event's dedicated page. |
| `url` | string | Path to the event on the calendar. |

### Notes / limits

- **Actual values are populated at release time.** Past events carry a filled `actual`; future events return `actual: null` by design (the forecast and previous are still provided). Speeches, meetings, and holidays have no numeric `actual`.
- **Custom ranges** longer than about two months are fetched in several windows and merged, with duplicate events removed automatically.
- A proxy is **not required**. If your own network can't reach the source, enable Residential proxy in the input.

### Other finance actors

| Actor | What it does |
| --- | --- |
| TradingView Screener, Ideas & Quotes | Screen stocks/crypto/forex, community ideas, live quotes. |
| CoinMarketCap Listings & Airdrops | Crypto market data, new coins, airdrops, per-coin detail. |
| TipRanks Stock Signals | Analyst ratings and price-target signals per ticker. |

# Actor input Schema

## `dateRange` (type: `string`):

Which calendar window to pull. Use 'This week' / 'Next week' / 'Last week' for quick runs, 'This month' for the current month, 'Specific day' with the Day field, or 'Custom range' with the From/To fields (spans over ~60 days are split automatically).

## `day` (type: `string`):

Used when Date range = 'Specific day'. A single date in YYYY-MM-DD format, e.g. 2026-07-06.

## `rangeFrom` (type: `string`):

Used when Date range = 'Custom range'. Start date in YYYY-MM-DD format, e.g. 2026-07-01.

## `rangeTo` (type: `string`):

Used when Date range = 'Custom range'. End date in YYYY-MM-DD format, e.g. 2026-08-31. Spans longer than ~60 days are fetched in several windows and merged.

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

Keep only events for these currencies. Leave empty for all currencies.

## `minImpact` (type: `string`):

Keep only events at or above this expected impact. 'Low (all)' returns everything including holidays; 'Medium' returns medium + high; 'High' returns high-impact events only.

## `upcomingOnly` (type: `boolean`):

When enabled, keep only events scheduled from now onward (skip events that have already passed in the window).

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

Maximum number of events to push to the dataset (0 = no cap). Applied across the whole run.

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

Residential proxy is recommended so the actor reads live released values (actual vs forecast) directly from the source. Without it, results fall back to a forecast-only feed with no 'actual' figures.

## Actor input object example

```json
{
  "dateRange": "thisWeek",
  "day": "2026-07-06",
  "rangeFrom": "2026-07-01",
  "rangeTo": "2026-08-31",
  "currencies": [],
  "minImpact": "low",
  "upcomingOnly": false,
  "maxItems": 500,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# 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 = {
    "dateRange": "thisWeek",
    "day": "2026-07-06",
    "rangeFrom": "2026-07-01",
    "rangeTo": "2026-08-31",
    "currencies": [],
    "minImpact": "low",
    "maxItems": 500
};

// Run the Actor and wait for it to finish
const run = await client.actor("xtracto/forexfactory-calendar").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 = {
    "dateRange": "thisWeek",
    "day": "2026-07-06",
    "rangeFrom": "2026-07-01",
    "rangeTo": "2026-08-31",
    "currencies": [],
    "minImpact": "low",
    "maxItems": 500,
}

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

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

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

```

## CLI example

```bash
echo '{
  "dateRange": "thisWeek",
  "day": "2026-07-06",
  "rangeFrom": "2026-07-01",
  "rangeTo": "2026-08-31",
  "currencies": [],
  "minImpact": "low",
  "maxItems": 500
}' |
apify call xtracto/forexfactory-calendar --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=xtracto/forexfactory-calendar",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "ForexFactory Economic Calendar Scraper",
        "description": "Scrape the ForexFactory economic calendar with released actual values alongside forecast and previous readings, plus revision, impact level and currency. Choose this/next/last week, a month, a day or any date range. Clean JSON, no account or API key.",
        "version": "0.1",
        "x-build-id": "KiMoPGRXp05Fd7PkI"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/xtracto~forexfactory-calendar/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-xtracto-forexfactory-calendar",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/xtracto~forexfactory-calendar/runs": {
            "post": {
                "operationId": "runs-sync-xtracto-forexfactory-calendar",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/xtracto~forexfactory-calendar/run-sync": {
            "post": {
                "operationId": "run-sync-xtracto-forexfactory-calendar",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "properties": {
                    "dateRange": {
                        "title": "Date range",
                        "enum": [
                            "thisWeek",
                            "nextWeek",
                            "lastWeek",
                            "thisMonth",
                            "day",
                            "range"
                        ],
                        "type": "string",
                        "description": "Which calendar window to pull. Use 'This week' / 'Next week' / 'Last week' for quick runs, 'This month' for the current month, 'Specific day' with the Day field, or 'Custom range' with the From/To fields (spans over ~60 days are split automatically).",
                        "default": "thisWeek"
                    },
                    "day": {
                        "title": "Day (for 'Specific day')",
                        "type": "string",
                        "description": "Used when Date range = 'Specific day'. A single date in YYYY-MM-DD format, e.g. 2026-07-06."
                    },
                    "rangeFrom": {
                        "title": "From date (for 'Custom range')",
                        "type": "string",
                        "description": "Used when Date range = 'Custom range'. Start date in YYYY-MM-DD format, e.g. 2026-07-01."
                    },
                    "rangeTo": {
                        "title": "To date (for 'Custom range')",
                        "type": "string",
                        "description": "Used when Date range = 'Custom range'. End date in YYYY-MM-DD format, e.g. 2026-08-31. Spans longer than ~60 days are fetched in several windows and merged."
                    },
                    "currencies": {
                        "title": "Currencies",
                        "type": "array",
                        "description": "Keep only events for these currencies. Leave empty for all currencies.",
                        "items": {
                            "type": "string",
                            "enum": [
                                "USD",
                                "EUR",
                                "GBP",
                                "JPY",
                                "AUD",
                                "CAD",
                                "CHF",
                                "NZD",
                                "CNY"
                            ],
                            "enumTitles": [
                                "USD - US Dollar",
                                "EUR - Euro",
                                "GBP - British Pound",
                                "JPY - Japanese Yen",
                                "AUD - Australian Dollar",
                                "CAD - Canadian Dollar",
                                "CHF - Swiss Franc",
                                "NZD - New Zealand Dollar",
                                "CNY - Chinese Yuan"
                            ]
                        }
                    },
                    "minImpact": {
                        "title": "Minimum impact",
                        "enum": [
                            "low",
                            "medium",
                            "high"
                        ],
                        "type": "string",
                        "description": "Keep only events at or above this expected impact. 'Low (all)' returns everything including holidays; 'Medium' returns medium + high; 'High' returns high-impact events only.",
                        "default": "low"
                    },
                    "upcomingOnly": {
                        "title": "Upcoming only",
                        "type": "boolean",
                        "description": "When enabled, keep only events scheduled from now onward (skip events that have already passed in the window).",
                        "default": false
                    },
                    "maxItems": {
                        "title": "Max records (0 = all)",
                        "minimum": 0,
                        "type": "integer",
                        "description": "Maximum number of events to push to the dataset (0 = no cap). Applied across the whole run.",
                        "default": 500
                    },
                    "proxyConfiguration": {
                        "title": "Proxy",
                        "type": "object",
                        "description": "Residential proxy is recommended so the actor reads live released values (actual vs forecast) directly from the source. Without it, results fall back to a forecast-only feed with no 'actual' figures.",
                        "default": {
                            "useApifyProxy": true,
                            "apifyProxyGroups": [
                                "RESIDENTIAL"
                            ]
                        }
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
