# Yahoo Finance 机构持仓 API (yahoo_finance.institutional_holdings)

- Canonical page: https://everyinfra.com/yahoo-finance-api/institutional_holdings
- Endpoint: POST /api/v1/social with {"platform": "yahoo_finance", "action": "institutional_holdings", "params": {...}}
- Price: $0.008 per call ($8 per 1,000 requests); failed and empty results are not charged
- Returns: single object
- Mode: sync; add "mode": "async" for slow tasks

## Health

- Live health (24h percent, hourly and daily trends): https://api.everyinfra.com/api/v1/social/availability?platform=yahoo_finance&action=institutional_holdings

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| keyword | not declared | yes | not declared | 要查机构持仓的美股代码，例如 NVDA（可带 $）；不收公司名。返回机构持股比例、增减持统计和持仓最多的机构；代码查不到不扣费。 |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| symbol | 股票代码。 |
| institutional_ownership_pct | 机构持股占总股本的百分比（institutional_holdings），76.59 表示 76.59%。 |
| shares_outstanding | 总股本，股数（institutional_holdings）。 |
| holdings_value_usd | 全部机构持仓的总市值，美元（institutional_holdings）。 |
| holders | 持有这只股票的机构数（institutional_holdings）。 |
| shares_held | 全部机构合计持股数（institutional_holdings）。 |
| increased_holders | 上一报告期增持的机构数（institutional_holdings）；increased_shares 是它们合计增持的股数。 |
| increased_shares | 增持机构合计增持的股数（institutional_holdings）。 |
| decreased_holders | 上一报告期减持的机构数（institutional_holdings）；decreased_shares 是它们合计减持的股数。 |
| decreased_shares | 减持机构合计减持的股数（institutional_holdings）。 |
| unchanged_holders | 持仓不变的机构数（institutional_holdings）；unchanged_shares 是它们的合计持股。 |
| unchanged_shares | 持仓不变的机构合计持股数（institutional_holdings）。 |
| new_holders | 新建仓的机构数（institutional_holdings）；new_shares 是新建仓的股数。 |
| new_shares | 新建仓的股数合计（institutional_holdings）。 |
| sold_out_holders | 清仓的机构数（institutional_holdings）；sold_out_shares 是清仓的股数。 |
| sold_out_shares | 清仓的股数合计（institutional_holdings）。 |
| top_holders | 按持仓市值从大到小的机构（institutional_holdings）：name、reported_at（持仓报告日期 YYYY-MM-DD）、shares（持股数）、change_shares（比上期变动股数，减持为负）、change_pct（变动百分比）、value_usd（持仓市值，美元）。 |
| platform | 数据来源平台标识，与请求里的 platform 一致（如 xiaohongshu、tiktok）。 |

## Example

```bash
curl -X POST 'https://api.everyinfra.com/api/v1/social' \
  -H "Authorization: Bearer $EVERYINFRA_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "platform": "yahoo_finance",
  "action": "institutional_holdings",
  "params": {
    "keyword": "AAPL"
  }
}'
```

```python
import os
import requests

response = requests.post(
    "https://api.everyinfra.com/api/v1/social",
    headers={"Authorization": f"Bearer {os.environ['EVERYINFRA_API_KEY']}"},
    json={
        "platform": "yahoo_finance",
        "action": "institutional_holdings",
        "params": {
            "keyword": "AAPL",
        },
    },
    timeout=120,
)
print(response.status_code)
print(response.json())
```

## Response example

No real sample for these example parameters yet: structure only, every value is a placeholder (…).

```text
{
  "id": "req_…",
  "platform": "yahoo_finance",
  "action": "institutional_holdings",
  "results": {
    "symbol": …,
    "institutional_ownership_pct": …,
    "shares_outstanding": …,
    "holdings_value_usd": …,
    "holders": …,
    "shares_held": …,
    "increased_holders": …,
    "increased_shares": …,
    "decreased_holders": …,
    "decreased_shares": …,
    "unchanged_holders": …,
    "unchanged_shares": …,
    "new_holders": …,
    "new_shares": …,
    "sold_out_holders": …,
    "sold_out_shares": …,
    "top_holders": …,
    "platform": …
  },
  "billing": {
    "charged": …,
    "charged_usd": …,
    "balance_after_usd": …,
    …
  },
  "quota": { … }
}
```

## Also

- Capability catalog (no key): https://api.everyinfra.com/api/v1/social/catalog?platform=yahoo_finance
- OpenAPI: https://everyinfra.com/openapi.json · Agents guide: https://everyinfra.com/agents.md
