{
  "openapi": "3.0.1",
  "info": {
    "title": "ForexFactory Economic Calendar Scraper",
    "description": "Get the ForexFactory economic calendar with actual, forecast and previous values, impact, currency and the surprise versus forecast. Add indicator details, beat rate and surprise z-score from past releases, or monitor new releases. Also covers CryptoCraft, MetalsMine and EnergyExch.",
    "version": "1.0",
    "x-build-id": "yMB3UUAMOyXVKOadY"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/datamole~forexfactory-economic-calendar/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-datamole-forexfactory-economic-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/datamole~forexfactory-economic-calendar/runs": {
      "post": {
        "operationId": "runs-sync-datamole-forexfactory-economic-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/datamole~forexfactory-economic-calendar/run-sync": {
      "post": {
        "operationId": "run-sync-datamole-forexfactory-economic-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": {
          "calendars": {
            "title": "Calendars",
            "type": "array",
            "description": "ForexFactory is the forex calendar. Its sister sites list the events that move each market and rate the impact for it: crude oil inventories are low impact on ForexFactory and high impact on EnergyExch.",
            "items": {
              "type": "string",
              "enum": [
                "forex",
                "metals",
                "energy",
                "crypto"
              ],
              "enumTitles": [
                "ForexFactory (Forex)",
                "MetalsMine (Metals)",
                "EnergyExch (Energy)",
                "CryptoCraft (Crypto)"
              ]
            },
            "default": [
              "forex"
            ]
          },
          "period": {
            "title": "Period",
            "enum": [
              "today",
              "tomorrow",
              "yesterday",
              "this-week",
              "next-week",
              "last-week",
              "this-month",
              "next-month",
              "last-month",
              "custom"
            ],
            "type": "string",
            "description": "Which days to get. Weeks run Sunday to Saturday, like on ForexFactory.",
            "default": "this-week"
          },
          "dateFrom": {
            "title": "Start date (custom)",
            "type": "string",
            "description": "First day of a custom range. History goes back to 2007-01-01."
          },
          "dateTo": {
            "title": "End date (custom)",
            "type": "string",
            "description": "Last day of a custom range. Leave empty for a single day."
          },
          "timezone": {
            "title": "Timezone",
            "type": "string",
            "description": "Timezone for the date and time fields and for what \"today\" or \"this week\" means, for example UTC, America/New_York, Europe/London, Asia/Tokyo. The dateTime field is always in UTC.",
            "default": "UTC"
          },
          "currencies": {
            "title": "Currencies",
            "type": "array",
            "description": "Only events for these currencies. Empty means all.",
            "items": {
              "type": "string",
              "enum": [
                "USD",
                "EUR",
                "GBP",
                "JPY",
                "AUD",
                "CAD",
                "CHF",
                "NZD",
                "CNY",
                "BRL",
                "MXN",
                "RUB",
                "All"
              ],
              "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",
                "BRL · Brazilian Real",
                "MXN · Mexican Peso",
                "RUB · Russian Ruble",
                "All · All currencies (global events)"
              ]
            }
          },
          "impacts": {
            "title": "Impact",
            "type": "array",
            "description": "Only events with this expected impact. Empty means all.",
            "items": {
              "type": "string",
              "enum": [
                "high",
                "medium",
                "low",
                "holiday"
              ],
              "enumTitles": [
                "High impact",
                "Medium impact",
                "Low impact",
                "Non-economic (holidays, elections)"
              ]
            }
          },
          "countries": {
            "title": "Countries",
            "type": "array",
            "description": "Only events from these countries. Useful for the euro, where Germany, France, Italy and Spain publish their own data.",
            "items": {
              "type": "string",
              "enum": [
                "US",
                "GB",
                "EU",
                "DE",
                "FR",
                "IT",
                "ES",
                "BE",
                "CH",
                "JP",
                "CN",
                "AU",
                "NZ",
                "CA",
                "BR",
                "MX",
                "RU",
                "WW"
              ],
              "enumTitles": [
                "United States",
                "United Kingdom",
                "Euro Area",
                "Germany",
                "France",
                "Italy",
                "Spain",
                "Belgium",
                "Switzerland",
                "Japan",
                "China",
                "Australia",
                "New Zealand",
                "Canada",
                "Brazil",
                "Mexico",
                "Russia",
                "Worldwide"
              ]
            }
          },
          "eventSearch": {
            "title": "Event names contain",
            "type": "array",
            "description": "Keep events whose name contains any of these words, for example CPI, Non-Farm, Rate, PMI, Crude.",
            "items": {
              "type": "string"
            }
          },
          "status": {
            "title": "Status",
            "enum": [
              "all",
              "released",
              "upcoming"
            ],
            "type": "string",
            "description": "All events, only the ones with an actual value, or only the ones still to come.",
            "default": "all"
          },
          "onlyWithData": {
            "title": "Only data releases",
            "type": "boolean",
            "description": "Skip speeches, holidays and meetings without numbers.",
            "default": false
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "time",
              "impact"
            ],
            "type": "string",
            "description": "Time order, or high impact first.",
            "default": "time"
          },
          "includeDetails": {
            "title": "Add indicator details and history stats",
            "type": "boolean",
            "description": "For each indicator, the source agency and its release link, what it measures, the usual effect on the currency, frequency, next release, notes and why traders care. Data releases also get their past releases, how often they beat the forecast, the typical surprise and the z-score of this surprise. Charged as an extra event.",
            "default": false
          },
          "historyLimit": {
            "title": "Past releases to include",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Past releases listed per event, newest first. The stats use up to 100 past releases either way.",
            "default": 12
          },
          "monitorMode": {
            "title": "Monitor mode",
            "type": "boolean",
            "description": "Schedule the run and get only what changed since the last one: new events, new releases (actual published), corrected actuals, revised previous values, forecast changes and rescheduled events. Each record says what changed.",
            "default": false
          },
          "monitorName": {
            "title": "Monitor name (optional)",
            "type": "string",
            "description": "Give the monitor a name to keep its memory when you change the filters. By default the memory depends on the filters."
          },
          "maxItems": {
            "title": "Max results",
            "minimum": 1,
            "type": "integer",
            "description": "Maximum number of events to save. Empty means no limit."
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Apify datacenter proxy by default.",
            "default": {
              "useApifyProxy": true
            }
          }
        }
      },
      "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
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "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
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}