{
  "openapi": "3.0.1",
  "info": {
    "title": "sec-edgar-filings",
    "description": "Get SEC EDGAR filings by ticker or CIK from official SEC APIs: 10-K, 10-Q, 8-K and more, with document links, key XBRL financials and optional Risk Factors and MD&A text.",
    "version": "0.0",
    "x-build-id": "dSpOqLRkgGoBFDqiV"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/smartmoney-data~sec-edgar-filings/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-smartmoney-data-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/smartmoney-data~sec-edgar-filings/runs": {
      "post": {
        "operationId": "runs-sync-smartmoney-data-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/smartmoney-data~sec-edgar-filings/run-sync": {
      "post": {
        "operationId": "run-sync-smartmoney-data-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",
        "required": [
          "userAgentContact"
        ],
        "properties": {
          "tickersOrCiks": {
            "title": "Tickers or CIKs",
            "type": "array",
            "description": "Company ticker symbols (e.g. AAPL, BRK-B) and/or SEC CIK numbers (with or without leading zeros). Required unless you use full-text search.",
            "items": {
              "type": "string"
            }
          },
          "formTypes": {
            "title": "Form types",
            "type": "array",
            "description": "SEC form types to include (e.g. 10-K, 10-Q, 8-K, 4, 13F-HR, S-1, DEF 14A). Amendments match their root (requesting 10-K also returns 10-K/A). Leave empty for all forms.",
            "items": {
              "type": "string"
            }
          },
          "dateFrom": {
            "title": "Filed date from (YYYY-MM-DD)",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "Inclusive lower bound on filing date."
          },
          "dateTo": {
            "title": "Filed date to (YYYY-MM-DD)",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "Inclusive upper bound on filing date."
          },
          "maxFilings": {
            "title": "Max filings (global)",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Maximum number of rows for the whole run in filings mode (full-text hits included). In financialsTimeSeries mode, this is used as the per-company fact limit when 'Max filings per company' is empty.",
            "default": 25
          },
          "maxFilingsPerCompany": {
            "title": "Max filings per company",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Maximum filings per ticker/CIK, so one company doesn't use up the whole run limit. In financialsTimeSeries mode: number of fact rows per company. Defaults to Max filings."
          },
          "mode": {
            "title": "Mode",
            "enum": [
              "filings",
              "financialsTimeSeries"
            ],
            "type": "string",
            "description": "filings = one row per SEC filing (default). financialsTimeSeries = key XBRL metrics over time from companyfacts (revenue, net income, EPS, assets).",
            "default": "filings"
          },
          "includeXbrlFinancials": {
            "title": "Include key XBRL financials",
            "type": "boolean",
            "description": "Attach revenue, net income, diluted EPS and total assets from the SEC's XBRL company facts (matched to the filing's accession number when possible). Not charged extra.",
            "default": true
          },
          "extractSections": {
            "title": "Extract 10-K / 10-Q sections",
            "type": "boolean",
            "description": "Download the primary 10-K/10-Q document and extract Item 1A (Risk Factors), Item 7 (MD&A) and Item 8 text (best effort). Slower, but not charged extra. Default off.",
            "default": false
          },
          "sectionMaxChars": {
            "title": "Max characters per section",
            "minimum": 1000,
            "maximum": 200000,
            "type": "integer",
            "description": "Truncate extracted section text to this many characters.",
            "default": 20000
          },
          "fullTextQuery": {
            "title": "Full-text search query (optional)",
            "type": "string",
            "description": "Optional EDGAR full-text search phrase (efts.sec.gov), e.g. \"supply chain disruption\". Returns up to 100 matching filings as fulltext_hit rows. Can be combined with tickers."
          },
          "userAgentContact": {
            "title": "Your contact email (required by the SEC)",
            "type": "string",
            "description": "The SEC requires every automated tool to identify itself with a real contact. Enter your own email address (e.g. you@yourcompany.com) or a URL where you can be reached. It is sent only to the SEC, in the User-Agent header of each request. The prefilled example.com address is a placeholder: replace it with your real email before real use, or the SEC may block the requests."
          },
          "maxRequestsPerSecond": {
            "title": "Max requests / second",
            "minimum": 0.5,
            "maximum": 8,
            "type": "number",
            "description": "Request rate toward SEC servers. Capped at 8 per second (the SEC's fair-access limit is 10). Default 8.",
            "default": 8
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}