Domen Ro‘yxatdan O‘tkazish
Domen nomini ro‘yxatdan o‘tkazish — Internetda noyob nomni ma’lum vaqtga, odatda bir yil yoki undan ko‘proq muddatga band qilish jarayonidir
Content-Type
application/json
toifa
domain
harakat
register
So‘rov parametrlari
| Parametr nomi | Turi | Tavsif | Misol |
|---|---|---|---|
| domain | Satrlik (3-60) | Domen nomi | example.com |
| year | Butun son (4) | Ro‘yxatdan o‘tish muddati 1 yildan 10 yilgacha bo‘ladi, ayrim domenlar uchun istisnolar mavjud. | 1 |
| dns1 | Server | Asosiy nameserver | ns3.my-ndns.com |
| dns2 | Server | Zaxira nameserver | ns4.my-ndns.com |
| organization | Satrlik (1-255) | Tashkilot / Kompaniya nomi | XXX Ltd. |
| name | Satrlik (1-16) | Ro‘yxatdan o‘tkazgan shaxsning ismi | Xiao Ming |
| country | Satrlik (1-255) | Masalan, CN kabi davlat kodi | CN |
| state | Satrlik (1-255) | Viloyat / Shtat | BeiJing |
| city | Satrlik (1-255) | Shahar qisqartmasi | BJ |
| address | Satrlik (1-255) | Pochta manzili | BeiJing |
| postcode | Butun son (4-10) | Pochta indeksi / Zip kodi | 100000 |
| phone | Raqamlarni ajratish uchun "." (30) | +Davlat kodi.hudud kodi va telefon raqami | +86.13800000000 |
| fax | Raqamlarni ajratish uchun "." (30) | +Davlat kodi.hudud kodi va faks raqami | +86.13800000000 |
| Elektron pochta manzili | Elektron pochta manzili | [email protected] | |
| contact_source | Satrlik (1-255) | Aloqa manbasi, agar a\'zo sifatida belgilansa, aloqa ma\'lumotlari a\'zo ma\'lumotlari bilan bir xil bo\'ladi va boshqa aloqa ma\'lumotlari inobatga olinmaydi. | member |
Javob parametrlar
| Parametr nomi | Turi | Tavsif |
|---|---|---|
| domain | Satrlik | Domen nomi |
| created_date | Sana | Domen ro‘yxatga olish vaqti |
| expired_date | Sana | Domen amal qilish muddati tugash sanasi |
So‘rov namunasi
{
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"
}
Natijani qaytarish
0 OK
Muvaffaqiyatli javob
{
"code": 0,
"msg" : "success",
"data" : {
"domain":"example.com",
"created_date":"2025-01-21",
"expired_date":"2026-01-21"
}
}
201 Kutilmoqda
Kutilmoqda yokider
{
"code": 201,
"msg" : "Pending order, please wait for the order to be processed!"
}
}
Eslatma: code "201" means the registration yokider was submitted successfully va the fee was deducted. Final domain activation is still subject to registry confirmation. Agar the domain cannot be activated, the registration fee will be refunded to sizning account balance within 24 hours.
400 Noto‘g‘ri so‘rov
{
"code": 400,
"msg" : "Request parameter error",
}






