validate_phone_number
Validate and inspect a phone number with libphonenumber: whether it is valid (a real, allocated number) and/or possible (right length), its country, calling code, line type (mobile / landline / VoIP / toll-free / …) and every standard format (E.164, international, national) plus a wa.me link. Runs locally and offline. Does NOT check whether the number is registered on WhatsApp. There is no such API here.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| phone | Yes | The phone number to validate. International format with a leading "+" is best; otherwise also pass `country`. | |
| country | No | ISO 3166-1 alpha-2 country code (e.g. "GB", "US") assumed when the number has no country code. Optional. |