X
Published: 2026-05-27 | Updated: 2026-11-27

NiceNIC API v2 Request Format Errors: Endpoint, Headers, JSON, and Parameters


When NiceNIC API v2 returns a request-parameter or format error, first verify the API URL, action, headers and the exact parameter names. The v2 service uses HTTPS requests and JSON responses; not every operation uses a JSON request body.


Correct endpoint and headers

Base endpoint: https://api.nicenic.net/v2/

Host: api.nicenic.net

Authorization: username:api_secret

Content-Type: application/json

The username and secret must belong to the account sending the request.



A reproducible read-only example

This example uses GET and sends category, action and domains as URL query parameters, with no JSON request body. Run it in Bash or zsh on Linux/macOS, replacing the credential placeholders with your NiceNIC username and current API Secret. For other operations, follow the request example in the relevant API documentation.

curl --get 'https://api.nicenic.net/v2/' \
  --data-urlencode 'category=domain' \
  --data-urlencode 'action=check' \
  --data-urlencode 'domains=example.com,example.net' \
  -H 'Authorization: YOUR_USERNAME:YOUR_API_SECRET' \
  -H 'Content-Type: application/json'

This is a domain availability query. It does not place an order or incur a registration charge. Replace credential placeholders securely; never commit them to source control.



Isolate the format error

Symptom
What to inspect
Invalid action/category
Compare both names to the selected operation's API documentation
Missing required parameter
Check the required parameter names for the selected operation. For domain availability checks, use domains even when checking one domain. For multiple domains, supply a comma-separated string, such as example.com,example.net.
Wrong data type
Review period, integer, contact fields and TLD-specific values before retrying
Invalid characters
Send parameter values using proper UTF-8/URL encoding
Error after a successful HTTP response
Read the JSON code and msg: 400 = parameter error; 401 = unauthorized; 0 = success. For 401, follow the authentication troubleshooting guide. For an availability query, also check each domain’s status in data.
Works locally, fails from server
Check IP allowlisting, proxy rewriting and TLS configuration

For registrations and transfers, additional eligibility/contact requirements may apply. Never assume that an availability check guarantees a valid paid registration order. Also do not retry a chargeable request blindly after a timeout; first check whether an order was created.

If you need support

Provide the documented API operation, a minimal redacted request, timestamp, error code/message and whether it occurs in the sandbox or production environment. Exclude passwords, secrets and customer identity documents.

Reference: NiceNIC API v2 Documentation and API FAQ.


Related NiceNIC Guides

Need help? We're always here for you. Human Support
Copyright © 2006–2026 NICENIC INTERNATIONAL GROUP CO., LIMITED. All Rights Reserved.