{
  "openapi": "3.0.1",
  "info": {
    "title": "Unofficial SEC EDGAR 8-K Monitor: Watchlist by Item Code",
    "description": "Watch your tickers or CIKs for new SEC EDGAR filings: 8-K by item code (2.02 earnings, 5.02 exec changes, 1.01 deals, 1.05 cyber) or any form type. Plain-English item labels, document and index links, new-only daily mode. Official SEC JSON endpoints, polite rate. $0.50 per 1,000.",
    "version": "1.0",
    "x-build-id": "kcG7OgbElEd2zgMEH"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/tali-works~sec-edgar-8k-filing-monitor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-tali-works-sec-edgar-8k-filing-monitor",
        "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/tali-works~sec-edgar-8k-filing-monitor/runs": {
      "post": {
        "operationId": "runs-sync-tali-works-sec-edgar-8k-filing-monitor",
        "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/tali-works~sec-edgar-8k-filing-monitor/run-sync": {
      "post": {
        "operationId": "run-sync-tali-works-sec-edgar-8k-filing-monitor",
        "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": "Stock tickers to watch, e.g. AAPL, MSFT, BRK-B. Mapped to SEC CIKs with SEC's company_tickers.json. Delisted, foreign and fund tickers may be missing: use CIKs for those. Up to 100 companies per run (tickers + CIKs).",
            "items": {
              "type": "string"
            }
          },
          "ciks": {
            "title": "CIKs",
            "type": "array",
            "description": "SEC Central Index Keys (company IDs), e.g. 320193 or 0000320193. Find one on EDGAR company search.",
            "items": {
              "type": "string"
            }
          },
          "formTypes": {
            "title": "Form types",
            "type": "array",
            "description": "Exact EDGAR form types to return, e.g. 8-K, 10-Q, 10-K, 6-K, SC 13D, DEF 14A, 4. Default 8-K. Use ALL for every form.",
            "items": {
              "type": "string"
            }
          },
          "includeAmendments": {
            "title": "Include amendments (/A)",
            "type": "boolean",
            "description": "Also return amended versions, e.g. 8-K/A when 8-K is selected.",
            "default": true
          },
          "itemPresets": {
            "title": "8-K item presets",
            "type": "array",
            "description": "Ready-made groups of 8-K item codes. Combined with 'Item codes' (any of). Leave both empty to get every 8-K. Item codes exist only on 8-K/8-K/A filings, so setting any item filter drops other forms.",
            "items": {
              "type": "string",
              "enum": [
                "earnings",
                "leadership",
                "deals",
                "cybersecurity",
                "accounting-red-flags",
                "distress",
                "financing",
                "shareholder-votes"
              ],
              "enumTitles": [
                "Earnings (2.02)",
                "Leadership changes (5.02)",
                "Deals & control (1.01, 1.02, 2.01, 5.01)",
                "Cybersecurity incidents (1.05)",
                "Auditor change, restatement, impairment (4.01, 4.02, 2.06)",
                "Distress: bankruptcy, debt triggers, restructuring, delisting (1.03, 2.04, 2.05, 3.01)",
                "Financing: new debt, unregistered share sales, rights changes (2.03, 3.02, 3.03)",
                "Shareholder votes & nominations (5.07, 5.08)"
              ]
            }
          },
          "itemCodes": {
            "title": "8-K item codes (any of)",
            "type": "array",
            "description": "Item numbers like 2.02 (earnings), 5.02 (director/officer change), 1.01 (material agreement), 1.05 (cyber incident), 7.01 (Reg FD), 8.01 (other events). Codes come from the filer's own EDGAR cover data.",
            "items": {
              "type": "string"
            }
          },
          "lookbackDays": {
            "title": "Look back (days, by filing date)",
            "minimum": 0,
            "type": "integer",
            "description": "Window on EDGAR filing date, counted back from today (UTC) or 'Date to'. For a daily monitor keep 3-7 days so weekends and late runs are covered; monitor mode drops repeats.",
            "default": 30
          },
          "dateFrom": {
            "title": "Date from",
            "type": "string",
            "description": "Optional YYYY-MM-DD. Overrides 'Look back'."
          },
          "dateTo": {
            "title": "Date to",
            "type": "string",
            "description": "Optional YYYY-MM-DD. Default today."
          },
          "maxItems": {
            "title": "Max filings per run (cost cap)",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Newest first. Default 100, maximum 1000.",
            "default": 100
          },
          "onlyNew": {
            "title": "Monitor mode: only new filings",
            "type": "boolean",
            "description": "Remember accession numbers returned by earlier runs (named key-value store 'sec-edgar-filing-monitor-state' in your Apify account) and output only filings not returned before. Already-seen filings are free. Schedule the Actor (Schedules > Create).",
            "default": false
          },
          "monitorKey": {
            "title": "Monitor key",
            "type": "string",
            "description": "Optional name for this monitor's memory, e.g. 'portfolio-8k'. With a key the memory survives watchlist edits; without one, changing the watchlist or filters starts a fresh baseline (the first run returns and charges for the whole window)."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}