{
  "openapi": "3.0.1",
  "info": {
    "title": "Economic Calendar & Fed Watch - FOMC, CPI, NFP, Macro Events",
    "description": "Forward-looking macro economic events with consensus, prior, and surprise: CPI, NFP, GDP, FOMC decisions, Fed speeches, central bank meetings. Sources: Finviz (US), Federal Reserve (FOMC + speeches), Investing.com (international + past actuals). Built for AI agents and MCP pipelines.",
    "version": "0.1",
    "x-build-id": "Iy9YX2dh4O63S08ZV"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/michael_b~economic-calendar-fed-watch/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-michael_b-economic-calendar-fed-watch",
        "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/michael_b~economic-calendar-fed-watch/runs": {
      "post": {
        "operationId": "runs-sync-michael_b-economic-calendar-fed-watch",
        "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/michael_b~economic-calendar-fed-watch/run-sync": {
      "post": {
        "operationId": "run-sync-michael_b-economic-calendar-fed-watch",
        "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": 365,
            "type": "integer",
            "description": "How many days into the future to include. 14 = next two weeks, enough to catch the next CPI/NFP/FOMC even late in a quiet week. Set 7 for just the upcoming trading week.",
            "default": 14
          },
          "daysBack": {
            "title": "Days back",
            "minimum": 0,
            "maximum": 365,
            "type": "integer",
            "description": "How many days of past events to include. 0 = upcoming-only (default; past data is FRED's job). Set higher for surprise post-mortems and trend analysis.",
            "default": 0
          },
          "country": {
            "title": "Country filter (ISO2)",
            "type": "array",
            "description": "ISO 3166-1 alpha-2 country codes. ['US'] is the default. International coverage via Investing.com requires includeInvesting=true.",
            "default": [
              "US"
            ],
            "items": {
              "type": "string"
            }
          },
          "importance": {
            "title": "Minimum importance",
            "enum": [
              "high",
              "medium",
              "all"
            ],
            "type": "string",
            "description": "Each source assigns importance differently (Finviz curates 1-3, Investing.com curates with bull icons, Fed events default to 'high' for FOMC/minutes/statements/Beige Book and 'medium' for everything else). The three roughly agree on the big releases. What to expect:\n\n• 'High only' — only the headline-mover releases: NFP, CPI, FOMC decisions, ISM PMI, GDP, jobless claims, Michigan sentiment. Typical week: 5-15 rows. Best for AI agent context budgets.\n\n• 'Medium and above' — adds tier-2 releases: ADP, retail sales, durable goods, building permits, factory orders, Fed speeches, manufacturing PMIs. Typical week: 30-60 rows.\n\n• 'All importance levels' — adds Treasury auctions, EIA oil/gas inventory, mortgage indices, regional Fed surveys, statistical publications. Typical week: 100-200+ rows.\n\nIf unsure or you need the full picture, pick 'All importance levels' and filter downstream — sources are noisy in different ways.",
            "default": "high"
          },
          "eventTypes": {
            "title": "Event types",
            "uniqueItems": true,
            "type": "array",
            "description": "Which event categories to include. Speeches and auctions are excluded by default to reduce noise.",
            "items": {
              "type": "string",
              "enum": [
                "release",
                "meeting",
                "statement",
                "press_conference",
                "minutes",
                "speech",
                "testimony",
                "auction",
                "beige_book",
                "other"
              ]
            },
            "default": [
              "release",
              "meeting",
              "statement",
              "press_conference",
              "minutes",
              "beige_book"
            ]
          },
          "keyword": {
            "title": "Keyword filter (optional)",
            "type": "string",
            "description": "Free-text match on event name. Useful for targeted lookups: 'CPI', 'FOMC', 'Powell', 'jobless'. Case-insensitive substring match."
          },
          "includeFinviz": {
            "title": "Include Finviz source (US current week)",
            "type": "boolean",
            "description": "Scrape Finviz economic calendar. Best US coverage for the current week with TradingEconomics consensus baked in. Default: true.",
            "default": true
          },
          "includeFed": {
            "title": "Include Federal Reserve source (FOMC + speeches)",
            "type": "boolean",
            "description": "Scrape federalreserve.gov calendar.json for FOMC meetings, press conferences, minutes release dates, Beige Book, member speeches, and testimony. Unique to this actor.",
            "default": true
          },
          "includeInvesting": {
            "title": "Include Investing.com source (international + past actuals)",
            "type": "boolean",
            "description": "Scrape investing.com economic calendar. Adds international coverage and the forward calendar beyond the current week (Finviz only carries the current week, so without this the next CPI/NFP won't show until that week arrives). Required for non-US countries and Last-N surprises analysis. Default: true.",
            "default": true
          },
          "limit": {
            "title": "Max events returned",
            "minimum": 0,
            "maximum": 10000,
            "type": "integer",
            "description": "Hard cap on total events. 0 = unlimited (default — return everything that matches the filters). Set to a positive integer (e.g. 50) to limit context for AI agents. The 10000 maximum is a safety net; even greedy 60-day scans rarely return more than 500 rows.",
            "default": 0
          }
        }
      },
      "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}