# ForexFactory Economic Calendar Scraper (`axery/forexfactory-economic-calendar-scraper`) Actor

Scrape this week's economic calendar events - title, country, impact level, forecast and previous readings - plus a derived forecast-vs-previous direction signal. No login, no API key.

- **URL**: https://apify.com/axery/forexfactory-economic-calendar-scraper.md
- **Developed by:** [Axery](https://apify.com/axery) (community)
- **Categories:** News, Business, Automation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 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?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — 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

Scrapes this week's economic calendar events — title, country, impact level, forecast and previous readings — plus a derived forecast-vs-previous direction signal. No login, no API key.

Useful for trading bots, macro research, and building an economic-events dashboard without maintaining your own calendar feed.

### What makes this different

**A derived direction signal the raw feed doesn't provide.** ForexFactory's feed never reports an actual result — confirmed directly, even for events already in the past within the same week's window, there is no "actual" field at all. What the feed does support is a comparison between what the market forecasts and what happened last time. `forecast_vs_previous` computes exactly that ("up", "down", or "flat"), from numeric values parsed out of display strings like `"0.3%"` or `"150K"` — a filter or sort a raw scrape of this feed doesn't give you for free.

**Percentages and abbreviated figures, parsed into real numbers.** `forecast_value` and `previous_value` handle percentage signs and K/M/B suffixes, so "0.3%" and "150K" become comparable floats rather than strings you'd have to parse yourself before doing anything with them.

### Input

| Field | Type | Notes |
|---|---|---|
| `impact` | array | Optional. Any of `High`, `Medium`, `Low`. |
| `countries` | array | Optional. Currency codes, e.g. `USD`, `EUR`, `GBP`. |
| `proxyConfiguration` | object | Defaults to Residential — this feed applies its own per-IP rate limiting, confirmed directly during development. |

#### One limit worth knowing up front

The feed serves **this week only** — there is no parameter for other weeks (a next-week and a last-week variant were both tried and both 404). For a rolling history of events, run this on a schedule and let the dataset accumulate.

### Output

```json
{
  "title": "Core Retail Sales q/q",
  "country": "NZD",
  "impact": "Low",
  "event_at": "2026-08-23T18:45:00-04:00",
  "forecast_display": "0.3%",
  "previous_display": "1.0%",
  "forecast_value": 0.3,
  "previous_value": 1.0,
  "forecast_vs_previous": "down",
  "forecast_change": -0.7
}
```

Each run also writes a `RUN_COVERAGE` record to the key-value store with the filters applied and how many events came back.

### Local development

```bash
pip install -r requirements.txt
python test_local.py --out sample_output.json
python test_local.py --impact High --countries USD EUR
```

`sample_output.json` is real output from a live run.

# Actor input Schema

## `impact` (type: `array`):

Keep only events at these impact levels: High, Medium, Low. Leave empty for all.

## `countries` (type: `array`):

Keep only events for these currency codes, e.g. USD, EUR, GBP, JPY. Leave empty for all.

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

Apify Proxy settings. Defaults to Residential - this feed applies its own per-IP rate limiting (confirmed directly), independent of any WAF.

## Actor input object example

```json
{
  "impact": [
    "High"
  ],
  "countries": [
    "USD",
    "EUR"
  ],
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# Actor output Schema

## `events` (type: `string`):

One row per event: title, country, impact, forecast/previous readings, and a derived direction signal.

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("axery/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 = {}

# Run the Actor and wait for it to finish
run = client.actor("axery/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 '{}' |
apify call axery/forexfactory-economic-calendar-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,axery/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/wnHqRNq3zJM9un5rm/builds/rveh4ePdruI97eByF/openapi.json
