دامنه API - ثبت دامنه API - ICANN ثبت‌کننده API - White Label دامنه Service

Start Building with NiceNIC دامنه API v2

API access is free fیا every active NiceNIC user. خیر reseller upgrade is required. Configure شما API credentials, make a safe test request, then add the دامنه, DNS, billing, compliance یا WHMCS wیاkflows شما application needs.
بررسی اجمالی API

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 و reseller pricing are separate.
حساب کاربری بازار: API access with حساب کاربری بازار pricing.
فروشنده حساب کاربری: API access with the pricing assigned to the current reseller tier.
Base Endpoint
https://api.nicenic.net/v2/
Required هدرs
میزبان: api.nicenic.net Authorization: username:api_secret نوع محتوا: application/json
Stوard موفقیت 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

تأیید احراز هویت

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 عملیاتs.

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/?دسته‌بندی=دامنه&عملیات=check&دامنهs=example.com,example.net" \ -H "Authorization: username:api_secret" \ -H "نوع محتوا: 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
شروع به کار 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 Wیاkflow

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

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

1. احراز هویت
API Secret + authیاized IP
2. Availability
Read-only connectivity test
3. Pricing
Query current account-level cost
4. مانده حساب
تأیید funds fیا paid عملیاتs
5. Response Hوling
Process code + msg
6. Live Operations
ثبت / تمدید / انتقال
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و موفقیت, در انتظار و 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.

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 و سرورهای نام کودک

OperationUse It WhenDocumented 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.
Pیاtfolio & Compliance

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.

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, خطا 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.

Troubleshooting

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 201 pending 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.

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