AAPL $328.32 ▼ 1.41%
MSFT $514.28 ▲ 0.27%
GOOGL $337.84 ▼ 1.81%
AMZN $247.89 ▼ 0.51%
NVDA $230.46 ▲ 0.91%
META $726.86 ▲ 0.23%
TSLA $355.94 ▲ 0.32%
NFLX $68.14 ▼ 2.07%
BRK.B $498.88 ▲ 0.19%
AVGO $347.98 ▼ 0.92%
DIS $101.70 ▼ 3.05%
SBUX $94.61 ▲ 0.69%
MCD $231.79 ▲ 0.37%
NKE $36.01 ▲ 1.74%
COST $915.68 ▲ 0.59%
WMT $104.83 ▲ 0.88%
HD $281.42 ▼ 1.08%
KO $86.18 ▲ 0.11%
PG $144.21 ▼ 0.74%
ORCL $137.54 ▲ 0.17%
CRM $233.29 ▲ 1.62%
ADBE $239.85 ▼ 0.04%
AMD $613.99 ▲ 0.36%
INTC $120.42 ▲ 0.16%
QCOM $183.92 ▼ 0.07%
CSCO $108.04 ▲ 0.38%
IBM $227.10 ▲ 3.26%
UBER $67.40 ▼ 1.61%
ABNB $158.78 ▼ 1.16%
SHOP $148.99 ▲ 0.47%
PYPL $53.18 ▲ 1.24%
COIN $188.37 ▲ 1.05%
PLTR $188.96 ▲ 1.02%
HOOD $111.43 ▼ 0.96%
JPM $331.77 ▲ 0.28%
V $358.65 ▼ 0.19%
MA $549.70 ▼ 0.32%
BAC $53.63 ▼ 1.47%
GS $893.04 ▼ 0.81%
LLY $1149.21 ▼ 0.68%
UNH $364.27 ▼ 0.77%
JNJ $259.54 ▼ 1.97%
PFE $28.25 ▼ 0.95%
XOM $162.95 ▲ 0.12%
BA $188.25 ▲ 1.18%
BABA $107.17 ▼ 0.35%
TSM $456.19 ▲ 0.00%
AAPL $328.32 ▼ 1.41%
MSFT $514.28 ▲ 0.27%
GOOGL $337.84 ▼ 1.81%
AMZN $247.89 ▼ 0.51%
NVDA $230.46 ▲ 0.91%
META $726.86 ▲ 0.23%
TSLA $355.94 ▲ 0.32%
NFLX $68.14 ▼ 2.07%
BRK.B $498.88 ▲ 0.19%
AVGO $347.98 ▼ 0.92%
DIS $101.70 ▼ 3.05%
SBUX $94.61 ▲ 0.69%
MCD $231.79 ▲ 0.37%
NKE $36.01 ▲ 1.74%
COST $915.68 ▲ 0.59%
WMT $104.83 ▲ 0.88%
HD $281.42 ▼ 1.08%
KO $86.18 ▲ 0.11%
PG $144.21 ▼ 0.74%
ORCL $137.54 ▲ 0.17%
CRM $233.29 ▲ 1.62%
ADBE $239.85 ▼ 0.04%
AMD $613.99 ▲ 0.36%
INTC $120.42 ▲ 0.16%
QCOM $183.92 ▼ 0.07%
CSCO $108.04 ▲ 0.38%
IBM $227.10 ▲ 3.26%
UBER $67.40 ▼ 1.61%
ABNB $158.78 ▼ 1.16%
SHOP $148.99 ▲ 0.47%
PYPL $53.18 ▲ 1.24%
COIN $188.37 ▲ 1.05%
PLTR $188.96 ▲ 1.02%
HOOD $111.43 ▼ 0.96%
JPM $331.77 ▲ 0.28%
V $358.65 ▼ 0.19%
MA $549.70 ▼ 0.32%
BAC $53.63 ▼ 1.47%
GS $893.04 ▼ 0.81%
LLY $1149.21 ▼ 0.68%
UNH $364.27 ▼ 0.77%
JNJ $259.54 ▼ 1.97%
PFE $28.25 ▼ 0.95%
XOM $162.95 ▲ 0.12%
BA $188.25 ▲ 1.18%
BABA $107.17 ▼ 0.35%
TSM $456.19 ▲ 0.00%
Pro from $19/m for real-time data — Pro Plus $49/m adds historical depth for backtesting.Learn more →

Stock Market Intelligence for AI Agents

Real-time stock market financial data, everything you need to start automated trading.

LIVE
Companies Covered
8,500+
S&P 500 + S&P/ASX 200 + NYSE + NASDAQ
LIVE
Financial Records
340,000+
FY, H1, H2 and quarterly periods
LIVE
Reports Archived
42,000+
Annual + half-year PDFs & markdown
LIVE
Data Points
28M+
Individual XBRL facts & calculated metrics

Supported Exchanges

Eight global markets, one consistent REST API.

Top Companies by Market CapLIVE

# Ticker Name Sector Exchange Price 24h P/E EPS Volume Market Cap
1 NVDA NVIDIA Corp. Information Technology NASDAQ $230.49 ▲ 0.41% 29.2 $7.90 52.4M $5.57T
2 AAPL Apple Inc. Information Technology NASDAQ $328.32 ▼ 1.78% 37.6 $8.73 17.8M $4.79T
3 GOOGL Alphabet Inc. Communication Services NASDAQ $337.85 ▼ 3.30% 17.0 $19.92 20.3M $4.13T
4 MSFT Microsoft Corp. Information Technology NASDAQ $514.32 ▼ 0.01% 28.7 $17.95 9.7M $3.82T
5 AMZN Amazon.com Inc. Consumer Discretionary NASDAQ $247.88 ▼ 0.93% 19.9 $12.43 17.9M $2.67T
6 TSM Taiwan Semiconductor Information Technology NYSE $456.14 ▼ 0.28% 33.9 $13.46 4.2M $2.37T
7 META Meta Platforms Inc. Communication Services NASDAQ $727.08 ▼ 0.02% 27.4 $26.54 7.2M $1.85T
8 AVGO Broadcom Inc. Information Technology NASDAQ $347.93 ▼ 1.44% 44.4 $7.83 10.1M $1.66T
9 TSLA Tesla Inc. Consumer Discretionary NASDAQ $355.95 ▲ 0.27% 335.8 $1.06 18.5M $1.41T
10 BRK.B Berkshire Hathaway Inc. Financials NYSE $498.88 ▲ 0.12% 12.5 $39.79 1.7M $1.07T
11 LLY Eli Lilly and Co. Health Care NYSE $1149.11 ▼ 1.16% 38.6 $29.74 930K $1.02T
12 AMD Advanced Micro Devices Information Technology NASDAQ $614.00 ▲ 0.02% 156.6 $3.92 9.6M $1.00T
13 JPM JPMorgan Chase & Co. Financials NYSE $331.77 ▲ 0.14% 14.2 $23.32 4.2M $881.92B
14 WMT Walmart Inc. Consumer Staples NYSE $104.82 ▼ 0.14% 39.1 $2.68 8.6M $831.65B
15 V Visa Inc. Financials NYSE $358.64 ▼ 0.37% 30.5 $11.75 2.1M $673.29B
16 XOM Exxon Mobil Corp. Energy NYSE $162.94 ▲ 0.50% 21.0 $7.76 4.1M $669.99B
17 INTC Intel Corp. Information Technology NASDAQ $120.38 ▼ 0.07% — $-2.09 53.1M $632.54B
18 JNJ Johnson & Johnson Health Care NYSE $259.54 ▼ 2.10% 30.1 $8.63 2.7M $625.45B
19 MA Mastercard Inc. Financials NYSE $549.70 ▼ 0.59% 30.2 $18.20 1.2M $481.54B
20 PLTR Palantir Technologies Information Technology NASDAQ $188.90 ▲ 0.75% 160.1 $1.18 9.0M $453.94B

Quick Start for AI Agents

Four steps from zero to querying financial data — designed for autonomous agents.

1

Get an API Key

POST to /api/v1/auth/keys with an email. Instant free-tier key — no signup, no credit card.

2

Authenticate

Send the key in the X-API-Key header on every request. Agents can check tier via /auth/keys/me.

3

Query Endpoints

30+ endpoints across 7 data groups: profiles, financials, metrics, reports, news, indices, formulas.

4

Upgrade to Pro

$19/m Pro (real-time), $49/m Pro Plus (+ historical + Parquet). Pay via Stripe, USDC, or x402 micropayments.

Available Data Groups

Seven data groups covering company fundamentals, financials, news, and reporting.

🏢

Company Profiles

Ticker, name, exchange, sector, industry, HQ, employees, market cap, description.

GET /api/v1/companies/{ticker} View docs →
📊

Financial Statements

Income statement, balance sheet, cash flow. FY, H1, H2 and quarterly periods with source tags.

GET /api/v1/companies/{ticker}/financials View docs →
🧮

Calculated Metrics

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 →
📈

Market Indices

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 Reports

Annual + half-year PDFs with markdown conversions. Full-text search ready for LLM ingestion.

GET /api/v1/companies/{ticker}/filings View docs →
📰

News & Announcements

Press releases and ASX announcements with dates, categories, and source links.

GET /api/v1/companies/{ticker}/news View docs →
📐

Formulas

Transparent definitions for every calculated metric. Know exactly how each ratio is derived.

GET /api/v1/formulas/{name} View docs →

See It In Action

Get Google's latest quarterly financials with a single API call

Request
GET /api/v1/companies/GOOGL/financials

# Headers
X-API-Key: smk_live_xxxxxxxx
Response
{
  "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"
    }
  ]
}

Why use Stock Market API?

🤖

AI-First Design

Built from the ground up for LLMs and AI agents. Clean JSON responses optimized for machine consumption.

🔌

AI Agent Ready

Agents can self-register, monitor usage, and upgrade autonomously. No human in the loop required.

⚡

Instant Setup

Fetch our skill from /skill.md and start querying immediately. One-click integration for AI assistants.

₿

Crypto Payments

Pay with BTC, ETH, USDC, and more. Perfect for AI agents with crypto wallets.

📊

Raw Data Access

All underlying financial statements provided. Revenue, income, assets, cash flows - everything.

🧮

Transparent Formulas

Every calculated metric includes its formula. Know exactly how P/E, ROE, margins are computed.

📋

Full Source Attribution

Every data point traced to its source. SEC filings, earnings reports - complete provenance.

🔄

Quarterly & Annual

Access both quarterly (Q1-Q4) and annual (FY) financial data. Historical periods available.

Everything You Need For Trading

📊

Financial Statements

Access income statements, balance sheets, and cash flow statements for S&P 500 companies with quarterly and annual data.

🔢

Calculated Metrics

Pre-calculated financial ratios and metrics with transparent formulas. Know exactly how every number is derived.

📈

Historical Data

Years of historical financial data to train models, backtest strategies, and analyze trends.

🔍

Full Traceability

Every data point includes source attribution. Trace any value back to SEC filings and other authoritative sources.

🤖

AI-Optimized

Clean JSON responses designed for LLM consumption. Perfect for Claude, GPT, and other AI agents.

⚡

Fast & Reliable

Low-latency responses with 99.9% uptime. Built for production workloads and real-time applications.

Get Started in Seconds

# 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 Agent Upgrade to Pro Subscription via Crypto

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!
BTC ETH USDC DAI USDT

Agentic API

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"]
x402 Protocol USDC on Base Gasless EIP-712 CDP Facilitator Route catalog →