<# call "https://api.coindesk.com/v1/bpi/currentprice.json" to response; print bucket response; #>
response: Array ( [time] => Array ( [updated] => Jan 25, 2022 22:43:00 UTC [updatedISO] => 2022-01-25T22:43:00+00:00 [updateduk] => Jan 25, 2022 at 22:43 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] => Array ( [USD] => Array ( [code] => USD [symbol] => $ [rate] => 36,662.2333 [description] => United States Dollar [rate_float] => 36662.2333 ) [GBP] => Array ( [code] => GBP [symbol] => £ [rate] => 27,148.6771 [description] => British Pound Sterling [rate_float] => 27148.6771 ) [EUR] => Array ( [code] => EUR [symbol] => € [rate] => 32,440.3939 [description] => Euro [rate_float] => 32440.3939 ) ) )
|<#[response.bpi.USD.rate_float as dollars]#> ⇒||$ 36,662.23|
The Hashtag Markup Language provides methods to Call external APIs, and process any response.
The response text is saved to the named Hashtag Variable. If the response is JSON encoded, it will be decoded into Hashtag Buckets.