{
  "openapi": "3.0.1",
  "info": {
    "title": "SEC EDGAR Filings & Financials Scraper ($1/1K)",
    "description": "SEC EDGAR filings scraper: 10-K, 10-Q, 8-K filings, XBRL financials and ratios, Form 4 insider trades, 13F holdings, 13D/13G stakes, Form D raises, full-text search hits. Takes tickers, CIKs, company names or a search phrase. Use it to track filings, insiders and fundamentals.",
    "version": "1.0",
    "x-build-id": "YJa3fJgP3QXc2pQ6x"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/tamnt67~sec-edgar-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-tamnt67-sec-edgar-scraper",
        "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/tamnt67~sec-edgar-scraper/runs": {
      "post": {
        "operationId": "runs-sync-tamnt67-sec-edgar-scraper",
        "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/tamnt67~sec-edgar-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-tamnt67-sec-edgar-scraper",
        "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": "Extraction Mode",
            "enum": [
              "financials",
              "filings",
              "insiders",
              "form_d",
              "full_text_search",
              "company_profile",
              "xbrl_facts",
              "form_13f",
              "activist_stakes",
              "latest_feed"
            ],
            "type": "string",
            "description": "Which SEC EDGAR dataset to extract. financials, xbrl_facts, filings, insiders, form_13f, activist_stakes and company_profile use the companies in \"Stock Tickers, CIKs or Company Names\"; form_d, full_text_search and latest_feed search all of EDGAR.",
            "default": "financials"
          },
          "tickers": {
            "title": "Stock Tickers, CIKs or Company Names",
            "type": "array",
            "description": "One or more US stock tickers (AAPL, BRK-B), 10-digit SEC CIKs (0000320193) or company names (Apple). For form_13f use the investment manager (BRK-B or CIK 1067983). Empty: example companies AAPL and NVDA (BRK-B for form_13f).",
            "items": {
              "type": "string"
            }
          },
          "period": {
            "title": "Financial Statement Period",
            "enum": [
              "annual",
              "quarterly"
            ],
            "type": "string",
            "description": "Annual (10-K/20-F) or standalone Quarterly (10-Q) XBRL statements (used in financials mode).",
            "default": "annual"
          },
          "forms": {
            "title": "SEC Form Types Filter",
            "type": "array",
            "description": "SEC form types to keep (e.g. 10-K, 10-Q, 8-K, S-1, DEF 14A). Used in filings, full_text_search and latest_feed (one feed per form type; empty list = all forms).",
            "default": [
              "10-K",
              "10-Q",
              "8-K"
            ],
            "items": {
              "type": "string"
            }
          },
          "query": {
            "title": "Search Keyword or Phrase",
            "type": "string",
            "description": "Full-text search phrase. Required in full_text_search, optional keyword in form_d (e.g. \"artificial intelligence\")."
          },
          "state": {
            "title": "US State Code (Form D)",
            "type": "string",
            "description": "Optional 2-letter US state code filter for Form D startup filings (e.g. CA, NY, DE, TX).",
            "default": ""
          },
          "startDate": {
            "title": "Start Date (YYYY-MM-DD)",
            "type": "string",
            "description": "Optional start filing date filter in YYYY-MM-DD format.",
            "default": ""
          },
          "endDate": {
            "title": "End Date (YYYY-MM-DD)",
            "type": "string",
            "description": "Optional end filing date filter in YYYY-MM-DD format.",
            "default": ""
          },
          "days": {
            "title": "Lookback Days (Form D)",
            "minimum": 1,
            "maximum": 365,
            "type": "integer",
            "description": "Number of days to look back when extracting Form D startup fundraising filings (1-365).",
            "default": 30
          },
          "limit": {
            "title": "Max Items per Ticker / Query",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Maximum number of statements, filings, or search hits returned per ticker or query (1-100).",
            "default": 10
          },
          "contactEmail": {
            "title": "Contact email for SEC (optional)",
            "type": "string",
            "description": "SEC asks automated clients to identify themselves; your email is sent only to sec.gov in the User-Agent. Empty: a neutral Actor User-Agent is used. Add it if SEC ever blocks requests."
          },
          "eightKItemCodes": {
            "title": "8-K item codes",
            "type": "array",
            "description": "Keep only 8-K filings that report one of these items, e.g. 2.02 (results), 5.02 (executive change), 1.05 (cybersecurity). Used in filings and latest_feed. Empty: no item filter.",
            "items": {
              "type": "string"
            }
          },
          "transactionCodes": {
            "title": "Insider transaction codes (insiders)",
            "type": "array",
            "description": "Keep only Form 3/4/5 filings with these transaction codes, e.g. P (open-market buy), S (sale), A (grant), M (option exercise), F (tax withholding). Empty: all filings.",
            "items": {
              "type": "string"
            }
          },
          "minTransactionValue": {
            "title": "Min insider transaction value, USD (insiders)",
            "minimum": 0,
            "type": "integer",
            "description": "Keep only insider filings whose common-stock transactions add up to at least this dollar value (shares x price). Empty or 0: no minimum."
          },
          "xbrlConcepts": {
            "title": "XBRL concepts (xbrl_facts)",
            "type": "array",
            "description": "XBRL concept names for xbrl_facts mode, e.g. us-gaap:Revenues, NetIncomeLoss, dei:EntityCommonStockSharesOutstanding. Without a prefix, us-gaap, dei, ifrs-full and srt are tried. Empty: revenue, net income and assets.",
            "items": {
              "type": "string"
            }
          },
          "dedupeFacts": {
            "title": "Remove re-reported XBRL facts (xbrl_facts)",
            "type": "boolean",
            "description": "Companies repeat the same period value in later filings. On: keep one value per period and unit (the latest filed). Off: every reported fact.",
            "default": true
          },
          "activistOnly": {
            "title": "Only activist 13D filings (activist_stakes)",
            "type": "boolean",
            "description": "On: only Schedule 13D (activist intent). Off: 13D and 13G (passive 5%+ holders).",
            "default": false
          },
          "minOfferingAmount": {
            "title": "Min offering amount, USD (form_d)",
            "minimum": 0,
            "type": "integer",
            "description": "Keep only Form D offerings with a total offering amount of at least this many dollars. Offerings marked \"Indefinite\" are dropped when set. Empty or 0: no minimum."
          },
          "industryGroup": {
            "title": "Industry group contains (form_d)",
            "type": "string",
            "description": "Keep only Form D filings whose industry group contains this text, e.g. Technology, Health Care, Real Estate, Pooled Investment Fund, Biotechnology. Empty: all industries."
          },
          "includeDocumentText": {
            "title": "Include document text",
            "type": "boolean",
            "description": "Download each filing's main document and add its plain text as documentText (filings, insiders, full_text_search, activist_stakes). One extra request per filing.",
            "default": false
          },
          "maxTextChars": {
            "title": "Max characters of document text",
            "minimum": 500,
            "maximum": 500000,
            "type": "integer",
            "description": "documentText is cut after this many characters; documentTextLength shows the full length.",
            "default": 20000
          },
          "includeExhibits": {
            "title": "Include exhibits list",
            "type": "boolean",
            "description": "Add exhibits: every document in the filing (sequence, description, file name, type such as EX-21, link). One extra request per filing.",
            "default": false
          },
          "onlyNewSinceLastRun": {
            "title": "Only new filings since the last run",
            "type": "boolean",
            "description": "For scheduled runs: skip filings (accession numbers) already saved by an earlier run with the same memory name. The first run saves everything. Not used for financials, xbrl_facts and company_profile.",
            "default": false
          },
          "stateKey": {
            "title": "Memory name for \"only new\"",
            "type": "string",
            "description": "Optional. Separate memory for each saved task, e.g. insider-watchlist. Empty: default."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}