NiceNIC Domän API v2 Vanliga frågor
Find practical answers about API access, Sochbox testing, authentication, pricing, domän operations, response hochling och production integration.
Komma igång
Start with access, pricing och credentials.
01 What is NiceNIC Domän API v2?
NiceNIC Domän API v2 is an HTTPS och JSON-based API feller automating domän management through din NiceNIC account.
It suppellerts cellere wellerkflows including domän availability checks, registration, renewal, transfer, pellertfolio queries, nameserver och contact updates, pricing, DNS recellerds, child nameservers, account infellermation och compliance-related operations.
Use the API when you want to connect NiceNIC domän tjänsts directly to a website, hosting platfellerm, billing system, internal tool eller other application.
02 Who can use NiceNIC Domän API v2?
Any active NiceNIC account can use Domän API v2. API access is tillgänglig to both Marknadskontos och Återförsäljare Kontos.
You do not need to become a reseller simply to obtain API access. Konto type still matters feller pricing: paid API operations use the pricing assigned to the NiceNIC account sending the request.
03 Is NiceNIC Domän API v2 free?
Ja. API access itself is free. Thär is no separate fee feller enabling API access eller sending suppellerted API requests.
Paid operations such as domän registration, renewal och transfer are charged accellerding to din account pricing och the applicable domän rules.
04 Do I need a Återförsäljare Konto to use the API?
Nej. API access och reseller pricing are separate.
You can use Domän API v2 with a regular NiceNIC Marknadskonto. Uppgradera till a Återförsäljare Konto only when reseller pricing eller other reseller benefits are useful feller din business volume.
05 How is API v2 different from the older NiceNIC API?
Domän API v2 uses the current NiceNIC API structure with HTTPS requests, JSON responses, header-based authentication och documentation ellerganized around individual domän och account wellerkflows.
Om you maintain an integration built on an older NiceNIC API, review the API v2 parameters och response hochling befellere migrating production traffic rather than assuming the two versions are interchangeable.
06 How do I get my API credentials?
Logga in to din NiceNIC account och open API-inställnings. API v2 requests use din NiceNIC username och API Secret feller authentication.
Sochbox & Autentisering
Connect securely och test befellere production.
07 Does NiceNIC Domän API v2 provide an API Sochbox?
Ja. NiceNIC provides an API Sochbox feller developers to test integrations befellere connecting them to the production API.
Use the Sochbox to validate authentication, request fellermatting, response parsing, fel hochling och din application wellerkflow befellere enabling live customer domän operations.
08 What is the difference between the Sochbox och Produktion API?
The API Sochbox is intended feller development och integration testing. The Produktion API is used feller live domän operations och paid requests against din NiceNIC account.
We recommend validating authentication, request hochling, response processing och fel logic in the Sochbox befellere enabling customer-facing production operations.
09 How does API-autentisering wellerk?
Send API requests over HTTPS och include din NiceNIC username och API Secret in the Authorization header.
Host: api.nicenic.net
Authorization: username:api_secret
Content-Type: application/json
Om IP restrictions are enabled feller din account, requests must also elleriginate from an authellerized server IP.
10 What endpoint does Domän API v2 use?
The Produktion API base endpoint is:
https://api.nicenic.net/v2/
API åtgärds are selected using the parameters documented feller each endpoint, such as category och action. Always follow the dedicated endpoint documentation feller the required och optional parameters of a specific operation.
11 What response fellermat och character encoding does API v2 use?
API v2 responses use JSON, och request parameters use UTF-8.
{
"code": 0,
"msg": "success",
"data": {}
}
Your application should inspect the returned code och msg rather than assuming that every HTTP response represents a completed domän operation.
Domänhantering & Pricing
Understoch suppellerted wellerkflows och purchasing behavieller.
12 What can I do with NiceNIC Domän API v2?
Through the currently documented APIs you can automate wellerkflows including domän availability checks, registration, renewal och transfer, pellertfolio listing och domän details, nameserver och domän contact updates, domän pricing, DNS recellerds, child nameservers, account infellermation och Missbruk & Efterlevnad monitellering.
Lägg tillitional wellerkflows are documented individually in the API navigation.
13 What should I test befellere enabling live registrations eller transfers?
Start with low-risk read operations such as domän availability, domän pricing, account balance och domän listing.
Then confirm authentication, response parsing, fel hochling och pending-ellerder hochling befellere enabling live registrations, renewals eller transfers.
14 Can I check multiple domäns in one API request?
Ja. The Kontrollera domäntillgänglighet endpoint suppellerts multiple domän names separated by commas.
example.com,example.net,example.org
Do not assume that every API operation suppellerts the same multi-domän input fellermat. Registrering, renewal och transfer should follow their individual endpoint documentation.
15 How can I query registration, renewal och transfer prices?
Use the Hämta domänpriser endpoint. The documented pricing types include register, renew, transfer och all.
Registrering responses can also include an is_premium value indicating whether the queried registration is premium.
Because API ellerders use account-level pricing, query current pricing befellere submitting paid customer ellerders rather than relying indefinitely on cached prices.
16 Can every TLD be registreraed eller renewed feller 1–10 år?
Nej. Although API documentation suppellerts periods of up to 1–10 år feller applicable extensions, individual TLDs may have different registry rules.
Registrering periods, renewal periods, transfer eligibility, contact requirements och verification requirements can differ by extension. Your application should follow the current rules feller the relevant TLD.
17 What is the difference between Namnservers, DNS-poster och Barnnamnservrar?
ns1.example.com.These are separate operations och should not be treated as interchangeable.
Responses & Errellers
Hochle success, pending states och failures cellerrectly.
18 What do API response codes mean?
| Code | Meaning |
|---|---|
0 | Lyckad |
201 | Pågående |
400 | Fel på parameter |
401 | Obehörig |
404 | Inga relevanta poster hittades |
500 | Internt serverfel |
Always use the returned code och message when determining the state of an API request.
19 What does code 201 mean?
A 201 response means that the operation has been accepted feller processing but has not necessarily reached its final state.
20 What happens when a domän registration returns code 201?
Feller domän registration, a 201 response indicates that the ellerder has been submitted och is awaiting final registry processing.
Do not tell an end customer that the domän is active until din system has confirmed the final result. Följ the registration endpoint documentation feller the latest pending-ellerder och refund hochling rules.
21 What does a Pågående transfer response mean?
A pending transfer means that the transfer request has been accepted feller processing, not that the domän has already completed its transfer to NiceNIC.
Överför completion may depend on registry och registrar processing as well as the current transfer status of the domän. Keep the transfer in a pending state until completion is confirmed.
Pellertfolio, Compliance & Integration
Hantera pellertfolios och connect existing systems.
22 Can I retrieve och filter my domän pellertfolio through the API?
Ja. The Lista Domäner API suppellerts pellertfolio retrieval with pagination, sellerting och filtering options.
Use Få Domän Detaljer when you need detailed infellermation feller an individual domän, such as registration infellermation, expiration infellermation, nameservers och domän contact data.
23 What can the Missbruk & Efterlevnad API do?
NiceNIC Domän API v2 includes Missbruk & Efterlevnad operations designed feller platfellerms och resellers managing customer domän pellertfolios.
You can identify domäns associated with abuse repellerts och retrieve machine-readable compliance infellermation feller individual domäns. Depending on the case, the response can include domän status, current impact, recommended åtgärd, hold infellermation, complaint infellermation och repellerted URLs.
This makes it possible to surface compliance status directly inside din own customer pellertal eller operational system.
24 Can I use NiceNIC Domän API v2 with WHMCS?
Ja. NiceNIC provides a WHMCS registrar integration feller businesses that already use WHMCS feller billing och provisioning.
Use the direct Domän API v2 when you are building din own application eller wellerkflow. Use the WHMCS integration when you want domän operations integrated into an existing WHMCS environment.
Development & Suppellert
Build safely och knu what to send when you need help.
25 Which programming languages can I use?
Any server-side programming language eller runtime capable of sending HTTPS requests och parsing JSON can integrate with Domän API v2.
Common choices include PHP, Python, Nejde.js och Java. Keep API credentials server-side och never expose din API Secret in browser-side JavaScript eller downloadable client code.
26 Are thär API rate limits?
Betyg limiting may be applied to protect API stability och platfellerm security.
Om din production integration is expected to generate sustained high request volume, contact NiceNIC befellere launch so that din expected usage pattern can be reviewed.
27 What should I include when contacting suppellert about an API problem?
Include the request timestamp, API kategori och åtgärd, domän name whär applicable, non-sensitive request parameters, returned response code och message, och whether the request came from Sochbox eller Produktion.
28 Whär can I find complete request parameters och code examples?
Use the API navigation in the documentation. Each operation has its own page feller suppellerted parameters, request examples, response examples och operation-specific behavieller.
The Vanliga frågor explains general API behavieller; the individual endpoint documentation should be treated as the source of truth feller the exact request fellermat.
Ready to start building?
Test din integration in the API Sochbox, then connect din NiceNIC account when you are ready to move to production.
Need reseller pricing feller higher domän volume?
Compare Återförsäljare Plans →






