{
  "openapi": "3.0.1",
  "info": {
    "title": "Economic Calendar Scraper: CPI, NFP, Forex Factory Impact",
    "description": "Economic calendar data (CPI, payrolls, rate decisions, GDP, PMIs) from Trading Economics for 140+ countries: time in UTC, actual, consensus, previous, revisions, forecast, importance, plus Forex Factory's impact this week. Forex and macro releases as JSON, CSV or API. Release-watch mode.",
    "version": "1.0",
    "x-build-id": "tnHhPGXPNNb6nQXlf"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/steadyscrape~economic-calendar-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-steadyscrape-economic-calendar-scraper",
        "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/steadyscrape~economic-calendar-scraper/runs": {
      "post": {
        "operationId": "runs-sync-steadyscrape-economic-calendar-scraper",
        "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/steadyscrape~economic-calendar-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-steadyscrape-economic-calendar-scraper",
        "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": {
          "period": {
            "title": "Period",
            "enum": [
              "yesterday",
              "today",
              "tomorrow",
              "recent",
              "thisWeek",
              "nextWeek",
              "previousWeek",
              "thisMonth",
              "nextMonth",
              "previousMonth"
            ],
            "type": "string",
            "description": "The date range, as Trading Economics' calendar offers it to every visitor. <b>Recent</b> is today and the next days; <b>previous week</b> and <b>previous month</b> are the last 7 and 30 days. Older history and custom dates are not offered.",
            "default": "thisWeek"
          },
          "region": {
            "title": "Region",
            "enum": [
              "major",
              "world",
              "europe",
              "america",
              "asia",
              "africa"
            ],
            "type": "string",
            "description": "Which economies to read when <b>Countries</b> and <b>Currencies</b> are empty, as the calendar's own region buttons select them. <b>Major</b> is the G20 economies plus the euro area, the EU, the world, OPEC, the IMF, the G7 and Singapore.",
            "default": "major"
          },
          "countries": {
            "title": "Countries",
            "type": "array",
            "description": "Read only these countries and areas (the euro area, the European Union, OPEC…). When set, the region is ignored.",
            "items": {
              "type": "string",
              "enum": [
                "afg",
                "alb",
                "dza",
                "ago",
                "arg",
                "arm",
                "aus",
                "aut",
                "aze",
                "bhr",
                "bgd",
                "blr",
                "bel",
                "bol",
                "bih",
                "bwa",
                "bra",
                "brn",
                "bgr",
                "khm",
                "cmr",
                "can",
                "cpv",
                "chl",
                "chn",
                "col",
                "cod",
                "cri",
                "hrv",
                "cub",
                "cyp",
                "cze",
                "dnk",
                "dom",
                "tls",
                "ecu",
                "egy",
                "slv",
                "est",
                "eth",
                "emu",
                "eun",
                "fin",
                "fra",
                "g20",
                "g7",
                "geo",
                "deu",
                "gha",
                "grc",
                "hnd",
                "hkg",
                "hun",
                "isl",
                "imf",
                "ind",
                "idn",
                "irn",
                "irl",
                "isr",
                "ita",
                "civ",
                "jam",
                "jpn",
                "jor",
                "kaz",
                "ken",
                "unk",
                "kwt",
                "kgz",
                "lva",
                "lbn",
                "ltu",
                "lux",
                "mac",
                "mkd",
                "mdg",
                "mwi",
                "mys",
                "mli",
                "mlt",
                "mus",
                "mex",
                "mda",
                "mng",
                "mne",
                "mar",
                "moz",
                "mmr",
                "nam",
                "nld",
                "nzl",
                "nic",
                "nga",
                "nor",
                "omn",
                "opc",
                "pak",
                "pse",
                "pan",
                "pry",
                "per",
                "phl",
                "pol",
                "prt",
                "pri",
                "qat",
                "cog",
                "rou",
                "rus",
                "rwa",
                "stp",
                "sau",
                "sen",
                "srb",
                "syc",
                "sle",
                "sgp",
                "svk",
                "svn",
                "som",
                "zaf",
                "kor",
                "esp",
                "lka",
                "sdn",
                "swe",
                "che",
                "twn",
                "tjk",
                "tza",
                "tha",
                "tto",
                "tun",
                "tur",
                "uga",
                "ukr",
                "are",
                "gbr",
                "usa",
                "ury",
                "uzb",
                "ven",
                "vnm",
                "wld",
                "zmb",
                "zwe"
              ],
              "enumTitles": [
                "Afghanistan",
                "Albania",
                "Algeria",
                "Angola",
                "Argentina",
                "Armenia",
                "Australia",
                "Austria",
                "Azerbaijan",
                "Bahrain",
                "Bangladesh",
                "Belarus",
                "Belgium",
                "Bolivia",
                "Bosnia and Herzegovina",
                "Botswana",
                "Brazil",
                "Brunei",
                "Bulgaria",
                "Cambodia",
                "Cameroon",
                "Canada",
                "Cape Verde",
                "Chile",
                "China",
                "Colombia",
                "Congo",
                "Costa Rica",
                "Croatia",
                "Cuba",
                "Cyprus",
                "Czech Republic",
                "Denmark",
                "Dominican Republic",
                "East Timor",
                "Ecuador",
                "Egypt",
                "El Salvador",
                "Estonia",
                "Ethiopia",
                "Euro Area",
                "European Union",
                "Finland",
                "France",
                "G20",
                "G7",
                "Georgia",
                "Germany",
                "Ghana",
                "Greece",
                "Honduras",
                "Hong Kong",
                "Hungary",
                "Iceland",
                "IMF",
                "India",
                "Indonesia",
                "Iran",
                "Ireland",
                "Israel",
                "Italy",
                "Ivory Coast",
                "Jamaica",
                "Japan",
                "Jordan",
                "Kazakhstan",
                "Kenya",
                "Kosovo",
                "Kuwait",
                "Kyrgyzstan",
                "Latvia",
                "Lebanon",
                "Lithuania",
                "Luxembourg",
                "Macau",
                "Macedonia",
                "Madagascar",
                "Malawi",
                "Malaysia",
                "Mali",
                "Malta",
                "Mauritius",
                "Mexico",
                "Moldova",
                "Mongolia",
                "Montenegro",
                "Morocco",
                "Mozambique",
                "Myanmar",
                "Namibia",
                "Netherlands",
                "New Zealand",
                "Nicaragua",
                "Nigeria",
                "Norway",
                "Oman",
                "OPEC",
                "Pakistan",
                "Palestine",
                "Panama",
                "Paraguay",
                "Peru",
                "Philippines",
                "Poland",
                "Portugal",
                "Puerto Rico",
                "Qatar",
                "Republic of the Congo",
                "Romania",
                "Russia",
                "Rwanda",
                "Sao Tome and Principe",
                "Saudi Arabia",
                "Senegal",
                "Serbia",
                "Seychelles",
                "Sierra Leone",
                "Singapore",
                "Slovakia",
                "Slovenia",
                "Somalia",
                "South Africa",
                "South Korea",
                "Spain",
                "Sri Lanka",
                "Sudan",
                "Sweden",
                "Switzerland",
                "Taiwan",
                "Tajikistan",
                "Tanzania",
                "Thailand",
                "Trinidad and Tobago",
                "Tunisia",
                "Turkey",
                "Uganda",
                "Ukraine",
                "United Arab Emirates",
                "United Kingdom",
                "United States",
                "Uruguay",
                "Uzbekistan",
                "Venezuela",
                "Vietnam",
                "World",
                "Zambia",
                "Zimbabwe"
              ]
            },
            "default": []
          },
          "currencies": {
            "title": "Currencies",
            "type": "array",
            "description": "Keep releases of economies paying in these currencies, as ISO codes: <code>USD</code>, <code>EUR</code>, <code>GBP</code>, <code>JPY</code>, <code>CHF</code>, <code>CAD</code>, <code>AUD</code>, <code>NZD</code>, <code>CNY</code>… With no countries chosen, every economy paying in them is read (<code>EUR</code> reads the euro area, the EU and each euro country).",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "minImportance": {
            "title": "Minimum importance",
            "enum": [
              "low",
              "medium",
              "high"
            ],
            "type": "string",
            "description": "Trading Economics' own importance of each release: <b>high</b> is what moves markets (CPI, payrolls, rate decisions, GDP, PMIs).",
            "default": "low"
          },
          "releaseStatus": {
            "title": "Release status",
            "enum": [
              "all",
              "released",
              "upcoming"
            ],
            "type": "string",
            "description": "<b>Released</b> keeps releases whose actual figure is out; <b>Upcoming</b> keeps those still waiting for it.",
            "default": "all"
          },
          "eventKeywords": {
            "title": "Event keywords",
            "type": "array",
            "description": "Keep releases whose name or category contains any of these words, ignoring case, e.g. <code>inflation</code>, <code>non farm payrolls</code>, <code>interest rate</code>, <code>pmi</code>.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "maxEvents": {
            "title": "Maximum events",
            "minimum": 0,
            "type": "integer",
            "description": "Stop after this many releases, the earliest first. <code>0</code> delivers every release of the period.",
            "default": 0
          },
          "onlyNewReleases": {
            "title": "Release watch: only new actuals",
            "type": "boolean",
            "description": "For scheduled runs: deliver (and charge) only releases whose actual figure appeared or changed since your last run with the same countries and filters. The first run delivers every release already out. Upcoming releases are never delivered in this mode.",
            "default": false
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}