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