<# call "https://api.coindesk.com/v1/bpi/currentprice.json" to response; print bucket response; #>
response: Array ( [time] => Array ( [updated] => Jun 28, 2022 05:41:00 UTC [updatedISO] => 2022-06-28T05:41:00+00:00 [updateduk] => Jun 28, 2022 at 06:41 BST ) [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] => 20,768.3550 [description] => United States Dollar [rate_float] => 20768.355 ) [GBP] => Array ( [code] => GBP [symbol] => £ [rate] => 16,862.2220 [description] => British Pound Sterling [rate_float] => 16862.222 ) [EUR] => Array ( [code] => EUR [symbol] => € [rate] => 19,741.7752 [description] => Euro [rate_float] => 19741.7752 ) ) )
|<#[response.bpi.USD.rate_float as dollars]#> ⇒||$ 20,768.36|
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.