API documentation
????? ????? ???????? ?????
????? ???????????, ???????? ?? ???????? ?? ??? ????? ??????? ??????? ????
Content-Type
application-json
??????
domain
????????
get_price
?????? ????????
| ???????? ??? | ?????? | ????? | ?????? |
|---|---|---|---|
| domain | ???????? (3-60) | domain name | example.com |
| type | ???????? | ????? ??? ??????: ???????, ????????, ????????, ??? | register |
| year | ???????? (4) | ???????????/????????/???????? ???? ????? (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",
}






