{
  "openapi": "3.0.1",
  "info": {
    "title": "SEC EDGAR Filing Events API (8-K, 10-K, 10-Q, Form D, S-1)",
    "description": "Use this when you need structured SEC EDGAR filing events (8-K, 10-K, 10-Q, Form D, S-1, 13F-HR) by ticker or CIK with decoded 8-K item descriptions from official data.sec.gov JSON. Strictly <=7.5 req/s. Public filing metadata only — not investment advice.",
    "version": "0.1",
    "x-build-id": "8w9DKNR0KaawVkIE4"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/kittenlabs~sec-edgar-filing-events/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-kittenlabs-sec-edgar-filing-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/kittenlabs~sec-edgar-filing-events/runs": {
      "post": {
        "operationId": "runs-sync-kittenlabs-sec-edgar-filing-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/kittenlabs~sec-edgar-filing-events/run-sync": {
      "post": {
        "operationId": "run-sync-kittenlabs-sec-edgar-filing-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": "Stock Tickers",
            "type": "array",
            "description": "List of stock ticker symbols (e.g., AAPL, NVDA, MSFT, TSLA). Automatically resolved to 10-digit SEC CIKs via official sec.gov/files/company_tickers.json.",
            "items": {
              "type": "string"
            }
          },
          "ciks": {
            "title": "SEC CIK Numbers",
            "type": "array",
            "description": "Optional list of SEC CIK numbers (e.g., 0000320193 or 320193; ideal for private Form D issuers or funds without public tickers).",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "formTypes": {
            "title": "SEC Form Types",
            "type": "array",
            "description": "Filter by SEC form types (e.g., 8-K, 10-K, 10-Q, Form D, S-1, 13F-HR, 4). Leave empty to return all form types.",
            "items": {
              "type": "string"
            },
            "default": [
              "8-K",
              "10-K",
              "10-Q",
              "Form D",
              "S-1",
              "13F-HR"
            ]
          },
          "includeAmendments": {
            "title": "Include Amendments (/A)",
            "type": "boolean",
            "description": "When true, selecting 8-K or Form D also matches 8-K/A or D/A amendments.",
            "default": true
          },
          "sinceDate": {
            "title": "Since Filing Date (YYYY-MM-DD)",
            "type": "string",
            "description": "Optional lower bound on filing_date in ISO format (e.g., 2026-01-01)."
          },
          "untilDate": {
            "title": "Until Filing Date (YYYY-MM-DD)",
            "type": "string",
            "description": "Optional upper bound on filing_date in ISO format (YYYY-MM-DD)."
          },
          "itemCodes": {
            "title": "Form 8-K Item Codes Filter",
            "type": "array",
            "description": "Optional filter for specific 8-K item codes (e.g., 5.02 for executive changes, 2.02 for earnings, 1.05 for cybersecurity incidents, 1.01 for material agreements).",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "maxFilingsPerCompany": {
            "title": "Max Filings Per Company",
            "minimum": 1,
            "type": "integer",
            "description": "Maximum number of matched filings returned per entity.",
            "default": 50
          },
          "maxTotalFilings": {
            "title": "Max Total Filings",
            "minimum": 1,
            "type": "integer",
            "description": "Global cap on emitted filing events across all entities.",
            "default": 500
          },
          "includeHistoricalOverflow": {
            "title": "Include Historical Overflow Shards",
            "type": "boolean",
            "description": "If sinceDate predates the ~1,000 most recent filings, fetch older SEC submission archive shards.",
            "default": false
          },
          "secUserAgent": {
            "title": "Custom SEC User-Agent (Optional)",
            "type": "string",
            "description": "Optional SEC-compliant User-Agent header (`AppName/Version (contact@yourdomain.com)`). Defaults to a compliant built-in contact header."
          },
          "outputMode": {
            "title": "Output Mode",
            "enum": [
              "full",
              "mcp_summary"
            ],
            "type": "string",
            "description": "Use 'full' (default) for all normalized dataset items, or 'mcp_summary' to emit a single <= 2 KB structured JSON summary optimized for Claude, Cursor, and Windsurf context windows.",
            "default": "full"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}