Skip to content
Fourohtwo

ort.halowerk.com/v1/fuel-cost-trip

Fuel cost of a trip across EU countries from consumption and kilometres per country, priced with the latest national average pump prices (EU Weekly Oil Bulletin) or your own prices.

BaseAnswering
POSThttps://ort.halowerk.com/v1/fuel-cost-trip

Uptime100% of 5 checks in 30 days

30 days agoToday

Try it

Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.

The response shows up here.

Call it from an agent

// npm install fourohtwo
import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://ort.halowerk.com/v1/fuel-cost-trip", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"consumption_l_per_100km":28,"fuel":"diesel","legs":[{"country":"DE","km":420},{"country":"AT","km":180}],"tank_l":600}),
});
console.log(await res.json());

Example input

{
  "consumption_l_per_100km": 28,
  "fuel": "diesel",
  "legs": [
    {
      "country": "DE",
      "km": 420
    },
    {
      "country": "AT",
      "km": 180
    }
  ],
  "tank_l": 600
}