{
  "openapi": "3.0.1",
  "info": {
    "title": "SEC EDGAR Scraper — Company Filings & History",
    "description": "Export SEC EDGAR company filings by ticker or CIK, including older history, form and date filters, company metadata and document links. No API key required.",
    "version": "0.1",
    "x-build-id": "NviWRxqnPhyJm4KwV"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/felixgoldwin~sec-edgar-filings-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-felixgoldwin-sec-edgar-filings-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/felixgoldwin~sec-edgar-filings-scraper/runs": {
      "post": {
        "operationId": "runs-sync-felixgoldwin-sec-edgar-filings-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/felixgoldwin~sec-edgar-filings-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-felixgoldwin-sec-edgar-filings-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",
        "properties": {
          "mode": {
            "title": "What to scrape",
            "enum": [
              "filings",
              "companies"
            ],
            "type": "string",
            "description": "Filings exports SEC filing metadata and document links. Companies exports one current company metadata record per CIK. Neither mode downloads document bodies or financial statements.",
            "default": "filings"
          },
          "tickers": {
            "title": "Ticker symbols",
            "maxItems": 50,
            "type": "array",
            "description": "Ticker symbols from the official SEC company ticker list, for example AAPL, MSFT or BRK-B. Case-insensitive. Tickers and CIKs are limited to 50 entries combined before deduplication. If both fields are omitted, AAPL is used. Explicit empty lists do not enable the default. Unknown tickers are reported in the run summary.",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 15
            }
          },
          "ciks": {
            "title": "Company CIKs",
            "maxItems": 50,
            "type": "array",
            "description": "Optional SEC Central Index Keys, entered as text with 1–10 digits, such as 320193 or 0000320193. CIKs are padded to 10 digits. Use CIKs for entities absent from the listed-company ticker file. No URLs are accepted.",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 10
            }
          },
          "forms": {
            "title": "Filing forms",
            "maxItems": 50,
            "type": "array",
            "description": "Filings mode only. Exact form names, such as 10-K, 10-Q, 8-K, 4, SC 13G or 10-K/A. An empty list includes all forms. Amendments are separate: 10-K does not match 10-K/A. Up to 50 entries, each at most 30 characters.",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 30
            },
            "default": []
          },
          "dateFrom": {
            "title": "Filed on or after",
            "type": "string",
            "description": "Filings mode only. Optional inclusive filing-date boundary in YYYY-MM-DD format. Filters filingDate, not reportDate. Leave empty for no lower boundary."
          },
          "dateTo": {
            "title": "Filed on or before",
            "type": "string",
            "description": "Filings mode only. Optional inclusive filing-date boundary in YYYY-MM-DD format. Must be on or after dateFrom. Leave empty for no upper boundary."
          },
          "includeHistory": {
            "title": "Include historical filing files",
            "type": "boolean",
            "description": "Filings mode only. Follow additional historical submissions JSON files advertised by the SEC, subject to date, result and request limits. When disabled, only the recent filings in each company response are considered. Has no effect in Companies mode.",
            "default": true
          },
          "maxItems": {
            "title": "Maximum total saved results",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Global ceiling across all companies. One filing or one company record is one result. Duplicate and filtered rows do not count. This is a maximum, not a guaranteed number of available results.",
            "default": 1000
          },
          "maxRequests": {
            "title": "Maximum source requests",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "Global budget for SEC HTTP requests, including the ticker list when tickers are supplied, company submissions, historical files, retries and redirects. Provide CIKs to avoid the ticker-list lookup.",
            "default": 100
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}