{
  "openapi": "3.0.1",
  "info": {
    "title": "8-K API — Material Events: CEO Exits, Restatements, M&A",
    "description": "SEC Form 8-K filings classified by item: CEO and CFO departures, earnings, restatements, auditor changes, M&A, bankruptcy, delisting and cyber incidents, with the key paragraph from each filing. Any ticker or the whole market. Pay per result.",
    "version": "0.1",
    "x-build-id": "q9y40h1C5bmuuWNRC"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/smartmoney-data~sec-8k-material-events/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-smartmoney-data-sec-8k-material-events",
        "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/smartmoney-data~sec-8k-material-events/runs": {
      "post": {
        "operationId": "runs-sync-smartmoney-data-sec-8k-material-events",
        "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/smartmoney-data~sec-8k-material-events/run-sync": {
      "post": {
        "operationId": "run-sync-smartmoney-data-sec-8k-material-events",
        "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": {
          "tickers": {
            "title": "Tickers",
            "type": "array",
            "description": "US stock tickers to track (e.g. AAPL, BA). Leave empty to pull the latest 8-K filings market-wide.",
            "items": {
              "type": "string"
            }
          },
          "items": {
            "title": "8-K items",
            "type": "array",
            "description": "Keep only filings with one of these items, e.g. 5.02 (executive/board changes), 4.02 (restatement), 4.01 (auditor change), 2.02 (earnings), 1.01 (material agreement), 2.01 (M&A), 1.03 (bankruptcy), 1.05 (cyber incident). Leave empty for all.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "redFlagsOnly": {
            "title": "Red flags only",
            "type": "boolean",
            "description": "Keep only filings with a warning-sign item: bankruptcy (1.03), cyber incident (1.05), debt acceleration (2.04), impairment (2.06), delisting notice (3.01), auditor change (4.01) or restatement (4.02).",
            "default": false
          },
          "executiveDeparturesOnly": {
            "title": "Executive departures only",
            "type": "boolean",
            "description": "Keep only Item 5.02 filings whose text mentions a resignation, retirement or termination. Keyword-based.",
            "default": false
          },
          "lookbackDays": {
            "title": "Lookback (days)",
            "minimum": 1,
            "maximum": 3650,
            "type": "integer",
            "description": "Only include filings made within this many days (ticker mode).",
            "default": 30
          },
          "maxFilingsPerTicker": {
            "title": "Max filings per ticker",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Upper bound on 8-K filings read for each ticker.",
            "default": 50
          },
          "latestFilingsCount": {
            "title": "Latest filings (market-wide mode)",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "When no tickers are given, how many of the most recent 8-K filings on EDGAR to read.",
            "default": 40
          },
          "skipExhibitOnly": {
            "title": "Skip exhibit-only filings",
            "type": "boolean",
            "description": "Skip 8-Ks whose only item is 9.01 (financial statements and exhibits).",
            "default": true
          },
          "includeAmendments": {
            "title": "Include amendments (8-K/A)",
            "type": "boolean",
            "description": "Also return amended 8-Ks, which often add details such as final terms or an auditor's letter.",
            "default": true
          },
          "includeText": {
            "title": "Include item text",
            "type": "boolean",
            "description": "Download each filing and return the text under every item heading. Turn off for faster runs with item codes only.",
            "default": true
          },
          "maxTextChars": {
            "title": "Max characters per item",
            "minimum": 200,
            "maximum": 20000,
            "type": "integer",
            "description": "Item text is cut to this length.",
            "default": 3000
          },
          "secUserAgent": {
            "title": "SEC User-Agent contact",
            "type": "string",
            "description": "The SEC asks automated clients to identify themselves as 'Company Name email@domain.com'. Put your own contact here for heavy use.",
            "default": "SmartMoney Data 8-K Events smartmoney-data@googlegroups.com"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}