API documentation
Domain Pricing ???? ????
domain registration, renewal, ??? transfer operations ?? ??? ?????? ?? ??????? ???? ????
Content-Type
application-json
????
domain
???
get_price
??????? ?? ?????????
| ???????? ?? ??? | ??? | ????? | ???? |
|---|---|---|---|
| domain | ?????? (3-60) | Domain name | example.com |
| type | ?????? | domain name type: register, transfer, renew, all | register |
| year | ??? ???? (4) | registration/renewal/transfer period ????? ???? (1-10 ???) | 1 |
???? ?? ?????????
| ???????? ?? ??? | ??? | ????? |
|---|---|---|
| domain | ?????? | Domain name |
| type | ?????? | ????? ??? ?? ??? (?????/???????/?????) |
| currency | ?????? | ????? ?? ??? |
| price | ???? | ???? ?? ??? |
| is_premium | Boolean | ??? ????? ?????? ????? ?? (??? ????? ??? ?? ???) |
??????? ?? ????
{
curl https://api.nicenic.net/v2/?category=domain&action=get_price&domain={domain}&type={type}&year={year}
-H "Authorization: username:api_secret"
-H "Content-Type: application/json"
}
????? ???? ????
0 OK
?????? ????
{
"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 ??? ???????
{
"code": 400,
"msg" : "Request parameter error",
}






