接口地址
http://api.guiguiya.com/api/phone_api.php?phone=13800138000
接口状态
异常 (HTTP 404) 上次检测:2026-05-13 07:07:28
📝 接口描述
1. 查询手机号归属地(默认):/phone_api.php?phone=13800138000\\\
\\\
2. 获取详细信息:/phone_api.php?phone=13800138000&detail=1\\\
\\\
3. JSONP调用:/phone_api.php?phone=13800138000&callback=jsonpCallback\\\
\\\
4. 批量查询(最多10个):/phone_api.php?phones=13800138000,13912345678
📋 请求示例
【基础请求】
GET http://api.guiguiya.com/api/phone_api.php?phone=13800138000
【请求头】
Content-Type: application/json
Accept: application/json
【参数说明】
GET请求参数通过URL传递:
http://api.guiguiya.com/api/phone_api.php?phone=13800138000?参数名1=参数值1&参数名2=参数值2
【调用示例】
# cURL
curl -X GET 'http://api.guiguiya.com/api/phone_api.php?phone=13800138000' \
-H 'Content-Type: application/json'
# JavaScript (Fetch)
fetch('http://api.guiguiya.com/api/phone_api.php?phone=13800138000', {
method: 'GET',
headers: { 'Content-Type': 'application/json' }
})
.then(res => res.json())
.then(data => console.log(data));
# PHP (cURL)
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'http://api.guiguiya.com/api/phone_api.php?phone=13800138000');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'GET');
curl_setopt($ch, CURLOPT_HTTPHEADER, ['Content-Type: application/json']);
$response = curl_exec($ch);
curl_close($ch);
echo $response;
?>
# Python (requests)
import requests
url = 'http://api.guiguiya.com/api/phone_api.php?phone=13800138000'
response = requests.get(url)
print(response.json())
📤 真实返回示例
接口不存在
🔧 JavaScript (Fetch)
fetch('/api/proxy.php?url=http%3A%2F%2Fapi.guiguiya.com%2Fapi%2Fphone_api.php%3Fphone%3D13800138000', {
method: 'GET',
headers: { 'Content-Type': 'application/json' }
})
.then(res => res.json())
.then(data => console.log(data))
.catch(err => console.error(err));
🐘 PHP (cURL)
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'http://api.guiguiya.com/api/phone_api.php?phone=13800138000');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'GET');
$response = curl_exec($ch);
curl_close($ch);
echo $response;
?>
📡 Python (requests)
import requests
url = 'http://api.guiguiya.com/api/phone_api.php?phone=13800138000'
response = requests.request('GET', url)
print(response.json())