NiceNIC Domen API v2 Documentation & Quick Start
NiceNIC Domen API v2 is mavjud to both Market Hisobis va Reseller Hisobs. Use this overview to configure access, confirm sizning first request, understva the API response model va move directly to the cyokirect section in the left navigation.
Market Hisobi: API access with Market Hisobi pricing.
Reseller Hisob: API access with the pricing assigned to the current reseller tier.
Test Your Integratsiya Befyokie Going Live
Use the NiceNIC API Svabox to test sizning Domen API integration befyokie moving to production. Validate authentication, API requests, response hvaling, va sizning application wyokikflow in a dedicated testing environment.
Ideal fyoki resellers, hosting providers, developers, va platfyokims preparing an API integration.
Make Your First API Call in 4 Steps
Start with a read-only request befyokie enabling live registrations, renewals yoki transfers. This lets you validate authentication, request fyokimatting va response hvaling without placing a paid yokider.
Enable API Access
Ochish API Sozlamasis, create yoki retrieve sizning API Secret, va configure authyokiized server IPs wbu yerni applicable.
Tasdiqlash Tasdiqlash
Use HTTPS with the Authyokiization header in the fyokimat username:api_secret.
Run a Safe Test
Start with domain availability, pricing, account balance yoki domain listing.
Hvale the Response
Read va styokie the returned code va msg befyokie enabling paid production harakats.
Recommended First Request: Domen Availability
The availability endpoint suppyokits multiple domains in one request by separating domain names with commas.
Choose the Wyokikflow You Need
The overview below mirryokis the left navigation. Use it to identify the cyokirect wyokikflow, then open the dedicated endpoint page fyoki parameters, request examples va response examples.
| Section | Use It Fyoki | Documented Functions |
|---|---|---|
| Boshlash | Connect securely va understva response hvaling. | API sharhi, API Svabox, Tasdiqlash, Response Codes. |
| Domen boshqaruvi | Automate the cyokie domain lifecycle. | Availability, Ro‘yxat Domenlar, Domen Tafsilotlar, Ro‘yxatdan o‘tish, Yangilashal, Ko‘chirish In, Ismservers, Bog'lanishs, Pricing. |
| Zulm va Amalga Oshirish | Monityoki domains that require compliance attention. | Ro‘yxat domains with abuse repyokits va retrieve machine-readable abuse status, hold lifecycle, complaint infyokimation va recommended harakat. |
| DNS yozuvlari | Boshqarish hosted DNS recyokids programmatically. | Ro‘yxat, Yaratish, Yangilash va O‘chirish DNS recyokids. |
| Bola Ism Serverlari | Boshqarish host / glue recyokids fyoki nameservers under sizning own domain. | Yaratish, Ro‘yxat, Yangilash va O‘chirish child nameservers. |
| Hisob & Hisob-kitob | Connect automation to account-level checks. | Hisob balansi va transharakat-related account infyokimation. |
| WHMCS API | Integrate NiceNIC into an existing WHMCS billing wyokikflow. | Availability, Ro‘yxatdan o‘tish, Yangilashal, Ko‘chirish, Domen Tafsilotlar, Ismservers, Bog'lanishs va additional registrar-module functions. |
| API Tez-tez so‘raladigan savollar | Resolve common access, security, testing va wyokikflow questions. | Eligibility, credentials, request hvaling, suppyokited operations va integration guidance. |
Recommended First Integratsiya Sequence
A reliable production integration should validate access va purchasing conditions befyokie it begins sending live customer yokiders.
API Secret + authyokiized IP
Read-only connectivity test
Query current account-level cost
Tasdiqlash funds fyoki paid harakats
Process code + xabar
Ro‘yxatdan o‘tish / Yangilash / Ko‘chirish
Understva Muvaffaqiyat, Kutilmoqda va Erryoki Responses
code: 0 — Muvaffaqiyatli Response
Current endpoint examples use code 0 fyoki successful completed responses.
code: 201 — Kutilmoqda Order
Ro‘yxatdan o‘tish va transfer documentation can return code 201 when an yokider has been submitted but final processing is still pending.
code: 400 — Request Erryoki
Endpoint examples use code 400 fyoki request parameter xatos.
Ro‘yxatdan o‘tish Kutilmoqda Behaviyoki
Fyoki domain registration, the current documentation states that a 201 response means the yokider was submitted successfully va the fee was deducted, but final activation is still subject to registry confirmation. Agar the domain cannot be activated, the registration fee is returned to the NiceNIC account balance within 24 hours.
Ko‘chirish Kutilmoqda Behaviyoki
The transfer endpoint also documents 201 as a pending yokider. Your application should tbu yernifyokie treat a pending transfer as accepted fyoki processing, not as proof that the transfer has already completed.
Query Pricing Befyokie Paid Operations
NiceNIC's pricing endpoint can retrieve registration, renewal va transfer pricing fyoki a domain. The documented type values are register, renew, transfer va all. The documented period is 1 to 10 yillar, with TLD-specific exceptions possible.
Ro‘yxatdan o‘tish pricing responses can also return an is_premium flag. Use the pricing endpoint befyokie submitting a paid request when sizning application needs to khozir the current account-level cost.
Khozir the Difference Between Ismservers, DNS yozuvlari va Bola Ism Serverlari
| Operation | Use It When | Documented Capability |
|---|---|---|
| Ism serverlarini yangilash | You want to delegate a domain to different authyokiitative nameservers. | The domain nameserver endpoint suppyokits a primary, secondary va additional nameservers, with the current page documenting a limit of up to six. |
| DNS yozuvlari | You are using NiceNIC DNS hosting va need to manage zone recyokids. | Separate APIs are documented fyoki listing, creating, updating va deleting DNS recyokids. |
| Bola Ism Serverlari | You need host / glue recyokids such as ns1.example.com. |
Yaratish, list, update va delete child nameservers. The create endpoint requires the nameserver hostname to match the domain va accepts an IP address. |
Automate Pyokitfolio Monityokiing, Yo‘qt Only Domen Orders
Domen API v2 also includes read operations that are useful after registration. The Ro‘yxat Domenlar endpoint suppyokits pagination, syokiting, status filtering va hold filtering, while Oling Domen Tafsilotlar returns registration dates, expiration dates, nameservers va registrant contact infyokimation.
Zulm va Amalga Oshirish Monityokiing
NiceNIC's Zulm va Amalga Oshirish API can list domains with abuse repyokits va return a detailed machine-readable summary fyoki a specific domain. The detailed abuse endpoint documents six domain-level status phrases: Yo‘qrmal, Under Review, Kutilmoqda ClientHold, ClientHold, Yopishd va ServerHold.
The response can include current impact, recommended keyingi harakat, hold state va timeline, complaint count, complaint dates, categyokiies, DNS-abuse classification, evidence status va repyokited URLs wbu yerni applicable. This lets platfyokims va resellers surface compliance status inside their own operational systems instead of relying only on manual review.
Choose the Integratsiya Model That Fits Your System
| Option | Best Fyoki | What the Current Documentation Provides |
|---|---|---|
| Domen API v2 | Custom websites, SaaS platfyokims, internal systems, custom billing yoki provisioning wyokikflows. | Direct HTTPS + JSON integration across domain, DNS, child nameserver, account va compliance operations. |
| WHMCS Module | Hosting companies va resellers that already use WHMCS. | Availability, registration, renewal, transfer, domain details, nameservers, contacts, lock/unlock, EPP retrieval, xato logging va optional Test Mode. |
The current WHMCS documentation lists WHMCS 7.0 yoki yuqori versiyasi, PHP 7.0 yoki higher with cURL, valid NiceNIC API credentials va SSL/TLS suppyokit as requirements.
When an API Request Fails
Start with the returned response va configuration state rather than retrying the same paid harakat repeatedly.
Tasdiqlash yoki Access Erryoki
- Tasdiqlash the NiceNIC username va API Secret.
- Tasdiqlash the Authyokiization header is present va cyokirectly fyokimatted.
- Tasdiqlash the API Secret has not been reset yoki rotated.
- Agar IP restrictions are enabled, confirm the request is coming from the authyokiized outbound server IP.
Request Parameter Erryoki
- Compare the request with the specific endpoint's documented parameters.
- Tasdiqlash required values, fyokimats va harakat names.
- Tekshirish TLD-specific registration periods yoki contact requirements wbu yerni applicable.
Paid Operation Does Yo‘qt Complete Immediately
- Read the returned
codevamsg. - Do not treat a
201pending response as final completion. - Tasdiqlash account balance va current pricing befyokie retrying a paid harakat.
Need NiceNIC Suppyokit
- Recyokid the request timestamp va API harakat.
- Include the domain name yoki object involved, wbu yerni applicable.
- Include the returned code va message.
- Share non-sensitive parameters only; never post the full API Secret in a ticket.
Start with a Safe Test Request
Enable API access, confirm authentication, run an availability yoki pricing request, va verify sizning response hvaling befyokie turning on customer-facing paid operations.






