To get started signup for the API to receive credentials. All requests require your credentials.
Subscriptions
Requests per month | Request limit | Downloads per month | |
---|---|---|---|
Free | 20,000 | hard | 800 |
Basic | 100,000 | soft | 4,000 |
Premium | 2,500,000 | soft | 100,000 |
Request limits are counted per calendar month.
API requests are limited to 10 per second.
API information
UTC is used as timezone for the data.
All API calls must be HTTP GET requests and must provide the the API key and secret in one of the following ways, have the following headers:
- Key - Your API key
- Secret - Your API secret
Or use the Key and Secret as basic authentication credentials.
Libraries
Language/Platform | Developer | |
---|---|---|
WordPress | CryptoCurrencyChart | WordPress.org GitLab |
OpenApi: Multiple | CryptoCurrencyChart | SwaggerHub |
PHP | CryptoCurrencyChart | GitLab Composer |
Python | Greg Doermann | GitHub PyPI |
C++ | Pedro Vicente | GitHub |
PHP example
$key = 'apiKey';
$secret = 'apiSecret';
$result = file_get_contents(vsprintf('http://%s:%s@www.cryptocurrencychart.com/api/coin/list', [$key, $secret]));
if ($result === false) {
throw new Exception('Request error.');
}
$jsonResult = json_decode($result);
if ($jsonResult === null) {
throw new Exception('Invalid response.');
}
var_dump($jsonResult);
Errors
Http response code | Error |
---|---|
400 | Invalid parameter provided, make sure you provided valid values and dates are in the allowed range. |
401 | Unauthorized request, please provide valid API credentials. |
405 | Request method not allowed, use GET request. |
429 | Too many requests in a row or monthly request limit reached. |
500 | There was a problem executing the API request. |