# Yahoo Finance Earnings and EPS API (yahoo_finance.earnings)

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

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| keyword | not declared | yes | not declared | One US-listed ticker, such as `AAPL` 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 |
| quarters | Earnings per share by fiscal quarter (earnings): period (such as Sep 2026), status (reported or upcoming), eps_estimate (analyst consensus), eps_actual (reported figure, absent for upcoming quarters) and eps_surprise (actual minus estimate). |
| next_earnings_date | Expected date of the next earnings report (earnings), YYYY-MM-DD; absent until the company announces it. |
| next_earnings_timing | Whether the next report comes before the market opens or after it closes (earnings): before_market_open or after_market_close; absent when not stated. |
| analyst_count | How many analysts make up the consensus EPS estimate for the next quarter (earnings); absent when there is none. |
| 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": "earnings",
  "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": "earnings",
        "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": "earnings",
  "results": {
    "symbol": …,
    "quarters": …,
    "next_earnings_date": …,
    "next_earnings_timing": …,
    "analyst_count": …,
    "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
