{
  "openapi": "3.0.1",
  "info": {
    "title": "SEC EDGAR: Form D Leads, Filing Alerts & Insider Trades",
    "description": "Find SEC Form D funding leads with fund/SPV filters, monitor EDGAR filings by ticker and 8-K item, and parse Form 4 insider transactions. Source-linked output, only-new alerts, budget-safe per-filing billing. No API key; SEC contact supplied, override optional.",
    "version": "0.2",
    "x-build-id": "dMTeBoZOhaM2BKH85"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/foresighted_sunset~sec-edgar-toolkit/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-foresighted_sunset-sec-edgar-toolkit",
        "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/foresighted_sunset~sec-edgar-toolkit/runs": {
      "post": {
        "operationId": "runs-sync-foresighted_sunset-sec-edgar-toolkit",
        "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/foresighted_sunset~sec-edgar-toolkit/run-sync": {
      "post": {
        "operationId": "run-sync-foresighted_sunset-sec-edgar-toolkit",
        "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": {
          "mode": {
            "title": "Mode",
            "enum": [
              "formD",
              "filings",
              "insiderTrades"
            ],
            "type": "string",
            "description": "Form D funding leads = companies that just filed a Form D (exempt offering: amount raised, exemption, executives). Filing alerts = new EDGAR filings for your tickers/CIKs or market-wide, filtered by form type, 8-K item code or full-text keyword. Form 4 insider trades = one row per insider transaction.",
            "default": "formD"
          },
          "contactEmail": {
            "title": "SEC contact email (optional override)",
            "type": "string",
            "description": "Optional working contact email for SEC fair-access User-Agent headers only. Leave blank to use the operator contact. Never sent to other sources or included in results/logs. Example-domain placeholders are rejected for SEC."
          },
          "tickers": {
            "title": "Tickers",
            "type": "array",
            "description": "Stock tickers (e.g. AAPL, BRK.B), resolved to CIKs via SEC's official ticker list. Leave empty for market-wide results. Used by all modes (Form D issuers rarely have tickers; use CIKs there).",
            "items": {
              "type": "string"
            }
          },
          "ciks": {
            "title": "CIKs",
            "type": "array",
            "description": "SEC Central Index Keys (e.g. 320193 or 0000320193). Combined with Tickers. Max 500 tickers + CIKs per run.",
            "items": {
              "type": "string"
            }
          },
          "formTypes": {
            "title": "Form types (filing alerts)",
            "type": "array",
            "description": "EDGAR form types to include, e.g. 8-K, 10-K, 10-Q, S-1, SC 13D, DEF 14A. Empty = all forms. If you set 8-K item codes and leave this empty, 8-K is used.",
            "items": {
              "type": "string"
            }
          },
          "itemCodes": {
            "title": "8-K item codes",
            "type": "array",
            "description": "Only 8-Ks that report at least one of these items, e.g. 2.02 (earnings), 5.02 (officer/director change), 1.01 (material agreement), 1.05 (cybersecurity incident), 2.01 (acquisition), 4.02 (non-reliance/restatement).",
            "items": {
              "type": "string"
            }
          },
          "keywords": {
            "title": "Full-text keywords",
            "type": "string",
            "description": "Optional EDGAR full-text search query (exact phrases in double quotes, e.g. \"going concern\" or \"artificial intelligence\"). Searches filing text from 2001 on; works in all modes and with tickers/CIKs."
          },
          "daysBack": {
            "title": "Days back",
            "minimum": 1,
            "maximum": 365,
            "type": "integer",
            "description": "Filing-date window ending today (US Eastern), e.g. 3 = today and the two days before. Ignored if \"Date from\" is set. For daily alerts use 1-3 with Monitor mode on.",
            "default": 3
          },
          "dateFrom": {
            "title": "Date from",
            "type": "string",
            "description": "Optional exact start filing date (YYYY-MM-DD). The window can be at most 1 year."
          },
          "dateTo": {
            "title": "Date to",
            "type": "string",
            "description": "Optional end filing date (YYYY-MM-DD). Default today (US Eastern)."
          },
          "includeAmendments": {
            "title": "Include amendments",
            "type": "boolean",
            "description": "Also return amended filings (D/A, 8-K/A, 4/A, ...). Off by default so funding leads and alerts are not duplicated.",
            "default": false
          },
          "excludeFundsAndSpvs": {
            "title": "Exclude funds and SPVs",
            "type": "boolean",
            "description": "Drop pooled investment funds, SPVs, series LLCs, feeder/aggregator and co-invest vehicles (industry group, security type and name rules) so only operating companies remain. Each row also has looksLikeFundOrSpv + the reason.",
            "default": true
          },
          "industries": {
            "title": "Industries",
            "type": "array",
            "description": "Form D industry groups to keep: technology (computers, telecom, other tech), health_care (biotech, pharma, ...), financial_services, pooled_investment_fund, real_estate, energy, manufacturing, business_services, retailing, restaurants, agriculture, travel, other. Empty = all.",
            "items": {
              "type": "string",
              "enum": [
                "technology",
                "health_care",
                "financial_services",
                "pooled_investment_fund",
                "real_estate",
                "energy",
                "manufacturing",
                "business_services",
                "retailing",
                "restaurants",
                "agriculture",
                "travel",
                "other"
              ]
            }
          },
          "states": {
            "title": "Issuer states / countries",
            "type": "array",
            "description": "EDGAR 2-character codes of the issuer's principal place of business, e.g. CA, NY, TX (non-US codes like X0 = United Kingdom, A6 = Ontario). Empty = all.",
            "items": {
              "type": "string"
            }
          },
          "exemptions": {
            "title": "Exemptions",
            "type": "array",
            "description": "Keep only offerings claiming one of these: 506b (Rule 506(b), no general solicitation), 506c (Rule 506(c), accredited-only, may advertise), 504, 4a5, 3c (Investment Company Act 3(c) funds).",
            "items": {
              "type": "string",
              "enum": [
                "506b",
                "506c",
                "504",
                "4a5",
                "3c"
              ]
            }
          },
          "minOfferingAmount": {
            "title": "Min total offering (USD)",
            "minimum": 0,
            "type": "integer",
            "description": "Keep offerings whose total offering amount is at least this. Offerings marked \"Indefinite\" are dropped when an amount filter is set."
          },
          "maxOfferingAmount": {
            "title": "Max total offering (USD)",
            "minimum": 0,
            "type": "integer",
            "description": "Keep offerings whose total offering amount is at most this."
          },
          "minAmountSold": {
            "title": "Min amount already sold (USD)",
            "minimum": 0,
            "type": "integer",
            "description": "Keep offerings that have already raised at least this much (totalAmountSold)."
          },
          "onlyIncorporatedWithinFiveYears": {
            "title": "Only companies incorporated within 5 years",
            "type": "boolean",
            "description": "Keep only issuers that ticked \"incorporated within the last five years\" on the Form D (a good young-startup filter).",
            "default": false
          },
          "transactionCodes": {
            "title": "Transaction codes",
            "type": "array",
            "description": "Form 4 transaction codes to keep, e.g. P = open-market purchase, S = sale, A = grant/award, M = option exercise, F = tax withholding, G = gift. Empty = all.",
            "items": {
              "type": "string",
              "enum": [
                "P",
                "S",
                "A",
                "D",
                "F",
                "I",
                "M",
                "C",
                "E",
                "H",
                "O",
                "X",
                "G",
                "L",
                "W",
                "Z",
                "J",
                "K",
                "U",
                "V"
              ]
            }
          },
          "minTransactionValue": {
            "title": "Min transaction value (USD)",
            "minimum": 0,
            "type": "integer",
            "description": "Keep transactions whose shares x price is at least this. Transactions without a reported price are dropped when set."
          },
          "includeDerivative": {
            "title": "Include derivative transactions",
            "type": "boolean",
            "description": "Also return rows from the derivative table (options, RSUs, warrants: exercise price, expiry, underlying shares).",
            "default": true
          },
          "monitor": {
            "title": "Monitor mode (only new)",
            "type": "boolean",
            "description": "Remember which filings were already returned (in a named key-value store) and only output new ones on later runs. Schedule the Actor (e.g. hourly or daily) for alerts; connect a webhook/Slack/Zapier integration to the dataset.",
            "default": false
          },
          "monitorKey": {
            "title": "Monitor key",
            "type": "string",
            "description": "Optional name for this watch's memory (letters, digits, - _ . ! ' ( )). Default: derived from the mode and filters, so changing filters starts a fresh watch."
          },
          "stateStoreName": {
            "title": "Monitor store name",
            "type": "string",
            "description": "Named key-value store that keeps monitor memory between runs (letters, digits, dashes).",
            "default": "sec-edgar-toolkit-state"
          },
          "maxResults": {
            "title": "Max results",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Maximum rows per run (Form D filings, filings, or insider transactions; an insider filing's transactions are kept together, so a few extra rows are possible). Newest first.",
            "default": 25
          },
          "maxRequestsPerSecond": {
            "title": "Max requests per second",
            "minimum": 1,
            "maximum": 8,
            "type": "integer",
            "description": "Pacing for SEC requests. SEC allows at most 10 per second per user; default 5 leaves headroom. 429/5xx responses are retried with backoff.",
            "default": 5
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}