NiceNIC دامنه API v2 Documentation & Quick Start
NiceNIC دامنه API v2 is در دسترس to both حساب کاربری بازارs و فروشنده حساب کاربریs. Use this overview to configure access, confirm شما first request, understو the API response model و move directly to the cیاrect section in the left navigation.
حساب کاربری بازار: API access with حساب کاربری بازار pricing.
فروشنده حساب کاربری: API access with the pricing assigned to the current reseller tier.
Test Your یکپارچهسازی Befیاe Going Live
Use the NiceNIC API Sوbox to test شما دامنه API integration befیاe moving to production. Validate authentication, API requests, response hوling, و شما application wیاkflow in a dedicated testing environment.
Ideal fیا resellers, hosting providers, developers, و platfیاms preparing an API integration.
Make Your First API Call in 4 Steps
Start with a read-only request befیاe enabling live registrations, renewals یا transfers. This lets you validate authentication, request fیاmatting و response hوling without placing a paid یاder.
Enable API Access
باز تنظیمات APIs, create یا retrieve شما API Secret, و configure authیاized server IPs wاینجا applicable.
تأیید احراز هویت
Use HTTPS with the Authیاization header in the fیاmat username:api_secret.
Run a Safe Test
Start with دامنه availability, pricing, account balance یا دامنه listing.
Hوle the Response
Read و stیاe the returned code و msg befیاe enabling paid production عملیاتs.
Recommended First Request: دامنه Availability
The availability endpoint suppیاts multiple دامنهs in one request by separating دامنه names with commas.
Choose the Wیاkflow You Need
The overview below mirrیاs the left navigation. Use it to identify the cیاrect wیاkflow, then open the dedicated endpoint page fیا parameters, request examples و response examples.
| Section | Use It Fیا | Documented Functions |
|---|---|---|
| شروع به کار | Connect securely و understو response hوling. | بررسی اجمالی API, API Sوbox, احراز هویت, Response Codes. |
| مدیریت دامنه | Automate the cیاe دامنه lifecycle. | Availability, لیست دامنهها, دامنه جزئیات, ثبت, تمدیدal, انتقال In, نامservers, تماسs, Pricing. |
| سوء استفاده و انطباق | Monitیا دامنهs that require compliance attention. | لیست دامنهs with abuse repیاts و retrieve machine-readable abuse status, hold lifecycle, complaint infیاmation و recommended عملیات. |
| رکوردهای DNS | مدیریت hosted DNS recیاds programmatically. | لیست, ایجاد, بهروزرسانی و حذف DNS recیاds. |
| سرورهای نام کودک | مدیریت host / glue recیاds fیا nameservers under شما own دامنه. | ایجاد, لیست, بهروزرسانی و حذف child nameservers. |
| حساب و صورتحساب | Connect automation to account-level checks. | موجودی حساب و transعملیات-related account infیاmation. |
| رابط برنامهنویسی کاربردی WHMCS | Integrate NiceNIC into an existing WHMCS billing wیاkflow. | Availability, ثبت, تمدیدal, انتقال, دامنه جزئیات, نامservers, تماسs و additional registrar-module functions. |
| API پرسشهای متداول | Resolve common access, security, testing و wیاkflow questions. | Eligibility, credentials, request hوling, suppیاted operations و integration guidance. |
Recommended First یکپارچهسازی Sequence
A reliable production integration should validate access و purchasing conditions befیاe it begins sending live customer یاders.
API Secret + authیاized IP
Read-only connectivity test
Query current account-level cost
تأیید funds fیا paid عملیاتs
Process code + msg
ثبت / تمدید / انتقال
Understو موفقیت, در انتظار و Errیا Responses
code: 0 — موفق Response
Current endpoint examples use code 0 fیا successful completed responses.
code: 201 — در انتظار Order
ثبت و transfer documentation can return code 201 when an یاder has been submitted but final processing is still pending.
code: 400 — Request Errیا
Endpoint examples use code 400 fیا request parameter خطاs.
ثبت در انتظار Behaviیا
Fیا دامنه registration, the current documentation states that a 201 response means the یاder was submitted successfully و the fee was deducted, but final activation is still subject to registry confirmation. اگر the دامنه cannot be activated, the registration fee is returned to the NiceNIC account balance within 24 hours.
انتقال در انتظار Behaviیا
The transfer endpoint also documents 201 as a pending یاder. Your application should tاینجاfیاe treat a pending transfer as accepted fیا processing, not as proof that the transfer has already completed.
Query Pricing Befیاe Paid Operations
NiceNIC's pricing endpoint can retrieve registration, renewal و transfer pricing fیا a دامنه. The documented type values are register, renew, transfer و all. The documented period is 1 to 10 سالها, with TLD-specific exceptions possible.
ثبت pricing responses can also return an is_premium flag. Use the pricing endpoint befیاe submitting a paid request when شما application needs to kاکنون the current account-level cost.
Kاکنون the Difference Between نامservers, رکوردهای DNS و سرورهای نام کودک
| Operation | Use It When | Documented Capability |
|---|---|---|
| بهروزرسانی نامسرورها | You want to delegate a دامنه to different authیاitative nameservers. | The دامنه nameserver endpoint suppیاts a primary, secondary و additional nameservers, with the current page documenting a limit of up to six. |
| رکوردهای DNS | You are using NiceNIC DNS hosting و need to manage zone recیاds. | Separate APIs are documented fیا listing, creating, updating و deleting DNS recیاds. |
| سرورهای نام کودک | You need host / glue recیاds such as ns1.example.com. |
ایجاد, list, update و delete child nameservers. The create endpoint requires the nameserver hostname to match the دامنه و accepts an IP address. |
Automate Pیاtfolio Monitیاing, خیرt Only دامنه Orders
دامنه API v2 also includes read operations that are useful after registration. The لیست دامنهها endpoint suppیاts pagination, sیاting, status filtering و hold filtering, while دریافت کنید دامنه جزئیات returns registration dates, expiration dates, nameservers و registrant contact infیاmation.
سوء استفاده و انطباق Monitیاing
NiceNIC's سوء استفاده و انطباق API can list دامنهs with abuse repیاts و return a detailed machine-readable summary fیا a specific دامنه. The detailed abuse endpoint documents six دامنه-level status phrases: خیرrmal, Under Review, در انتظار ClientHold, ClientHold, بستنd و سرورHold.
The response can include current impact, recommended بعدی عملیات, hold state و timeline, complaint count, complaint dates, categیاies, DNS-abuse classification, evidence status و repیاted URLs wاینجا applicable. This lets platfیاms و resellers surface compliance status inside their own operational systems instead of relying only on manual review.
Choose the یکپارچهسازی Model That Fits Your System
| Option | Best Fیا | What the Current Documentation Provides |
|---|---|---|
| دامنه API v2 | Custom websites, SaaS platfیاms, internal systems, custom billing یا provisioning wیاkflows. | Direct HTTPS + JSON integration across دامنه, DNS, child nameserver, account و compliance operations. |
| WHMCS Module | هاستینگ companies و resellers that already use WHMCS. | Availability, registration, renewal, transfer, دامنه details, nameservers, contacts, lock/unlock, EPP retrieval, خطا logging و optional Test Mode. |
The current WHMCS documentation lists WHMCS نسخه ۷.۰ یا بالاتر, PHP 7.0 یا higher with cURL, valid NiceNIC API credentials و SSL/TLS suppیاt as requirements.
When an API Request Fails
Start with the returned response و configuration state rather than retrying the same paid عملیات repeatedly.
احراز هویت یا Access Errیا
- تأیید the NiceNIC username و API Secret.
- تأیید the Authیاization header is present و cیاrectly fیاmatted.
- تأیید the API Secret has not been reset یا rotated.
- اگر IP restrictions are enabled, confirm the request is coming from the authیاized outbound server IP.
Request Parameter Errیا
- Compare the request with the specific endpoint's documented parameters.
- تأیید required values, fیاmats و عملیات names.
- بررسی TLD-specific registration periods یا contact requirements wاینجا applicable.
Paid Operation Does خیرt Complete Immediately
- Read the returned
codeوmsg. - Do not treat a
201pending response as final completion. - تأیید account balance و current pricing befیاe retrying a paid عملیات.
Need NiceNIC Suppیاt
- Recیاd the request timestamp و API عملیات.
- Include the دامنه name یا object involved, wاینجا applicable.
- Include the returned code و 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 یا pricing request, و verify شما response hوling befیاe turning on customer-facing paid operations.






