CallerCheck

API docs

One request checks one phone number and returns JSON. Create a key in your dashboard under API keys.

Check a number

Send a POST to /v1/verify/phone with your key in the Authorization header. Any common format works: digits only, with punctuation, or with a leading +1.

curl https://callercheck.com/v1/verify/phone \
  -H "Authorization: Bearer cc_live_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"phone": "(732) 555-0142"}'

The response:

{
  "id": "chk_0mf3k2x1a9Q7cT2LpZ4wXy",
  "livemode": true,
  "input": "(732) 555-0142",
  "valid": true,
  "e164": "+17325550142",
  "national_format": "(732) 555-0142",
  "country": "US",
  "number_class": "geographic",
  "line_type": "wireless",
  "line_type_source": "block",
  "original_carrier": "Example Wireless",
  "ocn": "0000",
  "rate_center": "FREEHOLD",
  "state": "NJ",
  "county": "Monmouth",
  "metro": "New York-Newark-Jersey City",
  "latitude": 40.26,
  "longitude": -74.27,
  "time_zone": "Eastern",
  "observes_dst": true,
  "reason_codes": ["PHONE_WIRELESS"],
  "credits_used": 1
}

Live keys and test keys

Keys that start with cc_live_ return real data and use 1 credit per call. Keys that start with cc_test_ cost nothing. They check the format of the number for real, then fill the data fields with sample values, so you can build and test without spending credits.

A key is shown once, when you create it. Store it somewhere safe. If one leaks, revoke it in the dashboard and create a new one.

Response fields

FieldTypeMeaning
idstringID of this check. Fetch it again at /v1/checks/{id}.
livemodebooleanfalse when a test key was used. Test results are sample data.
inputstringThe value you sent.
validbooleantrue when the number is a valid US or Canadian number.
e164string or nullThe number in +1XXXXXXXXXX form.
national_formatstring or nullThe number as (XXX) XXX-XXXX.
countrystring or nullUS or CA.
number_classstringgeographic, toll_free, premium, fictional or unknown.
line_typestring or nullwireless, landline, voip, pager, toll_free or unknown. From block data, so it is the likely type.
line_type_sourcestring or nullblock today. live once current-carrier lookups are added.
original_carrierstring or nullThe carrier the block was issued to.
ocnstring or nullThat carrier's operating company number.
rate_centerstring or nullThe local exchange area the number is based in.
statestring or nullTwo-letter state or province.
countystring or nullCounty, where known.
metrostring or nullMetro area, where known.
latitude, longitudenumber or nullApproximate location of the exchange, not of the phone.
time_zonestring or nullTime zone of the exchange.
observes_dstboolean or nullWhether that area observes daylight saving time.
reason_codesarray of stringsStable codes that explain the result. See the list below.
credits_usednumberCredits charged for this call.

Reason codes

Reason codes do not change once published, so it is safe to write logic against them. New codes may be added over time.

CodeMeaning
PHONE_INVALID_FORMATThe input could not be read as a phone number.
PHONE_INVALID_NUMBERThe number is not a valid, assignable number.
PHONE_NOT_NANPThe number is outside the North American Numbering Plan.
PHONE_UNSUPPORTED_REGIONThe number is in a region this service does not cover yet.
PHONE_FICTIONALThe number is in a range reserved for fiction (555-0100 to 555-0199).
PHONE_TOLL_FREEThe number is toll-free (800, 833, 844, 855, 866, 877, 888).
PHONE_PREMIUM_RATEThe number is a premium-rate (900) number.
PHONE_PREFIX_UNKNOWNNo block-level record was found for this area code and prefix.
PHONE_WIRELESSThe number is likely wireless.
PHONE_LANDLINEThe number is likely a landline.
PHONE_VOIPThe number is likely VoIP.
PHONE_LINE_TYPE_UNKNOWNThe line type could not be determined.
PHONE_PORTEDThe number has been ported away from its original carrier.
PHONE_SPAM_REPORTEDSpam evidence was reported for this number.
PHONE_CNAM_UNAVAILABLENo caller name was available for this number.
VENDOR_UNAVAILABLEA live data source did not answer. The result may be partial.

Other endpoints

RequestWhat it does
GET /v1/checks/{id}Returns a check you made earlier. Free. The phone number itself is not stored, so input and e164 come back empty.
GET /v1/checks?limit=20Lists your most recent checks, newest first. Up to 100 at a time.
GET /v1/accountReturns your credit balance.

Errors

Errors come back as JSON with a code and a plain message.

{ "error": { "code": "insufficient_credits", "message": "Your balance is too low for this request." } }
StatusCodeWhen
400invalid_requestThe body is not JSON or has no phone value.
401unauthorizedThe key is missing, wrong or revoked.
402insufficient_creditsThe balance is too low. Nothing was charged.
422check_unavailableYou asked for a check that is not offered yet.

A number that is not valid is not an error. The request succeeds with "valid": false and a reason code.

List uploads

Lists are uploaded in the dashboard for now. The result file keeps your columns and adds these: cc_valid, cc_e164, cc_line_type, cc_original_carrier, cc_rate_center, cc_state, cc_county, cc_country, cc_time_zone, cc_reason_codes.

Fair use

Results describe phone numbers, not people. Do not use them for credit, employment, tenant or insurance decisions, and do not use CallerCheck to call or text people who have not agreed to it.