HomeGuides › Aegwah API Python quickstart

Aegwah API Python quickstart

Get from zero to your first earnings + insider API call in a few minutes.

1. Authenticate

Every request uses a Bearer token (the same key that unlocks your ZIP download):

import requests

BASE = "https://api.aegwah.com/v1"
HEADERS = {"Authorization": "Bearer your-api-key"}

def get(path):
    r = requests.get(f"{BASE}{path}", headers=HEADERS, timeout=30)
    r.raise_for_status()
    return r.json()

2. Earnings actuals

actuals = get("/actuals/NVDA")
for row in actuals[:5]:
    print(row["fiscal_quarter"], row["eps_diluted_gaap"])

3. Insider transactions

insiders = get("/insiders/NVDA")
print(len(insiders), "Form 4 transactions")

See the full API reference for all endpoints.

Get institutional-quality earnings data

502 tickers · 16+ years of GAAP EPS · ZIP + REST API. From $30/month.

View plans →