{"uid":"cap_coyfDdLnE3yu6TtOUGYIY","slug":"eia-petroleum-prices-stocks-7e29cd2f","name":"EIA Petroleum Prices & Stocks","description":"US petroleum prices and stocks from the EIA: retail gasoline and diesel by PADD region (weekly), WTI and Brent crude spot (daily), and weekly crude/gasoline/distillate inventories. Returns latest value, change vs prior period, short history, and a region-vs-US spread.","url":"https://payai.agentstools.dev/energy/petroleum?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","HEAD","DELETE"],"type":"string"},"queryParams":{"type":"object","properties":{"metric":{"enum":["gas_prices","diesel_prices","crude_wti","crude_brent","crude_stocks","gasoline_stocks","distillate_stocks"],"type":"string","description":"Which petroleum series to return (default gas_prices)"},"region":{"enum":["us","east_coast","midwest","gulf_coast","rocky_mountain","west_coast"],"type":"string","description":"PADD region for retail gasoline/diesel (default us)"},"history":{"type":"integer","maximum":120,"minimum":1,"description":"Number of recent data points to include"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"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":{"p10Cents":"1.0000","medianCents":"1.0000","p90Cents":"1.0000","minCents":"1.0000","maxCents":"1.0000","p95Cents":"1.0000","sampleCount":1,"varies":false,"failureChargeRate":1},"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_G6LJ0u0xNrXv780bwVT6b","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 US petroleum market data including retail gasoline/diesel prices by PADD region, WTI/Brent crude spot prices, and weekly crude/gasoline/distillate inventory levels from the EIA.","exampleAgentPrompt":"What's the latest retail gasoline price on the West Coast, including the last 8 weeks of history and how it compares to the national average?","exampleUseCases":null,"resultDescription":"Returns the latest value for the requested petroleum metric, the change versus the prior period, a short history array of recent data points (up to 120), and for regional metrics a spread versus the US average. Covers retail gas and diesel by PADD region (weekly), WTI and Brent crude spot prices (daily), and crude/gasoline/distillate inventory stocks (weekly).","failureModes":["Invalid metric enum value returns 422 unprocessable entity","Invalid region enum value returns 422 unprocessable entity","History value outside 1-120 range returns 422 validation error","EIA source data temporarily unavailable may return 503 or stale data","Payment not provided or insufficient returns 402 Payment Required"],"whenToPreferThis":"Use this endpoint when you need official US government EIA petroleum data — retail pump prices, crude oil benchmarks, or inventory stocks — with built-in regional breakdowns, period-over-period change, and short historical series in a single call. Prefer over scraping EIA directly or using financial data APIs when you need structured, agent-ready JSON with PADD region spreads included.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-12T00:40:38.860Z","isFirstParty":false,"canonicalSlug":"eia-petroleum-prices-stocks-7e29cd2f"}