Options
Specify Symbols
Supported API Endpoints: Live, Historical, Time-Frame, Change.
The API's symbols parameter can be used in conjunction with most API endpoints to limit the number of output cryptocurrencies. This parameter can take either one single cryptocurrency value or multiple, comma-separated values.
The use of this parameter is especially useful to reduce bandwidth and increase the Coinlayer API's response time.
Specify Target Currency
Supported API Endpoints: Live, Historical, Time-Frame.
By default, cryptocurrency rates returned by the Coinlayer API always translate to US Dollars. Customers subscribed to the Basic Plan or higher can use the API's target parameter to change the Target Currency to any other supported fiat currency code.
The API supports 166 world currencies as target currencies. You can find a list of all supported target currency codes here.
Extended Results
Supported API Endpoints: Live, Historical, Time-Frame.
Basic Plan customers may also append the expand and set it to 1 in order to cause the Coinlayer API to return a number of additional fields with an API response.
Example API Request: In this example the Live Rates Endpoint is used.
Sign Up to Run API Request
Example API Response:
Response Objects:
| Object | Description |
|---|---|
| success | Returns true or false depending on whether or not the given API request was successful. |
terms | Returns a URL leading to the Coinlayer Terms of Service. |
privacy | Returns a URL leading to the Coinlayer Privacy Policy. |
timestamp | Returns the exact time (UTC timestamp) the given crypto data was collected. |
target | Returns the default or specified target currency. |
rates > rate | Returns the exchange rate for the requested cryptocurrency. |
rates > high | Returns the highest midpoint exchange rate recorded on the requested date. |
rates > low | Returns the lowest midpoint exchange rate recorded on the requested date. |
rates > vol | Returns the volume of cryptocurrency exchanged on the requested date. |
rates > cap | Returns the current market cap of the given cryptocurrency. |
rates > sup | Returns the current supply amount of the given cryptocurrency. |
Resources