Bitcoin exchange rate

GET https://api.coindesk.com/v1/bpi/currentprice.json

CoinDesk provides a simple API to make its Bitcoin Price Index (BPI) data programmatically available to others. Data is returned in JSON format.

Read more about the Coindesk API.

Under the Tests tab in the Qodex app, see how we extract data from the response, save it as a variable, so that we can use the information in subsequent requests. We will be using an environment to save this information. Make sure you have created and selected an environment, and then send this request.

RESPONSES

status: OK

{"time":{"updated":"Nov 19, 2018 20:25:00 UTC","updatedISO":"2018-11-19T20:25:00+00:00","updateduk":"Nov 19, 2018 at 20:25 GMT"},"disclaimer":"This data was produced from the CoinDesk Bitcoin Price Index (USD). Non-USD currency data converted using hourly conversion rate from openexchangerates.org","chartName":"Bitcoin","bpi":{"USD":{"code":"USD","symbol":"\u0026#36;","rate":"5,003.4550","description":"United States Dollar","rate_float":5003.455},"GBP":{"code":"GBP","symbol":"\u0026pound;","rate":"3,892.1176","description":"British Pound Sterling","rate_float":3892.1176},"EUR":{"code":"EUR","symbol":"\u0026euro;","rate":"4,368.2164","description":"Euro","rate_float":4368.2164}}}