{"uid":"cap_XOkuEzLvPzt1pCa-sp6gd","slug":"agentsvc-io-gas-price-api-284c4617","name":"agentsvc.io Gas Price API","description":"86 APIs for AI agents: web scraping and crawling to Markdown, AI summaries, data extraction and cited answers, screenshots and PDF, PDF, OCR and document conversion, news, paper and developer search and more, paid per call with USDC on Base, Solana, Polygon or Arbitrum via x402. No account, no API key, free sample on every service.","url":"https://agentsvc.io/api/v1/proxy/gas-price?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"chains":{"type":"array","items":{"enum":["ethereum","base","arbitrum","optimism","polygon","bsc","avalanche"],"type":"string"}}}},"responseSchema":{"type":"json","example":{"data":{"note":"L2 costs exclude the L1 data fee, which can dominate on rollups.","chains":[{"chain":"base","chain_id":8453,"native_usd":2710.355,"est_cost_usd":{"swap":0.002927,"eth_transfer":0.000342,"erc20_transfer":0.001057},"native_token":"ETH","base_fee_gwei":0.005,"gas_price_gwei":0.006,"priority_fee_gwei":{"low":0.00004,"high":0.007469,"medium":0.001059}},{"chain":"ethereum","chain_id":1,"native_usd":2710.355,"est_cost_usd":{"swap":0.429372,"eth_transfer":0.050093,"erc20_transfer":0.155051},"native_token":"ETH","base_fee_gwei":0.854496,"gas_price_gwei":0.880105,"priority_fee_gwei":{"low":0.2387,"high":12.90606,"medium":1.694767}}],"checked_at":"2026-10-06T14:17:44.635Z"},"success":true}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","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.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_fh8XHVGmKYeNGrPeQmrB7","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns current gas prices, base fees, and estimated transaction costs in USD across major EVM-compatible blockchains","exampleAgentPrompt":"Check the current gas prices on Ethereum and Base right now — I want to see the base fee, priority fees, and roughly how much an ERC-20 transfer and a swap would cost in USD on each chain.","exampleUseCases":[{"title":"DeFi trade cost check before execution","prompt":"Before I execute this swap on Arbitrum, can you check what gas fees look like right now and tell me roughly how much the swap will cost in USD?"},{"title":"Multi-chain gas comparison for routing","prompt":"Compare current gas prices on Ethereum, Base, Optimism, and Polygon — I want to know which chain has the cheapest fees for an ERC-20 transfer right now."},{"title":"Gas fee monitoring for NFT mint timing","prompt":"What does gas look like on Ethereum right now? Show me the base fee, low and high priority fees, and how much an ETH transfer would cost in dollars so I can decide when to mint."}],"resultDescription":"Returns a JSON object with per-chain data including: chain name and ID, native token (e.g. ETH) price in USD, current gas price and base fee in gwei, low/medium/high priority fees in gwei, and estimated USD costs for common operations (swap, ETH transfer, ERC-20 transfer). Also includes a timestamp and a note about L2 cost caveats.","failureModes":["Invalid chain name in array returns validation error","Network timeout if upstream RPC nodes are slow","Empty chains array may return empty results","Unsupported chain enum value rejected with schema error","Payment failure via x402 if insufficient USDC balance"],"whenToPreferThis":"Use this endpoint when an agent needs real-time, multi-chain gas price data with USD cost estimates for common transaction types. Ideal for DeFi agents deciding which chain to route a transaction on, wallets estimating fees before signing, or any workflow that needs to gate execution on gas conditions. Covers 7 major EVM chains in a single call with structured cost breakdowns.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-10T12:42:17.888Z","isFirstParty":false,"canonicalSlug":"agentsvc-io-gas-price-api-284c4617"}