<# call "https://api.coindesk.com/v1/bpi/currentprice.json" to response; print bucket response; #>
response: Array ( [time] => Array ( [updated] => Apr 1, 2020 13:50:00 UTC [updatedISO] => 2020-04-01T13:50:00+00:00 [updateduk] => Apr 1, 2020 at 14:50 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] => 6,211.9383 [description] => United States Dollar [rate_float] => 6211.9383 ) [GBP] => Array ( [code] => GBP [symbol] => £ [rate] => 5,015.8048 [description] => British Pound Sterling [rate_float] => 5015.8048 ) [EUR] => Array ( [code] => EUR [symbol] => € [rate] => 5,683.5757 [description] => Euro [rate_float] => 5683.5757 ) ) )
|<#[response.bpi.USD.rate_float as dollars]#> ⇒||$ 6,211.94|
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.