{
"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/13697/indian+fuel+prices+api/31168/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/13697/indian+fuel+prices+api/31170/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/13697/indian+fuel+prices+api/31171/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/13697/indian+fuel+prices+api/31172/historical?city=Mumbai&date=2026-09-01' --header 'Authorization: Bearer YOUR_API_KEY'
注册后,每个开发者都会被分配一个个人 API 访问密钥,这是一个唯一的字母和数字组合,用于访问我们的 API 端点。要使用 Indian Fuel Prices API 进行身份验证,只需在 Authorization 标头中包含您的 bearer token。
| 标头 | 描述 |
|---|---|
授权
|
必需
应为 Bearer access_key. 订阅后,请查看上方的"您的 API 访问密钥"。
|
无长期承诺。随时升级、降级或取消。 免费试用包括最多 50 个请求。
(年度计费可节省 2 个月 🎉)
The 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格式返回数据 每个响应包含一个顶级对象,其中包含状态信息和一个“数据”对象,包含相关细节,如城市名称、燃料价格和单位,这些信息以嵌套结构组织,以便于清晰理解
“获取州”端点提供州和城市列表“获取城市”提供城市名称和可用燃料类型“获取最新”给出当前燃料价格“获取历史”展示指定城市和日期的过去燃料价格和变化
“获取城市”端点接受城市名称进行搜索,而“获取最新”和“获取历史”则需要城市标识符和日期。用户可以通过指定这些参数来定制请求以获取针对性数据
响应数据被组织成结构化的JSON格式 每个端点的响应包括一个包含相关细节的“data”对象 例如城市信息 燃油价格和单位 使其易于在应用程序中解析和利用
数据来源于可靠的燃料价格聚合器,确保准确性和一致性 该API参考了“goodreturns”和“mypetrolprice”等来源,以提供印度各城市的最新燃料价格信息
“获取最新”和“获取历史”接口需要城市名称作为参数以检索燃料价格 “获取城市”接口允许通过城市名称搜索以找到匹配的城市及其可用的燃料类型 用户可以通过指定感兴趣的城市来自定义请求
典型的使用案例包括燃料价格比较、运输和车队管理、物流规划和成本分析。开发人员可以将这些数据集成到需要实时或历史燃料价格信息以进行决策的应用程序中
在响应中“价格”表示指定单位的燃料成本“单位”表示测量单位(例如升、千克)“变化”反映了与前一天相比的价格变化“货币”字段指定了使用的货币,印度燃料价格为印度卢比
数据准确性通过定期从可信来源更新来保持,确保燃料价格反映最新市场情况。API旨在为用户提供一致和可靠的信息
如果请求返回部分或空结果,用户应检查使用的参数,例如城市名称或日期,以确保它们是正确的。此外,用户可以探索其他城市或州以查找可用数据