{
  "openapi": "3.0.1",
  "info": {
    "title": "SEC EDGAR API: Financials, Filings & 10-K Sections",
    "description": "Use this when you need SEC data on a US public company: profile, standardised financials, filings, 10-K/10-Q sections or EDGAR full-text search. $0.003 overview, $0.004 financials, $0.008 section, $0.0005/filing or hit. Input: {\"query\":\"AAPL\",\"mode\":\"financials\"}. Output: compact JSON.",
    "version": "1.0",
    "x-build-id": "vgXg7rfJxhZN2oFHP"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/poised_beardlichen~sec-edgar-financials/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-poised_beardlichen-sec-edgar-financials",
        "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/poised_beardlichen~sec-edgar-financials/runs": {
      "post": {
        "operationId": "runs-sync-poised_beardlichen-sec-edgar-financials",
        "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/poised_beardlichen~sec-edgar-financials/run-sync": {
      "post": {
        "operationId": "run-sync-poised_beardlichen-sec-edgar-financials",
        "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": [
          "query"
        ],
        "properties": {
          "query": {
            "title": "Ticker, company name or CIK (or search text)",
            "type": "string",
            "description": "A ticker (AAPL), company name (Microsoft) or SEC CIK (320193). In 'search' mode, the words or \"exact phrase\" to find in filings."
          },
          "mode": {
            "title": "What to get",
            "enum": [
              "overview",
              "financials",
              "filings",
              "section",
              "search"
            ],
            "type": "string",
            "description": "overview = company profile + latest annual financials + recent filings; financials = standardised multi-period financial statements; filings = list of filings; section = text of a 10-K/10-Q section; search = EDGAR full-text search across all filers.",
            "default": "overview"
          },
          "queries": {
            "title": "More companies or searches (optional batch)",
            "type": "array",
            "description": "Optional extra tickers, names, CIKs or search phrases, processed with the same settings (max 200).",
            "items": {
              "type": "string"
            }
          },
          "period": {
            "title": "Financials: period",
            "enum": [
              "annual",
              "quarterly"
            ],
            "type": "string",
            "description": "Annual (10-K) or quarterly (10-Q) figures.",
            "default": "annual"
          },
          "periods": {
            "title": "Financials: number of periods",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "How many years or quarters to return, newest first.",
            "default": 5
          },
          "section": {
            "title": "Section: which part",
            "enum": [
              "risk_factors",
              "mdna",
              "business",
              "market_risk",
              "legal_proceedings",
              "financial_statements",
              "controls_and_procedures",
              "cybersecurity",
              "properties",
              "market_for_equity",
              "executive_compensation"
            ],
            "type": "string",
            "description": "Section to extract in 'section' mode.",
            "default": "risk_factors"
          },
          "filingForm": {
            "title": "Section: form",
            "enum": [
              "10-K",
              "10-Q"
            ],
            "type": "string",
            "description": "Use the latest 10-K or the latest 10-Q.",
            "default": "10-K"
          },
          "accessionNumber": {
            "title": "Section: specific filing (optional)",
            "type": "string",
            "description": "Accession number like 0000320193-25-000079 to extract from a specific filing instead of the latest."
          },
          "formTypes": {
            "title": "Filings/search: form types",
            "type": "array",
            "description": "Optional filter, e.g. 10-K, 10-Q, 8-K, DEF 14A, S-1. Empty = all forms.",
            "items": {
              "type": "string"
            }
          },
          "limit": {
            "title": "Filings/search: max results",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Max filings or search hits per query.",
            "default": 10
          },
          "dateFrom": {
            "title": "Search: filed from",
            "type": "string",
            "description": "Optional YYYY-MM-DD start date for full-text search."
          },
          "dateTo": {
            "title": "Search: filed until",
            "type": "string",
            "description": "Optional YYYY-MM-DD end date for full-text search."
          },
          "maxSectionChars": {
            "title": "Section: max characters",
            "minimum": 1000,
            "maximum": 2000000,
            "type": "integer",
            "description": "Trim very long sections to this many characters.",
            "default": 200000
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}