{
  "openapi": "3.0.1",
  "info": {
    "title": "SEC 13D/G Ownership Changes – Evidence API",
    "description": "Normalize official structured SEC Schedule 13D/G filings into issuer, reporting-person, security, ownership-change, and bounded purpose-evidence records with stateless cursors.",
    "version": "0.1",
    "x-build-id": "SGUMHNNGCxnRObg4y"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/bb-tradetec~sec-13dg-ownership-change-normalizer/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-bb-tradetec-sec-13dg-ownership-change-normalizer",
        "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/bb-tradetec~sec-13dg-ownership-change-normalizer/runs": {
      "post": {
        "operationId": "runs-sync-bb-tradetec-sec-13dg-ownership-change-normalizer",
        "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/bb-tradetec~sec-13dg-ownership-change-normalizer/run-sync": {
      "post": {
        "operationId": "run-sync-bb-tradetec-sec-13dg-ownership-change-normalizer",
        "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": [
          "queries"
        ],
        "properties": {
          "queries": {
            "title": "Subject, reporting-person, or accession queries",
            "minItems": 1,
            "maxItems": 20,
            "type": "array",
            "description": "Use a unique safe requestId. Subject supports ticker, CIK, or exact SEC company name; reportingPerson requires CIK; accessionNumber requires an exact accession plus subjectCik.",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "requestId",
                "scope",
                "identifierType",
                "identifier"
              ],
              "properties": {
                "requestId": {
                  "title": "Request ID",
                  "description": "Caller-defined stable correlation ID returned in matching rows; do not place secrets or personal free text here.",
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 128,
                  "pattern": "^[A-Za-z0-9._:-]+$"
                },
                "scope": {
                  "title": "Query scope",
                  "description": "Search by subject issuer, exact reporting-person CIK, or exact accession plus subject CIK.",
                  "type": "string",
                  "enum": [
                    "subject",
                    "reportingPerson",
                    "accessionNumber"
                  ]
                },
                "identifierType": {
                  "title": "Identifier type",
                  "description": "The exact identifier vocabulary allowed by the selected scope.",
                  "type": "string",
                  "enum": [
                    "ticker",
                    "cik",
                    "companyName",
                    "accessionNumber"
                  ]
                },
                "identifier": {
                  "title": "Exact identifier",
                  "description": "Exact ticker, CIK, SEC company name, or accession number; no comma-separated lists or fuzzy person names.",
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 200
                },
                "subjectCik": {
                  "title": "Subject CIK for exact accession",
                  "description": "Required only for accessionNumber scope. An accession prefix is never assumed to be the subject CIK.",
                  "type": "string",
                  "pattern": "^\\d{1,10}$"
                }
              }
            },
            "default": [
              {
                "requestId": "issuer-ownership",
                "scope": "subject",
                "identifierType": "ticker",
                "identifier": "DIS"
              }
            ]
          },
          "forms": {
            "title": "Schedule forms",
            "minItems": 1,
            "maxItems": 4,
            "uniqueItems": true,
            "type": "array",
            "description": "One to four unique canonical Schedule form filters.",
            "items": {
              "type": "string",
              "pattern": "^SC 13[DG](?:/A)?$"
            },
            "default": [
              "SC 13D",
              "SC 13D/A",
              "SC 13G",
              "SC 13G/A"
            ]
          },
          "filedFrom": {
            "title": "Filed from",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "Inclusive YYYY-MM-DD filing-date lower bound; baseline lookup can inspect one earlier filing."
          },
          "filedTo": {
            "title": "Filed to",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "Inclusive YYYY-MM-DD filing-date upper bound; must not precede filedFrom."
          },
          "includeOwnershipChanges": {
            "title": "Compare amendments",
            "type": "boolean",
            "description": "For amendments, fetch at most one bounded prior filing and calculate only unambiguous statement deltas.",
            "default": true
          },
          "includePurposeEvidence": {
            "title": "Include Schedule 13D Item 4 evidence",
            "type": "boolean",
            "description": "Return bounded source prose only. No activist, takeover, merger, or intent classification is produced.",
            "default": true
          },
          "evidenceMaxChars": {
            "title": "Maximum purpose-evidence characters",
            "minimum": 500,
            "maximum": 5000,
            "type": "integer",
            "description": "Hard bound for returned Schedule 13D Item 4 source text; original length and truncation stay explicit.",
            "default": 3000
          },
          "maxFilingsPerQuery": {
            "title": "Maximum filings per query",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Hard bound on selected output filing candidates per exact query.",
            "default": 25
          },
          "maxEvents": {
            "title": "Maximum unique filing events",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Hard dataset-row and pay-per-event result ceiling after global recordId deduplication.",
            "default": 50
          },
          "outputSchemaVersion": {
            "title": "Output schema version",
            "enum": [
              "1.0"
            ],
            "type": "string",
            "description": "Published deterministic dataset contract; only version 1.0 is currently supported.",
            "default": "1.0"
          },
          "outputMode": {
            "title": "Output mode",
            "enum": [
              "full",
              "compact"
            ],
            "type": "string",
            "description": "compact omits the bounded Item 4 prose but preserves status, counts, source, and rule metadata.",
            "default": "full"
          },
          "incremental": {
            "title": "Stateless incremental mode",
            "type": "object",
            "description": "First run: omit cursor. Later pass SUMMARY.nextCursor unchanged. Exact accession queries are not allowed in incremental mode.",
            "properties": {
              "cursor": {
                "title": "Previous cursor",
                "description": "Opaque nextCursor from the previous SUMMARY; omit on the first run and never edit it.",
                "type": "string",
                "maxLength": 32768,
                "pattern": "^secowncur1_[A-Za-z0-9_-]+$"
              },
              "overlapHours": {
                "title": "Overlap hours",
                "description": "Recheck this many hours before each atomic filing watermark; recent stable record IDs suppress duplicates.",
                "type": "integer",
                "editor": "number",
                "minimum": 0,
                "maximum": 168
              }
            },
            "additionalProperties": 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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}