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