API documentation
??????? ????????
??????? ?????????? ?????? ????????? ? ??????????? ?????? ?????? ????? ??????? ?????????, ????????? ??? ???? ??? ?????
Content-Type
application-json
?????????
domain
?????????????
register
??????????? ???????
| ???????? ????? | ????? | ?????????????? | ?????? |
|---|---|---|---|
| domain | ??? (3-60) | Domain ????? | example.com |
| year | ???????? ??? (4) | ???????? ??????? ????????? ? 1-?? 10 ????? ???? ????????????????? ???? ??????????? ?????? | 1 |
| dns1 | ?????? | ????????? ????? ?????? | ns3.my-ndns.com |
| dns2 | ?????? | ??????????? ?????? | ns4.my-ndns.com |
| organization | ??? (1-255) | ??????????????? / ??????????? ???????? | XXX Ltd. |
| name | ??? (1-16) | ???????? ????? | Xiao Ming |
| country | ??? (1-255) | ????? ???, ??????? CN | CN |
| state | ??? (1-255) | ???? / ?????????? | BeiJing |
| city | ??? (1-255) | ?????? ???? | BJ |
| address | ??? (1-255) | ???????? ????? | BeiJing |
| postcode | ???????? ??? (4-10) | ???????? ?????? / ??? ??? | 100000 |
| phone | ?.?` ????? ????????? ????? (30) | +????? ???.????? ??? ? ????????????? | +86.13800000000 |
| fax | ?.?` ????? ????????? ????? (30) | +????? ???, ????????? ??? ? ????? ????? | +86.13800000000 |
| ???????????? ????? | ???????????? ????? | [email protected] | |
| contact_source | ??? (1-255) | ??? source, if set to member, contact inf???mation will be the same as member inf???mation, ? other contact inf???mation will be ign???ed | member |
???????? ??????????
| ???????? ????? | ????? | ?????????????? |
|---|---|---|
| domain | ??? | Domain ????? |
| created_date | ??????? | Domain ???????? ??????? |
| expired_date | ??????? | Domain-? ???????????? |
??????? ???????
{
curl https://api.nicenic.net/v2/?category=domain&action=register&domain={domain}&year={year}&dns1={dns1}&dns2={dns2}&organization={organization}&name={name}&country={country}&state={state}&city={city}&address={address}&postcode={postcode}&phone={phone}&fax={fax}&email={email}&contact_source={contact_source}
-H "Authorization: username:api_secret"
-H "Content-Type: application/json"
}
??????????? ?????????
0 OK
????? ????????
{
"code": 0,
"msg" : "success",
"data" : {
"domain":"skwncks.com",
"created_date":"2025-01-21",
"expired_date":"2026-01-21"
}
}
400 ??? ???????
{
"code": 400,
"msg" : "Request parameter error",
}






