API documentation
Get Domain Pricing
Retrieve pricing information for domain registration, renewal, and transfer operations
Content-Type
application-json
category
domain
action
get_price
Request parameters
| Parameter Name | Type | Describe | Example |
|---|---|---|---|
| domain | String (3-60) | Domain name | example.com |
| type | String | Domain name type: register, transfer, renew, all | register |
| year | Integer (4) | Choose the registration/renewal/transfer period (1-10 years) | 1 |
Response parameters
| Parameter Name | Type | Describe |
|---|---|---|
| domain | String | Domain name |
| type | String | Domain name type (register/transfer/renew) |
| currency | String | Currency type |
| price | Number | Price amount |
| is_premium | Boolean | Whether the domain is a premium domain (only for register type) |
Request Example
{
curl http://api.www.unionroom.cn/v2/?category=domain&action=get_price&domain={domain}&type={type}&year={year}
-H "Authorization: username:api_secret"
-H "Content-Type: application/json"
}
Return result
0 OK
Successful response
{
"code": 0,
"msg" : "success",
"data" : {
[
{
"domain": "example.com",
"type": "register",
"currency": "USD",
"price": 15.99,
"is_premium": false
},
{
"domain": "example.com",
"type": "renew",
"currency": "USD",
"price": 15.99
}
]
}
}
400 Bad Request
{
"code": 400,
"msg" : "Request parameter error",
}






