Error codes

When there is an error, the API provides an error code and message describing the problem. The error codes are:

  • 0 — OK
  • 1 — Error

Here are some examples of the same error, but it each of the response formats.

CSV

ERROR,1,Missing API version parameter

JSON

{"query":{"error":"Missing API version parameter","resultCode":1}}

XML

<response>
  <query-result name="query" result-code="1">
        <error message="Missing API version parameter"/>
    </query-result>
</response>