RESTful endpoint provides the widest range of data, based on HTTP protocol which works in Request-Reply scheme.
Every message is returned in JSON.
Production base endpoint:
Make sure there is no trailing
/ in any endpoint.
Successful HTTP responses have the status code
All HTTP requests with response status codes different to
200 must be considered as failed and you should expect additional JSON inside the body of the response with the error message encapsulated inside it as shown in the example. We use the following error codes:
Bad Request – There is something wrong with your request
Not found – The data you requested can't be found
Internal server error – There is something wrong on the server.
For all input and most of the output time values are Unix timestamps. For some of the output time values ISO 8601 standard is used.
Input time values must be formatted as a Unix timestamp in nanoseconds:
Output time values are formatted using the following pattern:
ISO 8601 standard format specifier
The year as a four-digit number.
The month, from 01 through 12.
The day of the month, from 01 through 31.
The hour, using a 24-hour clock from 00 to 23.
The minute, from 00 through 59.
The second, from 00 through 59.
The ten millionths of a second in a date and time value.