{
  "openapi": "3.0.1",
  "info": {
    "title": "SEC EDGAR Form D/A & 8-K Stateful Delta Radar",
    "description": "Deterministic stateful SEC EDGAR parser that computes net-new capital raised between Form D and Form D/A (excluding pooled investment funds by default) and extracts Form 8-K material corporate events (Items 1.01, 1.05, 2.01, 2.05, 5.02) with Privacy-by-Design executive home street redaction.",
    "version": "1.0",
    "x-build-id": "jsINghERRQhckJh5w"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/duypham~sec-edgar-8k-formd-tranche-delta/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-duypham-sec-edgar-8k-formd-tranche-delta",
        "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/duypham~sec-edgar-8k-formd-tranche-delta/runs": {
      "post": {
        "operationId": "runs-sync-duypham-sec-edgar-8k-formd-tranche-delta",
        "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/duypham~sec-edgar-8k-formd-tranche-delta/run-sync": {
      "post": {
        "operationId": "run-sync-duypham-sec-edgar-8k-formd-tranche-delta",
        "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": [
          "secUserAgent"
        ],
        "properties": {
          "secUserAgent": {
            "title": "SEC Fair-Access User-Agent",
            "type": "string",
            "description": "Mandatory User-Agent header required by SEC.gov Fair Access policy in the exact format 'Sample Company Name AdminContact@<sample company domain>.com'. Invalid or missing values halt immediately at pre-flight (INPUT_VALIDATION_ERROR) with zero PPE charges."
          },
          "filingTypes": {
            "title": "Target SEC Filing Types",
            "type": "array",
            "description": "Selects which SEC EDGAR submission streams to monitor for new fundraising tranches (Form D, Form D/A) and itemized corporate events (8-K). Only filings passing both your item/tranche filters and stateful checkpoint incur PPE event fees.",
            "items": {
              "type": "string",
              "enum": [
                "Form D",
                "Form D/A",
                "8-K"
              ]
            },
            "default": [
              "Form D",
              "Form D/A",
              "8-K"
            ]
          },
          "item8KFilter": {
            "title": "Form 8-K Material Items",
            "type": "array",
            "description": "Filters Form 8-K filings to specific material corporate triggers: 1.01 (Material Agreements), 1.05 (Cybersecurity Incidents), 2.01 (M&A), 2.05 (Restructuring/Layoffs), and 5.02 (Executive/Board Departures). Non-matching 8-K filings are discarded free of charge before HTML download.",
            "items": {
              "type": "string",
              "enum": [
                "1.01",
                "1.05",
                "2.01",
                "2.05",
                "5.02"
              ]
            },
            "default": [
              "1.01",
              "1.05",
              "2.01",
              "2.05",
              "5.02"
            ]
          },
          "excludePooledInvestmentFunds": {
            "title": "Exclude Pooled Investment Funds",
            "type": "boolean",
            "description": "Automatically drops Hedge Funds, Private Equity vehicles, and Venture Funds (isPooledInvestmentFund = true on Form D) so you only pay PPE event fees for operating companies and startups.",
            "default": true
          },
          "minTrancheDeltaUsd": {
            "title": "Minimum Tranche Delta (USD)",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum net-new capital raised (newAmountSoldDelta between Form D/A and prior Form D, or initial totalAmountSold) required in USD to emit a record. Filters out minor clerical amendments so your PPE budget is spent exclusively on material funding rounds.",
            "default": 100000
          },
          "redactResidentialStreets": {
            "title": "Redact Executive Home Addresses",
            "type": "boolean",
            "description": "Strips street-level residential lines (street1, street2) from Form D Item 3 Related Persons when different from issuer headquarters while preserving city, stateOrCountry, and zipCode for privacy-safe B2B CRM ingestion.",
            "default": true
          },
          "lookbackHours": {
            "title": "Initial Lookback Window (Hours)",
            "minimum": 1,
            "maximum": 168,
            "type": "integer",
            "description": "Time window (in hours) scanned on the run. Keep at 24 for daily schedules or 6 for intraday runs to minimize upstream EDGAR queries.",
            "default": 24
          },
          "deltaStateMode": {
            "title": "Delta State Mode",
            "enum": [
              "stateful_delta_only",
              "full_snapshot"
            ],
            "type": "string",
            "description": "Controls whether the Actor emits only newly created or modified records since the last checkpoint (stateful_delta_only) or re-emits all matching records in the lookback window (full_snapshot).",
            "default": "stateful_delta_only"
          },
          "customStateKey": {
            "title": "Custom State Checkpoint Key",
            "type": "string",
            "description": "Optional identifier to isolate the stateful checkpoint cursor in the apify-delta-fleet-state Named Key-Value Store when running multiple parallel n8n/Make workflows.",
            "default": ""
          },
          "maxDeltaRecords": {
            "title": "Max Delta Records Cap",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Hard ceiling on the number of delta records pushed and billed per run to strictly cap your Pay-Per-Event spend.",
            "default": 100
          },
          "dryRun": {
            "title": "Dry Run (Zero Event Fee)",
            "type": "boolean",
            "description": "Validates upstream connectivity and counts how many net-new delta records match your filters without mutating your saved checkpoint cursor. Incurs $0.00 in Pay-Per-Event charges.",
            "default": false
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}