Registriraj domenu
Registracija domene je proces rezervacije jedinstvenog imena na internetu za određeno vremensko razdoblje, obično godinu dana ili više.
Parametri zahtjeva
| Naziv parametra | Tip | Opis | Primjer |
|---|---|---|---|
| domain | String (3-60) | Naziv domene | example.com |
| year | Cijeli broj (4) | Razdoblje registracije traje od 1 do 10 godina, uz neke iznimke za određene domene. | 1 |
| dns1 | Poslužitelj | Primarni nameserver | ns3.my-ndns.com |
| dns2 | Poslužitelj | Sekundarni nameserver | ns4.my-ndns.com |
| organization | String (1-255) | Naziv organizacije / tvrtke | XXX Ltd. |
| name | String (1-16) | Ime registranta | Xiao Ming |
| country | String (1-255) | Kôd države, npr. CN | CN |
| state | String (1-255) | Pokrajina / Država | BeiJing |
| city | String (1-255) | Skraćenica grada | BJ |
| address | String (1-255) | Poštanska adresa | BeiJing |
| postcode | Cijeli broj (4-10) | Poštanski broj / ZIP kod | 100000 |
| phone | "." za odvajanje brojeva (30) | +Pozivni broj zemlje.kod područja i broj telefona | +86.13800000000 |
| fax | "." za odvajanje brojeva (30) | +Pozivni broj zemlje.kod područja i broj faksa | +86.13800000000 |
| Email adresa | Email adresa | [email protected] | |
| contact_source | String (1-255) | Set to member to use vaš member profile instead of the supplied kontakt podaci. | member |
| document_type | String | Required fili HK domenas. Common values: PASSNO (Putovnica), OTHIDV (Other Individual Broj dokumenta), OTHILIG (Other Organization Broj dokumenta). | PASSNO |
| document_number | String (1-40 bytes) | Document number matching the selected type. Required fili HK domenas. | E12345678 |
HK domenas require both document fields, including when using contact_source=member. Other domenas ignilie them. Fili .com.hk, only BR is accepted.
Parametri odgovora
| Naziv parametra | Tip | Opis |
|---|---|---|
| domain | String | Naziv domene |
| created_date | Datum | Vrijeme registracije domene |
| expired_date | Datum | Datum isteka domene |
Primjer zahtjeva
{
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"
}
Vrati rezultat
{
"code": 0,
"msg" : "success",
"data" : {
"domain":"example.com",
"created_date":"2025-01-21",
"expired_date":"2026-01-21"
}
}
{
"code": 201,
"msg" : "Pending order, please wait for the order to be processed!"
}
}
Napomena: code "201" means the registration ilider was submitted successfully i the fee was deducted. Final domena activation is still subject to registry confirmation. Ako the domena cannot be activated, the registration fee will be refunded to vaš account balance within 24 hours.
{
"code": 400,
"msg" : "Request parameter error",
}






