Phone Numbersv4.1

Look up a phone number

GET/phone-numbers/lookup

Parses a phone number: its formats, country, numbering-plan type, and for a North American number, its area code's location. Free without enrich. With enrich, also looks the number up on the phone network for the data sets named, and deducts the lookup in real time from your organization's prepaid account credit: a charge for the lookup, which answers portability, plus one for each other data set named; see pricing. A number that isn't valid isn't looked up or billed. Requires an enterprise plan and positive account credit (402 insufficient_credit when balance is $0).

Pricing

Per number looked up with enrich, deducted in real time from your organization's prepaid account credit balance (top up manually or enable auto-recharge in Billing). A lookup without enrich, a number that isn't valid, and a lookup that fails aren't billed.

Data set Price per number What it answers
Any enriched lookup $0.0016 portability: whether and when the number was ported, its line type (mobile, fixed_line, voip, …), and its serving carrier
carrier +$0.0027 The carrier name and line type, and a mobile number's network codes (MCC/MNC)
caller_name +$0.0032 The caller ID (CNAM) name
enhanced_caller_name +$0.0213 The caller's name, and whether it's a business
caller_identity +$0.0469 The owner's name and postal address

For example, enrich=carrier,caller_name is $0.0075 per number: $0.0016 + $0.0027 + $0.0032.

Headers

AuthorizationRequiredstring

Your API key, sent as a bearer token: Authorization: Bearer <api_key>. Editing this stays in sync with the API key box on the right.

Bearer

Query parameters

numberRequiredstring

Phone number in E.164.

enrichoptionalLookupDataSet[]

Data sets to look the number up for, comma-separated; each is billed. Omit it for the free parse.

Returns

dataoptionalPhoneNumberLookup

A phone number parsed, and with enrich, looked up. A data set's field is present only when enrich named it, and null when the number wasn't looked up or the network had no answer for it.

inputRequiredstring

The number as given.

validRequiredboolean
erroroptionalstring

Why the number couldn't be parsed. Present only then.

possibleoptionalboolean
e164optionalstring
nationaloptionalstring
internationaloptionalstring
country_calling_codeoptionalstring
countryoptionalstring | null

ISO 3166-1 alpha-2.

national_numberoptionalstring
typeoptionalstring | null

The type by numbering plan, e.g. MOBILE, FIXED_LINE, FIXED_LINE_OR_MOBILE, TOLL_FREE.

locationoptionalobject | null

Where a North American number's exchange is.

cityoptionalstring
regionoptionalstring
region_nameoptionalstring
area_codeoptionalstring

North American numbers only.

exchangeoptionalstring

North American numbers only.

area_code_regionoptionalstring

North American numbers only, e.g. Chicago, IL.

portabilityoptionalobject | null
portedoptionalboolean | null

Whether the number was ported from the carrier it was issued by.

ported_dateoptionalstring | null
line_typeoptionalstring | null

e.g. mobile, fixed_line, voip, fixed_line_or_mobile.

lrnoptionalstring | null

Location Routing Number.

ocnoptionalstring | null

Operating Company Number of the serving carrier.

spidoptionalstring | null

Service provider ID of the serving carrier.

spid_carrier_nameoptionalstring | null
cityoptionalstring | null
stateoptionalstring | null
carrieroptionalobject | null
nameoptionalstring | null
normalized_nameoptionalstring | null

The carrier's brand, e.g. AT&T.

line_typeoptionalstring | null

e.g. mobile, fixed_line, voip.

mobile_country_codeoptionalstring | null

MCC; mobile numbers only.

mobile_network_codeoptionalstring | null

MNC; mobile numbers only.

caller_nameoptionalstring | null

The caller ID (CNAM) name.

enhanced_caller_nameoptionalobject | null
nameoptionalstring | null
entity_typeoptionalstring | null

e.g. business.

caller_identityoptionalobject | null
nameoptionalstring | null

The number's owner.

addressoptionalobject | null
street_line_1optionalstring | null
street_line_2optionalstring | null
cityoptionalstring | null
state_codeoptionalstring | null
postal_codeoptionalstring | null
zip4optionalstring | null
country_codeoptionalstring | null
confidence_scoreoptionalnumber | null

How sure the match of owner to number is, 0–100.

enriched_withoptionalLookupDataSet[]

The data sets the number was looked up and billed for; empty when it wasn't looked up. Present only with enrich.

enrichment_erroroptionalstring

Batch only: why the number's lookup failed (upstream_unavailable, lookup_rejected, telephony_unavailable). It isn't billed.

Response codes

200Lookup result
400The request was malformed — check the path, query parameters, and body.
401Your API key is missing or invalid. Pass it as a bearer token.
403Your API key isn't allowed to access this phone number (blocked key or plan limit).
422`invalid_enrich`: `enrich` named no data set, or one that isn't a data set; `details.allowed` lists them. `lookup_rejected`: the phone network refused to look the number up. Nothing is billed.
502`upstream_unavailable`: the phone network couldn't be reached, and nothing is billed. Retry with backoff.
503`telephony_unavailable`: enriched lookups aren't configured. Look up without `enrich`, or retry later.

Sends a live request with your values and shows the real response below. Your key is stored only in this browser.

Request
curl -X GET https://api.blooio.com/v4.1/phone-numbers/lookup?number=%2B15551234567&enrich=carrier%2Ccaller_name \
Response objectexample
{  "data": {    "input": "string",    "valid": false,    "error": "string",    "possible": false,    "e164": "string",    "national": "string",    "international": "string",    "country_calling_code": "US",    "country": "US",    "national_number": "string",    "type": "string",    "location": {      "city": "San Francisco",      "region": "string",      "region_name": "string"    },    "area_code": "string",    "exchange": "string",    "area_code_region": "string",    "portability": {      "ported": false,      "ported_date": "2025-01-15",      "line_type": "string",      "lrn": "string",      "ocn": "string",      "spid": "obj_a1b2c3d4",      "spid_carrier_name": "string",      "city": "San Francisco",      "state": "active"    },    "carrier": {      "name": "Jane Doe",      "normalized_name": "string",      "line_type": "string",      "mobile_country_code": "US",      "mobile_network_code": "string"    },    "caller_name": "string",    "enhanced_caller_name": {      "name": "Jane Doe",      "entity_type": "string"    },    "caller_identity": {      "name": "Jane Doe",      "address": {        "street_line_1": "string",        "street_line_2": "string",        "city": "San Francisco",        "state_code": "string",        "postal_code": "94105",        "zip4": "94105",        "country_code": "US"      },      "confidence_score": 0    },    "enriched_with": [      "portability"    ],    "enrichment_error": "string"  }}