Error Codes
If the API encounters a problem, it will return a JSON object with details of the error.
Always check the status
field in the response. If it is false
,
look at the errno
and errmsg
fields for more information.
Example Error Response
{
"status": false,
"errno": 94,
"errmsg": "invalid or missing key"
}
Error Codes
errno | errmsg | Description |
---|---|---|
50 | access denied | Unauthorized IP Address or Referrer. Please check your access privileges. |
90 | invalid country code | Check supported country codes. ISO 3166-1 alpha-2 |
91 | name not set || email not set || username not set | Missing name, email, or username parameter in your request. |
92 | too many names || too many emails || too many usernames | Limit is 100 for names, 50 for emails, and 50 for usernames in a single request. |
93 | limit reached | The API key credit has been finished. |
94 | invalid or missing key | The API key cannot be found. |
99 | API key has expired | Please renew your API key. |
Tip:
Always check the
status
field in the API response. If it is false
,
look at the errno
and errmsg
fields for details about the problem.