{
  "openapi": "3.0.1",
  "info": {
    "title": "Economic Calendar API: FOMC, ECB, CPI, GDP",
    "description": "Official economic calendar from 9 agencies: release dates and times for GDP, CPI inflation, jobs and retail data, plus Fed FOMC, ECB and Bank of Canada meeting dates. US, UK, euro area, Canada and Japan. Time zones, periods, source links, policy rates and a change-only mode.",
    "version": "0.1",
    "x-build-id": "ColV0fejEJFMPhEDU"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/maliksaid~economic-calendar/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-maliksaid-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/maliksaid~economic-calendar/runs": {
      "post": {
        "operationId": "runs-sync-maliksaid-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/maliksaid~economic-calendar/run-sync": {
      "post": {
        "operationId": "run-sync-maliksaid-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": {
          "daysAhead": {
            "title": "Days ahead",
            "minimum": 0,
            "maximum": 800,
            "type": "integer",
            "description": "Include events up to this many days after today (UTC). Ignored when End date is set.",
            "default": 30
          },
          "daysBack": {
            "title": "Days back",
            "minimum": 0,
            "maximum": 800,
            "type": "integer",
            "description": "Include events from this many days before today (UTC), so recent releases show their status and values. Ignored when Start date is set.",
            "default": 7
          },
          "countries": {
            "title": "Countries",
            "type": "array",
            "description": "Keep only these countries. Leave empty for all. EU covers Eurostat and the European Central Bank.",
            "items": {
              "type": "string",
              "enum": [
                "US",
                "GB",
                "EU",
                "CA",
                "JP"
              ],
              "enumTitles": [
                "United States",
                "United Kingdom",
                "Euro area and EU",
                "Canada",
                "Japan"
              ]
            },
            "default": []
          },
          "agencies": {
            "title": "Agencies",
            "type": "array",
            "description": "Keep only these agencies. Leave empty for all. BLS release dates need a FRED API key.",
            "items": {
              "type": "string",
              "enum": [
                "BEA",
                "CENSUS",
                "BLS",
                "FED",
                "ONS",
                "EUROSTAT",
                "ECB",
                "BOC",
                "SBJ"
              ],
              "enumTitles": [
                "U.S. Bureau of Economic Analysis",
                "U.S. Census Bureau",
                "U.S. Bureau of Labor Statistics (needs FRED key)",
                "Federal Reserve (FOMC; G.17 with FRED key)",
                "UK Office for National Statistics",
                "Eurostat",
                "European Central Bank",
                "Bank of Canada",
                "Statistics Bureau of Japan"
              ]
            },
            "default": []
          },
          "eventTypes": {
            "title": "Event types",
            "type": "array",
            "description": "Keep only these event types. Leave empty for all.",
            "items": {
              "type": "string",
              "enum": [
                "data-release",
                "central-bank-meeting",
                "central-bank-minutes"
              ],
              "enumTitles": [
                "Data releases",
                "Central bank meetings and rate decisions",
                "Central bank minutes"
              ]
            },
            "default": []
          },
          "minImpact": {
            "title": "Minimum impact",
            "enum": [
              "low",
              "medium",
              "high"
            ],
            "type": "string",
            "description": "Keep only events at or above this impact level. The level is our fixed rating by event type (see the README table). Rows below it are not saved and not charged.",
            "default": "low"
          },
          "keywords": {
            "title": "Keywords",
            "type": "array",
            "description": "Keep only events whose name, agency or period contains at least one keyword, for example GDP or inflation. Leave empty to keep every event.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "fredApiKey": {
            "title": "FRED API key (optional)",
            "type": "string",
            "description": "Your own free key from fred.stlouisfed.org. With it the Actor adds BLS release dates (CPI, jobs report, PPI, JOLTS), Federal Reserve G.17 dates and actual and previous values for main U.S. releases and FOMC decisions. Without it the Actor runs without those."
          },
          "changeOnly": {
            "title": "Change-only mode",
            "type": "boolean",
            "description": "Return only events that are new or changed since the last change-only run with the same monitor name. A change is a new date or time, a new status, or a new actual or previous value. Schedule the Actor with this on to get alerts.",
            "default": false
          },
          "monitorName": {
            "title": "Monitor name",
            "type": "string",
            "description": "Name of the memory that change-only mode uses. Use a different name for each separate watch list. Inputs that still send the old field `stateKey` keep working.",
            "default": "default"
          },
          "allUkReleases": {
            "title": "All UK releases",
            "type": "boolean",
            "description": "ONS also lists health, crime and population releases. Off keeps the main economic releases only, such as GDP, inflation, labour market, retail sales, trade and public finances.",
            "default": false
          },
          "startDate": {
            "title": "Start date",
            "type": "string",
            "description": "Optional fixed start, for example 2026-01-01. Overrides Days back."
          },
          "endDate": {
            "title": "End date",
            "type": "string",
            "description": "Optional fixed end, for example 2026-12-31. Overrides Days ahead."
          },
          "maxItems": {
            "title": "Maximum events",
            "minimum": 0,
            "type": "integer",
            "description": "Stop after saving this many events. The default keeps test runs short and cheap. Set 0 for no limit.",
            "default": 100
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}