Provide examples
GET https://api.coindesk.com/v1/bpi/historical/close.json?start=2013-09-01&end=2020-09-01
Save [examples] of requests and responses so users can understand the endpoint and troubleshoot issues more quickly. This is especially useful when a user is browsing the documentation and doesn’t yet have their access credentials. Ensure that these examples contain readable, prototypical usage of your API endpoints. In Qodex, you can add and reference these examples, saving actual server responses or mocking new ones from scratch. Then in the web-viewable documentation, you can reference these paired requests and responses.
Body
PARAM
Key | Datatype | Required | Description |
start
|
string | ||
end
|
string |
HEADERS
Key | Datatype | Required | Description |
RESPONSES
status OK
{
"bpi": {
"2013-09-01": 128.2597,
"2013-09-02": 127.3648,
"2013-09-03": 127.5915,
"2013-09-04": 120.5738,
"2013-09-05": 120.5333
},
"disclaimer": "This data was produced from the CoinDesk Bitcoin Price Index. BPI value data returned as USD.",
"time": {
"updated": "Sep 6, 2013 00:03:00 UTC",
"updatedISO": "2013-09-06T00:03:00+00:00"
}
} |
ENDPOINTS