x402

Phone Normalize (x402)

Parse and normalize phone numbers to E.164 format. Detects country, carrier type, validates format. Uses libphonenumber.

get/x402/v2/phone-normalize

Request

  • Base URL: https://api.strale.io
  • URL: https://api.strale.io/x402/v2/phone-normalize
  • Auth: none required

Query parameters

phone_stringstring required

Phone number to normalize

default_countrystring

ISO country code (e.g. SE)

Response

Success

e164string
typestring
validboolean
country_codestring
national_formatstring
international_formatstring

Example response

{
  "e164": "+46701234567",
  "type": null,
  "input": "+46701234567",
  "valid": true,
  "is_possible": true,
  "calling_code": "+46",
  "country_code": "SE",
  "national_format": "070-123 45 67",
  "international_format": "+46 70 123 45 67"
}

Changes

No recorded changes to this operation across all 1 revision of this API.