# NZ Phone Number Validator

> NZ Phone Number Validator is a paid API for AI agents from nzdata.zakwins.workers.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-17).

Validates a New Zealand phone number for correct format and structure

## Facts

- Endpoint: GET https://nzdata.zakwins.workers.dev/nz/validate/phone?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-17
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/nz-phone-number-validator-78bb8fdc
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_XUbSmRTbwK4A9LnxDGNIh

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 nz-phone-number-validator-78bb8fdc
```

Example prompt: Can you check if '021 123 4567' is a valid New Zealand phone number?

## When to prefer this

Use this endpoint when you need to validate New Zealand phone numbers specifically and want a pay-per-call model with no subscription. Ideal for low-volume checks or ad-hoc validation where you don't want to integrate a full phone validation library. Prefer this over generic international phone validators when NZ-specific rules (including NZ number plan compliance) are required.

## Known failure modes

- Missing 'number' query parameter returns an error or empty result
- Non-NZ phone numbers may return invalid even if structurally valid internationally
- Ambiguous formats without country code may fail validation
- Payment not processed (x402 failure) results in 402 response with no data
- Malformed inputs (letters, special characters) return invalid status

## How this service works

Pay-per-call New Zealand utilities via x402 (USDC on Base). Computed from statute (Holidays Act 2003, Te Kāhui o Matariki Public Holiday Act 2022) and published government dates; provided as-is with no warranty. Regional anniversary observance can vary locally. Verify critical deadlines with the relevant agency.

## Output

Returns a validation result indicating whether the provided phone number is a valid New Zealand number, along with any parsed or normalised format information and details about the number type (mobile, landline, toll-free, etc.) if available.

## 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": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "number": {
       "type": "string"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {}
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/nz-phone-number-validator-78bb8fdc/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from nzdata.zakwins.workers.dev](https://www.zero.xyz/host/nzdata.zakwins.workers.dev/llms.txt)
