{
  "openapi": "3.0.1",
  "info": {
    "title": "Economic Calendar Scraper — Actual, Forecast & Previous",
    "description": "Economic calendar for 140+ countries: every macro release (CPI, jobs, GDP, PMI, rates) with time in UTC, country, currency, period, importance, actual, consensus, forecast, previous, revisions, unit and surprise. Date presets or custom dates, only-changes monitor. No login.",
    "version": "0.1",
    "x-build-id": "xFAdaFXEg2Hrh0YTG"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/yugenox~economic-calendar-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-yugenox-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/yugenox~economic-calendar-scraper/runs": {
      "post": {
        "operationId": "runs-sync-yugenox-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/yugenox~economic-calendar-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-yugenox-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": {
          "countries": {
            "title": "🌍 Countries",
            "type": "array",
            "description": "Countries to include: ISO codes (US, EU, GB, JP, CA, DE, CN, AU …), country names (\"United States\", \"Euro Area\"), currencies (USD, EUR, GBP, JPY — EUR = the Euro Area and every euro country) or regions (G20, G7, Europe, Asia, America, Africa). Leave empty for all 140+ countries.",
            "items": {
              "type": "string"
            }
          },
          "dateRange": {
            "title": "📅 Dates",
            "enum": [
              "today",
              "tomorrow",
              "yesterday",
              "thisWeek",
              "nextWeek",
              "previousWeek",
              "thisMonth",
              "nextMonth",
              "previousMonth",
              "recent"
            ],
            "type": "string",
            "description": "Which days to get. Weeks run Sunday to Sunday. Times are in UTC. Ignored when you fill in From / Until below.",
            "default": "thisWeek"
          },
          "dateFrom": {
            "title": "From (custom dates)",
            "type": "string",
            "description": "Optional custom start date, e.g. 2026-11-02, or relative like \"today\" or \"-7 days\". The calendar shows the last 30 days through the end of next month; days outside that are skipped (and named in the status message)."
          },
          "dateTo": {
            "title": "Until (custom dates)",
            "type": "string",
            "description": "Optional custom end date (inclusive), e.g. 2026-11-13, or relative like \"+14 days\". Empty = 7 days from From."
          },
          "minImportance": {
            "title": "⭐ Minimum importance",
            "enum": [
              "low",
              "medium",
              "high"
            ],
            "type": "string",
            "description": "Low = every event; Medium = 2- and 3-star events; High = only the market-moving 3-star releases (CPI, payrolls, rate decisions, GDP …).",
            "default": "low"
          },
          "keywords": {
            "title": "🔎 Event keywords",
            "type": "array",
            "description": "Optional: only events whose name or category contains one of these, e.g. \"CPI\", \"inflation rate\", \"non farm payrolls\", \"interest rate decision\", \"PMI\", \"GDP\". Every word of a keyword must appear; case is ignored.",
            "items": {
              "type": "string"
            }
          },
          "releaseStatus": {
            "title": "Released / upcoming",
            "enum": [
              "all",
              "released",
              "upcoming"
            ],
            "type": "string",
            "description": "All events, only events already released (with an actual value), or only upcoming events (no actual yet).",
            "default": "all"
          },
          "includeHolidays": {
            "title": "Include holidays and elections",
            "type": "boolean",
            "description": "Keep all-day calendar entries such as bank holidays, market closures and elections (they have no values).",
            "default": true
          },
          "onlyChanges": {
            "title": "Only new or updated events",
            "type": "boolean",
            "description": "Monitor mode for schedules: save an event only if an earlier run with the same input did not save it yet, or if its actual, consensus, forecast, previous value or time changed since (see changeType / changedFields). Unchanged events are skipped and not charged.",
            "default": false
          },
          "maxItems": {
            "title": "Max events",
            "minimum": 0,
            "maximum": 20000,
            "type": "integer",
            "description": "Maximum number of events to save in this run. 0 = no limit (up to 20,000).",
            "default": 1000
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Apify Proxy (datacenter) is the default and comes with every Apify plan. You can also paste your own proxy URLs.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}