Skip to content
Fourohtwo

agents.writerslogic.com/api/v1/locale-number

Parses up to 100 number or money strings such as "1.234,56", "1,00,000", "(1,234.50)", "¥1,000" or "CHF 1'234.50" into canonical decimal strings, for an agent reading amounts from documents, emails or tables. With a BCP 47 locale it applies that locale's CLDR separators (read from Intl.NumberFormat); without one it lists every valid reading and an ambiguous string such as "1,234" returns unknown w

BaseAnswering
POSThttps://agents.writerslogic.com/api/v1/locale-number

Uptime100% of 4 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://agents.writerslogic.com/api/v1/locale-number", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"items":[{"text":"1.234,56","locale":"de-DE"},{"text":"1,00,000"},{"text":"1,234"},{"text":"(1,234.50)","currency":"USD"}]}),
});
console.log(await res.json());

Example input

{
  "items": [
    {
      "text": "1.234,56",
      "locale": "de-DE"
    },
    {
      "text": "1,00,000"
    },
    {
      "text": "1,234"
    },
    {
      "text": "(1,234.50)",
      "currency": "USD"
    }
  ]
}