{
  "openapi": "3.0.1",
  "info": {
    "title": "SEC 8-K Material Events Scraper - Earnings, M&A & Cyber",
    "description": "Track public-company material events from official SEC EDGAR Form 8-K filings. Find earnings, mergers and acquisitions, cybersecurity incidents, executive changes, bankruptcies, restatements, debt, capital, listing, and governance events by company, ticker, item, or date.",
    "version": "0.1",
    "x-build-id": "yu0lpMl2p8TchyCzg"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/pink_comic~sec-form-8k-material-events/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-pink_comic-sec-form-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/pink_comic~sec-form-8k-material-events/runs": {
      "post": {
        "operationId": "runs-sync-pink_comic-sec-form-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/pink_comic~sec-form-8k-material-events/run-sync": {
      "post": {
        "operationId": "run-sync-pink_comic-sec-form-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": {
          "query": {
            "title": "Filing Keyword",
            "type": "string",
            "description": "SEC full-text search across Form 8-K filings, such as acquisition, ransomware, restructuring, or a disclosed counterparty. Empty returns newest filings.",
            "default": ""
          },
          "companyQuery": {
            "title": "Company Name or Ticker",
            "type": "string",
            "description": "Resolve a public company name or ticker such as AAPL, Microsoft, or Tesla to the best SEC CIK match before searching filings.",
            "default": ""
          },
          "cik": {
            "title": "Exact SEC CIK",
            "pattern": "^[0-9]{0,10}$",
            "type": "string",
            "description": "Exact 1-10 digit SEC Central Index Key. Use this instead of companyQuery when known.",
            "default": ""
          },
          "accessionNumber": {
            "title": "Exact Filing Accession Number",
            "pattern": "^$|^[0-9]{10}-[0-9]{2}-[0-9]{6}$",
            "type": "string",
            "description": "Exact SEC accession in 0000000000-00-000000 format. Bypasses the rolling date window."
          },
          "startDate": {
            "title": "Filing Start Date",
            "pattern": "^$|^[0-9]{4}-[0-9]{2}-[0-9]{2}$",
            "type": "string",
            "description": "Optional inclusive YYYY-MM-DD filing date. When omitted, daysBack defines the rolling window."
          },
          "endDate": {
            "title": "Filing End Date",
            "pattern": "^$|^[0-9]{4}-[0-9]{2}-[0-9]{2}$",
            "type": "string",
            "description": "Optional inclusive YYYY-MM-DD filing date. Defaults to today."
          },
          "daysBack": {
            "title": "Rolling Filing Window (Days)",
            "minimum": 1,
            "maximum": 3660,
            "type": "integer",
            "description": "Used when startDate is omitted. Seven days keeps default output useful across weekends and holidays.",
            "default": 7
          },
          "states": {
            "title": "Company Business States",
            "type": "array",
            "description": "Optional two-letter business-address state codes. Any selected state can match.",
            "items": {
              "type": "string",
              "pattern": "^[A-Za-z]{2}$"
            },
            "default": []
          },
          "itemCodes": {
            "title": "SEC Form 8-K Item Codes",
            "type": "array",
            "description": "Optional exact item codes such as 1.05 cybersecurity, 2.01 acquisitions, 2.02 earnings, 4.02 non-reliance/restatement, or 5.02 executive changes. Any selected item can match.",
            "items": {
              "type": "string",
              "pattern": "^[1-9][.][0-9]{2}$"
            },
            "default": []
          },
          "eventCategories": {
            "title": "Material Event Categories",
            "uniqueItems": true,
            "type": "array",
            "description": "Normalized categories derived from official SEC item codes: earnings, mergers_acquisitions, cybersecurity, executive_changes, bankruptcy, auditor_restatement, capital_debt, listing, governance, or other. Any selected category can match.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "amendmentFilter": {
            "title": "Amendment Status",
            "enum": [
              "any",
              "no",
              "yes"
            ],
            "type": "string",
            "description": "Include all filings, only original 8-K filings, or only 8-K/A amendments.",
            "default": "any"
          },
          "sortBy": {
            "title": "Sort Filings",
            "enum": [
              "latest",
              "oldest"
            ],
            "type": "string",
            "description": "Latest or oldest filing date within the disclosed scan window.",
            "default": "latest"
          },
          "maxResults": {
            "title": "Maximum Filing Results",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Total output cap after all filters.",
            "default": 25
          },
          "maxFilingsScanned": {
            "title": "Maximum Newest Filings to Scan",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Bounds metadata inspection for event, state, amendment, and oldest-first filters. Output discloses when the scan limit applies.",
            "default": 250
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}