{
  "openapi": "3.0.1",
  "info": {
    "title": "SEC Exhibit 21 Subsidiaries & Corporate Tree Scraper",
    "description": "Extract parent-to-subsidiary ownership trees and jurisdictions from SEC 10-K Exhibit 21 filings by ticker, CIK, or quarter as JSON, CSV, or via MCP.",
    "version": "0.1",
    "x-build-id": "Hdyqj4YMjrK1s3E9f"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/zertax~sec-edgar-exhibit-21-subsidiaries-mcp/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-zertax-sec-edgar-exhibit-21-subsidiaries-mcp",
        "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/zertax~sec-edgar-exhibit-21-subsidiaries-mcp/runs": {
      "post": {
        "operationId": "runs-sync-zertax-sec-edgar-exhibit-21-subsidiaries-mcp",
        "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/zertax~sec-edgar-exhibit-21-subsidiaries-mcp/run-sync": {
      "post": {
        "operationId": "run-sync-zertax-sec-edgar-exhibit-21-subsidiaries-mcp",
        "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": "Lookup Mode",
            "enum": [
              "company_lookup",
              "quarter_batch"
            ],
            "type": "string",
            "description": "Choose 'company_lookup' to query specific public companies by ticker, CIK, or name (fastest for AI agents & KYB), or 'quarter_batch' to scan SEC EDGAR's quarterly Form 10-K index.",
            "default": "company_lookup"
          },
          "tickers": {
            "title": "Stock Tickers",
            "type": "array",
            "description": "List of US public company ticker symbols (e.g. [\"CVX\", \"AAPL\", \"MSFT\"]). Used in company_lookup mode. Defaults to [\"CVX\"] when tickers, ciks, and companyNames are all empty.",
            "items": {
              "type": "string"
            }
          },
          "ciks": {
            "title": "SEC CIK Numbers",
            "type": "array",
            "description": "Optional list of SEC Central Index Key (CIK) numbers (with or without leading zeros, e.g. [\"0000034088\", \"320193\"]).",
            "items": {
              "type": "string"
            }
          },
          "companyNames": {
            "title": "Company Name Search",
            "type": "array",
            "description": "Optional list of company name queries matched case-insensitively against SEC's official issuer directory (e.g. [\"Occidental Petroleum\", \"Chevron\"]).",
            "items": {
              "type": "string"
            }
          },
          "maxFilingsPerCompany": {
            "title": "Max 10-K Filings Per Company",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Number of most recent Form 10-K filings to inspect per matched company (1 = latest annual report; increase to track historical M&A/divestiture changes).",
            "default": 1
          },
          "includeAmended": {
            "title": "Include 10-K/A Amendments",
            "type": "boolean",
            "description": "Include amended annual reports (10-K/A) in addition to primary Form 10-K filings.",
            "default": false
          },
          "year": {
            "title": "Filing Year (Quarter Batch Mode)",
            "minimum": 1994,
            "maximum": 2030,
            "type": "integer",
            "description": "Calendar year of SEC EDGAR full-index to scan when mode='quarter_batch'.",
            "default": 2025
          },
          "quarter": {
            "title": "Filing Quarter (Quarter Batch Mode)",
            "minimum": 1,
            "maximum": 4,
            "type": "integer",
            "description": "Calendar quarter (1-4) of SEC EDGAR full-index to scan when mode='quarter_batch'. Q1 carries the majority of calendar-year Form 10-K filings.",
            "default": 1
          },
          "sicCodes": {
            "title": "SIC Industry Codes (Quarter Batch Mode)",
            "type": "array",
            "description": "Optional 4-digit SEC SIC codes to filter quarter_batch filings (e.g. [\"1311\", \"2911\", \"7372\"]). Leave empty to include all industries.",
            "items": {
              "type": "string"
            }
          },
          "maxFilings": {
            "title": "Max Filings to Examine (Quarter Batch Mode)",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "Maximum number of matched Form 10-K filings to fetch and parse in quarter_batch mode.",
            "default": 10
          },
          "subsidiaryQuery": {
            "title": "Filter by Subsidiary Name",
            "type": "string",
            "description": "Optional case-insensitive substring filter on extracted subsidiary names (e.g. 'Pioneer', 'Capital', 'Holdings')."
          },
          "jurisdictionFilter": {
            "title": "Filter by Jurisdiction",
            "type": "string",
            "description": "Optional case-insensitive substring filter on jurisdiction of incorporation/organization (e.g. 'Delaware', 'Cayman', 'Netherlands', 'Alberta')."
          },
          "includeFilingStatusRows": {
            "title": "Include Non-Parsed / Refusal Status Rows",
            "type": "boolean",
            "description": "When true, emits an explicit 'filing_status' row if a filing has no Exhibit 21 or is refused (e.g. scanned image or multi-filer combined 10-K) so downstream systems distinguish coverage gaps from zero subsidiaries.",
            "default": true
          },
          "maxItems": {
            "title": "Max Output Items",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Maximum number of subsidiary and status items to output across the run (default 50 keeps AI agent/MCP lookups under 5 seconds; raise up to 5000 for full corporate trees).",
            "default": 50
          },
          "userAgentContact": {
            "title": "SEC Fair-Use User-Agent Contact (Optional)",
            "type": "string",
            "description": "Optional custom contact identifier for SEC EDGAR's fair-use User-Agent header (e.g. 'MyApp research@company.com'). Leave blank to use the Actor's built-in SEC-compliant contact header."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}