列出所有域名
获取在您的账户下注册的所有域名列表 。
查询参数
参数
类型
必需的
说明说明
status
string
否 无
Filter by status: active, pending, expired, locked
search
string
否 无
按名称搜索域名
示例请求
curl -X GET "https://admin.vps.org/api/v1/domains/" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Content-Type: application/json"
复制复制副本
import requests
url = "https://admin.vps.org/api/v1/domains/"
headers = {
"Authorization": "Bearer YOUR_API_TOKEN",
"Content-Type": "application/json"
}
response = requests.get(url, headers=headers)
print(response.json())
复制复制副本
const response = await fetch('https://admin.vps.org/api/v1/domains/', {
method: 'GET',
headers: {
'Authorization': 'Bearer YOUR_API_TOKEN',
'Content-Type': 'application/json'
}
});
const domains = await response.json();
console.log(domains);
复制复制副本
示例回复
{
"count": 3,
"results": [
{
"id": 101,
"domain_name": "example.com",
"status": "active",
"registration_date": "2023-01-15T10:30:00Z",
"expiration_date": "2026-01-15T10:30:00Z",
"auto_renew": true,
"locked": true,
"nameservers": [
"ns1.vps.org",
"ns2.vps.org"
],
"privacy_protection": true,
"dns_managed_by": "vps.org"
},
{
"id": 102,
"domain_name": "myapp.io",
"status": "active",
"registration_date": "2024-06-20T14:15:00Z",
"expiration_date": "2025-06-20T14:15:00Z",
"auto_renew": false,
"locked": false,
"nameservers": [
"ns1.cloudflare.com",
"ns2.cloudflare.com"
],
"privacy_protection": false,
"dns_managed_by": "external"
}
]
}
响应状态码
200
已成功检索到域名列表
401
未授权 - 身份验证令牌无效或缺失
注册新域名
注册新域名。 注册前应检查域名是否可用 。
请求体参数
参数
类型
必需的
说明说明
domain_name
string
是的
Domain name to register (e.g., "example.com")
years
integer
否 无
Registration period in years (1-10, default: 1)
auto_renew
boolean
否 无
Enable automatic renewal (default: true)
privacy_protection
boolean
否 无
Enable WHOIS privacy protection (default: true)
nameservers
array
否 无
Custom nameservers (default: VPS.org nameservers)
示例请求
cURL
Python
JavaScript
PHP
curl -X POST "https://admin.vps.org/api/v1/domains/" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"domain_name": "mynewdomain.com",
"years": 2,
"auto_renew": true,
"privacy_protection": true
}'
复制复制副本
import requests
url = "https://admin.vps.org/api/v1/domains/"
headers = {
"Authorization": "Bearer YOUR_API_TOKEN",
"Content-Type": "application/json"
}
data = {
"domain_name": "mynewdomain.com",
"years": 2,
"auto_renew": True,
"privacy_protection": True
}
response = requests.post(url, headers=headers, json=data)
print(response.json())
复制复制副本
const response = await fetch('https://admin.vps.org/api/v1/domains/', {
method: 'POST',
headers: {
'Authorization': 'Bearer YOUR_API_TOKEN',
'Content-Type': 'application/json'
},
body: JSON.stringify({
domain_name: 'mynewdomain.com',
years: 2,
auto_renew: true,
privacy_protection: true
})
});
const domain = await response.json();
console.log(domain);
复制复制副本
$data = [
'domain_name' => 'mynewdomain.com',
'years' => 2,
'auto_renew' => true,
'privacy_protection' => true
];
$ch = curl_init('https://admin.vps.org/api/v1/domains/');
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($data));
curl_setopt($ch, CURLOPT_HTTPHEADER, [
'Authorization: Bearer YOUR_API_TOKEN',
'Content-Type: application/json'
]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
$domain = json_decode($response, true);
curl_close($ch);
复制复制副本
示例回复
{
"id": 103,
"domain_name": "mynewdomain.com",
"status": "pending",
"registration_date": "2026-01-16T16:00:00Z",
"expiration_date": "2028-01-16T16:00:00Z",
"auto_renew": true,
"locked": true,
"nameservers": [
"ns1.vps.org",
"ns2.vps.org"
],
"privacy_protection": true,
"dns_managed_by": "vps.org",
"total_cost": 24.98,
"message": "Domain registration initiated. Processing may take 5-10 minutes."
}
响应状态码
201
Domain registration initiated successfully
400
Bad Request - Invalid domain name or domain already registered
401
未授权 - 身份验证令牌无效或缺失
402
Payment Required - Insufficient account balance
注: Domain registration is not instant. Status will change from pending to active within 5-10 minutes. You'll receive an email confirmation when registration completes.
Getc 域域细节
获取特定领域的详细信息 。
路径参数
参数
类型
必需的
说明说明
domain_id
integer
是的
Unique domain ID
示例请求
curl -X GET "https://admin.vps.org/api/v1/domains/101/" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Content-Type: application/json"
复制复制副本
import requests
domain_id = 101
url = f"https://admin.vps.org/api/v1/domains/{domain_id}/"
headers = {
"Authorization": "Bearer YOUR_API_TOKEN",
"Content-Type": "application/json"
}
response = requests.get(url, headers=headers)
print(response.json())
复制复制副本
const domainId = 101;
const response = await fetch(`https://admin.vps.org/api/v1/domains/${domainId}/`, {
method: 'GET',
headers: {
'Authorization': 'Bearer YOUR_API_TOKEN',
'Content-Type': 'application/json'
}
});
const domain = await response.json();
console.log(domain);
复制复制副本
示例回复
{
"id": 101,
"domain_name": "example.com",
"status": "active",
"registration_date": "2023-01-15T10:30:00Z",
"expiration_date": "2026-01-15T10:30:00Z",
"auto_renew": true,
"locked": true,
"nameservers": [
"ns1.vps.org",
"ns2.vps.org"
],
"privacy_protection": true,
"dns_managed_by": "vps.org",
"registrar": "VPS.org",
"days_until_expiration": 730,
"whois_info": {
"registrant": "Privacy Protected",
"admin_contact": "Privacy Protected",
"tech_contact": "Privacy Protected",
"created_date": "2023-01-15",
"updated_date": "2025-12-20"
},
"dns_records_count": 12
}
响应状态码
200
Successfully retrieved domain details
401
未授权 - 身份验证令牌无效或缺失
404
未找到 - 域名不存在
更新域域设置
更新域配置, 如自动更新、 命名器和隐私设置 。
路径参数
参数
类型
必需的
说明说明
domain_id
integer
是的
Unique domain ID
请求体参数
参数
类型
必需的
说明说明
auto_renew
boolean
否 无
Enable or disable automatic renewal
privacy_protection
boolean
否 无
Enable or disable WHOIS privacy
nameservers
array
否 无
Update nameservers (2-4 nameservers required)
locked
boolean
否 无
Lock or unlock domain to prevent transfers
示例请求
curl -X PUT "https://admin.vps.org/api/v1/domains/101/" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"auto_renew": false,
"nameservers": [
"ns1.cloudflare.com",
"ns2.cloudflare.com"
]
}'
复制复制副本
import requests
domain_id = 101
url = f"https://admin.vps.org/api/v1/domains/{domain_id}/"
headers = {
"Authorization": "Bearer YOUR_API_TOKEN",
"Content-Type": "application/json"
}
data = {
"auto_renew": False,
"nameservers": [
"ns1.cloudflare.com",
"ns2.cloudflare.com"
]
}
response = requests.put(url, headers=headers, json=data)
print(response.json())
复制复制副本
const domainId = 101;
const response = await fetch(`https://admin.vps.org/api/v1/domains/${domainId}/`, {
method: 'PUT',
headers: {
'Authorization': 'Bearer YOUR_API_TOKEN',
'Content-Type': 'application/json'
},
body: JSON.stringify({
auto_renew: false,
nameservers: [
'ns1.cloudflare.com',
'ns2.cloudflare.com'
]
})
});
const domain = await response.json();
console.log(domain);
复制复制副本
示例回复
{
"id": 101,
"domain_name": "example.com",
"status": "active",
"auto_renew": false,
"nameservers": [
"ns1.cloudflare.com",
"ns2.cloudflare.com"
],
"privacy_protection": true,
"locked": true,
"message": "Domain settings updated successfully. Nameserver changes may take up to 24 hours to propagate."
}
响应状态码
200
Domain updated successfully
400
Bad Request - Invalid parameters
401
未授权 - 身份验证令牌无效或缺失
404
未找到 - 域名不存在
删除域名
从您的账户中删除一个域名。 这不会取消域名注册 - 它只会从您的 VPS.org 账户管理中删除它 。
路径参数
参数
类型
必需的
说明说明
domain_id
integer
是的
Unique domain ID
示例请求
curl -X DELETE "https://admin.vps.org/api/v1/domains/101/" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Content-Type: application/json"
复制复制副本
import requests
domain_id = 101
url = f"https://admin.vps.org/api/v1/domains/{domain_id}/"
headers = {
"Authorization": "Bearer YOUR_API_TOKEN",
"Content-Type": "application/json"
}
response = requests.delete(url, headers=headers)
print(response.status_code)
复制复制副本
const domainId = 101;
const response = await fetch(`https://admin.vps.org/api/v1/domains/${domainId}/`, {
method: 'DELETE',
headers: {
'Authorization': 'Bearer YOUR_API_TOKEN',
'Content-Type': 'application/json'
}
});
console.log(response.status);
复制复制副本
响应状态码
204
Domain removed from account successfully
401
未授权 - 身份验证令牌无效或缺失
404
未找到 - 域名不存在
Important: Deleting a domain from your VPS.org account does NOT cancel the registration. The domain will continue to be registered and will auto-renew if enabled. To cancel a domain registration, disable auto-renewal and let it expire.
转让域域域
启动从另一个登记员到VPS.org的域名传输。
路径参数
参数
类型
必需的
说明说明
domain_id
integer
是的
Unique domain ID
请求体参数
参数
类型
必需的
说明说明
auth_code
string
是的
EPP/Authorization code from current registrar
auto_renew
boolean
否 无
Enable auto-renewal after transfer (default: true)
示例请求
curl -X POST "https://admin.vps.org/api/v1/domains/101/transfer/" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"auth_code": "Xy9Kl2Mn#4pQ",
"auto_renew": true
}'
复制复制副本
import requests
domain_id = 101
url = f"https://admin.vps.org/api/v1/domains/{domain_id}/transfer/"
headers = {
"Authorization": "Bearer YOUR_API_TOKEN",
"Content-Type": "application/json"
}
data = {
"auth_code": "Xy9Kl2Mn#4pQ",
"auto_renew": True
}
response = requests.post(url, headers=headers, json=data)
print(response.json())
复制复制副本
const domainId = 101;
const response = await fetch(`https://admin.vps.org/api/v1/domains/${domainId}/transfer/`, {
method: 'POST',
headers: {
'Authorization': 'Bearer YOUR_API_TOKEN',
'Content-Type': 'application/json'
},
body: JSON.stringify({
auth_code: 'Xy9Kl2Mn#4pQ',
auto_renew: true
})
});
const transfer = await response.json();
console.log(transfer);
复制复制副本
示例回复
{
"id": 101,
"domain_name": "example.com",
"transfer_status": "pending",
"transfer_initiated_at": "2026-01-16T16:30:00Z",
"estimated_completion": "2026-01-23T16:30:00Z",
"message": "Domain transfer initiated. You should receive a confirmation email from your current registrar. Transfer typically completes within 5-7 days.",
"next_steps": [
"Check email for transfer authorization request",
"Approve transfer with current registrar",
"Wait for transfer to complete (5-7 days)",
"Domain will be automatically renewed for 1 year upon completion"
]
}
响应状态码
200
Transfer initiated successfully
400
Bad Request - Invalid auth code or domain not eligible for transfer
401
未授权 - 身份验证令牌无效或缺失
404
未找到 - 域名不存在
402
Payment Required - Insufficient account balance for transfer fee
转让要求:
必须打开当前登记员的域名
域域必须至少60天旧
需要有效的EPP/授权代码
WHOIS 电子邮件必须可调阅批准
转账包括1年续期(适用收费)
域定价
人 人 人 人 人 人 人
TLD 远程终端
登记(1年)
续 续 续 续
转让转让
.com
$12.99
$12.99
$12.99
.net
$14.99
$14.99
$14.99
.org
$13.99
$13.99
$13.99
.io
$39.99
$39.99
$39.99
.dev
$14.99
$14.99
$14.99
.app
$14.99
$14.99
$14.99
.co
$24.99
$24.99
$24.99
包含功能
✓ Free WHIS 隐私保护
✓ Free DNS 管理
✓ Feremail 转发
✓ 自由域域转发
✓ 闲域域锁定
✓ 24/7 24/7支助
✓ 易易域管理
✓ 自动更新选项
域管理最佳做法
安全安全安全安全安全安全安全安全
启用域锁定 : 防止未经许可的转让
启用隐私保护 : 隐藏 WHOIS 的个人信息
使用强密码 : 保护您的 VPS.org 账户
启用 2FA : 在您的账户中添加额外安全
监视器失效日期 : 设置自动更新或日历提醒
配置配置配置
DNS 设置 : 指向VPS.org以方便管理
自动更新 : 启用以防止意外域域域过期失效
联系信息: 随时更新WHOIS联系信息
备份 DNS : 考虑为冗余提供二级 DNS 服务
转帐
60天锁定 : 域域不能在登记或先前转让后60天内转让
解锁域 : 转让前必须先在目前的登记员处解锁
获取 Auth 代码 : 要求目前的登记员提供EPP/授权守则
检查电子邮件 : 您在转账过程中会收到批准邮件
计划前: 转让可能需要5至7天才能完成