{
  "openapi": "3.0.1",
  "info": {
    "title": "SEC 13F Holdings & Changes Feed (institutional portfolios)",
    "description": "Daily feed of new SEC Form 13F-HR filings by hedge funds and institutional managers: total value, positions, top holdings, and quarter-over-quarter new/increased/decreased/exited positions. Filter by manager, CUSIP, issuer, size.",
    "version": "0.1",
    "x-build-id": "48g6nNMqFjY6BtC59"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/moment-data~sec-13f-holdings-changes-feed/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-moment-data-sec-13f-holdings-changes-feed",
        "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/moment-data~sec-13f-holdings-changes-feed/runs": {
      "post": {
        "operationId": "runs-sync-moment-data-sec-13f-holdings-changes-feed",
        "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/moment-data~sec-13f-holdings-changes-feed/run-sync": {
      "post": {
        "operationId": "run-sync-moment-data-sec-13f-holdings-changes-feed",
        "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": "Output",
            "enum": [
              "filings",
              "holdings"
            ],
            "type": "string",
            "description": "filings (default): one summary record per 13F filing (manager, period, total value, position count, top 10 holdings, optional quarter-over-quarter change summary). holdings: one record per position.",
            "default": "filings"
          },
          "compareWithPrevious": {
            "title": "Compare with previous quarter",
            "type": "boolean",
            "description": "Fetch each manager's previous 13F holdings report and classify positions as new, increased, decreased, exited or unchanged (by share / principal amount). Filings mode adds counts and top changes; holdings mode emits one record per change, including exited positions.",
            "default": false
          },
          "changeTypes": {
            "title": "Change types (holdings mode + compare)",
            "type": "array",
            "description": "Which position changes to deliver in holdings mode when comparing: new, increased, decreased, exited, unchanged.",
            "default": [
              "new",
              "increased",
              "decreased",
              "exited"
            ],
            "items": {
              "type": "string"
            }
          },
          "filerCiks": {
            "title": "Manager CIKs",
            "type": "array",
            "description": "SEC CIK numbers of institutional managers to follow, e.g. 1067983 (Berkshire Hathaway), 1350694 (Bridgewater). Returns each manager's latest 13F-HR filed in the last 150 days (sinceLastRun: every new one). Leave empty to read the daily feed of all managers.",
            "items": {
              "type": "string"
            }
          },
          "filerNameContains": {
            "title": "Manager name contains",
            "type": "array",
            "description": "Keep filings whose manager name contains any of these words (case-insensitive), e.g. capital, partners, bank.",
            "items": {
              "type": "string"
            }
          },
          "minPortfolioValue": {
            "title": "Minimum portfolio value (USD)",
            "minimum": 0,
            "type": "integer",
            "description": "Keep only managers whose reported 13F portfolio value is at least this much, e.g. 1000000000 for $1B+.",
            "default": 0
          },
          "issuerCusips": {
            "title": "Issuer CUSIPs",
            "type": "array",
            "description": "Keep holdings (and filings holding) any of these CUSIPs. A 6-character issuer prefix matches all of the issuer's securities, e.g. 037833 for Apple.",
            "items": {
              "type": "string"
            }
          },
          "issuerNameContains": {
            "title": "Issuer name contains",
            "type": "array",
            "description": "Keep holdings (and filings holding) issuers whose name contains any of these words, e.g. NVIDIA, TESLA.",
            "items": {
              "type": "string"
            }
          },
          "includeAmendments": {
            "title": "Include amendments (13F-HR/A)",
            "type": "boolean",
            "description": "Also deliver 13F-HR/A amendments (restatements and added holdings).",
            "default": true
          },
          "sinceLastRun": {
            "title": "Only new since last run (for schedules)",
            "type": "boolean",
            "description": "Opt-in: remember delivered filings under the State key and only deliver filings not seen before. Use for daily schedules. Off by default (stateless).",
            "default": false
          },
          "daysBack": {
            "title": "Business days to read",
            "minimum": 1,
            "maximum": 65,
            "type": "integer",
            "description": "Minimum number of the latest EDGAR business days to read (weekends and holidays skipped).",
            "default": 1
          },
          "autoWiden": {
            "title": "Widen window until Max items",
            "type": "boolean",
            "description": "If fewer than Max items match, keep reading older business days (up to Max lookback days). Useful mid-quarter, when few 13Fs are filed.",
            "default": true
          },
          "maxLookbackDays": {
            "title": "Max lookback (business days)",
            "minimum": 1,
            "maximum": 65,
            "type": "integer",
            "description": "Upper limit for the widened window.",
            "default": 10
          },
          "maxItems": {
            "title": "Max records per run",
            "minimum": 1,
            "maximum": 1000000,
            "type": "integer",
            "description": "Hard cap on delivered records (filings or holdings, also caps your spend). Default is small for a quick, cheap first run.",
            "default": 25
          },
          "maxHoldingsPerFiling": {
            "title": "Max holdings per filing (holdings mode)",
            "minimum": 0,
            "type": "integer",
            "description": "Holdings mode: deliver only the largest N positions (or changes) of each filing. 0 = all.",
            "default": 0
          },
          "maxFilingsToCheck": {
            "title": "Max filings to inspect",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Safety cap on how many 13F filings are downloaded per run when narrow filters are used. You are only charged for delivered records.",
            "default": 150
          },
          "contactEmail": {
            "title": "Your contact email (recommended)",
            "type": "string",
            "description": "SEC asks automated clients to declare a contact in the User-Agent. Optional: if set, it is added to the User-Agent sent to sec.gov."
          },
          "stateKey": {
            "title": "State key",
            "type": "string",
            "description": "Name of the saved history for sinceLastRun. Use one key per schedule.",
            "default": "default"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}