# MoneyTools Phone Number Validator & Formatter

> MoneyTools Phone Number Validator & Formatter is a paid API for AI agents from tools.moneytools.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-11-05).

Validates and formats a phone number for 240+ regions using libphonenumber, returning E.164, international/national formats, type, and country.

## Facts

- Endpoint: GET https://tools.moneytools.dev/v1/phone?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-05
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/moneytools-phone-number-validator-formatter-45cb8f67
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_QXMjikBoK13Iue9Y7Nl45

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability moneytools-phone-number-validator-formatter-45cb8f67
```

Example prompt: Can you validate and format the phone number 0912 345 678 (from Taiwan, country code TW) — tell me if it's valid, what type it is (mobile or fixed), and give me the E.164 and international formats?

## When to prefer this

Choose this endpoint when you need robust, standards-compliant phone number validation and formatting powered by Google's libphonenumber for 240+ regions. Ideal when you need E.164 normalization for storage, international formatting for display, or phone type classification (mobile vs. landline) before routing to SMS/voice APIs. The pay-per-use model ($0.001 USDC via x402) makes it cost-effective for low-to-moderate volume without subscription commitment.

## Known failure modes

- Invalid or unparseable phone number returns validation failure without charge
- Missing required 'number' query parameter returns 400-style error
- Ambiguous number without country code may fail or misidentify region — provide country param to disambiguate
- Free tier exhausted (10/day) triggers HTTP 402 requiring x402 payment or API key
- Malformed country ISO code may cause region defaulting or error

## How this service works

Phone number validate + format: Validate and format phone numbers for 240+ regions (libphonenumber): E.164, international/national format, type (mobile/fixed), country. Free tier 10/day; then $0.001 via x402 (HTTP 402 + PAYMENT-REQUIRED) or X-API-Key credits. Not charged on failure. $0.001 USDC per call via x402 on Base. Run by MoneyTools.

## Output

A JSON object containing: validity flag, E.164 format, international format, national format, phone type (mobile/fixed-line/toll-free/etc), country code, and payment metadata (whether a charge was made, network, amount in USD, transaction hash if applicable) plus free tier usage info.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "const": "http"
    },
    "method": {
     "const": "GET"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "number"
     ],
     "properties": {
      "number": {
       "type": "string",
       "examples": [
        "0912 345 678"
       ],
       "description": "phone number"
      },
      "country": {
       "type": "string",
       "examples": [
        "TW"
       ],
       "description": "default region ISO code"
      }
     }
    }
   }
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "json"
    },
    "example": {
     "type": "object",
     "properties": {
      "payment": {
       "type": "object",
       "properties": {
        "charged": {
         "type": "boolean"
        },
        "network": {
         "type": "string"
        },
        "amountUsd": {
         "type": "string"
        },
        "transaction": {
         "type": [
          "string",
          "null"
         ]
        }
       }
      },
      "freeTier": {
       "type": "object"
      },
      "_moneytools": {
       "type": "object",
       "description": "optional plan / partner hints"
      }
     },
     "description": "Tool-specific JSON result (see llms.txt / openapi.json). Always includes payment info.",
     "additionalProperties": true
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/moneytools-phone-number-validator-formatter-45cb8f67/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from tools.moneytools.dev](https://www.zero.xyz/host/tools.moneytools.dev/llms.txt)
