{
  "openapi": "3.0.1",
  "info": {
    "title": "SEC 13F Institutional Holdings Change Report",
    "description": "Compare bounded institutional manager watchlists using official SEC EDGAR 13F XML filings. Receive source-linked holding change alerts, descriptive portfolio change reports, and compact exports. No API key or login is required; a descriptive SEC User-Agent is required.",
    "version": "0.1",
    "x-build-id": "1rrS8MmfLX8GZQDTv"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/taroyamada~sec-13f-institutional-holdings-change-report/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-taroyamada-sec-13f-institutional-holdings-change-report",
        "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/taroyamada~sec-13f-institutional-holdings-change-report/runs": {
      "post": {
        "operationId": "runs-sync-taroyamada-sec-13f-institutional-holdings-change-report",
        "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/taroyamada~sec-13f-institutional-holdings-change-report/run-sync": {
      "post": {
        "operationId": "run-sync-taroyamada-sec-13f-institutional-holdings-change-report",
        "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": [
          "watchlists",
          "userAgent"
        ],
        "properties": {
          "watchlists": {
            "title": "Institutional manager watchlists",
            "type": "array",
            "description": "Each watchlist contains one or more manager CIKs or official tickers plus optional holding filters.",
            "default": [
              {
                "id": "sample-managers",
                "managers": [
                  {
                    "cik": "0001166559",
                    "label": "Sample institutional manager"
                  }
                ],
                "issuerKeywords": [],
                "cusips": [],
                "minValueUsd": 0,
                "maxHoldingsPerManager": 100,
                "maxAlertsPerManager": 25
              }
            ]
          },
          "lookbackFilings": {
            "title": "Filings to inspect per manager",
            "minimum": 1,
            "maximum": 4,
            "type": "integer",
            "description": "Bounded number of latest 13F report periods inspected. Two periods are needed for a change comparison.",
            "default": 2
          },
          "monitorKey": {
            "title": "Monitor key",
            "type": "string",
            "description": "Stable state namespace for a recurring institutional holdings portfolio.",
            "default": "sec-13f-institutional-watch"
          },
          "userAgent": {
            "title": "SEC User-Agent",
            "type": "string",
            "description": "Required descriptive value, for example your-company-13f-watch/1.0 ops@yourcompany.com. Replace the example contact with your own application contact before production use.",
            "default": "taroyamada-sec-13f-institutional-holdings-change-report/1.0 https://apify.com/taroyamada/sec-13f-institutional-holdings-change-report"
          },
          "initialRunMode": {
            "title": "Initial run mode",
            "enum": [
              "baseline_only",
              "emit_backfill"
            ],
            "type": "string",
            "description": "baseline_only stores the first current portfolio with zero rows; emit_backfill emits selected current holdings as a first paid report.",
            "default": "baseline_only"
          },
          "generateReport": {
            "title": "Generate portfolio change report",
            "type": "boolean",
            "description": "Emit one report-first descriptive portfolio change report when selected holdings change.",
            "default": true
          },
          "emitRawRows": {
            "title": "Emit holding rows",
            "type": "boolean",
            "description": "Optional low-priced holding detail rows for the selected changed or backfilled positions.",
            "default": false
          },
          "emitExport": {
            "title": "Generate evidence export",
            "type": "boolean",
            "description": "Emit a compact JSON export of selected holdings and change evidence.",
            "default": false
          },
          "emitUnchanged": {
            "title": "Emit unchanged holdings",
            "type": "boolean",
            "description": "Accepted for compatibility, but unchanged holdings remain free and emit zero rows and zero charges.",
            "default": false
          },
          "maxRequests": {
            "title": "Maximum SEC requests",
            "minimum": 1,
            "maximum": 120,
            "type": "integer",
            "description": "Hard per-run request bound including ticker lookup, submissions, filing indexes, and XML documents.",
            "default": 20
          },
          "requestIntervalMs": {
            "title": "Request interval milliseconds",
            "minimum": 100,
            "maximum": 5000,
            "type": "integer",
            "description": "Minimum delay between official SEC requests. Keep a conservative interval and respect SEC access guidance.",
            "default": 1100
          },
          "maxChargeUsd": {
            "title": "Maximum charge USD",
            "minimum": 0.005,
            "maximum": 250,
            "type": "number",
            "description": "Fail closed before delivery if planned PPE charges exceed this cap.",
            "default": 40
          },
          "dryRun": {
            "title": "Dry run",
            "type": "boolean",
            "description": "Return deterministic representative rows for all event types without SEC requests, state writes, or 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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}