Misc

Phone Number Location Lookup

0calls
2 credits / call

Want to know where a phone number is from, and which carrier it belongs to? This endpoint gives you the answer.

GET
uapis.cn
/api/v1/misc/phoneinfo
Query parameters
1
phone
string
required

The 11-digit mainland China mobile number to look up.

Overview

Provide a mainland China phone number and the endpoint returns its registered location (province and city), the carrier (China Mobile, China Unicom, or China Telecom), and the landline area code of that city (area_code).

Query parameters

phone
stringrequired

The 11-digit mainland China mobile number to look up.

Response

200 / OK

Lookup succeeded. Returns the registered location and carrier for the number.

JSON
{
  "city": "深圳",
  "province": "广东",
  // Carrier name (returned in Chinese, e.g. 移动 / 联通 / 电信).
  "sp": "联通",
  // Landline area code of the registered city, as a string with the leading zero (e.g. `010`, `0755`). Municipalities return Beijing `010`, Shanghai `021`, Tianjin `022`, Chongqing `023`. Returns an empty string for Hong Kong, Macau, Taiwan, special number ranges, or unrecognized cities.
  "area_code": "0755"
}

400 / Bad Request

Invalid request parameters. Check that you supplied the phone parameter and that it is a valid 11-digit mobile number.

JSON
{
  "code": "INVALID_ARGUMENT",
  "details": {},
  "message": "Missing or invalid 'phone' parameter."
}

500 / Internal Server Error

Lookup failed. The phone number location data may be temporarily unavailable — please try again later.

JSON
{
  "code": "INTERNAL_SERVER_ERROR",
  "details": {},
  "message": "Failed to query phone information."
}