{
  "openapi": "3.0.1",
  "info": {
    "title": "SEC EDGAR API: Filings, Financials, Insider Trades",
    "description": "Get SEC EDGAR data as clean rows: company profiles and filings, XBRL financials per fiscal year or quarter, Form 4 insider trades, 13F fund holdings, 10-K/10-Q sections as text, and alerts for new filings. Official sec.gov sources, no API key.",
    "version": "1.0",
    "x-build-id": "If2x7ttu4zQqQgW8Y"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/fernandosord~sec-edgar-api/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-fernandosord-sec-edgar-api",
        "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/fernandosord~sec-edgar-api/runs": {
      "post": {
        "operationId": "runs-sync-fernandosord-sec-edgar-api",
        "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/fernandosord~sec-edgar-api/run-sync": {
      "post": {
        "operationId": "run-sync-fernandosord-sec-edgar-api",
        "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": "What to get",
            "enum": [
              "company",
              "financials",
              "insider-trades",
              "13f-holdings",
              "filing-text",
              "watch"
            ],
            "type": "string",
            "description": "company: profile and latest filings. financials: XBRL figures per fiscal period. insider-trades: Form 4 transactions (leave companies empty for the newest filings market-wide). 13f-holdings: a fund's 13F positions. filing-text: clean text of a filing or its 10-K/10-Q Items. watch: only filings new since the last run with the same stateKey.",
            "default": "company"
          },
          "companies": {
            "title": "Companies or funds",
            "type": "array",
            "description": "Tickers (AAPL, BRK.B), CIK numbers (320193) or registered names (\"Berkshire Hathaway\"). Names use EDGAR's company search and take the top match, so tickers or CIKs are safer. For 13f-holdings, list the fund managers.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "formTypes": {
            "title": "Form types",
            "type": "array",
            "description": "Only these SEC forms, e.g. 10-K, 10-Q, 8-K, 4, S-1, 13F-HR, SC 13D. Empty means all forms (company, watch), 4 and 4/A (insider-trades) or 10-K (filing-text, which reads the latest filing of each form listed).",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "dateFrom": {
            "title": "Filed on or after",
            "type": "string",
            "description": "YYYY-MM-DD. Filters the filings list (company) and Form 4 filings for listed companies (insider-trades).",
            "default": ""
          },
          "dateTo": {
            "title": "Filed on or before",
            "type": "string",
            "description": "YYYY-MM-DD. Same modes as \"Filed on or after\".",
            "default": ""
          },
          "maxFilings": {
            "title": "Max filings",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "company: filings listed per company. insider-trades: Form 4 filings read per company, or in total when companies is empty. One filing often holds several transactions.",
            "default": 10
          },
          "periodType": {
            "title": "Periods (financials)",
            "enum": [
              "annual",
              "quarterly",
              "both"
            ],
            "type": "string",
            "description": "annual: one row per fiscal year from 10-K/20-F/40-F. quarterly: one row per fiscal quarter; Q4 and cash-flow quarters are derived by subtraction where the filing only gives year-to-date totals. both: annual and quarterly rows.",
            "default": "annual"
          },
          "maxPeriods": {
            "title": "Max periods per company (financials)",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "Newest N fiscal periods per company (per period type when both).",
            "default": 8
          },
          "valueSource": {
            "title": "Restated values (financials)",
            "enum": [
              "as-reported",
              "latest"
            ],
            "type": "string",
            "description": "as-reported: each figure as first filed for that period. latest: the most recent figure for that period, which includes later restatements and reclassifications.",
            "default": "as-reported"
          },
          "rawTags": {
            "title": "Raw XBRL tags (financials)",
            "type": "array",
            "description": "Return raw facts for these tags instead of the normalized rows, e.g. us-gaap:Revenues, AccountsPayableCurrent (us-gaap is assumed), dei:EntityPublicFloat.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "transactionCodes": {
            "title": "Transaction codes (insider-trades)",
            "type": "array",
            "description": "Keep only these Form 4 codes. P = open market purchase, S = sale, A = grant, M = option exercise, F = tax withholding, G = gift. Empty keeps all.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "quarter": {
            "title": "Quarter (13f-holdings)",
            "type": "string",
            "description": "Report quarter like 2026-Q2 or 2026-06-30. Empty means the latest 13F-HR each manager filed.",
            "default": ""
          },
          "maxHoldings": {
            "title": "Max holdings per fund (13f-holdings)",
            "minimum": 0,
            "maximum": 100000,
            "type": "integer",
            "description": "Largest N positions by value. 0 returns every position.",
            "default": 100
          },
          "combineSameSecurity": {
            "title": "Combine rows for the same security (13f-holdings)",
            "type": "boolean",
            "description": "Managers often split one stock across several rows (by sub-manager or discretion). On: one row per CUSIP and put/call with values summed. Off: rows exactly as filed.",
            "default": true
          },
          "filingUrls": {
            "title": "Filing URLs or accession numbers (filing-text)",
            "type": "array",
            "description": "EDGAR document or index URLs, or accession numbers like 0000320193-25-000079. Used together with companies.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "sections": {
            "title": "Sections (filing-text)",
            "type": "array",
            "description": "10-K/10-Q Items to extract, one row each: 1, 1A, 7, 7A, 8, or names: business, risk-factors, mda, market-risk, financial-statements, legal-proceedings, controls. 10-Q Part II items: P2-1A. 8-K: 2.02. Empty returns the whole document.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "maxChars": {
            "title": "Max characters per row (filing-text)",
            "minimum": 1000,
            "maximum": 5000000,
            "type": "integer",
            "description": "Longer text is cut at a paragraph break and marked truncated: true, with totalChars giving the full length. A 10-K is about 200,000 to 600,000 characters.",
            "default": 50000
          },
          "includeTables": {
            "title": "Include tables (filing-text)",
            "type": "boolean",
            "description": "Tables come out as one line per row with cells separated by \" | \". Turn off for prose only.",
            "default": true
          },
          "stateKey": {
            "title": "State key (watch)",
            "type": "string",
            "description": "Name of the watch list. Runs with the same key share memory of filings already returned, which are never returned or charged again.",
            "default": "default"
          },
          "initialLookbackDays": {
            "title": "First-run lookback days (watch)",
            "minimum": 0,
            "maximum": 365,
            "type": "integer",
            "description": "On the first run for a company, filings from the last N days count as new. 0 starts silently from now.",
            "default": 7
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}