{
  "openapi": "3.0.1",
  "info": {
    "title": "SEC Form 13F Holdings Scraper - Institutional Portfolio API",
    "description": "Track hedge fund, RIA, and institutional investment holdings from official SEC EDGAR Form 13F filings. Search managers, issuers, CUSIPs, shares, reported value, put/call positions, discretion, filing dates, and states with source-linked portfolio evidence.",
    "version": "0.1",
    "x-build-id": "cUm7PuCg1wXWosysG"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/pink_comic~sec-form-13f-institutional-holdings/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-pink_comic-sec-form-13f-institutional-holdings",
        "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/pink_comic~sec-form-13f-institutional-holdings/runs": {
      "post": {
        "operationId": "runs-sync-pink_comic-sec-form-13f-institutional-holdings",
        "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/pink_comic~sec-form-13f-institutional-holdings/run-sync": {
      "post": {
        "operationId": "run-sync-pink_comic-sec-form-13f-institutional-holdings",
        "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": {
          "managerQuery": {
            "title": "Investment Manager or Filing Keyword",
            "type": "string",
            "description": "SEC full-text search for an investment manager or filing keyword. Leave empty when using an exact manager CIK.",
            "default": ""
          },
          "managerCik": {
            "title": "Exact Investment Manager CIK",
            "pattern": "^[0-9]{0,10}$",
            "type": "string",
            "description": "Exact 1-10 digit SEC CIK. The default is Berkshire Hathaway for a fast, deterministic first run.",
            "default": "1067983"
          },
          "accessionNumber": {
            "title": "Exact Filing Accession Number",
            "pattern": "^$|^[0-9]{10}-[0-9]{2}-[0-9]{6}$",
            "type": "string",
            "description": "Exact SEC accession in 0000000000-00-000000 format. Bypasses broad filing search."
          },
          "startDate": {
            "title": "Filing Start Date",
            "pattern": "^$|^[0-9]{4}-[0-9]{2}-[0-9]{2}$",
            "type": "string",
            "description": "Optional inclusive YYYY-MM-DD filing date. When omitted, daysBack defines the rolling window."
          },
          "endDate": {
            "title": "Filing End Date",
            "pattern": "^$|^[0-9]{4}-[0-9]{2}-[0-9]{2}$",
            "type": "string",
            "description": "Optional inclusive YYYY-MM-DD filing date. Defaults to today."
          },
          "daysBack": {
            "title": "Rolling Filing Window (Days)",
            "minimum": 1,
            "maximum": 3650,
            "type": "integer",
            "description": "Used when startDate is omitted. 180 days normally includes at least one quarterly report.",
            "default": 180
          },
          "managerStates": {
            "title": "Manager States",
            "type": "array",
            "description": "Optional two-letter manager business-address states.",
            "items": {
              "type": "string",
              "pattern": "^[A-Za-z]{2}$"
            },
            "default": []
          },
          "issuerQuery": {
            "title": "Portfolio Company or Security",
            "type": "string",
            "description": "Case-insensitive issuer-name or security-class substring, such as Apple, NVIDIA, or common stock.",
            "default": ""
          },
          "cusips": {
            "title": "Exact CUSIPs",
            "type": "array",
            "description": "Optional exact CUSIP identifiers. Any selected CUSIP can match.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "putCall": {
            "title": "Put / Call Filter",
            "enum": [
              "any",
              "none",
              "PUT",
              "CALL"
            ],
            "type": "string",
            "description": "Include all holdings, ordinary non-option rows, puts, or calls.",
            "default": "any"
          },
          "investmentDiscretion": {
            "title": "Investment Discretion",
            "type": "string",
            "description": "Case-insensitive substring such as SOLE, SHARED, or DEFINED.",
            "default": ""
          },
          "minReportedValueUsd": {
            "title": "Minimum Reported Position Value (USD)",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum normalized reported position value. Filing values are manager-reported and can be amended.",
            "default": 0
          },
          "minShares": {
            "title": "Minimum Shares or Principal Amount",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum reported shares or principal amount.",
            "default": 0
          },
          "sortBy": {
            "title": "Sort Holdings",
            "enum": [
              "latest",
              "value_desc",
              "shares_desc",
              "issuer_asc"
            ],
            "type": "string",
            "description": "Latest filing order, highest reported value, highest shares/principal, or issuer name.",
            "default": "value_desc"
          },
          "maxResults": {
            "title": "Maximum Holding Rows",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Total output cap after all filters and sorting.",
            "default": 25
          },
          "maxFilingsScanned": {
            "title": "Maximum Newest Filings to Scan",
            "minimum": 1,
            "maximum": 250,
            "type": "integer",
            "description": "Bounds SEC filing and information-table requests for holding-level filters. Output discloses when the scan limit applies.",
            "default": 1
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}