BUNKERFUELPRICES
开发者

数据 API

这里有两个 API:无需密钥的公开价格板,以及需密钥、用于读取您自己船队、询价与报价的数据 API。您的船舶及其位置、您已发起的询价,以及供应商实际给您的报价——以 JSON 形式提供,供您置入自己的排期或租船软件中。所有内容均限定于您自己的机构范围。

访问权限

包含于 船队版 与 企业版套餐中。在 设置中签发密钥;密钥以 bfp_.

任何套餐均可签发密钥,它会返回 402 ,直至套餐包含该功能——因此集成只需构建一次,套餐变更时即开始工作,而非在此之前一直受阻。 Fleet 每月 50,000 次调用,Enterprise 500,000 次。

您的船队

GET https://bunkerfuelprices.com/api/v1/data/fleet

curl https://bunkerfuelprices.com/api/v1/data/fleet \
  -H "Authorization: Bearer bfp_YOUR_KEY"

以下为示例数值,并非市场数据。

{
  "organisation": "Aegean Shipping",
  "vessels": [
    {
      "imo": "9876543", "name": "MV EXAMPLE", "segment": "commercial",
      "dwt": 82000, "consumptionMtPerDay": 28.5, "serviceSpeedKts": 13.2,
      "scrubber": false,
      "position": {
        "lat": 1.265, "lon": 103.82, "speedKts": 11.4, "courseDeg": 87,
        "destination": "SGSIN",
        "nextPort": { "name": "Singapore", "locode": "SGSIN" },
        "etaAt": "2026-09-02T06:00:00.000Z",
        "observedAt": "2026-08-30T13:31:00.000Z", "source": "aisstream"
      },
      "rob": { "vlsfoMt": 640, "mgoMt": 95 }
    }
  ]
}

rob 即船上余量——决定您实际能加多少油的数字,也是多数船队系统不得不向船长询问的那个数字。

询价与报价

GET https://bunkerfuelprices.com/api/v1/data/quotes?days=90

以下为示例数值,并非市场数据。

{
  "requests": [
    {
      "ref": "BFP-7K2M",
      "port": { "name": "Singapore", "locode": "SGSIN" },
      "grade": "VLSFO", "quantityMt": 1200,
      "status": "comparing",
      "quotes": [
        {
          "usdPerMt": 784.50,
          "allInUsdPerMt": 799.10,
          "bargeFeeUsd": 8500,
          "paymentTermDays": 30,
          "creditAdjUsdPerMt": 2.10,
          "basis": "delivered", "validUntil": "2026-08-30T17:00:00.000Z",
          "extractionConfidence": 0.96
        }
      ]
    }
  ]
}

allInUsdPerMt 才是用于比较的那个。表面数字并非您所支付的:它不含驳船费、付款条件成本以及您与该供应商的信用状况,两者之间的差距通常为每吨 $10 至 $40。按 usdPerMt 对供应商排序,几乎必然选错人。

extractionConfidence 表示解析器读取供应商邮件时的把握程度。低于 0.9 时会有人工查看。

公开价格板

开放访问:无需密钥、无需套餐,任何网站上的浏览器都可直接读取(CORS)。返回我们掌握的每个港口、每种油品的最新参考价,按时间由新到旧排列。

GET https://bunkerfuelprices.com/api/v1/prices

参数含义
port单个港口的 UN/LOCODE,例如 SGSIN。可选。
grade一种油品:VLSFO、HSFO 或 MGO。可选。
limit最多返回的行数:不小于 1 的整数。可选;不传则返回全部行。
curl "https://bunkerfuelprices.com/api/v1/prices?port=SGSIN&grade=VLSFO"

本页加载时该调用的实际返回——真实数据,而非示例:

HTTP 200
access-control-allow-methods: GET, OPTIONS
access-control-allow-origin: *
cache-control: public, s-maxage=600, stale-while-revalidate=3600
content-type: application/json
x-robots-tag: noindex

{
  "disclaimer": "Indicative prices only. Not an offer to sell and not a substitute for a firm quote.",
  "about": "The latest indicative bunker price Bunker Fuel Prices holds for each port and grade. Each row says what kind of source it came from (source, provenance) and carries the UTC time it was observed (observedAt), which is not the time of this response.",
  "attribution": {
    "name": "Bunker Fuel Prices",
    "url": "https://bunkerfuelprices.com",
    "cite": "Bunker Fuel Prices (bunkerfuelprices.com), <port> <grade>, <usdPerMt> USD/MT, observed <observedAt date> — with a link to the row's url.",
    "terms": "https://bunkerfuelprices.com/legal/data",
    "usage": "You may quote a figure with attribution and a link. Figures sourced from the licensed feed may not be redistributed as a dataset."
  },
  "unit": "USD per metric tonne",
  "generatedAt": "2026-12-03T22:33:33.711Z",
  "count": 1,
  "total": 1,
  "prices": [
    {
      "locode": "SGSIN",
      "port": "Singapore",
      "country": "SG",
      "grade": "VLSFO",
      "usdPerMt": 826,
      "kind": "indicative",
      "basis": "delivered",
      "source": "licensed",
      "observedAt": "2026-12-03T19:08:10.000Z",
      "provenance": "Indicative, from a licensed feed. Not an offer — a firm price exists only once a supplier has quoted.",
      "url": "https://bunkerfuelprices.com/bunker-prices/singapore"
    }
  ]
}
字段含义
prices[]每个港口、每种油品一行。usdPerMt 为以美元/公吨计的价格。
kind, basis价格类型(indicative、firm 或 transacted)及其基准(delivered、ex_wharf 或 fob)。
observedAt价格的观测时间(UTC)。它不是响应的生成时间,后者为 generatedAt。
source, provenance该数字的来源类型,分别以一个词和一句话给出。不会写出数据源的名称。
url该港口在本站的页面——引用该数字时应附上的链接。
count, total本次响应中的行数,以及应用 limit 之前符合筛选条件的行数。
withheld仅当部分符合条件的“港口—油品”组合未包含在响应中时才出现;withheldReason 说明原因。
attribution引用数字时应如何注明出处,以及使用条款。

limit 若不是大于或等于 1 的整数,返回 400。查询我们没有的港口或油品不算错误,只会返回空列表。若价格板无法读取,则返回带 Retry-After 响应头的 503,而不是空列表。

要查找港口代码,可用港口名称的一部分或其 UN/LOCODE 的开头进行搜索;返回每个匹配项的 locode、name 和 country。

curl "https://bunkerfuelprices.com/api/v1/ports?q=rotter"

错误

状态含义
401密钥缺失或未知。
402密钥有效,但套餐不含该 API。响应会指明您当前所在的套餐。
429月度额度已用尽。每月一日重置。

您自己的数据归您所有:可导出、可保留、可随意使用。经许可的市场价格受以下政策规定的再分发条款约束: 数据与定价政策。供应商发布至另一个端点—— 供应商 API.