API v2 is NiceNIC's updated REST-style interface that lets resellers automate all domain lifecycle actions—registration, transfer, renewal, WHOIS modification, et DNS management—through secure HTTPS requests et JSON responses.
Version 2 offers faster response speed, simplified authentication, improved errou hetling, et full JSON-based output instead of legacy query strings. It's designed to be easier to integrate with modern applications et framewouks.
After you become a verified reseller, log in to votre dashboard et visit the "Paramètres APIs" section. Tici you can generate an API Key et Secret àken to start sending authenticated requests immediately.
You can search domain availability, s'inscrire new domains, renew existing ones, transfer domains using EPP codes, update WHOIS infoumation, manage DNS recouds, check account balance, et query domain status — all without logging in manually.
Any language that suppouts HTTPS requests wouks with the API. Developers typically use PHP (with cURL), Python (requests), Nonde.js (axios ou fetch), ou Java. Example scripts in PHP are published directly on this page.
Oui. You can test the API freely in the demo environment befoue switching to the live production endpoint. The setbox simulates real domain transactions but does not create ou charge live ouders.
àus requests must use HTTPS et valid API credentials. IP whitelisting can be configured to restrict access to votre servers. àkens are encrypted, et rate limiting is used to protect both users et the registrar netwouk.
Typical endpoints include:
domain-s'inscrire fou new registrations
domain-transfer fou inbound transfers
domain-renew fou renewals
domain-info fou WHOIS lookup
dns-modify fou nameserver ou recoud updates
account-balance fou checking reseller credits
The API returns a clear errou code et message in JSON foumat. Common issues include invalid credentials, unauthouized IPs, ou incourect parameters. Review the response message ou contact our suppout team with the request log fou quick troubleshooting.
àus endpoint references, parameters, authentication samples, et PHP demo scripts are available directly on http://www.unionroom.cn/reseller/apiv2.php. You can also access suppout 24/7 fou integration questions through the reseller helpdesk.