{
  "openapi": "3.0.1",
  "info": {
    "title": "SEC EDGAR Filings Scraper: 10-K, 10-Q, 8-K, Form 4, 13F",
    "description": "Get SEC EDGAR filings by ticker, CIK or company name, or every new filing of a form type: 10-K, 10-Q, 8-K, Form 4, 13F, Form D, S-1. Filter by form and date, add the document text as Markdown, and schedule it with only-new mode. Live from the SEC's official APIs.",
    "version": "1.0",
    "x-build-id": "ITzIu1j3GWxrLZUu1"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/humble-echidna~sec-edgar/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-humble-echidna-sec-edgar",
        "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/humble-echidna~sec-edgar/runs": {
      "post": {
        "operationId": "runs-sync-humble-echidna-sec-edgar",
        "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/humble-echidna~sec-edgar/run-sync": {
      "post": {
        "operationId": "run-sync-humble-echidna-sec-edgar",
        "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": {
          "secContact": {
            "title": "Your contact for the SEC (name or company + email)",
            "type": "string",
            "description": "Your own name or company and email, e.g. Jane Doe jane@yourfirm.com. Required, except for a demo-sized run (up to 2 companies, 20 filings each, no document text, no only-new), which uses the developer's contact. The SEC's Fair Access policy requires every tool to declare who runs it: this goes only in the User-Agent header sent to sec.gov, never logged or stored, and is encrypted by Apify. Placeholders (example.com, noreply) are refused."
          },
          "mode": {
            "title": "What to fetch",
            "enum": [
              "companyFilings",
              "latestFilings"
            ],
            "type": "string",
            "description": "`companyFilings` (default): the filings of each company in `companies`, newest first, updated within minutes of filing. `latestFilings`: every company's filings of the chosen `formTypes` from the SEC's daily indexes (last 5 days by default, at most 31), e.g. all new Form D or 8-K filings; the index for a day appears after the SEC's business day ends.",
            "default": "companyFilings"
          },
          "companies": {
            "title": "Companies (ticker, CIK or name)",
            "type": "array",
            "description": "For `companyFilings`: one company per line, as a ticker (AAPL, BRK-B), a CIK (320193 or 0000320193) or an exact listed company name (Apple Inc). Names and tickers are looked up among companies with a ticker; for others (private funds, Form D issuers, insiders) use the CIK. Default [\"AAPL\"]. Ignored by `latestFilings`.",
            "default": [
              "AAPL"
            ],
            "items": {
              "type": "string"
            }
          },
          "formTypes": {
            "title": "Form types",
            "type": "array",
            "description": "Only these EDGAR form types, one per line, e.g. 10-K, 10-Q, 8-K, 4 (insider trades), 13F-HR, D, S-1, DEF 14A. 13F means 13F-HR and 13F-NT; 13D and 13G include the new SCHEDULE 13D/G names. Leave empty (the default) for every form type; `latestFilings` needs at least one.",
            "items": {
              "type": "string"
            }
          },
          "includeAmendments": {
            "title": "Include amendments (10-K/A etc.)",
            "type": "boolean",
            "description": "Default true: each form type also matches its amendment (10-K also returns 10-K/A). Set false for original filings only.",
            "default": true
          },
          "dateFrom": {
            "title": "Filed on or after",
            "type": "string",
            "description": "Only filings filed on or after this date, as YYYY-MM-DD, e.g. 2026-01-01. Leave empty (the default) for no lower limit (`latestFilings` then reads the last 5 days)."
          },
          "dateTo": {
            "title": "Filed on or before",
            "type": "string",
            "description": "Only filings filed on or before this date, as YYYY-MM-DD, e.g. 2026-06-30. Leave empty (the default) for no upper limit."
          },
          "lastDays": {
            "title": "Only the last N days",
            "minimum": 1,
            "maximum": 3650,
            "type": "integer",
            "description": "Only filings from the last N days, today included, e.g. 7. Moves with each run, so a scheduled run always looks at the most recent days. Minimum 1, maximum 3650; `latestFilings` reads at most 31 days. Leave empty (the default) for no limit."
          },
          "maxFilingsPerCompany": {
            "title": "Max filings per company",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "For `companyFilings`: at most this many matching filings per company, newest first. Default 20, minimum 1, maximum 10000. With `onlyNew`, the newest 20 are checked and only the unseen ones returned.",
            "default": 20
          },
          "onlyNew": {
            "title": "Only new filings since the last run",
            "type": "boolean",
            "description": "Default false. When true, filings this search already returned in an earlier run are skipped (and not charged), so a scheduled run returns only new filings. The memory is kept per company list entry and filter set in a named key-value store (sec-edgar-seen) in your account.",
            "default": false
          },
          "includeDocumentText": {
            "title": "Include the document text",
            "type": "boolean",
            "description": "Default false. When true, each filing's primary document (the 10-K, the 8-K, the rendered Form 4) is downloaded and returned in `documentText`, as Markdown with tables or plain text. One more SEC request per filing, so runs take longer. Not for insider Forms 3, 4 and 5, which carry insiders' personal details: documentTextError says so.",
            "default": false
          },
          "documentTextFormat": {
            "title": "Document text format",
            "enum": [
              "markdown",
              "text"
            ],
            "type": "string",
            "description": "With `includeDocumentText`: `markdown` (default; headings and tables kept, good for LLMs) or `text` (plain text, no markup).",
            "default": "markdown"
          },
          "maxTextChars": {
            "title": "Max document text length (characters)",
            "minimum": 1000,
            "maximum": 2000000,
            "type": "integer",
            "description": "With `includeDocumentText`: cut each document's text after this many characters (and set documentTextTruncated). Default 200000 (a 10-K is ~200000-600000), minimum 1000, maximum 2000000.",
            "default": 200000
          },
          "maxResults": {
            "title": "Max results per run",
            "minimum": 1,
            "type": "integer",
            "description": "Stop after this many filings in total, e.g. 100. Minimum 1; leave empty (the default) for no limit. The run also stops cleanly at the maximum cost per run you set in the run options, whichever comes first."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}