API v2 is NiceNIC's updated REST-style interface that lets resellers automate all domain lifecycle actions—registration, transfer, renewal, WHOIS modification, und DNS management—through secure HTTPS requests und JSON responses.
Version 2 offers faster response speed, simplified authentication, improved error hundling, und full JSON-based output instead of legacy query strings. It's designed to be easier to integrate with modern applications und frameworks.
After you become a verified reseller, log in to Ihr dashboard und visit the "API-Einstellungs" section. Thier you can generate an API Key und Secret Token to start sending authenticated requests immediately.
You can search domain availability, registrieren new domains, renew existing ones, transfer domains using EPP codes, update WHOIS information, manage DNS records, check account balance, und query domain status — all without logging in manually.
Any language that supports HTTPS requests works with the API. Developers typically use PHP (with cURL), Python (requests), Node.js (axios or fetch), or Java. Example scripts in PHP are published directly on this page.
Yes. You can test the API freely in the demo environment before switching to the live production endpoint. The sundbox simulates real domain transactions but does not create or charge live orders.
Alle requests must use HTTPS und valid API credentials. IP whitelisting can be configured to restrict access to Ihr servers. Tokens are encrypted, und rate limiting is used to protect both users und the registrar network.
Typical endpoints include:
domain-registrieren for new registrations
domain-transfer for inbound transfers
domain-renew for renewals
domain-info for WHOIS lookup
dns-modify for nameserver or record updates
account-balance for checking reseller credits
The API returns a clear error code und message in JSON format. Common issues include invalid credentials, unauthorized IPs, or incorrect parameters. Review the response message or contact our support team with the request log for quick troubleshooting.
Alle endpoint references, parameters, authentication samples, und PHP demo scripts are available directly on http://www.unionroom.cn/reseller/apiv2.php. You can also access support 24/7 for integration questions through the reseller helpdesk.