Skip to main content

Petroleum — daily fuel price

tip

Status: LIVE — Real-time data from the upstream regulator. Updated on the regulator's publication cadence.

What it does

Petroleum Planning & Analysis Cell publishes daily retail prices for major Indian cities. Our API normalizes the PPAC daily file into a queryable JSON surface with consistent city codes, fuel types (MS/HSD/ATF/LPG), and price-history time-series. Useful for logistics, pricing-strategy, and inflation-watch use cases.

Base URL

https://petroleum.sahayakonline.co.in/v1/

Endpoints

MethodPathDescription
GET/healthLiveness probe
GET/v1/petroleum/priceLatest prices across all tracked cities + fuels
GET/v1/petroleum/price/{city}Single city, all fuels, with history
GET/v1/petroleum/price/{city}/{fuel}Single city + fuel time-series

Sample request

curl -sS https://petroleum.sahayakonline.co.in/v1/petroleum/price/mumbai \
-H "Authorization: Bearer $SAHAYAK_KEY" \
-H "Accept: application/json"

Sample response

{
"spec_ref": "spec_31_Petroleum_Price_API",
"endpoint": "/v1/petroleum/price/mumbai",
"method": "GET",
"results": [
{ "city": "Mumbai", "fuel": "MS", "price_inr_per_litre": 104.21, "as_of": "2026-05-07" },
{ "city": "Mumbai", "fuel": "HSD", "price_inr_per_litre": 92.15, "as_of": "2026-05-07" },
{ "city": "Mumbai", "fuel": "LPG_DOM", "price_inr_per_14_2kg_cylinder": 802.50, "as_of": "2026-05-01" }
],
"meta": { "fixture_mode": false, "url": "https://petroleum.sahayakonline.co.in/v1/" }
}

Error codes

CodeMeaningRecommended action
400Malformed request (missing required param, invalid format)Fix request shape. Response body includes error.field pinpointing the issue.
401Missing or invalid Authorization headerVerify key prefix matches your tier and that the header is Authorization: Bearer ….
403Key valid but not entitled to this endpointSandbox keys cannot call live-tier endpoints. Upgrade or request entitlement.
404Resource not foundCheck identifier format. Some endpoints return 200 with empty results[] instead of 404 — verify the endpoint convention.
429Rate limit exceededHonor Retry-After header. Sandbox 30 r/m, Starter 300 r/m, Growth 1500 r/m.
503Upstream regulator unreachable after retriesLive-tier only. Sahayak retries 3× with backoff before surfacing. Implement circuit-breaker on caller side.

Rate limits

TierRate limitMonthly cap
Sandbox30 r/min1,000 live calls (shared across 3 LIVE endpoints)
Starter300 r/min10,000 live calls
Growth1,500 r/min100,000 live calls
Scalecustom500,000+

SLA reference

See Status & SLA for uptime targets, latency targets, and incident communication. Daily price refresh by 09:00 IST.