80trust / 100

Phone Verify

by Factline in Security & trust

x402 APIPassing, checked 5 h ago

Use when you need to check a phone number from any country: valid and possible against allocated ranges, E.164 and national format, country, and line type (mobile, landline, VoIP, toll-free, premium) with an SMS-capable hint. National numbers need a country, e.g. 0612345678 with country=NL.

GET https://factline.dev/v1/phone/verify

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
86 ms typical, 86 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 GET "https://factline.dev/v1/phone/verify?phone=%2B31612345678"
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%2Ffactline.dev%2Fv1%2Fphone%2Fverify
const res = await pay("https://factline.dev/v1/phone/verify?phone=%2B31612345678");
console.log(await res.json());

Example input

{
  "phone": "+31612345678"
}

Example output

{
  "calling_code": "+31",
  "country": "NL",
  "country_name": "Netherlands",
  "e164": "+31612345678",
  "explain": {
    "line_type": "From the number range. Ported numbers keep their range type; carrier is not reported.",
    "valid": "The number matches an allocated number range for its country (not whether it is currently in service)."
  },
  "input": "+31612345678",
  "international": "+31 6 12345678",
  "line_type": "mobile",
  "national": "06 12345678",
  "possible": true,
  "sms_capable": true,
  "source": "Google libphonenumber metadata",
  "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 agoPassed40286 ms$0.003