{
  "openapi": "3.0.1",
  "info": {
    "title": "SEC EDGAR Form D & 8-K Filings Parser",
    "description": "Parse official SEC EDGAR Form D private placement XML, decoded Form 8-K material event items, and 10-K/10-Q company filings into flat JSON with built-in Fair Access rate limiting.",
    "version": "1.1",
    "x-build-id": "arzutrfQ2fFWbmdDg"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/rinchan-hoshino~edgar-formd-8k-filings-parser/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-rinchan-hoshino-edgar-formd-8k-filings-parser",
        "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/rinchan-hoshino~edgar-formd-8k-filings-parser/runs": {
      "post": {
        "operationId": "runs-sync-rinchan-hoshino-edgar-formd-8k-filings-parser",
        "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/rinchan-hoshino~edgar-formd-8k-filings-parser/run-sync": {
      "post": {
        "operationId": "run-sync-rinchan-hoshino-edgar-formd-8k-filings-parser",
        "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": {
          "modes": {
            "title": "Filing Modes",
            "type": "array",
            "description": "Select one or more modes to run: 'form_d' (startup and private fundings via Form D / D/A XML), 'form_8k' (corporate material events with decoded 8-K item labels), or 'company_filings' (10-K, 10-Q, S-1, DEF 14A, Form 4, etc. by ticker or CIK).",
            "default": [
              "form_d",
              "company_filings"
            ]
          },
          "tickersOrCiks": {
            "title": "Tickers or CIKs",
            "type": "array",
            "description": "List of US stock tickers (e.g. 'NVDA', 'AAPL') or CIK numbers (e.g. '0000320193'). Required for 'company_filings' mode; optional for 'form_8k' (leave empty for full-market 8-K search).",
            "default": [
              "NVDA"
            ],
            "items": {
              "type": "string"
            }
          },
          "keyword": {
            "title": "Keyword / Industry Filter",
            "type": "string",
            "description": "Search keyword or industry phrase for Form D and full-market 8-K discovery (e.g. 'technology', 'AI', 'acquisition', 'biotech'). Leave empty to fetch all latest filings.",
            "default": "technology"
          },
          "states": {
            "title": "US States Filter",
            "type": "array",
            "description": "Optional list of 2-letter US state codes to filter issuer business or incorporation state (e.g. ['CA', 'NY', 'DE', 'TX']).",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "formTypes": {
            "title": "Form Types (Company Filings Mode)",
            "type": "array",
            "description": "SEC form types to extract in 'company_filings' mode (e.g. ['10-K', '10-Q', '8-K', 'S-1', 'DEF 14A', '4']).",
            "default": [
              "10-K",
              "10-Q",
              "8-K"
            ],
            "items": {
              "type": "string"
            }
          },
          "itemCodes": {
            "title": "8-K Item Code Filter",
            "type": "array",
            "description": "Optional list of 8-K item codes to filter by (e.g. ['1.01', '2.01', '5.02']). Only applies to 'form_8k' mode.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "daysBack": {
            "title": "Lookback Window (Days)",
            "minimum": 1,
            "maximum": 365,
            "type": "integer",
            "description": "Number of days back from today to search when startDate is not specified.",
            "default": 30
          },
          "startDate": {
            "title": "Start Date (YYYY-MM-DD)",
            "type": "string",
            "description": "Optional explicit start date in YYYY-MM-DD format. Overrides daysBack when provided."
          },
          "endDate": {
            "title": "End Date (YYYY-MM-DD)",
            "type": "string",
            "description": "Optional explicit end date in YYYY-MM-DD format. Defaults to today (UTC)."
          },
          "maxResults": {
            "title": "Max Results",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Maximum total number of filing records to extract across all selected modes.",
            "default": 20
          },
          "includeDocumentExcerpt": {
            "title": "Include 8-K Document Excerpt",
            "type": "boolean",
            "description": "When enabled in 'form_8k' mode, fetches the primary 8-K document and extracts a clean plain-text summary excerpt suitable for LLM and AI Agent analysis.",
            "default": false
          },
          "maxExcerptChars": {
            "title": "Max Excerpt Characters",
            "minimum": 200,
            "maximum": 10000,
            "type": "integer",
            "description": "Maximum character length of the plain-text document excerpt when includeDocumentExcerpt is true.",
            "default": 2000
          },
          "userAgent": {
            "title": "Custom SEC EDGAR User-Agent",
            "type": "string",
            "description": "Optional custom User-Agent string following SEC Fair Access guidelines (e.g. 'MyCompanyApp/1.0 (ops@mycompany.com)'). Defaults to a compliant built-in identifier."
          },
          "failOnEmpty": {
            "title": "Fail On Empty",
            "type": "boolean",
            "description": "Fail the Actor run if 0 filings are extracted.",
            "default": true
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}