{
"status": 200,
"success": true,
"message": "OK",
"data": {
"country": "India",
"total": 35,
"states": [
{
"state": "Andaman and Nicobar Islands",
"cities_count": 1
},
{
"state": "Andhra Pradesh",
"cities_count": 14
},
{
"state": "Arunachal Pradesh",
"cities_count": 1
},
{
"state": "Assam",
"cities_count": 10
},
{
"state": "Bihar",
"cities_count": 34
},
{
"state": "Chandigarh",
"cities_count": 1
},
{
"state": "Chhattisgarh",
"cities_count": 18
},
{
"state": "Dadra and Nagar Haveli",
"cities_count": 1
},
{
"state": "Daman and Diu",
"cities_count": 1
},
{
"state": "Delhi",
"cities_count": 8
},
{
"state": "Goa",
"cities_count": 2
},
{
"state": "Gujarat",
"cities_count": 22
},
{
"state": "Haryana",
"cities_count": 20
},
{
"state": "Himachal Pradesh",
"cities_count": 9
},
{
"state": "Jammu and Kashmir",
"cities_count": 15
},
{
"state": "Jharkhand",
"cities_count": 18
},
{
"state": "Karnataka",
"cities_count": 27
},
{
"state": "Kerala",
"cities_count": 14
},
{
"state": "Madhya Pradesh",
"cities_count": 49
},
{
"state": "Maharashtra",
"cities_count": 34
},
{
"state": "Manipur",
"cities_count": 1
},
{
"state": "Meghalaya",
"cities_count": 4
},
{
"state": "Mizoram",
"cities_count": 1
},
{
"state": "Nagaland",
"cities_count": 2
},
{
"state": "Odisha",
"cities_count": 21
},
{
"state": "Puducherry",
"cities_count": 3
},
{
"state": "Punjab",
"cities_count": 20
},
{
"state": "Rajasthan",
"cities_count": 30
},
{
"state": "Sikkim",
"cities_count": 3
},
{
"state": "Tamil Nadu",
"cities_count": 31
},
{
"state": "Telangana",
"cities_count": 9
},
{
"state": "Tripura",
"cities_count": 1
},
{
"state": "Uttar Pradesh",
"cities_count": 66
},
{
"state": "Uttarakhand",
"cities_count": 7
},
{
"state": "West Bengal",
"cities_count": 15
}
]
}
}
curl --location --request GET 'https://zylalabs.com/api/13698/retrieve+indian+fuel+prices+api/31173/states' --header 'Authorization: Bearer YOUR_API_KEY'
{
"status": 200,
"success": true,
"message": "OK",
"data": {
"total": 2,
"page": 1,
"per_page": 100,
"cities": [
{
"city": "Mumbai",
"state": "Maharashtra",
"aliases": [
"Bombay"
],
"fuels_available": [
"cng",
"lpg",
"png",
"diesel",
"petrol",
"autogas"
]
},
{
"city": "Navi Mumbai",
"state": "Maharashtra",
"aliases": [],
"fuels_available": [
"cng",
"lpg",
"diesel",
"petrol"
]
}
]
}
}
curl --location --request GET 'https://zylalabs.com/api/13698/retrieve+indian+fuel+prices+api/31176/cities?q=Mumbai' --header 'Authorization: Bearer YOUR_API_KEY'
{
"status": 200,
"success": true,
"message": "OK",
"data": {
"city": "Mumbai",
"state": "Maharashtra",
"country": "India",
"date": "2026-09-01",
"currency": "INR",
"source": "goodreturns+mypetrolprice",
"fuels": {
"petrol": {
"price": 111.21,
"unit": "litre",
"change": 0
},
"diesel": {
"price": 97.83,
"unit": "litre",
"change": 0
},
"cng": {
"price": 86,
"unit": "kg",
"change": 0
},
"autogas": {
"price": 65.38,
"unit": "litre",
"change": 0
},
"lpg": {
"price": 941.5,
"unit": "14.2kg",
"change": 0
},
"png": {
"price": 51.5,
"unit": "SCM",
"change": 0
}
}
}
}
curl --location --request GET 'https://zylalabs.com/api/13698/retrieve+indian+fuel+prices+api/31179/latest?city=Mumbai' --header 'Authorization: Bearer YOUR_API_KEY'
{
"status": 200,
"success": true,
"message": "OK",
"data": {
"city": "Mumbai",
"state": "Maharashtra",
"country": "India",
"date": "2026-09-01",
"currency": "INR",
"source": "goodreturns+mypetrolprice",
"fuels": {
"petrol": {
"price": 111.21,
"unit": "litre",
"change": 0
},
"diesel": {
"price": 97.83,
"unit": "litre",
"change": 0
},
"cng": {
"price": 86,
"unit": "kg",
"change": 0
},
"autogas": {
"price": 65.38,
"unit": "litre",
"change": 0
},
"lpg": {
"price": 941.5,
"unit": "14.2kg",
"change": 0
},
"png": {
"price": 51.5,
"unit": "SCM",
"change": 0
}
}
}
}
curl --location --request GET 'https://zylalabs.com/api/13698/retrieve+indian+fuel+prices+api/31183/historical?city=Mumbai&date=2026-09-01' --header 'Authorization: Bearer YOUR_API_KEY'
注册后,每个开发者都会被分配一个个人 API 访问密钥,这是一个唯一的字母和数字组合,用于访问我们的 API 端点。要使用 Retrieve Indian Fuel Prices API 进行身份验证,只需在 Authorization 标头中包含您的 bearer token。
| 标头 | 描述 |
|---|---|
授权
|
必需
应为 Bearer access_key. 订阅后,请查看上方的"您的 API 访问密钥"。
|
无长期承诺。随时升级、降级或取消。 免费试用包括最多 50 个请求。
(年度计费可节省 2 个月 🎉)
The Retrieve Indian Fuel Prices API provides structured, city-level fuel price data across India in a consistent JSON format. It supports current and historical prices for petrol, diesel, CNG, LPG, autogas, and PNG, with prices, units, and changes from previous snapshots.
The API covers hundreds of cities across India and provides endpoints to browse states and cities, retrieve the latest fuel prices, and access historical pricing by date. It is designed for fuel price comparison, transportation and fleet management, logistics, cost analysis, and applications that require reliable fuel pricing data without web scraping.
每个端点返回与印度油价相关的结构化数据 “GET States” 端点提供州和城市的列表 “GET Cities” 返回特定城市的燃料类型 “GET Latest” 提供当前油价 “GET Historical” 提供指定日期的过去油价
关键字段包括“状态”“成功”“消息”和“数据”“数据”字段包含特定信息,如城市名称燃料价格单位以及最新和历史端点的变化,而“城市数量”表示每个州中可用城市的数量
API以一致的JSON格式返回数据 每个响应包括一个包含状态信息的顶级对象和一个包含相关细节的“数据”对象,例如城市名称燃料价格和单位 以嵌套结构组织以便于理解
"GET States" 接口提供州和城市列表 "GET Cities" 提供城市名称和可用燃料类型 "GET Latest" 给出当前燃料价格 "GET Historical" 提供指定城市和日期的过去燃料价格和变化
“获取城市”端点接受城市名称进行搜索,而“获取最新”和“获取历史”需要城市标识符和日期。用户可以通过指定这些参数来自定义请求,以检索目标数据
响应数据被组织成结构化的JSON格式 每个端点的响应包含一个"data"对象 该对象包含相关细节 如城市信息 燃油价格和单位 使其易于解析和在应用中使用
数据来自可靠的燃料价格聚合器,确保准确性和一致性。API参考“goodreturns”和“mypetrolprice”等来源,以提供印度各个城市的最新燃料价格信息
“获取最新”和“获取历史”端点需要城市名称作为参数来检索燃油价格“获取城市”端点允许根据城市名称搜索以找到匹配的城市及其可用的燃油类型 用户可以通过指定感兴趣的城市来自定义请求
典型的用例包括燃料价格比较、运输和车队管理、物流规划以及成本分析。开发者可以将这些数据集成到需要实时或历史燃料定价信息以进行决策的应用程序中
在回复中“价格”表示每个指定单位的燃料成本“单位”表示测量标准(例如升千克)“变化”反映前一天的价格变化“货币”字段指定使用的货币对于印度燃料价格为INR
通过定期从可信来源更新来保持数据的准确性,确保燃油价格反映最新的市场状况。该API旨在为用户提供一致和可靠的信息
如果请求返回部分或空结果,用户应检查所使用的参数,例如城市名称或日期,以确保它们是正确的。此外,用户可以探索其他城市或州以查找可用数据