{
  "openapi": "3.0.1",
  "info": {
    "title": "Economic Calendar – Official US, EU & UK Release Dates",
    "description": "Macro release calendar straight from official sources: BLS (CPI, jobs), BEA (GDP, PCE), Fed FOMC decisions, Eurostat (HICP flash, GDP) and UK ONS. Exact UTC times, impact levels, filters, change alerts (monitor mode) and optional released headline values. No start fee.",
    "version": "0.1",
    "x-build-id": "5a6VEOp6XMG30PMbP"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/gazidev~official-economic-calendar/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-gazidev-official-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/gazidev~official-economic-calendar/runs": {
      "post": {
        "operationId": "runs-sync-gazidev-official-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/gazidev~official-economic-calendar/run-sync": {
      "post": {
        "operationId": "run-sync-gazidev-official-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": {
          "mode": {
            "title": "Mode",
            "enum": [
              "upcoming",
              "monitor"
            ],
            "type": "string",
            "description": "`upcoming`: every scheduled release in the date window. `monitor`: only events that are new, moved (date/time changed), postponed, cancelled or removed since the previous run with the same `stateKey` - schedule it daily for change alerts.",
            "default": "upcoming"
          },
          "countries": {
            "title": "Countries / regions",
            "type": "array",
            "description": "US = BLS + BEA + Federal Reserve (FOMC). EU = Eurostat euro indicators. UK = Office for National Statistics.",
            "items": {
              "type": "string",
              "enum": [
                "US",
                "EU",
                "UK"
              ],
              "enumTitles": [
                "United States",
                "Euro area / EU",
                "United Kingdom"
              ]
            },
            "default": [
              "US",
              "EU",
              "UK"
            ]
          },
          "daysAhead": {
            "title": "Days ahead",
            "minimum": 0,
            "maximum": 800,
            "type": "integer",
            "description": "How many days into the future to include (from today, UTC). Official calendars usually cover 12-14 months ahead.",
            "default": 14
          },
          "daysBack": {
            "title": "Days back",
            "minimum": 0,
            "maximum": 800,
            "type": "integer",
            "description": "Also include releases from the last N days (status `released`). Combine with 'Add released values'.",
            "default": 0
          },
          "impact": {
            "title": "Impact levels",
            "type": "array",
            "description": "high = CPI, payrolls, GDP, PCE, FOMC, euro-area HICP flash, UK CPI/GDP/labour market. medium = PPI, JOLTS, trade, retail, HICP final, unemployment... low = everything else (regional, annual, social statistics). Empty = all.",
            "items": {
              "type": "string",
              "enum": [
                "high",
                "medium",
                "low"
              ],
              "enumTitles": [
                "High",
                "Medium",
                "Low"
              ]
            },
            "default": [
              "high",
              "medium"
            ]
          },
          "maxItems": {
            "title": "Max events",
            "minimum": 0,
            "type": "integer",
            "description": "Stop after this many events (earliest first). 0 = no limit.",
            "default": 100
          },
          "keywords": {
            "title": "Keywords (any)",
            "type": "array",
            "description": "Keep only releases whose name or category contains one of these words, e.g. `inflation`, `CPI`, `GDP`, `employment`, `FOMC`.",
            "items": {
              "type": "string"
            }
          },
          "excludeKeywords": {
            "title": "Exclude keywords",
            "type": "array",
            "description": "Drop releases whose name contains one of these words, e.g. `state`, `time series`.",
            "items": {
              "type": "string"
            }
          },
          "agencies": {
            "title": "Agencies",
            "type": "array",
            "description": "Optional: restrict to specific agencies (overrides countries).",
            "items": {
              "type": "string",
              "enum": [
                "BLS",
                "BEA",
                "FED",
                "EUROSTAT",
                "ONS"
              ],
              "enumTitles": [
                "US Bureau of Labor Statistics",
                "US Bureau of Economic Analysis",
                "Federal Reserve (FOMC)",
                "Eurostat",
                "UK ONS"
              ]
            }
          },
          "dateFrom": {
            "title": "Date from (overrides days back)",
            "type": "string",
            "description": "Start date YYYY-MM-DD (UTC)."
          },
          "dateTo": {
            "title": "Date to (overrides days ahead)",
            "type": "string",
            "description": "End date YYYY-MM-DD (UTC, inclusive)."
          },
          "timezone": {
            "title": "Your timezone",
            "type": "string",
            "description": "IANA timezone for the extra `timeInYourTimezone` field, e.g. `Europe/Istanbul`, `Asia/Singapore`, `America/Chicago`. Times are always also given in UTC and in the agency's local time.",
            "default": "UTC"
          },
          "withActuals": {
            "title": "Add released values (headline numbers)",
            "type": "boolean",
            "description": "For the most recent released event of key indicators, add the official headline value (US CPI and core CPI, payrolls and unemployment rate, Fed funds target range, euro-area HICP, unemployment and GDP, UK CPI, unemployment and GDP). Charged as `release-value` only when a value is attached. No consensus forecasts (those are proprietary).",
            "default": false
          },
          "stateKey": {
            "title": "Monitor state key",
            "type": "string",
            "description": "Monitor mode only: name of the saved snapshot. Use a different key for each separate watch list.",
            "default": "default"
          },
          "emitBaselineOnFirstRun": {
            "title": "Monitor: output all events on the first run",
            "type": "boolean",
            "description": "Monitor mode only: on the first run every event is new. Turn off to save the baseline silently (nothing charged) and only get changes from the next run.",
            "default": 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}