{
  "openapi": "3.0.1",
  "info": {
    "title": "SEC 8-K Scraper: Material Events, Alerts & API",
    "description": "Scrape SEC EDGAR Form 8-K filings by ticker or CIK. Get classified material events (earnings, M&A, restatements, leadership changes), EDGAR links, and optional webhook alerts—clean JSON for apps and AI agents.",
    "version": "0.0",
    "x-build-id": "jGQSxGkdk55F4BtqO"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/vamsi-krishna~sec-8k-event-intelligence/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-vamsi-krishna-sec-8k-event-intelligence",
        "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/vamsi-krishna~sec-8k-event-intelligence/runs": {
      "post": {
        "operationId": "runs-sync-vamsi-krishna-sec-8k-event-intelligence",
        "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/vamsi-krishna~sec-8k-event-intelligence/run-sync": {
      "post": {
        "operationId": "run-sync-vamsi-krishna-sec-8k-event-intelligence",
        "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",
        "required": [
          "sec_user_agent_email"
        ],
        "properties": {
          "tickers": {
            "title": "Stock tickers",
            "type": "array",
            "description": "US stock tickers to monitor on SEC EDGAR (for example AAPL, MSFT, NVDA). Provide tickers and/or CIKs.",
            "items": {
              "type": "string"
            }
          },
          "ciks": {
            "title": "Company CIKs",
            "type": "array",
            "description": "SEC Central Index Keys for the companies you want (1–10 digits; leading zeros optional). Provide tickers and/or CIKs.",
            "items": {
              "type": "string",
              "pattern": "^[0-9]{1,10}$"
            }
          },
          "watchlist_name": {
            "title": "Watchlist label",
            "type": "string",
            "description": "Optional name for your watchlist (for logs only). It does not look up companies by itself—still add tickers or CIKs."
          },
          "sec_user_agent_email": {
            "title": "Your contact email (required by SEC)",
            "pattern": "^[^@\\s]+@[^@\\s]+\\.[^@\\s]+$",
            "type": "string",
            "description": "A real email the SEC can use to contact you. EDGAR blocks anonymous bots, so this is required for fair-access User-Agent headers."
          },
          "form_types": {
            "title": "SEC form types",
            "type": "array",
            "description": "Which Form 8-K filings to include. 8-K is the current report; 8-K/A is an amendment.",
            "items": {
              "type": "string",
              "enum": [
                "8-K",
                "8-K/A"
              ]
            },
            "default": [
              "8-K",
              "8-K/A"
            ]
          },
          "since": {
            "title": "Start date",
            "type": "string",
            "description": "Only include 8-K filings filed on or after this date (YYYY-MM-DD). Leave empty to use the last 7 days."
          },
          "until": {
            "title": "End date",
            "type": "string",
            "description": "Only include 8-K filings filed on or before this date (YYYY-MM-DD). Leave empty to use today."
          },
          "item_codes": {
            "title": "SEC 8-K item codes",
            "type": "array",
            "description": "Optional filter by official item numbers (for example 2.02 earnings, 5.02 leadership, 4.02 restatement). Leave empty for all items.",
            "items": {
              "type": "string"
            }
          },
          "event_types": {
            "title": "Event categories",
            "type": "array",
            "description": "Optional friendly categories such as earnings_release, leadership_change, financial_restatement, or m_and_a_completed. Leave empty for all categories.",
            "items": {
              "type": "string"
            }
          },
          "min_severity": {
            "title": "Minimum severity",
            "enum": [
              "low",
              "medium",
              "high",
              "critical"
            ],
            "type": "string",
            "description": "Only return events at this severity or higher (low, medium, high, critical).",
            "default": "low"
          },
          "include_documents": {
            "title": "Include EDGAR document links",
            "type": "boolean",
            "description": "Attach direct SEC EDGAR links to each 8-K event so you can open the source filing.",
            "default": true
          },
          "webhook_url": {
            "title": "Alert webhook (HTTPS)",
            "type": "string",
            "description": "Optional HTTPS URL to notify when a new material 8-K event is classified (Zapier, Make, Slack workflows, or your API). Stored as a secret."
          },
          "dedup_store_id": {
            "title": "Remember filings across runs",
            "type": "string",
            "description": "Optional Apify key-value store that remembers accession numbers so scheduled runs do not send the same 8-K alert twice."
          },
          "max_events": {
            "title": "Maximum events per run",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Stop after this many classified 8-K events (1–1000). Helps control cost on large watchlists.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}