utilpeek: look up a phone number prefix (country, line type, original network)
lookup_phone_prefixutilpeek: Look up a phone number prefix: country, line type and original network, with ambiguity. Returns look up a phone number prefix (0917, +63917, 0063917): country, line type, original network, time zones and E.164 prefix, with ambiguous and candidates when it spans networks; list + region lists a country's mobile prefixes by network. Input: prefix, optional region to read a national form such as 0917; or list: true with region and no prefix. Original range holder, not the current network (number portability); offline metadata; a national form without region lists candidate countries. Bad input is a 422 (not charged). Typically under 0.1 s. Price: USD 0.001. Free: 10 utilpeek calls per IP per UTC day. Tanod does not log or store the submitted text; it is processed in memory for this answer. Docs: https://tanod.dev/learn/phone-number-prefix-lookup-api.html
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| list | No | With `region` (and no prefix): return every mobile prefix of that country at the 4-digit national level (e.g. 0905, 0917), grouped by network. | |
| prefix | No | The leading digits of a number, in any form: 0917, 917, +63917, 0063917 or 63917 (digits with an optional leading + or 00; separators space - . ( ) are ignored). Without `region` a national form (0917) is read in every country and the reply lists the candidate `countries`. Omit with `list`. | |
| region | No | ISO 3166-1 alpha-2 country (PH, US, GB, ...): reads a national prefix and selects the country for `list`. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | ||
| type | No | ||
| error | No | Only on an error result: an object {code, message}, or the reason string of an x402 PaymentRequired object. | |
| level | No | ||
| mixed | No | ||
| probe | No | ||
| blocks | No | ||
| detail | No | ||
| region | No | ||
| source | No | ||
| carrier | No | ||
| country | No | ||
| regions | No | ||
| networks | No | ||
| possible | No | ||
| ambiguity | No | ||
| ambiguous | No | ||
| countries | No | ||
| timezones | No | ||
| candidates | No | ||
| other_share | No | ||
| prefix_e164 | No | ||
| trunk_prefix | No | ||
| interpreted_as | No | ||
| total_prefixes | No | ||
| countries_count | No | ||
| country_calling_code | No |