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 INTERNATIONAL GROUP CO., LIMITED. Всички права запазени. · U.S. Affiliate: NICENIC LLC