# Earnings history

`GET https://firm.wealthnow.io/api/v3/intel/earnings_history/{ticker}`

- Plan: Starter and up
- Price: 2 credits per call (failed requests are free)
- MCP tool: `intel_earnings_history`
- Source: https://app.wealthnow.io/docs/reference/intel-earnings-history

Last N reported quarters for a ticker: report date and time (report_time bmo|dmh|amc), fiscal period, EPS and revenue actual vs estimate with the surprise in absolute terms and in percent (eps_surprise_pct, revenue_surprise_pct: 6.88 means 6.88%), the basis of each figure (eps_basis gaap|adjusted|ffo|other, revenue_basis), and the earnings-reaction price move. Call it to anchor 'the stock typically moves ±X% on earnings' or 'did they beat?' in real numbers. source says which feed answered: earnings_calendar_feed (read first; dated by the calendar itself) or estimates_feed (the fallback, EPS only, eps_basis 'adjusted', revenue null), with fallback_from naming why. status ok | not_covered (both feeds answered and hold no reported quarter: an answer, not an outage) | not_applicable (a fund); both feeds down is a 503 upstream_unavailable earnings_history_unavailable, not billed, never an empty list. units lists every figure's unit. day_move_pct is the open-to-close move of the session that traded on the release (the NEXT session for an after-close report), named by day_move_date and day_move_basis (reaction_session | release_time_unknown | reaction_session_pending, move null); reaction_move_pct is the last close before the release to the reaction close. surprise_outcome is beat|miss|in_line, or uncertain when the consensus figures straddle the actual; beat_rate_pct counts beats among quarters_scored and is withheld (with the averages and aggregates_withheld_reason) when the quarters are not consecutive (quarters_contiguous). An actual 4 or more whole times its estimate is withheld (split_basis_mismatch). quarters_returned can be fewer than lookback_quarters (lookback_note). 6h cache.

## Parameters

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `ticker` | path | string | yes |  |
| `lookback_quarters` | query | integer | no | Number of past reported quarters to return; quarters_returned says how many came back (the fallback feed holds only its most recent 4). Default `4`. Range 1 to 12. |

## Example request

```bash
curl -H "Authorization: Bearer $WEALTHNOW_API_KEY" \
  "https://firm.wealthnow.io/api/v3/intel/earnings_history/NVDA"
```

## Errors

| Status | Code | Meaning |
|---|---|---|
| 400 | `invalid_ticker` | The request is malformed, for example a ticker that is not a symbol: `invalid_ticker`, refused before any credit is reserved, with `param` naming the parameter. Not billed. |
| 401 | `unauthorized` | Missing or invalid API key. |
| 402 | `plan_required` | Your plan does not include this tool, you are out of credits, or your workspace's spend cap paused its keys. `plan_required` names the plan that unlocks the tool; `usage_exceeded` means the credit balance is spent; `spend_cap_reached` means the key is paused until the cap resets or is raised: `detail` names the cap and the reset, `cap_usd` and `resets_at` (ISO 8601) carry them, and `doc_url` links pricing and credits. Not billed. |
| 403 | `scope_denied` | This API key is limited to some products and this tool is not one of them. `product` names the tool's product and `scopes` the key's products. An upgrade does not change it: use a key whose scopes include the product, or change this key's scopes. Not billed. |
| 404 | `unknown_ticker` | No data source lists this ticker, active or delisted: the market-data listing and the security master both say it does not exist. `param` names the parameter. Not billed. Best-effort: it is answered only when the route itself found nothing, and after 20 lookups of new symbols per API key per minute the route's own answer stands. |
| 422 | `validation` | A parameter is missing, out of range or the wrong type; `param` names it. Not billed. |
| 429 | `rate_limited` | Your plan's rate limit is spent for this window. Retry after `Retry-After` seconds. Not billed. |
| 503 | `paid_data_unavailable` | The data could not be served completely right now; retry later. Not billed. |
| 504 | `request_timeout` | The request ran past the server's time budget; retry. Not billed. |
