Example
Company Earnings Surprise Review
Review earnings beat flags and surprise percentages for one company.
Request
GET https://api.earningsapi.com/v2/earnings?symbol=AAPL&apikey=YOUR_API_KEYCode example
import requests
API_KEY = "YOUR_API_KEY"
response = requests.get("https://api.earningsapi.com/v2/earnings?symbol=AAPL", params={"apikey": API_KEY}, timeout=30)
response.raise_for_status()
print(response.json())Result shape
| date | symbol | epsBeat | epsSurprisePercent | revenueBeat | revenueSurprisePercent |
|---|---|---|---|---|---|
| 2026-01-29 | AAPL | true | 12.5% | false | −2% |
| 2025-10-30 | AAPL | true | null | null | null |
Build steps
- 1Request Company Earnings for one symbol and keep the existing report dates, actuals and estimates.
- 2Read surprise.eps.beat and surprise.revenue.beat separately. Preserve null when a metric cannot be compared.
- 3Read surprise.eps.surprisePercent and surprise.revenue.surprisePercent. Use Earnings Reactions for stock price and volume.