{"uid":"cap_hF0A22wOzP2rvnXBQHqIW","slug":"nightshift-labs-base-token-price-api-31452201","name":"Nightshift Labs Base Token Price API","description":"Live USD price of any ERC-20 token on Base from on-chain DEX quotes (Uniswap v3 0.05/0.3/1% pools and Aerodrome, against USDC and WETH; WETH converted with Chainlink ETH/USD). Returns the best executable route, every route's price, the price impact of selling $1,000, and flags for thin liquidity or disagreeing pools.","url":"https://nightshift-x402.nightshift-labs.workers.dev/v1/base/token-price?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["address"],"properties":{"address":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$","description":"ERC-20 token contract on Base"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"chain":"base","flags":[],"quotes":[{"route":"uniswap-v3 0.05% → USDC","priceUsd":0.605941}],"symbol":"AERO","decimals":18,"priceUsd":0.605941,"bestRoute":"uniswap-v3 0.05% → USDC","priceImpactSell1kUsd":"0.45%"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","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.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_ZGyYRsUG0k-B5sMz4WuKv","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns the current USD price of any ERC-20 token on the Base blockchain, including best DEX routing and price impact data.","exampleAgentPrompt":"What's the current USD price of the token at contract address 0x940181a94A35A4569E4529A3CDfB74e38FD98631 on Base, and what's the best Uniswap route for it?","exampleUseCases":[{"title":"DeFi portfolio valuation on Base","prompt":"Can you get me the current USD price for the AERO token at 0x940181a94A35A4569E4529A3CDfB74e38FD98631 on Base so I can update my portfolio value?"},{"title":"Pre-trade price impact check","prompt":"Before I sell a large position, can you look up the price and price impact for the token at 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 on Base — I want to know if selling $1k worth will move the market much."},{"title":"Automated token price monitoring for an agent","prompt":"My trading bot needs the live USD price and best DEX route for the Base token at contract 0x4200000000000000000000000000000000000006 — can you fetch that now?"}],"resultDescription":"Returns a JSON object with the token's USD price, symbol, number of decimals, best DEX routing path (e.g. Uniswap v3 pool and fee tier), estimated price impact for a $1,000 sell, and any relevant flags about the token or liquidity.","failureModes":["Invalid or non-ERC-20 contract address returns an error or empty quotes array","Token with no liquidity on Base DEXes returns no price quotes","Malformed address (not 42-char hex) rejected by input validation","Network or RPC outage on Base may cause stale or unavailable pricing","Payment failure via x402/USDC prevents the call from being processed"],"whenToPreferThis":"Use this endpoint when you need on-chain, DEX-sourced USD pricing for any ERC-20 token specifically on the Base blockchain, especially when you also want routing details and price impact estimates. Prefer this over CEX price feeds when the token is Base-native or not listed on major centralized exchanges. Ideal for DeFi agents, portfolio trackers, and trading bots that need real-time Uniswap-based prices with minimal setup.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-18T00:43:33.006Z","isFirstParty":false,"canonicalSlug":"nightshift-labs-base-token-price-api-31452201"}