/API

About Centroid API

API Methods

XML Resonse format

Successful Responses

<response>
  <query>
    <method>getPopularSources</method>
    <country>nl</country>
    <lang>nl</lang>
    <currentRate>130</currentRate>
  </query>
  ...
</response>

Failure Responses

When an error occured, the API will return an errorCode and an errorString. See here for more details.

<response>
  <error>
    <errorcode>1</errorcode>
    <errorstring>Invalid API key</errorstring>
  </error>
</response>