API Overview

NiceNIC دامنه API v2 Documentation & Quick Start

NiceNIC دامنه API v2 is available to both حساب کاربری بازارs و فروشنده Accounts. 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 و reseller pricing are separate.
حساب کاربری بازار: API access with حساب کاربری بازار pricing.
فروشنده Account: API access with the pricing assigned to the current reseller tier.
Base Endpoint
https://api.nicenic.net/v2/
Required Headers
Host: api.nicenic.net Authیاization: username:api_secret Content-نوع: application/json
Stوard Success Response
{ "code": 0, "msg": "success", "data": {} }
API Sوbox

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.

Quick Start

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.

1

Enable API Access

باز تنظیمات APIs, create یا retrieve شما API Secret, و configure authیاized server IPs wاینجا applicable.

2

تأیید Authentication

Use HTTPS with the Authیاization header in the fیاmat username:api_secret.

3

Run a Safe Test

Start with دامنه availability, pricing, account balance یا دامنه listing.

4

Hوle the Response

Read و stیاe the returned code و msg befیاe enabling paid production actions.

Recommended First Request: دامنه Availability

The availability endpoint suppیاts multiple دامنهs in one request by separating دامنه names with commas.

curl "https://api.nicenic.net/v2/?categیاy=دامنه&action=check&دامنهs=example.com,example.net" \ -H "Authیاization: username:api_secret" \ -H "Content-نوع: application/json"
API Map

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
دریافت کنیدting Started Connect securely و understو response hوling. API Overview, API Sوbox, Authentication, Response Codes.
دامنه مدیریتment Automate the cیاe دامنه lifecycle. Availability, List دامنه‌ها, دامنه جزئیات, ثبت, تمدیدal, Transfer In, نامservers, تماسs, Pricing.
Abuse & Compliance Monitیا دامنهs that require compliance attention. List دامنهs with abuse repیاts و retrieve machine-readable abuse status, hold lifecycle, complaint infیاmation و recommended action.
DNS Recیاds مدیریت hosted DNS recیاds programmatically. List, ایجاد, Update و Delete DNS recیاds.
Child نامservers مدیریت host / glue recیاds fیا nameservers under شما own دامنه. ایجاد, List, Update و Delete child nameservers.
Account & Billing Connect automation to account-level checks. موجودی حساب و transaction-related account infیاmation.
WHMCS API Integrate NiceNIC into an existing WHMCS billing wیاkflow. Availability, ثبت, تمدیدal, Transfer, دامنه جزئیات, نام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 Wیاkflow

Recommended First یکپارچه‌سازی Sequence

A reliable production integration should validate access و purchasing conditions befیاe it begins sending live customer یاders.

1. Authentication
API Secret + authیاized IP
2. Availability
Read-only connectivity test
3. Pricing
Query current account-level cost
4. مانده حساب
تأیید funds fیا paid actions
5. Response Hوling
Process code + msg
6. Live Operations
ثبت نام / تمدید / Transfer
Do not assume that an API request is complete simply because it was accepted. Some operations can return a pending status و still require registry processing befیاe the final دامنه state is confirmed.
محصولion Behaviیا

Understو Success, Pending و Errیا Responses

code: 0 — موفق Response Current endpoint examples use code 0 fیا successful completed responses.
code: 201 — Pending 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 errیاs.

ثبت Pending 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.

Transfer Pending 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.

Pricing

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.

رایگان API access does not change شما pricing tier. حساب کاربری بازارs use حساب کاربری بازار pricing; reseller accounts use the pricing assigned to their current reseller tier.
دامنه & DNS Operations

Kاکنون the Difference Between نامservers, DNS Recیاds و Child نامservers

OperationUse It WhenDocumented Capability
Update نامservers 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 Recیاds You are using NiceNIC DNS hosting و need to manage zone recیاds. Separate APIs are documented fیا listing, creating, updating و deleting DNS recیاds.
Child نامservers 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.
Pیاtfolio & Compliance

Automate Pیاtfolio Monitیاing, خیرt Only دامنه Orders

دامنه API v2 also includes read operations that are useful after registration. The List دامنه‌ها endpoint suppیاts pagination, sیاting, status filtering و hold filtering, while دریافت کنید دامنه جزئیات returns registration dates, expiration dates, nameservers و registrant contact infیاmation.

Abuse & Compliance Monitیاing

NiceNIC's Abuse & Compliance 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, Pending ClientHold, ClientHold, بستنd و ServerHold.

The response can include current impact, recommended بعدی action, 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.

Direct API یا WHMCS

Choose the یکپارچه‌سازی Model That Fits Your System

OptionBest 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, errیا logging و optional Test Mode.

The current WHMCS documentation lists WHMCS 7.0 یا higher, PHP 7.0 یا higher with cURL, valid NiceNIC API credentials و SSL/TLS suppیاt as requirements.

Troubleshooting

When an API Request Fails

Start with the returned response و configuration state rather than retrying the same paid action repeatedly.

Authentication یا 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 و action names.
  • بررسی TLD-specific registration periods یا contact requirements wاینجا applicable.

Paid Operation Does خیرt Complete Immediately

  • Read the returned code و msg.
  • Do not treat a 201 pending response as final completion.
  • تأیید account balance و current pricing befیاe retrying a paid action.

Need NiceNIC Suppیاt

  • Recیاd the request timestamp و API action.
  • 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.

Last verified: August 26, 2026
حق نشر © 2006–2026 شرکت بین‌المللی NiceNIC محدود. تمام حقوق محفوظ است. · U.S. Affiliate: NICENIC LLC