How each product works
How to use Carrier Lookup
What Carrier Lookup takes in, which fields it returns and how credits are charged for each lookup.
What it does
The carrier originally assigned a US number block: company name, operating company number (OCN), rate center and state, from the public NANPA central office code and thousands-block reports, with the report date. Porting is not reflected (ported: unknown), so a number moved to another carrier still shows its original one. NANPA data has no carrier category, so line type is only a hint from the carrier name. Canada and the Caribbean are not covered.
What you send
Send these fields in the JSON body of the request.
| Field | Type | Required | Limits |
|---|---|---|---|
| phone | string | Required | up to 64 characters |
Request fields for Carrier Lookup
What you get back
The data object of a successful response carries these fields. Every response also lists its sources, the credits_charged and whether it was a cache_hit.
Each field is described in the API reference.
| Field | Type |
|---|---|
| phone_e164 | string |
| npa_nxx_block | object |
| original_carrier | object |
| rate_center | string |
| state | string |
| assignment_level | "thousands_block" or "central_office_code" |
| code_holder | object |
| in_service | boolean |
| assigned_since | string |
| line_type | "mobile" or "unknown" |
| line_type_basis | string |
| ported | string |
| data_date | string |
| blocks_data_date | string |
| notes | string |
Response fields for Carrier Lookup
What it costs
1 credit per lookup (numbers outside the covered numbering plan areas are free).
| Case | Charge |
|---|---|
| Found | 1 credit |
| Nothing found | 0 credits |
| Repeat inside 7 days | 0 credits |
| Errors and invalid requests | 0 credits |
What each outcome costs
Run it
You can try it without an account in the free tool. The free tools share a limit per visitor.
From code, send a POST request to https://YOUR_API_HOST/v1/carrier-lookup with your API key.
curl -X POST https://YOUR_API_HOST/v1/carrier-lookup \
-H "Authorization: Bearer $LOOKVALID_API_KEY" \
-H "Content-Type: application/json" \
-d '{"phone":"+12024561111"}'
A request to Carrier Lookup
Full parameters and response fields are in the API reference. To run a list of values, use a bulk CSV job.
Good to know
- A repeat of the same lookup within 7 days is served from your cache and costs 0 credits.
- When the lookup finds nothing it returns
found: falseand costs 0 credits. - Invalid input and errors are never charged.
- The API allows 200 requests per 10 seconds per key.
Related
Still stuck? Write to hello@lookvalid.com.