# Phone Number Carrier & Line Type Lookup (libphonenumber)

> Phone Number Carrier & Line Type Lookup (libphonenumber) is a paid API for AI agents from api.fadeandco.workers.dev, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-29).

Parses an international phone number and returns its country, line type, formatted variants, and originally-allocated carrier using Google's libphonenumber metadata — no live HLR query.

## Facts

- Endpoint: GET https://api.fadeandco.workers.dev/api/agent-intel/phone-carrier-hlr-lookup?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-29
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/phone-number-carrier-line-type-lookup-libphonenumber-40a50588
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_xzOrSpTgE8FaWtKWic2xQ

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 phone-number-carrier-line-type-lookup-libphonenumber-40a50588
```

Example prompt: Can you look up +905321234567 and tell me what country it's from, whether it's a mobile or landline number, and which carrier was originally assigned to that number range?

## When to prefer this

Choose this endpoint when you need fast, offline phone number classification — country, line type, and original carrier — from libphonenumber metadata, without needing live network status or real-time HLR queries. Ideal for pre-send SMS channel validation, fraud screening of VoIP/toll-free numbers at signup, and CRM phone normalization. Prefer it over live HLR services when cost, latency, or privacy constraints make real-time carrier lookups undesirable, and when knowing whether a number is active or ported is not required.

## Known failure modes

- Invalid or unparseable phone number returns valid:false with no carrier or line type data
- Missing required 'number' query parameter returns an error response
- Numbers from regions without libphonenumber metadata may return incomplete carrier or line type data
- Ported numbers will show the original range carrier, not the current carrier — this is by design and noted in the response
- Premium/toll-free/pager classifications may vary by region due to metadata completeness

## How this service works

Parses an international phone number (E.164), checks it against Google's open libphonenumber metadata, and returns the country, line type (mobile, fixed line, fixed-or-mobile, VoIP, toll free, premium, pager and more), E.164/international/national formats and the carrier that the number range was originally allocated to. Not a live HLR query: ported numbers keep the original carrier and active/inactive status is not checked.

## Output

A JSON object containing: valid flag, E.164/international/national formatted phone strings, region code (e.g. TR), country calling code (e.g. 90), national number, line type (MOBILE/FIXED_LINE/VOIP/TOLL_FREE/PREMIUM_RATE/PAGER/FIXED_LINE_OR_MOBILE), carrier name, carrier prefix, number portability note, data source URL, and a timestamp. Includes a prominent note that this is offline range data and cannot detect porting or active/inactive status.

## 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",
     "required": [
      "number"
     ],
     "properties": {
      "number": {
       "type": "string",
       "description": "Phone number in international form with country code, e.g. +905321234567 or 00442079460000"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "e164": "+905321234567",
  "note": "Offline range data (libphonenumber), not a live HLR lookup: it cannot tell whether the line is active or ported.",
  "input": "+905321234567",
  "valid": true,
  "region": "TR",
  "source": "https://raw.githubusercontent.com/google/libphonenumber/master/resources/PhoneNumberMetadata.xml",
  "carrier": "Turkcell",
  "formats": {
   "e164": "+905321234567",
   "national": "0532 123 45 67",
   "international": "+90 532 123 45 67"
  },
  "lineType": "MOBILE",
  "checkedAt": "2026-10-23T09:35:22.990Z",
  "carrierPrefix": "+9053",
  "nationalNumber": "5321234567",
  "numberPortability": "Region allows porting: the carrier is the original range holder and may have changed.",
  "countryCallingCode": 90
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/phone-number-carrier-line-type-lookup-libphonenumber-40a50588/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.fadeandco.workers.dev](https://www.zero.xyz/host/api.fadeandco.workers.dev/llms.txt)
