{
  "openapi": "3.0.1",
  "info": {
    "title": "US Economic Calendar – BLS, BEA & Fed Official Release Dates",
    "description": "US economic release calendar from official public-domain schedules only: BLS (CPI, jobs, PPI), BEA (GDP, PCE) and the Fed (FOMC, G.17, H.4.1). ET times, links, actual/prior values.",
    "version": "0.1",
    "x-build-id": "PqZOYeyH6ffe5Z0S6"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/polychrome_haymow~us-econ-calendar/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-polychrome_haymow-us-econ-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/polychrome_haymow~us-econ-calendar/runs": {
      "post": {
        "operationId": "runs-sync-polychrome_haymow-us-econ-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/polychrome_haymow~us-econ-calendar/run-sync": {
      "post": {
        "operationId": "run-sync-polychrome_haymow-us-econ-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": {
          "startDate": {
            "title": "Start date",
            "type": "string",
            "description": "First day (ET) to include: YYYY-MM-DD, \"today\" or a relative offset like \"-7d\".",
            "default": "today"
          },
          "endDate": {
            "title": "End date",
            "type": "string",
            "description": "Last day (ET) to include: YYYY-MM-DD or offset like \"+30d\" (relative to today). Default: start + 30 days. Max range ~2 years."
          },
          "sources": {
            "title": "Official sources",
            "type": "array",
            "description": "BLS = Bureau of Labor Statistics release schedule; BEA = Bureau of Economic Analysis schedule; FED_STAT = Federal Reserve Board statistical release calendar; FOMC = FOMC meeting calendar.",
            "items": {
              "type": "string",
              "enum": [
                "BLS",
                "BEA",
                "FED_STAT",
                "FOMC"
              ],
              "enumTitles": [
                "BLS (CPI, jobs, PPI, JOLTS...)",
                "BEA (GDP, PCE, trade...)",
                "Federal Reserve statistical releases (G.17, H.4.1, H.8...)",
                "FOMC meetings"
              ]
            },
            "default": [
              "BLS",
              "BEA",
              "FED_STAT",
              "FOMC"
            ]
          },
          "includeDailyFedReleases": {
            "title": "Include daily Fed releases",
            "type": "boolean",
            "description": "Include H.15, H.10 and Commercial Paper, which publish almost every business day (adds ~60 rows/month).",
            "default": false
          },
          "keywords": {
            "title": "Keyword filter",
            "type": "array",
            "description": "Only keep releases whose name/agency/period contains any of these (case-insensitive), e.g. \"cpi\", \"employment situation\", \"fomc\", \"gdp\". Empty = all.",
            "items": {
              "type": "string"
            }
          },
          "includeValues": {
            "title": "Include actual / prior values",
            "type": "boolean",
            "description": "Add official actual and prior values for headline series: BLS public API (payrolls, unemployment, CPI, PPI, JOLTS, import prices) and, only if a FRED API key is supplied (fredApiKey input or FRED_API_KEY env var), BEA/Fed series via FRED.",
            "default": true
          },
          "maxItems": {
            "title": "Max releases",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Stop after this many rows (hard cap 5,000). Runs also stop when your max cost per run is reached.",
            "default": 1000
          },
          "contactEmail": {
            "title": "Contact email for User-Agent (optional)",
            "type": "string",
            "description": "Added to the declared User-Agent so agencies can contact the operator (BLS asks automated clients to identify themselves)."
          },
          "blsApiKey": {
            "title": "BLS API registration key (optional)",
            "type": "string",
            "description": "Free key from https://data.bls.gov/registrationEngine/ for higher daily limits on the BLS public API. Not needed for normal use."
          },
          "fredApiKey": {
            "title": "FRED API key (optional)",
            "type": "string",
            "description": "Free key from https://fred.stlouisfed.org/docs/api/api_key.html. Enables BEA (GDP, PCE, trade) and Fed (G.17, G.19) actual/prior values via FRED. Falls back to the FRED_API_KEY environment variable."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}