{"success":true,"data":{"year":2026,"month":6,"prices":{"diesel_50ppm":{"coastal":28,"inland":29.26},"petrol_93":{"coastal":27.16,"inland":27.95},"petrol_95":{"coastal":27.19,"inland":28.06}}},"meta":{"effective_date":"2026-06-03","next_update":"2026-07-01","cached":false}}
curl --location --request GET 'https://zylalabs.com/api/12771/fintech+personal+finance+fuel+pricing+api/24973/get+latest+prices' --header 'Authorization: Bearer YOUR_API_KEY'
{"success":true,"data":{"year":2026,"month":6,"fuel_type":"petrol_95","region":"inland","price_zar":28.06,"effective_date":"2026-06-03"},"meta":{"next_update":"2026-07-01","cached":false}}
curl --location --request GET 'https://zylalabs.com/api/12771/fintech+personal+finance+fuel+pricing+api/24974/get+latest+price+-+single+fuel+type&fuel_type=Required&/=Required®ion=Required' --header 'Authorization: Bearer YOUR_API_KEY'
{
"success": true,
"data": [
{
"year": 2026,
"month": 6,
"fuel_type": "petrol_95",
"region": "inland",
"price_zar": 28.06,
"effective_date": "2026-06-03"
},
{
"year": 2026,
"month": 5,
"fuel_type": "petrol_95",
"region": "inland",
"price_zar": 26.63,
"effective_date": "2026-05-06"
},
{
"year": 2026,
"month": 4,
"fuel_type": "petrol_95",
"region": "inland",
"price_zar": 23.36,
"effective_date": "2026-04-01"
},
{
"year": 2026,
"month": 3,
"fuel_type": "petrol_95",
"region": "inland",
"price_zar": 20.3,
"effective_date": "2026-03-04"
},
{
"year": 2026,
"month": 2,
"fuel_type": "petrol_95",
"region": "inland",
"price_zar": 20.1,
"effective_date": "2026-02-04"
},
{
"year": 2026,
"month": 1,
"fuel_type": "petrol_95",
"region": "inland",
"price_zar": 20.75,
"effective_date": "2026-01-07"
},
{
"year": 2025,
"month": 12,
"fuel_type": "petrol_95",
"region": "inland",
"price_zar": 21.41,
"effective_date": "2025-12-03"
},
{
"year": 2025,
"month": 11,
"fuel_type": "petrol_95",
"region": "inland",
"price_zar": 21.12,
"effective_date": "2025-11-05"
},
{
"year": 2025,
"month": 10,
"fuel_type": "petrol_95",
"region": "inland",
"price_zar": 21.63,
"effective_date": "2025-10-01"
},
{
"year": 2025,
"month": 9,
"fuel_type": "petrol_95",
"region": "inland",
"price_zar": 21.55,
"effective_date": "2025-09-03"
},
{
"year": 2025,
"month": 8,
"fuel_type": "petrol_95",
"region": "inland",
"price_zar": 21.59,
"effective_date": "2025-08-06"
},
{
"year": 2025,
"month": 7,
"fuel_type": "petrol_95",
"region": "inland",
"price_zar": 21.87,
"effective_date": "2025-07-02"
},
{
"year": 2025,
"month": 6,
"fuel_type": "petrol_95",
"region": "inland",
"price_zar": 21.35,
"effective_date": "2025-06-04"
},
{
"year": 2025,
"month": 5,
"fuel_type": "petrol_95",
"region": "inland",
"price_zar": 21.4,
"effective_date": "2025-05-07"
},
{
"year": 2025,
"month": 4,
"fuel_type": "petrol_95",
"region": "inland",
"price_zar": 21.62,
"effective_date": "2025-04-02"
},
{
"year": 2025,
"month": 3,
"fuel_type": "petrol_95",
"region": "inland",
"price_zar": 22.34,
"effective_date": "2025-03-05"
},
{
"year": 2025,
"month": 2,
"fuel_type": "petrol_95",
"region": "inland",
"price_zar": 22.41,
"effective_date": "2025-02-05"
},
{
"year": 2025,
"month": 1,
"fuel_type": "petrol_95",
"region": "inland",
"price_zar": 21.59,
"effective_date": "2025-01-01"
},
{
"year": 2024,
"month": 12,
"fuel_type": "petrol_95",
"region": "inland",
"price_zar": 21.47,
"effective_date": "2024-12-04"
},
{
"year": 2024,
"month": 11,
"fuel_type": "petrol_95",
"region": "inland",
"price_zar": 21.3,
"effective_date": "2024-11-06"
},
{
"year": 2024,
"month": 10,
"fuel_type": "petrol_95",
"region": "inland",
"price_zar": 21.05,
"effective_date": "2024-10-02"
},
{
"year": 2024,
"month": 9,
"fuel_type": "petrol_95",
"region": "inland",
"price_zar": 22.19,
"effective_date": "2024-09-04"
},
{
"year": 2024,
"month": 8,
"fuel_type": "petrol_95",
"region": "inland",
"price_zar": 23.11,
"effective_date": "2024-08-07"
},
{
"year": 2024,
"month": 7,
"fuel_type": "petrol_95",
"region": "inland",
"price_zar": 23.26,
"effective_date": "2024-07-03"
},
{
"year": 2024,
"month": 6,
"fuel_type": "petrol_95",
"region": "inland",
"price_zar": 24.25,
"effective_date": "2024-06-05"
},
{
"year": 2024,
"month": 5,
"fuel_type": "petrol_95",
"region": "inland",
"price_zar": 25.49,
"effective_date": "2024-05-01"
},
{
"year": 2024,
"month": 4,
"fuel_type": "petrol_95",
"region": "inland",
"price_zar": 25.12,
"effective_date": "2024-04-03"
},
{
"year": 2024,
"month": 3,
"fuel_type": "petrol_95",
"region": "inland",
"price_zar": 24.45,
"effective_date": "2024-03-06"
},
{
"year": 2024,
"month": 2,
"fuel_type": "petrol_95",
"region": "inland",
"price_zar": 23.24,
"effective_date": "2024-02-07"
},
{
"year": 2024,
"month": 1,
"fuel_type": "petrol_95",
"region": "inland",
"price_zar": 22.49,
"effective_date": "2024-01-03"
},
{
"year": 2023,
"month": 12,
"fuel_type": "petrol_95",
"region": "inland",
"price_zar": 23.25,
"effective_date": "2023-12-06"
},
{
"year": 2023,
"month": 11,
"fuel_type": "petrol_95",
"region": "inland",
"price_zar": 23.9,
"effective_date": "2023-11-01"
},
{
"year": 2023,
"month": 10,
"fuel_type": "petrol_95",
"region": "inland",
"price_zar": 25.68,
"effective_date": "2023-10-04"
},
{
"year": 2023,
"month": 9,
"fuel_type": "petrol_95",
"region": "inland",
"price_zar": 24.54,
"effective_date": "2023-09-06"
},
{
"year": 2023,
"month": 8,
"fuel_type": "petrol_95",
"region": "inland",
"price_zar": 22.83,
"effective_date": "2023-08-02"
},
{
"year": 2023,
"month": 7,
"fuel_type": "petrol_95",
"region": "inland",
"price_zar": 22.46,
"effective_date": "2023-07-06"
},
{
"year": 2023,
"month": 6,
"fuel_type": "petrol_95",
"region": "inland",
"price_zar": 22.63,
"effective_date": "2023-06-07"
},
{
"year": 2023,
"month": 5,
"fuel_type": "petrol_95",
"region": "inland",
"price_zar": 23.34,
"effective_date": "2023-05-03"
},
{
"year": 2023,
"month": 4,
"fuel_type": "petrol_95",
"region": "inland",
"price_zar": 22.97,
"effective_date": "2023-04-05"
},
{
"year": 2023,
"month": 3,
"fuel_type": "petrol_95",
"region": "inland",
"price_zar": 22.95,
"effective_date": "2023-03-01"
},
{
"year": 2023,
"month": 2,
"fuel_type": "petrol_95",
"region": "inland",
"price_zar": 21.68,
"effective_date": "2023-02-01"
},
{
"year": 2023,
"month": 1,
"fuel_type": "petrol_95",
"region": "inland",
"price_zar": 21.4,
"effective_date": "2023-01-04"
}
],
"meta": {
"count": 217,
"filters": {
"fuel_type": "petrol_95",
"region": "inland"
},
"next_update": "2026-07-01",
"cached": false
}
}
curl --location --request GET 'https://zylalabs.com/api/12771/fintech+personal+finance+fuel+pricing+api/24975/get+price+history?fuel_type=petrol_95®ion=inland' --header 'Authorization: Bearer YOUR_API_KEY'
{"success":true,"data":{"year":2024,"month":3,"prices":{"diesel_50ppm":{"coastal":21.93,"inland":22.62},"petrol_93":{"coastal":23.41,"inland":24.13},"petrol_95":{"coastal":23.73,"inland":24.45}}},"meta":{"effective_date":"2024-03-06","next_update":"2024-04-03","cached":false}}
curl --location --request GET 'https://zylalabs.com/api/12771/fintech+personal+finance+fuel+pricing+api/24976/get+price+by+month&year=Required&/=Required&month=Required' --header 'Authorization: Bearer YOUR_API_KEY'
{"success":true,"data":[{"year":2026,"month":6,"price_zar":28.06,"effective_date":"2026-06-03","change_zar":1.43,"change_pct":5.37},{"year":2026,"month":5,"price_zar":26.63,"effective_date":"2026-05-06","change_zar":3.27,"change_pct":14},{"year":2026,"month":4,"price_zar":23.36,"effective_date":"2026-04-01","change_zar":3.06,"change_pct":15.07},{"year":2026,"month":3,"price_zar":20.3,"effective_date":"2026-03-04","change_zar":0.2,"change_pct":1},{"year":2026,"month":2,"price_zar":20.1,"effective_date":"2026-02-04","change_zar":-0.65,"change_pct":-3.13},{"year":2026,"month":1,"price_zar":20.75,"effective_date":"2026-01-07","change_zar":-0.66,"change_pct":-3.08},{"year":2025,"month":12,"price_zar":21.41,"effective_date":"2025-12-03","change_zar":0.29,"change_pct":1.37},{"year":2025,"month":11,"price_zar":21.12,"effective_date":"2025-11-05","change_zar":-0.51,"change_pct":-2.36},{"year":2025,"month":10,"price_zar":21.63,"effective_date":"2025-10-01","change_zar":0.08,"change_pct":0.37},{"year":2025,"month":9,"price_zar":21.55,"effective_date":"2025-09-03","change_zar":-0.04,"change_pct":-0.19},{"year":2025,"month":8,"price_zar":21.59,"effective_date":"2025-08-06","change_zar":-0.28,"change_pct":-1.28},{"year":2025,"month":7,"price_zar":21.87,"effective_date":"2025-07-02","change_zar":null,"change_pct":null}],"meta":{"fuel_type":"petrol_95","region":"inland","months":12,"cached":false}}
curl --location --request GET 'https://zylalabs.com/api/12771/fintech+personal+finance+fuel+pricing+api/24977/get+price+trend?fuel_type=petrol_95®ion=inland&months=12' --header 'Authorization: Bearer YOUR_API_KEY'
{"success":true,"data":{"fuel_type":"petrol_95","region":"inland","from":{"year":2020,"month":1,"price_zar":16.16,"effective_date":"2020-01-01"},"to":{"year":2026,"month":5,"price_zar":26.63,"effective_date":"2026-05-06"},"change_zar":10.47,"change_pct":64.79},"meta":{"cached":false}}
curl --location --request GET 'https://zylalabs.com/api/12771/fintech+personal+finance+fuel+pricing+api/24978/compare+prices+between+two+months?fuel_type=petrol_95®ion=inland&from=2020-01&to=2026-05' --header 'Authorization: Bearer YOUR_API_KEY'
{"success":true,"data":{"next_update":"2026-07-01","days_until":19},"meta":{"cached":false}}
curl --location --request GET 'https://zylalabs.com/api/12771/fintech+personal+finance+fuel+pricing+api/24979/get+next+update+date' --header 'Authorization: Bearer YOUR_API_KEY'
{"success":true,"data":{"status":"ok","timestamp":"2026-06-12T00:30:17.006Z"}}
curl --location --request GET 'https://zylalabs.com/api/12771/fintech+personal+finance+fuel+pricing+api/24980/health+check' --header 'Authorization: Bearer YOUR_API_KEY'
注册后,每个开发者都会被分配一个个人 API 访问密钥,这是一个唯一的字母和数字组合,用于访问我们的 API 端点。要使用 金融科技个人财务燃料定价 API 进行身份验证,只需在 Authorization 标头中包含您的 bearer token。
| 标头 | 描述 |
|---|---|
授权
|
必需
应为 Bearer access_key. 订阅后,请查看上方的"您的 API 访问密钥"。
|
无长期承诺。随时升级、降级或取消。 免费试用包括最多 50 个请求。
(年度计费可节省 2 个月 🎉)
南非官方燃油泵价来源于矿产资源和石油部(DMRE) 返回内陆和沿海地区的93号无铅汽油 95号无铅汽油和50ppm柴油的当前和历史价格 历史数据可从2008年1月至今获取价格每周三上午08:00 SAST自动更新
价格每周三上午08:00 SAST更新 DMRE在每个月的第一个星期三公布新的油价 如果由于油价或汇率波动而发生月中调整 它将在下一个星期三反映出来
历史数据从2008年1月到现在可用 - 超过18年的南非燃料价格记录
汽油93 ULP 汽油95 ULP 和柴油50ppm 适用于内陆和沿海地区 照明煤油栏目在架构中存在但目前为空因为数据在来源处不可用
DMRE根据运输和物流成本的差异为内陆和沿海地区设定不同的泵油价格 内陆价格(豪登省及周边省份)通常略高于沿海价格(西开普省,夸祖鲁-纳塔尔省,东开普省)
所有价格以南非兰特(ZAR)每升返回
数据集中缺少五个月的记录,原因是源数据存在缺口:2011年7月,2014年12月,2015年2月,2015年7月和2021年9月。通过/month/:year/:month请求这些月份将返回404错误
/最新 返回所有燃料类型和两个区域的单个嵌套响应 - 当您需要完整的价格表时很有用 /最新/:燃料类型/:区域 返回一个特定燃料类型和区域的单个价格 - 当您的应用只需要一个值并且您想要一个更小、更快的响应时很有用
使用端点/compare。传递您的燃料类型、地区、开始月份和结束月份,格式为AAAA-MM,API将返回两个点的价格以及以ZAR和百分比表示的变化。例如:/compare?fuel_type=petrol_95®ion=inland&from=2020-01&to=2026-05
所有错误返回一致的 JSON 结构: { "error": true, "code": "NOT_FOUND", "message": "未找到2007年1月的燃油价格数据" } 常见错误代码为无效参数的 BAD_REQUEST (400) 和没有数据的月份的 NOT_FOUND (404)
每个端点返回特定的燃料价格数据 例如 /latest 端点提供所有燃料类型和地区的当前价格 而 /price-history 则返回按燃料类型和地区过滤的历史价格 /compare 端点显示两个月之间的价格变化
关键字段包括“年份”、“月份”、“价格”、“燃料类型”、“地区”、“价格(ZAR)”、“变动(ZAR)”和“变动百分比(%)”这些字段提供了关于燃料价格、随时间变化以及有效日期的重要信息
响应数据以JSON格式结构化,包括“success”标志、“data”对象包含相关定价信息,以及“meta”对象用于源和更新详细信息。这样的结构便于解析和集成到应用程序中
参数因端点而异。例如 /latest/:fuel_type/:region 需要 "fuel_type" 和 "region" ,而 /price-history 则允许 "fuel_type" 和 "region" 的可选过滤器。用户可以根据他们的具体需求自定义请求
每个端点提供不同的信息:/latest 提供当前价格,/price-history 提供历史数据,/trend 显示几个月的价格变化,/compare 分析两个月之间的价格差异。这种多样性支持不同的分析需求
用户可以利用这些数据进行趋势分析、预算编制和财务规划例如使用/trend端点可以帮助可视化价格波动而/compar端点有助于理解成本随时间的变化从而增强决策能力
数据来源于南非矿产资源和石油部(DMRE)这个官方来源确保了通过API提供的燃料定价信息的准确性和可靠性
数据准确性通过DMRE的定期更新得到维护,该机构每月宣布新价格。此外,API包括一个健康检查端点来验证操作状态,确保用户获得可靠的数据