N

Netzhandwerker Agent Tools · Currency Normalize

by Netzhandwerker Agent Tools

POSTBase

$0.001

per call · USD Coin on Base

Findet Betraege in Freitext, deutet deutsche und englische Tausender- und Dezimaltrennung richtig, loest Mio, Mrd, Tsd und k auf, erkennt 50 Waehrungen an Symbol, Code oder Wort einschliesslich USDC und Bitcoin und liefert Zahl, Waehrungscode, kleinste Einheit und Fundstelle getrennt. Rechnet bewusst nicht um.

Endpoint

POST https://tools.halowerk.com/v1/currency/normalize

4

Calls / 30d

1

Unique payers / 30d

Aug 16

Last called

exact

Payment scheme

Call this service

TypeScript · @x402/fetch
import { wrapFetchWithPayment } from "@x402/fetch";
import { privateKeyToAccount } from "viem/accounts";

const account = privateKeyToAccount(process.env.PRIVATE_KEY);
const fetchWithPay = wrapFetchWithPayment(fetch, account);

const res = await fetchWithPay("https://tools.halowerk.com/v1/currency/normalize", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    "text": "Das Angebot liegt bei 1.234,50 EUR, die Investition bei $2.5 Mio und die Gebuehr bei 0,004 USDC."
  }),
});
const data = await res.json();
cURL
curl -X POST \
  "https://tools.halowerk.com/v1/currency/normalize" \
  -H "Content-Type: application/json" \
  -d '{"text":"Das Angebot liegt bei 1.234,50 EUR, die Investition bei $2.5 Mio und die Gebuehr bei 0,004 USDC."}' \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "currencies": [
    "EUR",
    "USD",
    "USDC"
  ],
  "findings": [
    {
      "ambiguous": false,
      "amount": 1234.5,
      "amount_string": "1234.50",
      "currency": "EUR",
      "currency_source": "suffix",
      "decimals": 2,
      "end": 34,
      "minor_units": 123450,
      "multiplier": 1,
      "multiplier_word": null,
      "raw": "1.234,50 EUR",
      "start": 22
    },
    {
      "ambiguous": false,
      "amount": 2500000,
      "amount_string": "2500000.00",
      "currency": "USD",
      "currency_source": "prefix",
      "decimals": 2,
      "end": 63,
      "minor_units": 250000000,
      "multiplier": 1000000,
      "multiplier_word": "mio",
      "raw": "$2.5 Mio",
      "start": 55
    }
  ],
  "findings_count": 3,
  "mixed_currencies": true,
  "note": "Erkennung und Normalisierung, keine Umrechnung.",
  "total_by_currency": {
    "EUR": 1234.5,
    "USD": 2500000,
    "USDC": 0.004
  }
}

Payment details

Pay to0x2880edfff13100677bf97a3cbdf3bc34771c4e5e
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase
Schemesexact

Is this your API?

Pin it to the top of Developer Tools and the homepage with a featured placement.

Get featured →

More from Netzhandwerker Agent Tools & similar services