{"uid":"cap_Un5CYX1TCVaJs3du-vbGn","slug":"gas-metrics-oracle-x402-experiments-lab-paidapis-net-bb81aba4","name":"Gas Metrics Oracle — x402 Experiments (lab.paidapis.net)","description":"Derived metrics: Ethereum gas price sampled continuously in the background and turned into rolling average, min/max, volatility, and trend direction over a window (?windowMinutes=, default 10) — none of which exist in the raw upstream feed's single instantaneous value.","url":"https://lab.paidapis.net/api/gas-metrics","method":"GET","headers":{},"bodySchema":{"type":"object","properties":{"windowMinutes":{"type":"number","description":"Window size in minutes (default 10)."}}},"responseSchema":{"type":"object","properties":{"max":{"type":["number","null"]},"min":{"type":["number","null"]},"trend":{"enum":["up","down","flat","insufficient-data"],"type":"string"},"stdDev":{"type":["number","null"]},"average":{"type":["number","null"]},"current":{"type":["number","null"]},"sampleCount":{"type":"integer"},"windowMinutes":{"type":"integer"}}},"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_0GpVXMdHvNhGVvqemfW01","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 and statistical gas price metrics (current, average, min, max, stdDev, trend) for a configurable recent time window on Base mainnet.","exampleAgentPrompt":"What are the current gas price stats on Base mainnet for the last 15 minutes — give me the average, min, max, and whether prices are trending up or down?","exampleUseCases":[{"title":"Real-time gas cost monitoring for DApp","prompt":"Check gas prices on Base right now and tell me if they're trending up or down over the past 10 minutes — I want to know if it's a cheap time to trigger a transaction."},{"title":"Volatility alert before batch submission","prompt":"Before I send a batch of on-chain transactions, can you pull gas metrics for the last 30 minutes on Base and tell me the standard deviation and whether prices have been stable?"},{"title":"Historical gas window comparison","prompt":"What were the average and max gas prices on Base over the last 5 minutes? I want to see if fees spiked recently."}],"resultDescription":"Returns a JSON object with current gas price, average, min, max, standard deviation, trend direction (up/down/flat/insufficient-data), number of samples observed, and the requested window size in minutes. All numeric fields may be null if insufficient data exists.","failureModes":["Insufficient data returns null for all numeric fields and trend set to 'insufficient-data' when the window has too few samples","Invalid windowMinutes value (e.g. negative or non-numeric) may result in a 400 error","Payment failure or missing x402 payment header returns HTTP 402","Service unavailability returns 5xx errors"],"whenToPreferThis":"Use this endpoint when you need statistical gas price intelligence on Base mainnet — not just a single current reading — including trend direction, volatility (stdDev), and min/max over a configurable recent window. Prefer this over generic gas APIs when you specifically need Base mainnet data with trend analysis and are willing to pay micro-fees via x402 USDC.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T18:50:21.283Z","isFirstParty":false}