Stats

Get global stats

GET /public/stats

Parameter

Name Type Description
base (optional) String

Base currency

Default value: USD
Allowed values:
USD EUR JPY BTC ETH etc.

Parameters examples

curl - Example:

curl -X GET \
  'https://api.coinranking.com/v1/public/stats?base=EUR'

Success response

Name Type Description
status String

Status of the request

Allowed values:
success
data Object
data.totalCoins Number

Total number of coins

data.totalMarkets Number

Total amount of markets used for price calculation

data.totalExchanges Number

Total amount of exchanges paired with Coinranking

data.totalMarketCap Number

Market capitalization. Price times circulating supply

data.total24hVolume Number

Total trade volume in 24 hours

Success response example - Response:

HTTP/1.1 200 OK
{
  "status":"success",
  "data": {
    "totalCoins": 3220,
    "totalMarkets": 27497,
    "totalExchanges": 190,
    "totalMarketCap": 425992114544,
    "total24hVolume": 23752040073
  }
}

Error response

Error response - Error

Name Type Description
status String

Status of the request

Allowed values:
fail error
type String

Error code

Allowed values:
VALIDATION_ERROR BASE_UNAVAILABLE
message String

Human readable error message

Error response example - Response:

HTTP/1.1 422 Unprocessable Entity
{
  "status": "fail",
  "type": "BASE_UNAVAILABLE",
  "message": "Base not available"
}