82trust / 100

Phone Parse

by HALOWERK Agent Tools in Documents & files

x402 APIPassing, checked 5 h ago

Nimmt jede Schreibweise, erkennt die Landeskennzahl aus 150 Vorwahlen, ergaenzt bei nationaler Schreibweise das Standardland, zerlegt in Vorwahl und Teilnehmernummer und bestimmt fuer Deutschland Festnetz, Mobilfunk und Sonderrufnummern mit Kostenhinweis. Liefert E.164, internationale und nationale Schreibweise sowie tel-URI.

POST https://tools.halowerk.com/v1/phone/parse

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
101 ms typical, 101 ms slowest 5%
Last check
5 h ago
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X POST "https://tools.halowerk.com/v1/phone/parse" \
  -H "content-type: application/json" \
  -d '{"default_country":"DE","phone":"0170 / 123 45 67"}'
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client().register(
  "eip155:8453",
  new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Ftools.halowerk.com%2Fv1%2Fphone%2Fparse
const res = await pay("https://tools.halowerk.com/v1/phone/parse", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"default_country":"DE","phone":"0170 / 123 45 67"}),
});
console.log(await res.json());

Example input

{
  "default_country": "DE",
  "phone": "0170 / 123 45 67"
}

Example output

{
  "area_code": "0170",
  "country": "DE",
  "country_code": "+49",
  "e164": "+491701234567",
  "formatted": {
    "e164": "+491701234567",
    "international": "+49 0170 1234567",
    "national": "00170 1234567",
    "rfc3966": "tel:+491701234567"
  },
  "hints": [
    "Nationale Schreibweise erkannt, mit Landeskennzahl fuer DE ergaenzt."
  ],
  "input": "0170 / 123 45 67",
  "national_number": "1701234567",
  "note": "Kein Abgleich gegen Portierungsdatenbanken.",
  "subscriber_number": "1234567",
  "type": "mobil",
  "type_note": null,
  "valid": true
}

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
5 h agoPassed402101 ms$0.001