Skip to content
Fourohtwo

Parse and validate any phone number worldwide using libphonenumber

agentsvc.io/api/v1/proxy/phone-validate

Parse and validate any phone number worldwide using libphonenumber. Returns is_valid, e164 (canonical international format e.g. '+4917612345678'), national_format, country_code (ISO alpha-2), and line_type (MOBILE/FIXED_LINE/VOIP/TOLL_FREE). Provide country_code hint (e.g. 'DE') for local numbers without country prefix.

BaseAnswering
POSThttps://agentsvc.io/api/v1/proxy/phone-validate

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://agentsvc.io/api/v1/proxy/phone-validate", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"phone":"+41 44 668 18 00"}),
});
console.log(await res.json());

Example input

{
  "phone": "+41 44 668 18 00"
}

More from Phone Number ValidationProvider status