Example
Profile Enrichment Join
Filter earnings results by company metadata.
Request
GET https://api.earningsapi.com/v1/profile/AAPL?apikey=YOUR_API_KEYCode example
ExamplePython
import requests
API_KEY = "YOUR_API_KEY"
BASE_URL = "https://api.earningsapi.com"
WATCHLIST = ["AAPL", "MSFT", "NVDA"]
def get_json(path):
response = requests.get(f"{BASE_URL}{path}", params={"apikey": API_KEY}, timeout=30)
response.raise_for_status()
return response.json()
for symbol in WATCHLIST:
data = get_json("/v1/profile/{symbol}".replace("{symbol}", symbol) + ("?symbol=" + symbol if "{symbol}" not in "/v1/profile/{symbol}" else ""))
print(symbol, data[:1] if isinstance(data, list) else data)Result shape
| symbol | sector | industry | marketCap |
|---|---|---|---|
| AAPL | Technology | Computer Manufacturing | $3.7T |
| JPM | Financial Services | Banks | $650B |
Build steps
- 1Fetch the earnings calendar for the target date.
- 2Collect unique symbols from pre, after, and notSupplied.
- 3Fetch profiles and join metadata back onto each calendar row.