# Yahoo Finance Key statistics API (yahoo_finance.statistics)

- Canonical page: https://everyinfra.com/en/yahoo-finance-api/statistics
- Endpoint: POST /api/v1/social with {"platform": "yahoo_finance", "action": "statistics", "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=statistics

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| keyword | not declared | yes | not declared | One US-listed ticker, such as `MSFT` or `BRK.B`; a leading $ is removed. Pass one symbol, not a company name or a list. Only US-listed tickers are covered. |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| symbol | platform-native meaning |
| sections | Statistics grouped by section (statistics): section (valuation, ratios, shares, margins, dividends and others), summary (one line) and items, each with key, label, value as displayed (such as 4.94T) and raw_value when the underlying number differs. Sections and items vary by company. |
| platform | Source platform identifier, the same as platform in the request (for example 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": "statistics",
  "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": "statistics",
        "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": "statistics",
  "results": {
    "symbol": …,
    "sections": …,
    "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
