{"uid":"cap_9XfKgMALjSrnBrBEEn6ea","slug":"optimism-token-price-api-op-mainnet-e07a4dcd","name":"Optimism Token Price API (OP Mainnet)","description":"Pay-per-call (x402/USDC on Base) market-data, geocoding, randomness and hook-risk endpoints. Free demo route included.","url":"https://x402.donnyautomation.com/optimism/price?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":null,"responseSchema":{"type":"json","example":{"ts":"2026-07-31T00:00:00.000Z","chainId":10,"network":"optimism"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_F1PsW82sfLi9I024QQpZp","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns real-time USD spot price for any ERC-20 token on Optimism (OP Mainnet) by ticker symbol or contract address, sourced live from SushiSwap and Uniswap v3 pools.","exampleAgentPrompt":"What's the current USD price of OP on Optimism right now — and how deep is the liquidity backing that quote?","exampleUseCases":[{"title":"Trading bot price feed on Optimism","prompt":"My trading bot needs the live USD price of WETH on OP Mainnet right now — include the pool pair it's reading from and the confidence rating so I know the quote is solid."},{"title":"Arbitrage opportunity check across L2s","prompt":"What is the current USD spot price of WBTC on Optimism? I want to compare it against prices on other chains to find arbitrage spreads."},{"title":"DeFi dashboard token valuation","prompt":"Can you pull the real-time price of the OP token in USD on Optimism Mainnet for my portfolio dashboard? I need the liquidity depth too so I can flag thin-pool prices."}],"resultDescription":"Returns priceUsd (current USD spot price), the DEX trading pair used to derive the quote (e.g. WETH/USDC on Uniswap v3), the USD liquidity backing the pool, and a confidence rating indicating how reliable the price is relative to pool depth.","failureModes":["Token symbol not found or not traded on OP Mainnet DEXs — returns error or null price","Thin or zero liquidity pool — returns low confidence rating, indicating price may be unreliable","Contract address invalid or not an ERC-20 on Optimism — returns error","No active SushiSwap or Uniswap v3 pool exists for the token — price unavailable","Payment not processed (x402) — request blocked before reaching price logic"],"whenToPreferThis":"Use this endpoint when you need a real-time, on-chain USD price for any ERC-20 token on Optimism (OP Mainnet) — especially when you need confidence ratings and liquidity depth alongside the price, rather than just a raw number. Prefer this over centralized price APIs when you need decentralized, DEX-sourced quotes directly from SushiSwap and Uniswap v3 pools on Optimism. Ideal for trading bots, price oracles, and DeFi dashboards operating on the Optimism L2.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-27T18:42:29.969Z","isFirstParty":false,"canonicalSlug":"optimism-token-price-api-op-mainnet-e07a4dcd"}