{
  "openapi": "3.0.1",
  "info": {
    "title": "US Economic Calendar + Canada (Official Sources)",
    "description": "US & Canadian economic release calendar with actuals, straight from official sources: BLS (CPI, NFP, PPI, JOLTS), BEA (GDP, PCE), Census (retail sales, durables, housing), Fed FOMC, DOL claims, Treasury auctions, Statistics Canada, Bank of Canada. No scraped commercial sites. $0.002/event.",
    "version": "0.1",
    "x-build-id": "acOHlusAcfemd1saq"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/canada-dd~us-canada-economic-calendar/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-canada-dd-us-canada-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/canada-dd~us-canada-economic-calendar/runs": {
      "post": {
        "operationId": "runs-sync-canada-dd-us-canada-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/canada-dd~us-canada-economic-calendar/run-sync": {
      "post": {
        "operationId": "run-sync-canada-dd-us-canada-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": {
          "country": {
            "title": "Country",
            "enum": [
              "both",
              "US",
              "CA"
            ],
            "type": "string",
            "description": "Which country's releases to return",
            "default": "both"
          },
          "dateFrom": {
            "title": "From date (YYYY-MM-DD)",
            "type": "string",
            "description": "Release date range start (ET). Overrides 'Days back'."
          },
          "dateTo": {
            "title": "To date (YYYY-MM-DD)",
            "type": "string",
            "description": "Release date range end (ET). Overrides 'Days ahead'."
          },
          "daysBack": {
            "title": "Days back",
            "minimum": 0,
            "maximum": 1000,
            "type": "integer",
            "description": "Used when no From date is given",
            "default": 7
          },
          "daysAhead": {
            "title": "Days ahead",
            "minimum": 0,
            "maximum": 450,
            "type": "integer",
            "description": "Used when no To date is given",
            "default": 30
          },
          "indicators": {
            "title": "Indicators",
            "type": "array",
            "description": "Leave empty for all indicators of the selected country",
            "items": {
              "type": "string",
              "enum": [
                "us_nfp",
                "us_unemployment_rate",
                "us_avg_hourly_earnings",
                "us_cpi_mom",
                "us_cpi_yoy",
                "us_core_cpi_mom",
                "us_ppi_mom",
                "us_jolts_openings",
                "us_eci_qoq",
                "us_gdp",
                "us_core_pce_mom",
                "us_pce_price_mom",
                "us_personal_income",
                "us_personal_spending",
                "us_trade_balance",
                "us_retail_sales",
                "us_durable_goods",
                "us_housing_starts",
                "us_new_home_sales",
                "us_construction_spending",
                "us_factory_orders",
                "us_jobless_claims",
                "us_fomc_decision",
                "us_fomc_minutes",
                "us_treasury_auction",
                "ca_cpi_yoy",
                "ca_cpi_mom",
                "ca_employment_change",
                "ca_unemployment_rate",
                "ca_gdp_quarterly",
                "ca_gdp_monthly",
                "ca_retail_sales",
                "ca_trade_balance",
                "ca_manufacturing",
                "ca_wholesale",
                "ca_building_permits",
                "ca_payroll_jobs",
                "ca_ippi",
                "boc_rate_decision"
              ],
              "enumTitles": [
                "US – Nonfarm Payrolls (change) (BLS)",
                "US – Unemployment Rate (BLS)",
                "US – Average Hourly Earnings (m/m) (BLS)",
                "US – CPI (m/m) (BLS)",
                "US – CPI (y/y) (BLS)",
                "US – Core CPI ex food & energy (m/m) (BLS)",
                "US – PPI Final Demand (m/m) (BLS)",
                "US – JOLTS Job Openings (BLS)",
                "US – Employment Cost Index (q/q) (BLS)",
                "US – Real GDP (q/q annualized) (BEA)",
                "US – Core PCE Price Index (m/m) (BEA)",
                "US – PCE Price Index (m/m) (BEA)",
                "US – Personal Income (m/m) (BEA)",
                "US – Personal Spending / PCE (m/m) (BEA)",
                "US – Trade Balance (goods & services) (BEA/Census)",
                "US – Retail Sales (advance, m/m) (Census)",
                "US – Durable Goods Orders (m/m) (Census)",
                "US – Housing Starts (Census)",
                "US – New Home Sales (Census)",
                "US – Construction Spending (Census)",
                "US – Factory Orders (full M3 report) (Census)",
                "US – Initial Jobless Claims (DOL)",
                "US – FOMC Rate Decision (fed funds target range) (Federal Reserve)",
                "US – FOMC Minutes (Federal Reserve)",
                "US – Treasury Auction (US Treasury)",
                "CA – CPI (y/y) (Statistics Canada)",
                "CA – CPI (m/m) (Statistics Canada)",
                "CA – Employment Change (LFS) (Statistics Canada)",
                "CA – Unemployment Rate (LFS) (Statistics Canada)",
                "CA – Real GDP (q/q, expenditure-based) (Statistics Canada)",
                "CA – Real GDP by industry (m/m) (Statistics Canada)",
                "CA – Retail Sales (m/m) (Statistics Canada)",
                "CA – Merchandise Trade (Statistics Canada)",
                "CA – Manufacturing Sales (MSM) (Statistics Canada)",
                "CA – Wholesale Trade (Statistics Canada)",
                "CA – Building Permits (Statistics Canada)",
                "CA – Payroll Employment, Earnings & Job Vacancies (SEPH) (Statistics Canada)",
                "CA – Industrial Product & Raw Materials Price Indexes (Statistics Canada)",
                "CA – Bank of Canada Rate Decision (overnight target) (Bank of Canada)"
              ]
            }
          },
          "minImportance": {
            "title": "Minimum importance",
            "enum": [
              "low",
              "medium",
              "high"
            ],
            "type": "string",
            "description": "high = market-moving (CPI, NFP, FOMC, GDP, retail sales, BoC, CA CPI/LFS)",
            "default": "low"
          },
          "includeActuals": {
            "title": "Include actuals for released events",
            "type": "boolean",
            "description": "Fetch actual and prior values from official data APIs",
            "default": true
          },
          "includeTreasuryAuctions": {
            "title": "Include Treasury auctions",
            "type": "boolean",
            "description": "Upcoming Treasury bill/note/bond auctions (FiscalData). Many rows; off by default.",
            "default": false
          },
          "maxEvents": {
            "title": "Max events",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Hard cap on rows (and cost)",
            "default": 500
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}