<# call "https://api.coindesk.com/v1/bpi/currentprice.json" to response; print bucket response; #>
response: Array ( [time] => Array ( [updated] => Jul 8, 2020 03:52:00 UTC [updatedISO] => 2020-07-08T03:52:00+00:00 [updateduk] => Jul 8, 2020 at 04:52 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] => 9,298.8867 [description] => United States Dollar [rate_float] => 9298.8867 ) [GBP] => Array ( [code] => GBP [symbol] => £ [rate] => 7,403.4016 [description] => British Pound Sterling [rate_float] => 7403.4016 ) [EUR] => Array ( [code] => EUR [symbol] => € [rate] => 8,244.5696 [description] => Euro [rate_float] => 8244.5696 ) ) )
|<#[response.bpi.USD.rate_float as dollars]#> ⇒||$ 9,298.89|
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.