{
  "openapi": "3.0.1",
  "info": {
    "title": "SEC EDGAR API: Form D Funding, Insider Trades & XBRL",
    "description": "Query official SEC EDGAR filings, Form D startup funding rounds (with parsed XML offering amounts & executives), XBRL financials, or full-text filing search.",
    "version": "0.0",
    "x-build-id": "CfWDwC7kKWjMfptxP"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/topaz_anemone~sec-edgar-filings-mcp/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-topaz_anemone-sec-edgar-filings-mcp",
        "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/topaz_anemone~sec-edgar-filings-mcp/runs": {
      "post": {
        "operationId": "runs-sync-topaz_anemone-sec-edgar-filings-mcp",
        "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/topaz_anemone~sec-edgar-filings-mcp/run-sync": {
      "post": {
        "operationId": "run-sync-topaz_anemone-sec-edgar-filings-mcp",
        "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",
        "required": [
          "mode"
        ],
        "properties": {
          "mode": {
            "title": "What to fetch",
            "enum": [
              "form_d_funding",
              "insider_trades",
              "company_filings",
              "company_financials",
              "fulltext_search"
            ],
            "type": "string",
            "description": "Choose the dataset. Every returned record is one charged 'sec-record' event.",
            "default": "form_d_funding"
          },
          "query": {
            "title": "Keyword (Form D and full-text modes)",
            "type": "string",
            "description": "Keyword or phrase searched in filing text, e.g. 'AI', 'robotics', 'quantum', 'GLP-1'. Leave empty in Form D mode to get every recent round.",
            "default": "AI"
          },
          "tickerOrCik": {
            "title": "Ticker or CIK (company modes)",
            "type": "string",
            "description": "Company ticker or CIK for company filings, financials and per-company insider trades, e.g. 'NVDA', 'AAPL' or '0000320193'. Leave empty in insider mode to scan insider trades across the whole market.",
            "default": "AAPL"
          },
          "maxResults": {
            "title": "Max records",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Maximum number of records returned (and charged), 1-500.",
            "default": 10
          },
          "lookbackDays": {
            "title": "Lookback days",
            "minimum": 1,
            "maximum": 3650,
            "type": "integer",
            "description": "How many recent days to cover when no start date is set (Form D, insider trades, full-text search).",
            "default": 30
          },
          "startDate": {
            "title": "Start date (YYYY-MM-DD)",
            "type": "string",
            "description": "Optional filing date lower bound; overrides the lookback."
          },
          "endDate": {
            "title": "End date (YYYY-MM-DD)",
            "type": "string",
            "description": "Optional filing date upper bound (defaults to today, UTC)."
          },
          "excludePooledFunds": {
            "title": "Exclude pooled investment funds (Form D)",
            "type": "boolean",
            "description": "Drops hedge, private equity, venture and real-estate fund vehicles, which are the majority of Form D filings, so you see operating companies that are actually raising rounds.",
            "default": true
          },
          "minOfferingUsd": {
            "title": "Minimum round size (USD)",
            "minimum": 0,
            "type": "number",
            "description": "Only return rounds whose offering or sold amount is at least this value, e.g. 1000000 for $1M+ rounds.",
            "default": 0
          },
          "industryGroups": {
            "title": "Industry groups (Form D)",
            "type": "array",
            "description": "Optional exact Form D industry groups to keep, e.g. 'Other Technology', 'Biotechnology', 'Pharmaceuticals', 'Health Care', 'Energy'. Leave empty for all.",
            "items": {
              "type": "string"
            }
          },
          "excludeIndustryGroups": {
            "title": "Exclude industry groups (Form D)",
            "type": "array",
            "description": "Form D industry groups to drop. The default removes real-estate syndications and investment vehicles ('Investing', 'Other Real Estate', 'REITS and Finance', 'Residential', 'Commercial') so the feed shows operating companies. Clear the list to keep everything.",
            "items": {
              "type": "string"
            },
            "default": [
              "Investing",
              "Other Real Estate",
              "REITS and Finance",
              "Residential",
              "Commercial"
            ]
          },
          "parseFormDXml": {
            "title": "Parse Form D details",
            "type": "boolean",
            "description": "Fetch each filing's primary_doc.xml to extract offering and sold amounts, industry, investors count, revenue range and executives. Needed for the filters above.",
            "default": true
          },
          "transactionCodes": {
            "title": "Insider transaction types",
            "type": "array",
            "description": "Form 4 transaction codes to keep. P = open-market purchase (the classic insider-buying signal), S = open-market sale, A = grant, M = option exercise, F = tax withholding, G = gift.",
            "items": {
              "type": "string",
              "enum": [
                "P",
                "S",
                "A",
                "M",
                "F",
                "G",
                "D",
                "C",
                "X",
                "J"
              ],
              "enumTitles": [
                "P - Open-market purchase",
                "S - Open-market sale",
                "A - Grant or award",
                "M - Option exercise",
                "F - Tax withholding",
                "G - Gift",
                "D - Disposition to issuer",
                "C - Conversion",
                "X - In-the-money exercise",
                "J - Other"
              ]
            },
            "default": [
              "P",
              "S"
            ]
          },
          "minTransactionValueUsd": {
            "title": "Minimum transaction value (USD)",
            "minimum": 0,
            "type": "number",
            "description": "Only return transactions worth at least this much (shares x price), e.g. 100000.",
            "default": 0
          },
          "includeDerivative": {
            "title": "Include derivative transactions",
            "type": "boolean",
            "description": "Also return option and warrant transactions from the derivative table.",
            "default": false
          },
          "maxFilingsToScan": {
            "title": "Max Form 4 filings to scan",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Upper bound on Form 4 documents read per run (about 8 per second). A market-wide daily scan of 150-300 filings takes 20-40 seconds.",
            "default": 150
          },
          "forms": {
            "title": "Form types (filings and full-text modes)",
            "type": "array",
            "description": "Form types to include, e.g. ['10-K', '10-Q', '8-K', 'S-1', '13F-HR']. Defaults to 10-K, 10-Q and 8-K in company filings mode and to D in Form D mode.",
            "items": {
              "type": "string"
            }
          },
          "fiscalPeriod": {
            "title": "Financials period",
            "enum": [
              "annual",
              "quarterly",
              "all"
            ],
            "type": "string",
            "description": "Annual statements, true 3-month quarters, or both. Values come from SEC's calendar frames, so restated and year-to-date figures are never mixed in.",
            "default": "annual"
          },
          "contactEmail": {
            "title": "Contact email for SEC User-Agent (optional)",
            "type": "string",
            "description": "SEC asks automated clients to declare a contact email in the User-Agent. Add yours for high-volume use; otherwise a generic contact is used."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}