Real-time stock market financial data, everything you need to start automated trading.
Supported Exchanges
Eight global markets, one consistent REST API.
| # | Ticker | Name | Price | 24h | Market Cap |
|---|---|---|---|---|---|
| 1 | NVDA | NVIDIA Corp. | $230.49 | ▲ 0.41% | $5.57T |
| 2 | AAPL | Apple Inc. | $328.32 | ▼ 1.78% | $4.79T |
| 3 | GOOGL | Alphabet Inc. | $337.85 | ▼ 3.30% | $4.13T |
| 4 | MSFT | Microsoft Corp. | $514.32 | ▼ 0.01% | $3.82T |
| 5 | AMZN | Amazon.com Inc. | $247.88 | ▼ 0.93% | $2.67T |
| 6 | TSM | Taiwan Semiconductor | $456.14 | ▼ 0.28% | $2.37T |
| 7 | META | Meta Platforms Inc. | $727.08 | ▼ 0.02% | $1.85T |
| 8 | AVGO | Broadcom Inc. | $347.93 | ▼ 1.44% | $1.66T |
| 9 | TSLA | Tesla Inc. | $355.95 | ▲ 0.27% | $1.41T |
| 10 | BRK.B | Berkshire Hathaway Inc. | $498.88 | ▲ 0.12% | $1.07T |
| 11 | LLY | Eli Lilly and Co. | $1149.11 | ▼ 1.16% | $1.02T |
| 12 | AMD | Advanced Micro Devices | $614.00 | ▲ 0.02% | $1.00T |
| 13 | JPM | JPMorgan Chase & Co. | $331.77 | ▲ 0.14% | $881.92B |
| 14 | WMT | Walmart Inc. | $104.82 | ▼ 0.14% | $831.65B |
| 15 | V | Visa Inc. | $358.64 | ▼ 0.37% | $673.29B |
| 16 | XOM | Exxon Mobil Corp. | $162.94 | ▲ 0.50% | $669.99B |
| 17 | INTC | Intel Corp. | $120.38 | ▼ 0.07% | $632.54B |
| 18 | JNJ | Johnson & Johnson | $259.54 | ▼ 2.10% | $625.45B |
| 19 | MA | Mastercard Inc. | $549.70 | ▼ 0.59% | $481.54B |
| 20 | PLTR | Palantir Technologies | $188.90 | ▲ 0.75% | $453.94B |
Four steps from zero to querying financial data — designed for autonomous agents.
POST to /api/v1/auth/keys with an email. Instant free-tier key — no signup, no credit card.
Send the key in the X-API-Key header on every request. Agents can check tier via /auth/keys/me.
30+ endpoints across 7 data groups: profiles, financials, metrics, reports, news, indices, formulas.
$19/m Pro (real-time), $49/m Pro Plus (+ historical + Parquet). Pay via Stripe, USDC, or x402 micropayments.
Seven data groups covering company fundamentals, financials, news, and reporting.
Ticker, name, exchange, sector, industry, HQ, employees, market cap, description.
GET /api/v1/companies/{ticker}
View docs →
Income statement, balance sheet, cash flow. FY, H1, H2 and quarterly periods with source tags.
GET /api/v1/companies/{ticker}/financials
View docs →
P/E, P/B, P/S, ROE, ROA, gross/operating/net margins, EPS, debt/equity, current ratio.
GET /api/v1/companies/{ticker}/metrics/summary
View docs →
Index membership for S&P 500 and S&P/ASX 200. Look up constituents by index name.
GET /api/v1/indices/{index_name}
View docs →
Annual + half-year PDFs with markdown conversions. Full-text search ready for LLM ingestion.
GET /api/v1/companies/{ticker}/filings
View docs →
Press releases and ASX announcements with dates, categories, and source links.
GET /api/v1/companies/{ticker}/news
View docs →
Transparent definitions for every calculated metric. Know exactly how each ratio is derived.
GET /api/v1/formulas/{name}
View docs →
Get Google's latest quarterly financials with a single API call
GET /api/v1/companies/GOOGL/financials
# Headers
X-API-Key: smk_live_xxxxxxxx
{
"ticker": "GOOGL",
"company_name": "Alphabet Inc.",
"periods": [
{
"period_end": "2024-12-31",
"period_type": "Q4",
"revenue": 96,469,000,000,
"gross_profit": 55,892,000,000,
"operating_income": 30,972,000,000,
"net_income": 26,536,000,000,
"eps_diluted": 2.15,
"total_assets": 450,243,000,000,
"total_liabilities": 119,013,000,000,
"shareholders_equity": 331,230,000,000,
"cash_and_equivalents": 24,048,000,000,
"operating_cash_flow": 34,123,000,000,
"source": "SEC 10-K"
}
]
}
Built from the ground up for LLMs and AI agents. Clean JSON responses optimized for machine consumption.
Agents can self-register, monitor usage, and upgrade autonomously. No human in the loop required.
Fetch our skill from /skill.md and start querying immediately. One-click integration for AI assistants.
Pay with BTC, ETH, USDC, and more. Perfect for AI agents with crypto wallets.
All underlying financial statements provided. Revenue, income, assets, cash flows - everything.
Every calculated metric includes its formula. Know exactly how P/E, ROE, margins are computed.
Every data point traced to its source. SEC filings, earnings reports - complete provenance.
Access both quarterly (Q1-Q4) and annual (FY) financial data. Historical periods available.
Access income statements, balance sheets, and cash flow statements for S&P 500 companies with quarterly and annual data.
Pre-calculated financial ratios and metrics with transparent formulas. Know exactly how every number is derived.
Years of historical financial data to train models, backtest strategies, and analyze trends.
Every data point includes source attribution. Trace any value back to SEC filings and other authoritative sources.
Clean JSON responses designed for LLM consumption. Perfect for Claude, GPT, and other AI agents.
Low-latency responses with 99.9% uptime. Built for production workloads and real-time applications.
# 1. Create your free API key
import httpx
response = httpx.post("https://stockmarketapi.ai/api/v1/auth/keys",
json={"email": "[email protected]"})
api_key = response.json()["api_key"] # Save this!
# 2. Use the API
headers = {"X-API-Key": api_key}
# Get list of companies
companies = httpx.get(
"https://stockmarketapi.ai/api/v1/companies",
headers=headers
)
# Get financial statements
financials = httpx.get(
"https://stockmarketapi.ai/api/v1/companies/AAPL/financials",
headers=headers
)
# Get calculated metrics
metrics = httpx.get(
"https://stockmarketapi.ai/api/v1/companies/AAPL/metrics",
headers=headers
)
AI agents can autonomously upgrade to Pro using cryptocurrency - no human intervention required.
# AI agents can upgrade themselves to Pro using crypto
import httpx
headers = {"X-API-Key": api_key}
# 1. Check current usage and tier
info = httpx.get(
"https://stockmarketapi.ai/api/v1/auth/keys/me",
headers=headers
).json()
if info["tier"] == "free" and info["requests_today"] >= 90:
# Running low on requests, upgrade to Pro
# 2. Create crypto payment (supports BTC, ETH, USDC, etc.)
checkout = httpx.post(
"https://stockmarketapi.ai/api/v1/billing/checkout/crypto",
json={"tier": "lifetime"}, # or "monthly"
headers=headers
).json()
# 3. Pay using your crypto wallet API
# checkout["checkout_url"] contains the Coinbase Commerce payment page
# Supports: BTC, ETH, USDC, DAI, USDT, and more
print(f"Pay here: {checkout['checkout_url']}")
print(f"Amount: {checkout['price']}")
# After payment confirms, your API key is automatically upgraded!
AI agents subscribe to Pro autonomously with USDC on Base via the x402 protocol. Gasless EIP-712 signature, no credit card, no human signup — returns a working API key in two HTTP calls.
| Plan | Endpoint | Price (USDC) | Includes |
|---|---|---|---|
| monthly | POST /payments/agent-subscribe | $19 | Pro — 30 days, full API access |
| yearly | POST /payments/agent-subscribe | $99 | Pro — 365 days (57% savings) |
| monthly_plus | POST /payments/agent-subscribe | $49 | Pro Plus — 30 days, adds historical depth |
| yearly_plus | POST /payments/agent-subscribe | $249 | Pro Plus — 365 days (57% savings) |
# Two-call x402 flow: discover → pay → get API key. Gasless USDC on Base.
import httpx
url = "https://stockmarketapi.ai/payments/agent-subscribe"
# 1. Discovery: call with no payment header → server replies 402
# with payment requirements (facilitator URL, amount, networks).
r = httpx.post(url, json={"plan": "monthly"})
requirements = r.json()["accepts"] # 402 Payment Required
# 2. Sign an EIP-712 USDC authorization with your wallet.
# No ETH gas needed — the facilitator settles on-chain for you.
x_payment = wallet.sign_x402_payment(requirements[0])
# 3. Resubmit with x-payment header → facilitator verifies & settles,
# API returns a fresh key with Pro subscription attached.
r = httpx.post(url,
json={"plan": "monthly"},
headers={"x-payment": x_payment},
)
api_key = r.json()["api_key"] # save this — shown once
expires = r.json()["expires_at"]