{
"status": "true",
"Today": {
"Petrol": 111.21,
"Diesel": 97.83,
"CNG": 86
},
"21Jul": {
"Petrol": 111.21,
"Diesel": 97.83,
"CNG": 86
},
"20Jul": {
"Petrol": 111.21,
"Diesel": 97.83,
"CNG": 86
},
"19Jul": {
"Petrol": 111.21,
"Diesel": 97.83,
"CNG": 86
},
"18Jul": {
"Petrol": 111.21,
"Diesel": 97.83,
"CNG": 86
},
"17Jul": {
"Petrol": 111.21,
"Diesel": 97.83,
"CNG": 86
},
"16Jul": {
"Petrol": 111.21,
"Diesel": 97.83,
"CNG": 86
},
"15Jul": {
"Petrol": 111.21,
"Diesel": 97.83,
"CNG": "NA"
},
"14Jul": {
"Petrol": 111.21,
"Diesel": 97.83,
"CNG": "NA"
},
"13Jul": {
"Petrol": 111.21,
"Diesel": 97.83,
"CNG": "NA"
}
}
curl --location --request GET 'https://zylalabs.com/api/5850/fuel+information+india+api/26614/fuel+prices+by+city?city=Mumbai' --header 'Authorization: Bearer YOUR_API_KEY'
{
"status": "true",
"state": "Karnataka",
"data": [
{
"city": "Bagalkot",
"petrol": "111.47",
"diesel": "99.37",
"cng": "91.5",
"autogas": null
},
{
"city": "Ballari",
"petrol": "112.06",
"diesel": "100.04",
"cng": "94.99",
"autogas": "38.84"
},
{
"city": "Belgaum",
"petrol": "115.01",
"diesel": "100.1",
"cng": "100",
"autogas": "34.62"
},
{
"city": "Bengaluru",
"petrol": "110.93",
"diesel": "98.8",
"cng": "97",
"autogas": "66"
},
{
"city": "Bidar",
"petrol": "111.81",
"diesel": "99.68",
"cng": "95.49",
"autogas": "39.03"
},
{
"city": "Chamarajanagar",
"petrol": "111.03",
"diesel": "98.93",
"cng": "91.5",
"autogas": null
},
{
"city": "Chickmagaluru",
"petrol": "115.01",
"diesel": "100.1",
"cng": "81.57",
"autogas": "37.86"
},
{
"city": "Chikkaballapura",
"petrol": "111.19",
"diesel": "99.08",
"cng": "85",
"autogas": null
},
{
"city": "Chitradurga",
"petrol": "112.12",
"diesel": "100.08",
"cng": "89",
"autogas": null
},
{
"city": "Davangere",
"petrol": "111.92",
"diesel": "99.79",
"cng": "89",
"autogas": "38.09"
},
{
"city": "Dharwad",
"petrol": "110.71",
"diesel": "98.66",
"cng": "101",
"autogas": "35.29"
},
{
"city": "Gadag",
"petrol": "111.22",
"diesel": "99.13",
"cng": "94.99",
"autogas": null
},
{
"city": "Gulbarga",
"petrol": "110.66",
"diesel": "98.61",
"cng": "101.9",
"autogas": "36.9"
},
{
"city": "Hassan",
"petrol": "110.86",
"diesel": "98.58",
"cng": "91.5",
"autogas": "36.04"
},
{
"city": "Haveri",
"petrol": "111.45",
"diesel": "99.35",
"cng": "91.5",
"autogas": null
},
{
"city": "Karwar",
"petrol": "112.05",
"diesel": "100.04",
"cng": "86",
"autogas": null
},
{
"city": "Kolar",
"petrol": "110.91",
"diesel": "98.82",
"cng": "91.5",
"autogas": "35.94"
},
{
"city": "Koppal",
"petrol": "112.06",
"diesel": "100.04",
"cng": "91.5",
"autogas": null
},
{
"city": "Mandya",
"petrol": "110.73",
"diesel": "98.66",
"cng": "91.5",
"autogas": null
},
{
"city": "Mangalore",
"petrol": "115.01",
"diesel": "100.1",
"cng": "100.9",
"autogas": "33.16"
},
{
"city": "Mysore",
"petrol": "110.44",
"diesel": "98.39",
"cng": "91.5",
"autogas": "36.7"
},
{
"city": "Raichur",
"petrol": "112.13",
"diesel": "100.05",
"cng": "91.5",
"autogas": "36.14"
},
{
"city": "Ramanagara",
"petrol": "111.21",
"diesel": "99.11",
"cng": "90",
"autogas": null
},
{
"city": "Shimoga",
"petrol": "112.09",
"diesel": "99.93",
"cng": "80.57",
"autogas": "38.13"
},
{
"city": "Tumakuru",
"petrol": "111.8",
"diesel": "99.65",
"cng": "97",
"autogas": null
},
{
"city": "Udupi",
"petrol": "110.38",
"diesel": "98.29",
"cng": "93.7",
"autogas": "33.78"
},
{
"city": "Yadgir",
"petrol": "111.77",
"diesel": "99.65",
"cng": "85",
"autogas": null
}
]
}
curl --location --request GET 'https://zylalabs.com/api/5850/fuel+information+india+api/27353/fuel+prices+by+state?state=Karnataka' --header 'Authorization: Bearer YOUR_API_KEY'
注册后,每个开发者都会被分配一个个人 API 访问密钥,这是一个唯一的字母和数字组合,用于访问我们的 API 端点。要使用 燃料信息印度 API 进行身份验证,只需在 Authorization 标头中包含您的 bearer token。
| 标头 | 描述 |
|---|---|
授权
|
必需
应为 Bearer access_key. 订阅后,请查看上方的"您的 API 访问密钥"。
|
无长期承诺。随时升级、降级或取消。 免费试用包括最多 50 个请求。
(年度计费可节省 2 个月 🎉)
印度燃料信息API旨在提供准确和最新的印度不同地区的燃料价格信息。它涵盖多种燃料类型,包括汽油、柴油和压缩天然气。
该API采用JSON格式,确保燃料价格数据可以无缝集成到各种应用中。包含每升价格等关键指标,以提供清晰且可操作的成本洞察。
该API是关注预算、财务规划或投资决策的用户追踪燃料成本的有价值工具。
要使用此API,您必须根据端点指明一个州和一个城市
API使用API密钥进行身份验证 要访问API,请在请求头中包含您的API密钥 API密钥在注册时提供并应保持安全
有不同的计划适合每个人,包括对小量请求的免费试用,但其速率有限制以防止滥用服务
是的,Fuel Information India API 旨在能够轻松集成到不同的应用程序中
燃料信息印度API提供燃料价格的详细信息
“获取可用州”端点返回印度的州列表 “按州获取城市”端点提供指定州内的城市 “按位置获取燃料价格”端点提供指定城市和州的汽油、柴油、液化石油气和压缩天然气的当前燃料价格
关键字段包括“stateId”“stateName”“cityId”“cityName”以及燃油价格响应中的燃油价格详情,如“retailPrice”“retailUnit”和“currency”
响应数据采用JSON格式结构化 每个端点返回一个层次结构 状态包含城市 城市包含燃料价格详细信息 使解析和使用变得简单
“按州获取城市”端点需要“州”参数,而“按地点获取燃油价格”端点需要“州”和“城市”参数 确保名称使用小写
该API提供州和城市名称,以及详细的燃料价格信息,包括汽油、柴油、液化石油气和压缩天然气的每升价格,以及价格适用日期
该API从印度可靠的燃料价格报告机制获取数据 定期进行更新和质量检查以确保提供信息的准确性和可靠性
典型的用例包括为燃料费用制定预算 跟踪燃料价格趋势 并根据特定地区的当前燃料成本做出明智的旅行或物流决策
用户可以通过解析 JSON 响应来提取特定的燃料价格以便于预算或分析 例如,他们可以比较不同城市或州的价格以找到最经济的选择