Skip to content
Fourohtwo

agent-kit-light-production.up.railway.app/v1/grundpreis

Calculates unit prices (per kg, litre, 100 g, 100 ml, metre, piece) for one or several offers and ranks them from cheapest to most expensive, so agents can compare pack sizes fairly. Grundpreisrechner.

BaseAnswering
POSThttps://agent-kit-light-production.up.railway.app/v1/grundpreis

Uptime100% of 1 check 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://agent-kit-light-production.up.railway.app/v1/grundpreis", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"angebote":[{"einheit":"g","menge":500,"name":"Kaffee 500 g","preis":6.99},{"einheit":"kg","menge":1,"name":"Kaffee 1 kg","preis":12.49},{"einheit":"g","menge":250,"name":"Kaffee 250 g","preis":3.79}]}),
});
console.log(await res.json());

Example input

{
  "angebote": [
    {
      "einheit": "g",
      "menge": 500,
      "name": "Kaffee 500 g",
      "preis": 6.99
    },
    {
      "einheit": "kg",
      "menge": 1,
      "name": "Kaffee 1 kg",
      "preis": 12.49
    },
    {
      "einheit": "g",
      "menge": 250,
      "name": "Kaffee 250 g",
      "preis": 3.79
    }
  ]
}

More from Agent Kit LightProvider status