{"openapi":"3.0.3","info":{"title":"x402 Crypto Price Tracker","version":"1.1.1","description":"Agent-payable crypto price JSON API using x402 / USDC on Base. No API keys — agents pay per call via HTTP 402 + EIP-3009 USDC transfer. Free endpoints: /health, /demo, /x402.json, /.well-known/x402, /openapi.json.","contact":{"name":"rushabdev","email":"rushabdev@users.noreply.github.com","url":"https://x402.167-172-95-184.nip.io"},"x-guidance":"Call /health first to verify upstream CoinGecko availability. Call /demo for a free live preview before paying for complete route payloads. Then call any paid route without X-PAYMENT to receive HTTP 402 with payment requirements. Use /price/btc for the lowest-friction single-coin paid test ($0.02). Supported coins: btc, eth, sol, bnb, xrp, ada, doge, avax, dot, matic, link, near, sui, apt, arb, op."},"x-discovery":{"ownershipProofs":["0x68614873C5d624c07DCAA3aFF5243DD5027c3910"]},"paths":{"/price":{"get":{"summary":"Get BTC and ETH prices","description":"Returns current BTC and ETH USD prices with 24h change and market cap.","parameters":[{"name":"format","in":"query","required":false,"description":"Response format. Use json for agent calls.","schema":{"type":"string","enum":["json"],"default":"json"}}],"x-payment-info":{"protocols":[{"x402":{}},{"mpp":{"method":"x402","intent":"charge","currency":"USDC"}}],"price":{"mode":"fixed","currency":"USD","amount":"0.01"}},"responses":{"200":{"description":"Price data","content":{"application/json":{"schema":{"type":"object","properties":{"prices":{"type":"object"},"paid_by":{"type":"string"},"network":{"type":"string"},"timestamp":{"type":"integer"}}}}}},"402":{"description":"Payment required"}}}},"/price/{coin}":{"get":{"summary":"Get specific coin price","description":"Returns current price for a specific cryptocurrency. Supported: btc, eth, sol, bnb, xrp, ada, doge, avax, dot, matic, link, near, sui, apt, arb, op.","parameters":[{"name":"coin","in":"path","required":true,"description":"Coin alias (btc, eth, sol, bnb, xrp, ada, doge, avax, dot, matic, link, near, sui, apt, arb, op)","schema":{"type":"string","enum":["btc","eth","sol","bnb","xrp","ada","doge","avax","dot","matic","link","near","sui","apt","arb","op"]}}],"x-payment-info":{"protocols":[{"x402":{}},{"mpp":{"method":"x402","intent":"charge","currency":"USDC"}}],"price":{"mode":"fixed","currency":"USD","amount":"0.02"}},"responses":{"200":{"description":"Coin price data","content":{"application/json":{"schema":{"type":"object","properties":{"coin":{"type":"string"},"price_usd":{"type":"number"},"change_24h_pct":{"type":"number"},"market_cap":{"type":"number"},"volume_24h":{"type":"number"},"paid_by":{"type":"string"},"network":{"type":"string"},"timestamp":{"type":"integer"}}}}}},"402":{"description":"Payment required"},"404":{"description":"Coin not found"}}}},"/portfolio":{"get":{"summary":"Multi-coin portfolio summary","description":"BTC/ETH/SOL/BNB/XRP market snapshot and aggregate market cap.","parameters":[{"name":"format","in":"query","required":false,"description":"Response format. Use json for agent calls.","schema":{"type":"string","enum":["json"],"default":"json"}}],"x-payment-info":{"protocols":[{"x402":{}},{"mpp":{"method":"x402","intent":"charge","currency":"USDC"}}],"price":{"mode":"fixed","currency":"USD","amount":"0.05"}},"responses":{"200":{"description":"Portfolio data","content":{"application/json":{"schema":{"type":"object","properties":{"portfolio":{"type":"object"},"total_market_cap":{"type":"number"},"paid_by":{"type":"string"},"network":{"type":"string"},"timestamp":{"type":"integer"}}}}}},"402":{"description":"Payment required"}}}},"/opportunities/latest":{"get":{"summary":"Latest revenue opportunities for buyer agents","description":"Returns a compact feed of curated agent-business opportunities, monetization paths, buyer/distribution targets, and verification notes from Revenue Dojo scouting.","parameters":[{"name":"format","in":"query","required":false,"description":"Response format. Use json for agent calls.","schema":{"type":"string","enum":["json"],"default":"json"}}],"x-payment-info":{"protocols":[{"x402":{}},{"mpp":{"method":"x402","intent":"charge","currency":"USDC"}}],"price":{"mode":"fixed","currency":"USD","amount":"0.03"}},"responses":{"200":{"description":"Curated opportunity feed","content":{"application/json":{"schema":{"type":"object","properties":{"source":{"type":"string"},"opportunities":{"type":"array","items":{"type":"object"}},"paid_by":{"type":"string"},"network":{"type":"string"},"timestamp":{"type":"integer"}}}}}},"402":{"description":"Payment required"}}}},"/audit/x402":{"get":{"summary":"One-dollar x402 launch audit","description":"Returns a compact checklist for x402 service owners: discovery, Bazaar indexing, buyer-agent conversion, and receipt discipline.","parameters":[{"name":"format","in":"query","required":false,"description":"Response format. Use json for agent calls.","schema":{"type":"string","enum":["json"],"default":"json"}}],"x-payment-info":{"protocols":[{"x402":{}},{"mpp":{"method":"x402","intent":"charge","currency":"USDC"}}],"price":{"mode":"fixed","currency":"USD","amount":"1.00"}},"responses":{"200":{"description":"x402 launch audit","content":{"application/json":{"schema":{"type":"object","properties":{"product":{"type":"string"},"score":{"type":"integer"},"findings":{"type":"array","items":{"type":"object"}},"recommended_buyer_prompt":{"type":"string"},"paid_by":{"type":"string"},"network":{"type":"string"},"timestamp":{"type":"integer"}}}}}},"402":{"description":"Payment required"}}}},"/receipt/verify":{"post":{"summary":"A2A/ECB receipt tier verifier","description":"Classifies agent-work receipts into R0-R5 proof tiers and returns missing evidence before a swarm claims completion.","requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"claim":{"type":"string"},"evidence":{"type":"array","items":{"type":"string"}},"artifacts":{"type":"array","items":{"type":"string"}}},"additionalProperties":true}}}},"x-payment-info":{"protocols":[{"x402":{}},{"mpp":{"method":"x402","intent":"charge","currency":"USDC"}}],"price":{"mode":"fixed","currency":"USD","amount":"0.05"}},"responses":{"200":{"description":"Receipt tier classification","content":{"application/json":{"schema":{"type":"object"}}}},"402":{"description":"Payment required"}}}}}}