Free API key in one call, machine-readable discovery files, and setup snippets for the agents people actually run. Agents on paid work can even subscribe themselves with USDC.
Three discovery files, most-compact first — feed whichever fits your agent's context budget:
The site and API map (llmstxt.org format): exchanges, indices, key endpoints, auth. Best default for chat agents.
Usage patterns, code examples and conventions for coding agents — installable as a Claude Code skill.
Every endpoint with parameters, generated from the OpenAPI spec. For agents that plan multi-step queries.
# 1. Create a free API key
curl -X POST https://stockmarketapi.ai/api/v1/auth/keys \
-H "Content-Type: application/json" \
-d '{"email": "[email protected]"}'
# 2. Call any endpoint with the key
curl -H "X-API-Key: YOUR_KEY" \
https://stockmarketapi.ai/api/v1/companies/AAPL/financials
mkdir -p .claude/skills/stockmarket-api curl -o .claude/skills/stockmarket-api/SKILL.md https://stockmarketapi.ai/skill.md
1. Download https://stockmarketapi.ai/skill.md 2. Claude Desktop → Projects → your project → Add to project knowledge 3. Ask: "Get AAPL's latest financials from the Stock Market API"
Cursor → Settings → Features → Docs → Add URL: https://stockmarketapi.ai/llms.txt Then reference @StockMarketAPI in chat.
# AGENTS.md Stock market data: use the REST API described at https://stockmarketapi.ai/llms-full.txt Auth: X-API-Key header (free keys via POST /api/v1/auth/keys).
# GEMINI.md Stock market data: use the REST API described at https://stockmarketapi.ai/llms-full.txt Auth: X-API-Key header (free keys via POST /api/v1/auth/keys).
An agent that needs paid-tier data does not have to stop and ask a human for a credit card. The x402 flow settles a gasless USDC payment on Base and returns a Pro API key — two HTTP calls, no browser.
# Agents upgrade themselves: gasless USDC (Base) via x402 POST https://stockmarketapi.ai/payments/agent-subscribe # 402 response lists payment requirements → sign EIP-712 → resend # Two HTTP calls total; returns a Pro API key. # Machine-readable pricing: GET https://stockmarketapi.ai/api/v1/agentic/routes