cURL
curl "https://api.ruseo.cn/api/domainprice?registrar=aliyun&domain=com"
查询指定注册商的域名注册/续费/转入价格,支持70+注册商
https://api.ruseo.cn/api/domainprice
接口调用前需要确认的核心配置。
/api/domainpricedomainprice必填参数必须传入,示例值可直接用于联调。
免费API不强制要求API Key,但如果您希望统计个人调用次数,请在请求时附加参数 key=您的API_KEY。
注册账号后即可获得API Key。
| 参数名 | 必填 | 类型 | 说明 | 示例值 |
|---|---|---|---|---|
key |
否 | string | 可选参数:携带此参数可统计您的个人调用次数。请注册账号获取API Key。 | YOUR_API_KEY |
registrar |
是 | string | 注册商代码 | aliyun |
domain |
是 | string | 域名后缀 | com |
优先使用示例地址测试请求参数是否正确。
https://api.ruseo.cn/api/domainprice?registrar=aliyun&domain=com
curl "https://api.ruseo.cn/api/domainprice?registrar=aliyun&domain=com"
$url = 'https://api.ruseo.cn/api/domainprice?registrar=aliyun&domain=com';
$response = file_get_contents($url);
$data = json_decode($response, true);
fetch('https://api.ruseo.cn/api/domainprice?registrar=aliyun&domain=com')
.then(res => res.json())
.then(data => console.log(data));
实际返回内容以接口脚本处理结果为准。
{
"code": 0,
"msg": "success",
"data": {
"route": "domainprice",
"example": true
}
}
| 参数名 | 类型 | 说明 | 示例值 |
|---|---|---|---|
success |
boolean | 是否成功 | true |
registrar |
string | 注册商代码 | aliyun |
registrar_name |
string | 注册商名称 | 阿里云 |
registrar_web |
string | 注册商官网 | https://wanwang.aliyun.com/ |
domain |
string | 域名后缀 | com |
currency |
string | 货币代码 | cny |
currency_name |
string | 货币名称 | 元 |
currency_type |
string | 货币类型 | 人民币 |
new_price |
number | 新注册价 | 83 |
renew_price |
number | 续费价 | 90 |
transfer_price |
number | 转入价 | 80 |
updated_time |
string | 更新时间 | 2025-01-01 14:47:23 |
点击左侧“发送请求”查看结果...