{
  "openapi": "3.0.1",
  "info": {
    "title": "SEC EDGAR Filings Scraper",
    "description": "Scrape SEC EDGAR filings (10-K, 10-Q, 8-K, Form 4 insider trades, 13F holdings) for any US public company. HTTP-only via the SEC's public API. No login, no proxy, no auth.",
    "version": "1.0",
    "x-build-id": "UHae4JuxXphTYp0ke"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/crawlerbros~sec-edgar-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-crawlerbros-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/crawlerbros~sec-edgar-scraper/runs": {
      "post": {
        "operationId": "runs-sync-crawlerbros-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/crawlerbros~sec-edgar-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-crawlerbros-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": [
          "companies"
        ],
        "properties": {
          "companies": {
            "title": "Companies (tickers or CIKs)",
            "type": "array",
            "description": "Tickers (e.g. `AAPL`, `MSFT`, `GOOGL`) or 10-digit CIKs (e.g. `0000320193`). The actor resolves tickers to CIKs automatically.",
            "default": [
              "AAPL",
              "MSFT"
            ],
            "items": {
              "type": "string"
            }
          },
          "filingTypes": {
            "title": "Filing types",
            "type": "array",
            "description": "Which filing forms to include. Empty = all types.",
            "items": {
              "type": "string",
              "enum": [
                "10-K",
                "10-Q",
                "8-K",
                "20-F",
                "40-F",
                "DEF 14A",
                "DEFA14A",
                "PRE 14A",
                "S-1",
                "S-3",
                "S-4",
                "S-8",
                "F-1",
                "F-3",
                "13F-HR",
                "13F-NT",
                "SC 13G",
                "SC 13D",
                "SC 13D/A",
                "SC 13G/A",
                "4",
                "4/A",
                "3",
                "5",
                "424B1",
                "424B2",
                "424B3",
                "424B4",
                "424B5",
                "11-K",
                "NT 10-K",
                "NT 10-Q",
                "6-K"
              ],
              "enumTitles": [
                "10-K (Annual report)",
                "10-Q (Quarterly report)",
                "8-K (Current report)",
                "20-F (Foreign annual report)",
                "40-F (Canadian annual report)",
                "DEF 14A (Definitive proxy)",
                "DEFA14A (Additional proxy materials)",
                "PRE 14A (Preliminary proxy)",
                "S-1 (IPO registration)",
                "S-3 (Shelf registration)",
                "S-4 (M&A registration)",
                "S-8 (Employee benefit plan)",
                "F-1 (Foreign IPO)",
                "F-3 (Foreign shelf)",
                "13F-HR (Hedge fund holdings)",
                "13F-NT (Hedge fund notice)",
                "SC 13G (Passive 5%+ ownership)",
                "SC 13D (Active 5%+ ownership)",
                "SC 13D/A (Active ownership amendment)",
                "SC 13G/A (Passive ownership amendment)",
                "Form 4 (Insider transaction)",
                "Form 4/A (Insider amendment)",
                "Form 3 (Initial insider ownership)",
                "Form 5 (Annual insider statement)",
                "424B1 (Prospectus type 1)",
                "424B2 (Prospectus type 2)",
                "424B3 (Prospectus type 3)",
                "424B4 (Prospectus type 4)",
                "424B5 (Prospectus type 5)",
                "11-K (Employee stock plan annual)",
                "NT 10-K (Notification of late 10-K)",
                "NT 10-Q (Notification of late 10-Q)",
                "6-K (Foreign current report)"
              ]
            },
            "default": [
              "10-K",
              "10-Q",
              "8-K"
            ]
          },
          "dateRangeFrom": {
            "title": "Filed since (YYYY-MM-DD)",
            "type": "string",
            "description": "Drop filings filed before this date."
          },
          "dateRangeTo": {
            "title": "Filed until (YYYY-MM-DD)",
            "type": "string",
            "description": "Drop filings filed after this date."
          },
          "maxItemsPerCompany": {
            "title": "Max filings per company",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Hard cap per company.",
            "default": 50
          },
          "maxItems": {
            "title": "Max items total",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Global hard cap across all companies.",
            "default": 500
          },
          "fetchPrimaryDocText": {
            "title": "Fetch primary doc as plain text",
            "type": "boolean",
            "description": "When true, also fetch the filing's primary document (HTML/TXT) and emit a `primaryDocText` field. Adds ~1 extra HTTP request per filing. Useful for keyword searching across filing text.",
            "default": false
          },
          "containsKeyword": {
            "title": "Filing text contains",
            "type": "string",
            "description": "Only emit filings whose primary-document text contains this substring (case-insensitive). Implies `fetchPrimaryDocText=true`."
          },
          "userAgentEmail": {
            "title": "Contact email (required by SEC)",
            "type": "string",
            "description": "SEC requires a contact email in every API request's User-Agent. Defaults to a generic Apify-actor address; override with your own email if scraping at high volume.",
            "default": "apify-actor@noreply.apify.com"
          }
        }
      },
      "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}