JSON Resonse format
JSON, or JavaScript Object Notation, is a lightweight data-interchange format. JSON is a text format that is completely language independent but uses conventions that are familiar to programmers of the C-family of languages, including C, C++, C#, Java, JavaScript, Perl, Python, and many others.
To return an API response in JSON format, send a parameter "format" in the request with a value of "json".
Successful Responses
{
query: {
method: "getPopularSources"
country: "nl"
lang: "nl"
currentRate: 58
}
...
}
Failure Responses
When an error occured, the API will return an errorCode and an errorString. See here for more details.
{
errorCode: 1,
errorString: "Invalid API key"
}
Callback Function
To define a callback function name, add the parameter callback with your desired name as the value. For example:
callback= call
The output will be:
call (
{
...
}
)