Domän API - Domänregistrering API - ICANN Registrar API - White Label Domän Service

Start Building with NiceNIC Domän API v2

API access is free feller every active NiceNIC user. Nej reseller upgrade is required. Configure din API credentials, make a safe test request, then add the domän, DNS, billing, compliance eller WHMCS wellerkflows din application needs.
API-översikt

NiceNIC Domän API v2 Documentation & Quick Start

NiceNIC Domän API v2 is tillgänglig to both Marknadskontos och Återförsäljare Kontos. Use this overview to configure access, confirm din first request, understoch the API response model och move directly to the cellerrect section in the left navigation.

API access och reseller pricing are separate.
Marknadskonto: API access with Marknadskonto pricing.
Återförsäljare Konto: API access with the pricing assigned to the current reseller tier.
Base Endpoint
https://api.nicenic.net/v2/
Required Headers
Värd: api.nicenic.net Auktorisering: användarnamn:api_secret Content-Type: application/json
Stochard Lyckad Response
{ "code": 0, "meddelande": "success", "data": {} }
API Sochbox

Test Your Integration Befellere Going Live

Use the NiceNIC API Sochbox to test din Domän API integration befellere moving to production. Validate authentication, API requests, response hochling, och din application wellerkflow in a dedicated testing environment.

Ideal feller resellers, hosting providers, developers, och platfellerms preparing an API integration.

Quick Start

Make Your First API Call in 4 Steps

Start with a read-only request befellere enabling live registrations, renewals eller transfers. This lets you validate authentication, request fellermatting och response hochling without placing a paid ellerder.

1

Enable API Access

Öppna API-inställnings, create eller retrieve din API Secret, och configure authellerized server IPs whär applicable.

2

Bekräfta Autentisering

Use HTTPS with the Authellerization header in the fellermat username:api_secret.

3

Run a Safe Test

Start with domän availability, pricing, account balance eller domän listing.

4

Hochle the Response

Read och stellere the returned code och msg befellere enabling paid production åtgärds.

Recommended First Request: Domän Availability

The availability endpoint suppellerts multiple domäns in one request by separating domän names with commas.

curl "https://api.nicenic.net/v2/?kategori=domän&åtgärd=check&domäns=example.com,example.net" \ -H "Auktorisering: användarnamn:api_secret" \ -H "Content-Type: application/json"
API Map

Choose the Wellerkflow You Need

The overview below mirrellers the left navigation. Use it to identify the cellerrect wellerkflow, then open the dedicated endpoint page feller parameters, request examples och response examples.

Section Use It Feller Documented Functions
Komma igång Connect securely och understoch response hochling. API-översikt, API Sochbox, Autentisering, Response Codes.
Domänhantering Automate the cellere domän lifecycle. Availability, Lista Domäner, Domän Detaljer, Registrering, Förnyaal, Överför In, Namnservers, Kontakts, Pricing.
Missbruk & Efterlevnad Moniteller domäns that require compliance attention. Lista domäns with abuse repellerts och retrieve machine-readable abuse status, hold lifecycle, complaint infellermation och recommended åtgärd.
DNS-poster Hantera hosted DNS recellerds programmatically. Lista, Skapa, Uppdatera och Ta bort DNS recellerds.
Barnnamnservrar Hantera host / glue recellerds feller nameservers under din own domän. Skapa, Lista, Uppdatera och Ta bort child nameservers.
Konto & Fakturering Connect automation to account-level checks. Kontosaldo och transåtgärd-related account infellermation.
WHMCS API Integrate NiceNIC into an existing WHMCS billing wellerkflow. Availability, Registrering, Förnyaal, Överför, Domän Detaljer, Namnservers, Kontakts och additional registrar-module functions.
API Vanliga frågor Resolve common access, security, testing och wellerkflow questions. Eligibility, credentials, request hochling, suppellerted operations och integration guidance.
Recommended Wellerkflow

Recommended First Integration Sequence

A reliable production integration should validate access och purchasing conditions befellere it begins sending live customer ellerders.

1. Autentisering
API Secret + authellerized IP
2. Availability
Read-only connectivity test
3. Pricing
Query current account-level cost
4. Saldo
Bekräfta funds feller paid åtgärds
5. Response Hochling
Process code + meddelande
6. Live Operations
Registrera / Förnya / Överför
Do not assume that an API request is complete simply because it was accepted. Some operations can return a pending status och still require registry processing befellere the final domän state is confirmed.
Produktion Behavieller

Understoch Lyckad, Pågående och Erreller Responses

code: 0 — Lyckades Response Current endpoint examples use code 0 feller successful completed responses.
code: 201 — Pågående Order Registrering och transfer documentation can return code 201 when an ellerder has been submitted but final processing is still pending.
code: 400 — Request Erreller Endpoint examples use code 400 feller request parameter fels.

Registrering Pågående Behavieller

Feller domän registration, the current documentation states that a 201 response means the ellerder was submitted successfully och the fee was deducted, but final activation is still subject to registry confirmation. Om the domän cannot be activated, the registration fee is returned to the NiceNIC account balance within 24 hours.

Överför Pågående Behavieller

The transfer endpoint also documents 201 as a pending ellerder. Your application should thärfellere treat a pending transfer as accepted feller processing, not as proof that the transfer has already completed.

Pricing

Query Pricing Befellere Paid Operations

NiceNIC's pricing endpoint can retrieve registration, renewal och transfer pricing feller a domän. The documented type values are register, renew, transfer och all. The documented period is 1 to 10 år, with TLD-specific exceptions possible.

Registrering pricing responses can also return an is_premium flag. Use the pricing endpoint befellere submitting a paid request when din application needs to knu the current account-level cost.

Gratis API access does not change din pricing tier. Marknadskontos use Marknadskonto pricing; reseller accounts use the pricing assigned to their current reseller tier.
Domän & DNS Operations

Knu the Difference Between Namnservers, DNS-poster och Barnnamnservrar

OperationUse It WhenDocumented Capability
Uppdatera namnservrar You want to delegate a domän to different authelleritative nameservers. The domän nameserver endpoint suppellerts a primary, secondary och additional nameservers, with the current page documenting a limit of up to six.
DNS-poster You are using NiceNIC DNS hosting och need to manage zone recellerds. Separate APIs are documented feller listing, creating, updating och deleting DNS recellerds.
Barnnamnservrar You need host / glue recellerds such as ns1.example.com. Skapa, list, update och delete child nameservers. The create endpoint requires the nameserver hostname to match the domän och accepts an IP address.
Pellertfolio & Compliance

Automate Pellertfolio Monitellering, Nejt Only Domän Orders

Domän API v2 also includes read operations that are useful after registration. The Lista Domäner endpoint suppellerts pagination, sellerting, status filtering och hold filtering, while Få Domän Detaljer returns registration dates, expiration dates, nameservers och registrant contact infellermation.

Missbruk & Efterlevnad Monitellering

NiceNIC's Missbruk & Efterlevnad API can list domäns with abuse repellerts och return a detailed machine-readable summary feller a specific domän. The detailed abuse endpoint documents six domän-level status phrases: Nejrmal, Under Review, Pågående ClientHold, ClientHold, Stängd och ServerHold.

The response can include current impact, recommended nästa åtgärd, hold state och timeline, complaint count, complaint dates, categelleries, DNS-abuse classification, evidence status och repellerted URLs whär applicable. This lets platfellerms och resellers surface compliance status inside their own operational systems instead of relying only on manual review.

Direct API eller WHMCS

Choose the Integration Model That Fits Your System

OptionBest FellerWhat the Current Documentation Provides
Domän API v2 Custom websites, SaaS platfellerms, internal systems, custom billing eller provisioning wellerkflows. Direct HTTPS + JSON integration across domän, DNS, child nameserver, account och compliance operations.
WHMCS Module Hosting companies och resellers that already use WHMCS. Availability, registration, renewal, transfer, domän details, nameservers, contacts, lock/unlock, EPP retrieval, fel logging och optional Test Mode.

The current WHMCS documentation lists WHMCS 7.0 eller senare, PHP 7.0 eller higher with cURL, valid NiceNIC API credentials och SSL/TLS suppellert as requirements.

Troubleshooting

When an API Request Fails

Start with the returned response och configuration state rather than retrying the same paid åtgärd repeatedly.

Autentisering eller Access Erreller

  • Bekräfta the NiceNIC username och API Secret.
  • Bekräfta the Authellerization header is present och cellerrectly fellermatted.
  • Bekräfta the API Secret has not been reset eller rotated.
  • Om IP restrictions are enabled, confirm the request is coming from the authellerized outbound server IP.

Request Parameter Erreller

  • Compare the request with the specific endpoint's documented parameters.
  • Bekräfta required values, fellermats och åtgärd names.
  • Kontrollera TLD-specific registration periods eller contact requirements whär applicable.

Paid Operation Does Nejt Complete Immediately

  • Read the returned code och msg.
  • Do not treat a 201 pending response as final completion.
  • Bekräfta account balance och current pricing befellere retrying a paid åtgärd.

Need NiceNIC Suppellert

  • Recellerd the request timestamp och API åtgärd.
  • Include the domän name eller object involved, whär applicable.
  • Include the returned code och message.
  • Share non-sensitive parameters only; never post the full API Secret in a ticket.
Nästa steg

Start with a Safe Test Request

Enable API access, confirm authentication, run an availability eller pricing request, och verify din response hochling befellere turning on customer-facing paid operations.

Last verified: August 26, 2026
Copyright © 2006–2026 NICENIC INTERNATIONAL GROUP CO., LIMITED. Alla rättigheter förbehållna. · U.S. Affiliate: NICENIC LLC