{
  "openapi": "3.0.1",
  "info": {
    "title": "SEC EDGAR Filings API – 10-K, 10-Q, 8-K, Full-Text & XBRL",
    "description": "Official SEC EDGAR data in bulk: filings by ticker, CIK, form type and date, the market-wide latest filings feed, EDGAR full-text search, and XBRL financials (revenue, net income, EPS, assets) per year or quarter. Optional document text. $0.30 per 1,000 filings.",
    "version": "0.1",
    "x-build-id": "6D7ha3PnHn4qIIsMu"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/gazidev~sec-edgar-filings/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-gazidev-sec-edgar-filings",
        "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/gazidev~sec-edgar-filings/runs": {
      "post": {
        "operationId": "runs-sync-gazidev-sec-edgar-filings",
        "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/gazidev~sec-edgar-filings/run-sync": {
      "post": {
        "operationId": "run-sync-gazidev-sec-edgar-filings",
        "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 fetch",
            "enum": [
              "companyFilings",
              "latestFilings",
              "fullTextSearch",
              "financials"
            ],
            "type": "string",
            "description": "**Company filings**: every filing of your companies, filtered by form and date. **Latest filings**: all new filings of the chosen forms across the market for the last N days. **Full-text search**: EDGAR full-text search hits (2001+). **Financials**: reported XBRL values per fiscal year or quarter.",
            "default": "companyFilings"
          },
          "tickers": {
            "title": "Tickers",
            "type": "array",
            "description": "Stock tickers, e.g. `AAPL`, `TSLA`, `BRK-B`. Used by Company filings and Financials; optional filter for Full-text search. Ignored by Latest filings.",
            "default": [
              "AAPL",
              "MSFT"
            ],
            "items": {
              "type": "string"
            }
          },
          "ciks": {
            "title": "CIK numbers",
            "type": "array",
            "description": "SEC Central Index Keys, e.g. `320193` (Apple). Works for companies without a ticker (funds, private issuers, individuals).",
            "items": {
              "type": "string"
            }
          },
          "formTypes": {
            "title": "Form types",
            "type": "array",
            "description": "Exact EDGAR form types, e.g. `10-K`, `10-Q`, `8-K`, `S-1`, `DEF 14A`, `13F-HR`, `SC 13D`, `4`, `20-F`, `424B2`. Leave empty for all forms. Not used by Financials.",
            "default": [
              "10-K",
              "10-Q",
              "8-K"
            ],
            "items": {
              "type": "string"
            }
          },
          "includeAmendments": {
            "title": "Include amendments (e.g. 10-K/A)",
            "type": "boolean",
            "description": "Also match the `/A` version of each form type.",
            "default": true
          },
          "dateFrom": {
            "title": "Filed on/after",
            "type": "string",
            "description": "YYYY-MM-DD. Default: 365 days ago (Financials: period end within the last 5 years)."
          },
          "dateTo": {
            "title": "Filed on/before",
            "type": "string",
            "description": "YYYY-MM-DD. Default: today."
          },
          "daysBack": {
            "title": "Latest filings: number of index days",
            "minimum": 1,
            "maximum": 30,
            "type": "integer",
            "description": "Latest filings mode: how many published EDGAR daily indexes to read, newest first (weekends and holidays are skipped; today's index appears the next business morning).",
            "default": 1
          },
          "query": {
            "title": "Full-text search query",
            "type": "string",
            "description": "Full-text search mode. Words or \"exact phrases\", e.g. `\"share repurchase\"`, `\"material weakness\"`, `tariff OR tariffs`."
          },
          "metrics": {
            "title": "Financial metrics",
            "type": "array",
            "description": "Financials mode. Aliases: `revenue`, `netIncome`, `operatingIncome`, `grossProfit`, `epsBasic`, `epsDiluted`, `totalAssets`, `totalLiabilities`, `stockholdersEquity`, `cash`, `longTermDebt`, `operatingCashFlow`, `capex`, `sharesOutstanding`, or any raw XBRL concept such as `us-gaap:ResearchAndDevelopmentExpense`. Default: revenue, netIncome, epsDiluted, totalAssets, stockholdersEquity, sharesOutstanding.",
            "items": {
              "type": "string"
            }
          },
          "period": {
            "title": "Financials: period",
            "enum": [
              "annual",
              "quarterly"
            ],
            "type": "string",
            "description": "Fiscal-year or quarterly values.",
            "default": "annual"
          },
          "maxItems": {
            "title": "Max rows",
            "minimum": 0,
            "type": "integer",
            "description": "Stop after this many charged rows (0 = no limit). Filings are returned newest first.",
            "default": 10
          },
          "maxPerCompany": {
            "title": "Max rows per company",
            "minimum": 0,
            "type": "integer",
            "description": "Company filings: newest N filings per company. Financials: newest N periods per metric and company. 0 = no limit.",
            "default": 0
          },
          "includeDocumentText": {
            "title": "Add primary document text",
            "type": "boolean",
            "description": "Download each filing's primary document and add its plain text (charged as `filing-document` instead of `filing`). Company filings and Full-text search modes.",
            "default": false
          },
          "documentTextMaxChars": {
            "title": "Document text: max characters",
            "minimum": 1000,
            "maximum": 200000,
            "type": "integer",
            "description": "Keep the first N characters of each document.",
            "default": 20000
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}