{
  "openapi": "3.0.1",
  "info": {
    "title": "Hedge Fund 13F Consensus - What Top Funds Buy Together",
    "description": "Cross-fund 13F consensus from SEC EDGAR: the stocks the most hedge funds opened, added to, trimmed or sold out of last quarter, how many hold each, and who. Berkshire, Pershing Square, Scion, Tiger Global and more, or your own list of funds by CIK. Pay per stock.",
    "version": "0.1",
    "x-build-id": "FHGpttnwmnaiDSP22"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/smartmoney-data~hedge-fund-13f-consensus/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-smartmoney-data-hedge-fund-13f-consensus",
        "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/smartmoney-data~hedge-fund-13f-consensus/runs": {
      "post": {
        "operationId": "runs-sync-smartmoney-data-hedge-fund-13f-consensus",
        "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/smartmoney-data~hedge-fund-13f-consensus/run-sync": {
      "post": {
        "operationId": "run-sync-smartmoney-data-hedge-fund-13f-consensus",
        "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": {
          "managers": {
            "title": "Funds",
            "type": "array",
            "description": "Funds to compare: preset names (Berkshire Hathaway, Bridgewater Associates, Renaissance Technologies, Pershing Square, Scion Asset Management, Soros Fund Management, Citadel Advisors, Duquesne Family Office, Third Point, Tiger Global Management, Baupost Group, ARK Investment Management, Appaloosa) or any SEC CIK number.",
            "items": {
              "type": "string"
            }
          },
          "period": {
            "title": "Quarter (report period)",
            "type": "string",
            "description": "Quarter-end date to compare, e.g. 2026-06-30, against the quarter before it. Empty picks the newest quarter at least half of the funds have filed.",
            "default": ""
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "consensus",
              "selling",
              "holders",
              "newPositions",
              "exits",
              "value"
            ],
            "type": "string",
            "description": "Consensus score counts new positions and full exits double: 2 x new + added - reduced - 2 x exited.",
            "default": "consensus"
          },
          "minHolders": {
            "title": "Minimum funds involved",
            "minimum": 1,
            "type": "integer",
            "description": "Only return stocks that at least this many of the funds held this quarter or sold out of. 1 includes single-fund positions.",
            "default": 2
          },
          "minValueUsd": {
            "title": "Minimum combined value (USD)",
            "minimum": 0,
            "type": "integer",
            "description": "Skip stocks whose combined value across the funds (this or last quarter) is below this.",
            "default": 0
          },
          "maxResults": {
            "title": "Max stocks",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Return at most this many stocks, after sorting.",
            "default": 100
          },
          "includeOptions": {
            "title": "Include put and call positions",
            "type": "boolean",
            "description": "Option positions are left out by default; when included they appear as separate rows.",
            "default": false
          },
          "highConvictionPct": {
            "title": "High-conviction threshold (% of portfolio)",
            "minimum": 0,
            "maximum": 100,
            "type": "number",
            "description": "A fund counts as a high-conviction holder when the stock is at least this share of its 13F portfolio.",
            "default": 5
          },
          "resolveTickerSymbols": {
            "title": "Resolve ticker symbols",
            "type": "boolean",
            "description": "Look up tickers for the returned CUSIPs via OpenFIGI (cached across runs).",
            "default": true
          },
          "openFigiApiKey": {
            "title": "OpenFIGI API key (optional)",
            "type": "string",
            "description": "A free openfigi.com key raises the ticker lookup rate limit."
          },
          "secUserAgent": {
            "title": "SEC User-Agent contact",
            "type": "string",
            "description": "The SEC asks automated clients to identify themselves as 'Company Name email@domain.com'. Put your own contact here for heavy use.",
            "default": "SmartMoney Data 13F Consensus smartmoney-data@googlegroups.com"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}