{
  "openapi": "3.0.1",
  "info": {
    "title": "Forex Economic Calendar Pro - Surprise, Price Reaction",
    "description": "[$1.5/1000] Forex Factory calendar with surprise scores, event history, price reaction after release, OHLC rates and forex news.",
    "version": "0.1",
    "x-build-id": "ZRgfKUVuEKnVEK5TK"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/amethys~forex-calendar-pro/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-amethys-forex-calendar-pro",
        "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/amethys~forex-calendar-pro/runs": {
      "post": {
        "operationId": "runs-sync-amethys-forex-calendar-pro",
        "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/amethys~forex-calendar-pro/run-sync": {
      "post": {
        "operationId": "run-sync-amethys-forex-calendar-pro",
        "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": {
          "mode": {
            "title": "Mode",
            "enum": [
              "calendar",
              "rates",
              "news"
            ],
            "type": "string",
            "description": "What to fetch: the economic calendar, forex OHLC rates, or forex news. Fields below are grouped per mode and only apply to the selected mode.",
            "default": "calendar"
          },
          "calendar_range": {
            "title": "Date range",
            "enum": [
              "today",
              "thisWeek",
              "nextWeek",
              "lastWeek",
              "thisMonth",
              "nextMonth",
              "lastMonth",
              "custom"
            ],
            "type": "string",
            "description": "(mode: calendar) Period to fetch. Choose 'Custom' to use the start and end date fields.",
            "default": "thisWeek"
          },
          "calendar_startDate": {
            "title": "Start date",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "(mode: calendar) First day for the Custom range, format YYYY-MM-DD."
          },
          "calendar_endDate": {
            "title": "End date",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "(mode: calendar) Last day for the Custom range, format YYYY-MM-DD. Defaults to the start date."
          },
          "calendar_currencies": {
            "title": "Currencies",
            "type": "array",
            "description": "(mode: calendar) Only keep events for these currency codes, e.g. USD, EUR, JPY. Leave empty for all.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "calendar_minImpact": {
            "title": "Minimum impact",
            "enum": [
              "low",
              "medium",
              "high"
            ],
            "type": "string",
            "description": "(mode: calendar) Skip events below this impact level.",
            "default": "low"
          },
          "calendar_includeHolidays": {
            "title": "Include bank holidays",
            "type": "boolean",
            "description": "(mode: calendar) Also return bank holiday entries.",
            "default": false
          },
          "calendar_includeEventHistory": {
            "title": "Add event history and z-score",
            "type": "boolean",
            "description": "(mode: calendar) NEW. Attaches the previous releases of each indicator (actual, forecast, previous, surprise), the average and spread of past surprises, and a surprise z-score showing how unusual today's surprise is. History is read from earlier calendar weeks, about 3 seconds per week.",
            "default": false
          },
          "calendar_historyDepth": {
            "title": "History depth",
            "minimum": 2,
            "maximum": 60,
            "type": "integer",
            "description": "(mode: calendar) Number of previous releases to attach per event when event history is enabled.",
            "default": 8
          },
          "calendar_historyLookbackWeeks": {
            "title": "History lookback (weeks)",
            "minimum": 1,
            "maximum": 104,
            "type": "integer",
            "description": "(mode: calendar) How many weeks before the start date to scan for earlier releases. 26 weeks covers roughly 6 monthly releases; raise it for quarterly indicators.",
            "default": 26
          },
          "calendar_includePriceReaction": {
            "title": "Add price reaction",
            "type": "boolean",
            "description": "(mode: calendar) NEW. For released events, measures how the currency's main pair moved after the release (5 minute candles for the last 60 days, hourly candles up to 2 years).",
            "default": false
          },
          "calendar_reactionWindows": {
            "title": "Reaction windows (minutes)",
            "type": "array",
            "description": "(mode: calendar) Minutes after release to measure, e.g. 5, 15, 60. Windows shorter than the candle size of old events are returned as null.",
            "default": [
              "5",
              "15",
              "60"
            ],
            "items": {
              "type": "string"
            }
          },
          "rates_pairs": {
            "title": "Currency pairs",
            "type": "array",
            "description": "(mode: rates) Pairs such as EURUSD, USD/JPY or GBP-USD. Gold (XAUUSD) and silver (XAGUSD) are also accepted.",
            "default": [
              "EURUSD"
            ],
            "items": {
              "type": "string"
            }
          },
          "rates_outputType": {
            "title": "Output type",
            "enum": [
              "candles",
              "latestQuote"
            ],
            "type": "string",
            "description": "(mode: rates) Historical candles, or one latest-quote record per pair.",
            "default": "candles"
          },
          "rates_interval": {
            "title": "Candle interval",
            "enum": [
              "1m",
              "5m",
              "15m",
              "30m",
              "1h",
              "1d",
              "1wk",
              "1mo"
            ],
            "type": "string",
            "description": "(mode: rates) Size of each candle. 1m is limited to the last 7 days, 5m to 15m to 30m to 60 days, 1h to 2 years.",
            "default": "1h"
          },
          "rates_range": {
            "title": "History length",
            "enum": [
              "1d",
              "5d",
              "1mo",
              "3mo",
              "6mo",
              "1y",
              "2y",
              "5y",
              "10y",
              "max"
            ],
            "type": "string",
            "description": "(mode: rates) How far back to go from now.",
            "default": "1mo"
          },
          "news_sources": {
            "title": "News feeds",
            "type": "array",
            "description": "(mode: news) Which FXStreet feeds to read.",
            "items": {
              "type": "string",
              "enum": [
                "news",
                "analysis"
              ],
              "enumTitles": [
                "Breaking news",
                "Analysis"
              ]
            },
            "default": [
              "news",
              "analysis"
            ]
          },
          "news_currencies": {
            "title": "Currency filter",
            "type": "array",
            "description": "(mode: news) Keep articles mentioning these currency codes or pairs, e.g. EUR, USD, XAU. Leave empty for all.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "news_includeFullArticle": {
            "title": "Fetch full article",
            "type": "boolean",
            "description": "(mode: news) Open each article for the full text, author, tags, images and modification date.",
            "default": true
          },
          "news_maxItems": {
            "title": "Max articles",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "(mode: news) Upper limit on returned articles.",
            "default": 30
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}