# CoinCap API > Real-time cryptocurrency market data for AI agents, apps, and developers. Prices, market caps, historical data, technical indicators, and news across every major asset. ## Auth Two ways to access: - **API key** — sign up at https://coincap.io and pass `Authorization: Bearer ` or `?apiKey=` on any endpoint. - **Keyless x402** — the 12 `agentFriendly` endpoints accept per-call USDC payment on Base mainnet via [x402 protocol](https://x402.gitbook.io/x402). No signup needed. Just make a request; server returns 402 with pricing; agent signs an EIP-3009 authorization from its wallet; retries with `Payment-Signature` header. Autonomous. ## Discovery - [OpenAPI 3.0 spec](https://rest.coincap.io/openapi.json) — full machine-readable API contract, includes `x-payment-info` per payable operation - [x402 payment catalog](https://rest.coincap.io/.well-known/x402.json) — machine-readable list of every x402-payable endpoint with per-endpoint pricing - [Interactive docs](https://rest.coincap.io/api-docs) — Swagger UI ## Agent-friendly endpoints (keyless x402) Base network, USDC settlement. Prices are per call. - `GET /v3/agentFriendly/assets_search` — Search CoinCap assets by name or symbol (agent-optimized). ($0.004) - `GET /v3/agentFriendly/full_assets_by_slug` — Full asset data for one or more slugs (agent-optimized). ($0.002) - `GET /v3/agentFriendly/news_top` — Top crypto news headlines (agent-optimized). ($0.006) - `GET /v3/agentFriendly/history/{slug}` — Historical price series for an asset slug (capped data points). ($0.01) - `GET /v3/agentFriendly/asset_mcap_history/{slug}` — Historical market-cap series for an asset slug (capped data points). ($0.01) - `GET /v3/agentFriendly/total_market_cap_history` — Total crypto market-cap history (capped data points). ($0.01) - `GET /v3/agentFriendly/ta/{slug}/sma` — Simple moving average (SMA) for an asset slug. ($0.004) - `GET /v3/agentFriendly/ta/{slug}/ema` — Exponential moving average (EMA) for an asset slug. ($0.004) - `GET /v3/agentFriendly/ta/{slug}/rsi` — Relative strength index (RSI) for an asset slug. ($0.004) - `GET /v3/agentFriendly/ta/{slug}/macd` — Moving average convergence divergence (MACD) for an asset slug. ($0.004) - `GET /v3/agentFriendly/top_movers` — Market-wide top gainers/losers over 24h with volume filter (agent-optimized). ($0.004) - `GET /v3/agentFriendly/ta/candlesticks_batch` — Candlestick (OHLC) data for multiple asset slugs in one call (max 10). ($0.004) ## Support - Homepage: https://coincap.io - API docs: https://rest.coincap.io/api-docs - Contact: me@justinellis.co