{
  "openapi": "3.0.1",
  "info": {
    "title": "SEC EDGAR Scraper - Filings, XBRL Financials & 13F",
    "description": "Pull SEC EDGAR data for any US-listed company by ticker or CIK: filing history with direct document links, XBRL financial facts as tidy de-duplicated rows, full-text search across filings since 2001, and 13F institutional holdings. Export to JSON, CSV or Excel.",
    "version": "1.0",
    "x-build-id": "ydBG8DBj2hUfrAd1i"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/sian.agency~sec-edgar-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-sian.agency-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/sian.agency~sec-edgar-scraper/runs": {
      "post": {
        "operationId": "runs-sync-sian.agency-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/sian.agency~sec-edgar-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-sian.agency-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",
        "properties": {
          "operation": {
            "title": "🎯 What do you want to scrape?",
            "enum": [
              "filings",
              "financials",
              "fullTextSearch",
              "holdings13f"
            ],
            "type": "string",
            "description": "🎯 **CHOOSE DATA:** Company filings lists a company's filing history with document links. Financial facts returns XBRL numbers (revenue, net income, assets) as one row per value. Full-text search finds filings containing a phrase. 13F holdings lists an institutional manager's reported positions. One operation per run.",
            "default": "filings"
          },
          "companies": {
            "title": "🏢 Companies (ticker or CIK)",
            "type": "array",
            "description": "🏢 **COMPANIES:** Stock tickers (AAPL, BRK.B) or SEC CIK numbers (320193). Used by Company filings and Financial facts. Tickers are matched against the SEC's official ticker list; companies without a ticker (private filers, funds) need their CIK. Up to 500 per run.",
            "items": {
              "type": "string"
            }
          },
          "formTypes": {
            "title": "📑 Form types",
            "uniqueItems": true,
            "type": "array",
            "description": "📑 **FORMS:** Which filing types to keep for Company filings and Full-text search. Leave empty for every form type. Amendments (10-K/A and similar) follow the setting below.",
            "items": {
              "type": "string",
              "enum": [
                "10-K",
                "10-Q",
                "8-K",
                "20-F",
                "40-F",
                "6-K",
                "S-1",
                "S-3",
                "S-4",
                "F-1",
                "424B2",
                "424B4",
                "DEF 14A",
                "DEFA14A",
                "3",
                "4",
                "5",
                "144",
                "SC 13D",
                "SC 13G",
                "SCHEDULE 13D",
                "SCHEDULE 13G",
                "13F-HR",
                "D",
                "11-K",
                "ARS",
                "SD",
                "10-12B",
                "N-CSR",
                "485BPOS"
              ],
              "enumTitles": [
                "📘 10-K annual report",
                "📗 10-Q quarterly report",
                "📣 8-K current report",
                "🌍 20-F foreign annual report",
                "🍁 40-F Canadian annual report",
                "🌐 6-K foreign current report",
                "🚀 S-1 IPO registration",
                "🧾 S-3 shelf registration",
                "🤝 S-4 merger registration",
                "🌏 F-1 foreign IPO registration",
                "💳 424B2 prospectus",
                "💳 424B4 prospectus",
                "🗳️ DEF 14A proxy statement",
                "🗳️ DEFA14A extra proxy material",
                "👤 Form 3 initial insider ownership",
                "👤 Form 4 insider transaction",
                "👤 Form 5 annual insider ownership",
                "📤 Form 144 planned insider sale",
                "🎯 SC 13D activist stake (to 2024)",
                "🎯 SC 13G passive stake (to 2024)",
                "🎯 SCHEDULE 13D activist stake",
                "🎯 SCHEDULE 13G passive stake",
                "🏦 13F-HR institutional holdings",
                "💰 Form D private placement",
                "👥 11-K employee plan report",
                "📚 ARS annual report to holders",
                "⛏️ SD conflict minerals",
                "🆕 10-12B spin-off registration",
                "📊 N-CSR fund shareholder report",
                "📊 485BPOS fund prospectus"
              ]
            },
            "default": [
              "10-K",
              "10-Q",
              "8-K"
            ]
          },
          "includeAmendments": {
            "title": "📝 Include amendments",
            "type": "boolean",
            "description": "📝 **AMENDMENTS:** Also keep amended filings (10-K/A, 8-K/A and so on) for the form types you picked. Turn off to see original filings only. Company filings only.",
            "default": true
          },
          "dateFrom": {
            "title": "📅 From date",
            "pattern": "^$|^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "📅 **FROM:** Earliest date to keep, as YYYY-MM-DD. Filings and Full-text search compare it with the filing date; Financial facts compares it with the period end date; 13F holdings ignore it. Leave empty for no lower bound."
          },
          "dateTo": {
            "title": "📅 To date",
            "pattern": "^$|^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "📅 **TO:** Latest date to keep, as YYYY-MM-DD, applied the same way as From date. Leave empty for no upper bound."
          },
          "concepts": {
            "title": "💵 XBRL concepts",
            "type": "array",
            "description": "💵 **CONCEPTS:** XBRL concept names to return for Financial facts, for example NetIncomeLoss, Assets or OperatingIncomeLoss. Add a taxonomy prefix (dei:, ifrs-full:) when needed; without one, every taxonomy is searched. Leave empty to return every concept the company reported, which can be thousands of rows.",
            "default": [
              "Revenues",
              "RevenueFromContractWithCustomerExcludingAssessedTax",
              "NetIncomeLoss",
              "Assets",
              "EarningsPerShareDiluted"
            ],
            "items": {
              "type": "string"
            }
          },
          "periodType": {
            "title": "🗓️ Periods",
            "enum": [
              "all",
              "annual",
              "quarterly"
            ],
            "type": "string",
            "description": "🗓️ **PERIODS:** Annual keeps full-year amounts and year-end balances; Quarterly keeps three-month amounts and quarter-end balances. Year-to-date (six- and nine-month) amounts appear only under All periods.",
            "default": "all"
          },
          "latestValueOnly": {
            "title": "🧹 One row per period (latest filing wins)",
            "type": "boolean",
            "description": "🧹 **DE-DUPLICATE:** Companies repeat the same number in later filings as comparatives. On (recommended): one row per concept, unit and period, taken from the most recent filing, with a count of how many filings reported it. Off: every reported occurrence.",
            "default": true
          },
          "searchQuery": {
            "title": "🔎 Search phrase",
            "type": "string",
            "description": "🔎 **QUERY:** Words to find inside filing documents filed since 2001. Put an exact phrase in double quotes. Combine with Form types and the date range to narrow results. The search index returns at most 10,000 matches per query."
          },
          "searchCompanies": {
            "title": "🏢 Limit search to companies (optional)",
            "type": "array",
            "description": "🏢 **SEARCH SCOPE:** Optional tickers or CIK numbers. When set, Full-text search only returns filings by these companies. Leave empty to search every filer.",
            "items": {
              "type": "string"
            }
          },
          "managers": {
            "title": "🏦 Institutional managers (CIK)",
            "type": "array",
            "description": "🏦 **MANAGERS:** CIK numbers of institutional investment managers that file Form 13F, for example 1067983 (Berkshire Hathaway). A ticker also works if the manager is listed. Ordinary operating companies do not file 13F.",
            "items": {
              "type": "string"
            }
          },
          "quarters": {
            "title": "📆 Latest 13F reports per manager",
            "minimum": 1,
            "maximum": 40,
            "type": "integer",
            "description": "📆 **REPORTS:** How many of each manager's most recent 13F holdings reports to read, newest first. 1 returns the latest quarter; 4 returns roughly the last year. Maximum records still caps the total per manager, so raise it when you read several quarters.",
            "default": 1
          },
          "maxResults": {
            "title": "🔢 Maximum records per company or query",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "🔢 **LIMIT:** Maximum rows to save per company (Company filings, Financial facts), per manager (13F holdings) or per query (Full-text search). FREE plans are capped at 25 rows per run. Full-text search can return at most 10,000 rows per query.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}