{
  "openapi": "3.0.1",
  "info": {
    "title": "SEC Filings: 10-K Risk Factors & MD&A Extractor for AI & RAG",
    "description": "Pull Risk Factors, MD&A and other sections from SEC 10-K and 10-Q filings by ticker or CIK, split into citation-ready chunks with year-over-year risk changes. $0.005 per filing; failed filings are free.",
    "version": "0.4",
    "x-build-id": "rwbrKeDIMQGjITg47"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/skilled_glee~sec-filing-section-chunker/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-skilled_glee-sec-filing-section-chunker",
        "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/skilled_glee~sec-filing-section-chunker/runs": {
      "post": {
        "operationId": "runs-sync-skilled_glee-sec-filing-section-chunker",
        "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/skilled_glee~sec-filing-section-chunker/run-sync": {
      "post": {
        "operationId": "run-sync-skilled_glee-sec-filing-section-chunker",
        "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": {
          "tickers": {
            "title": "Stock tickers",
            "type": "array",
            "description": "Ticker symbols to resolve through SEC company_tickers.json, e.g. AAPL. Combined with ciks, then filtered by formTypes and year.",
            "items": {
              "type": "string"
            }
          },
          "ciks": {
            "title": "CIKs",
            "type": "array",
            "description": "SEC Central Index Keys, with or without leading zeros (320193 or 0000320193).",
            "items": {
              "type": "string"
            }
          },
          "formTypes": {
            "title": "Form types",
            "uniqueItems": true,
            "type": "array",
            "description": "EDGAR form types to fetch. Default is 10-K and 10-Q. Amendments (10-K/A, 10-Q/A) are optional and not included unless listed.",
            "items": {
              "type": "string",
              "enum": [
                "10-K",
                "10-Q",
                "10-K/A",
                "10-Q/A"
              ]
            },
            "default": [
              "10-K",
              "10-Q"
            ]
          },
          "years": {
            "title": "Years",
            "type": "array",
            "description": "Keep filings whose report date (or filing date) falls in these calendar years, e.g. 2024.",
            "items": {
              "type": "integer",
              "minimum": 1994,
              "maximum": 2100
            }
          },
          "fromYear": {
            "title": "From year",
            "minimum": 1994,
            "maximum": 2100,
            "type": "integer",
            "description": "Inclusive start year for the EDGAR filter. Used with toYear when years is empty."
          },
          "toYear": {
            "title": "To year",
            "minimum": 1994,
            "maximum": 2100,
            "type": "integer",
            "description": "Inclusive end year for the EDGAR filter."
          },
          "maxFilings": {
            "title": "Maximum filings",
            "minimum": 1,
            "maximum": 25,
            "type": "integer",
            "description": "Cap on EDGAR filings fetched in this run. Default 5, maximum 25. Keep this small to stay under spend limits.",
            "default": 5
          },
          "includeRiskDiff": {
            "title": "Year-over-year risk-factor diff",
            "type": "boolean",
            "description": "When two or more filings for the same company and form are processed, compare Item 1A and emit added, removed, and changed paragraphs or risk headings. Included in the existing $0.005 per-filing charge; not a separate event.",
            "default": true
          },
          "requestedItems": {
            "title": "Requested items (default)",
            "uniqueItems": true,
            "type": "array",
            "description": "Default section identifiers for every filing. 10-K: 1, 1A, 3, 7, 7A, 8, 9A. 10-Q: 2 (Part I MD&A) and 1A (Part II Risk Factors). Per-item requestedItems still override this.",
            "items": {
              "type": "string"
            }
          },
          "chunkSize": {
            "title": "Chunk size",
            "minimum": 200,
            "maximum": 20000,
            "type": "integer",
            "description": "Default maximum approximate characters per output chunk.",
            "default": 1500
          },
          "overlap": {
            "title": "Overlap",
            "minimum": 0,
            "maximum": 19999,
            "type": "integer",
            "description": "Default characters shared by adjacent chunks; must be smaller than chunk size.",
            "default": 150
          },
          "items": {
            "title": "Filings",
            "minItems": 0,
            "maxItems": 25,
            "type": "array",
            "description": "Optional direct filings (raw text, HTML, or a public URL). Failed input does not discard other results. You can also omit this and use tickers or ciks.",
            "items": {
              "type": "object",
              "properties": {
                "sourceUrl": {
                  "title": "Public filing URL",
                  "type": "string",
                  "description": "Public HTTP(S) URL to plain text or HTML (including inline XBRL)."
                },
                "fileUrl": {
                  "title": "Public file URL",
                  "type": "string",
                  "description": "Public HTTP(S) UTF-8 text or HTML file URL."
                },
                "rawText": {
                  "title": "Raw filing text or HTML",
                  "type": "string",
                  "description": "Plain-text or HTML filing content; takes precedence over URLs. Inline XBRL is stripped to text."
                },
                "rawHtml": {
                  "title": "Raw HTML",
                  "type": "string",
                  "description": "HTML filing body, including inline XBRL. Alias of rawText when rawText is empty."
                },
                "sourceName": {
                  "title": "Source name",
                  "type": "string",
                  "description": "Optional stable label for the source. Used to pair filings for risk-factor diffs when ticker and CIK are absent."
                },
                "formType": {
                  "title": "Form type",
                  "type": "string",
                  "description": "10-K or 10-Q. Detected from the document when omitted."
                },
                "ticker": {
                  "title": "Ticker",
                  "type": "string",
                  "description": "Optional ticker used to pair year-over-year diffs."
                },
                "cik": {
                  "title": "CIK",
                  "type": "string",
                  "description": "Optional CIK used to pair year-over-year diffs."
                },
                "filingDate": {
                  "title": "Filing date",
                  "type": "string",
                  "description": "Optional ISO date used to order year-over-year diffs."
                },
                "year": {
                  "title": "Year",
                  "type": "integer",
                  "description": "Optional year used to order year-over-year diffs when filingDate is absent."
                },
                "requestedItems": {
                  "title": "Requested Items",
                  "type": "array",
                  "description": "Supported identifiers: 1, 1A, 2 (10-Q Part I MD&A), 3, 7, 7A, 8, 9A.",
                  "items": {
                    "type": "string"
                  },
                  "uniqueItems": true
                },
                "chunkSize": {
                  "title": "Chunk size",
                  "type": "integer",
                  "description": "Maximum approximate characters per output chunk.",
                  "minimum": 200,
                  "maximum": 20000,
                  "default": 1500
                },
                "overlap": {
                  "title": "Overlap",
                  "type": "integer",
                  "description": "Characters shared by adjacent chunks; must be smaller than chunk size.",
                  "minimum": 0,
                  "maximum": 19999,
                  "default": 150
                }
              }
            }
          },
          "secUserAgent": {
            "title": "SEC User-Agent (optional)",
            "maxLength": 200,
            "type": "string",
            "description": "Identifying User-Agent sent on EDGAR and URL downloads, per SEC fair-access guidance: your organization name and a contact email, e.g. 'Acme Research admin@acme.com'. If empty, the Actor uses env SEC_USER_AGENT, else an EchoEmpire default (plus SEC_CONTACT_EMAIL if set). Requests are throttled to a few per second, under the SEC 10-request-per-second cap."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}