<# call "https://api.coindesk.com/v1/bpi/currentprice.json" to response; print bucket response; #>
response: Array ( [time] => Array ( [updated] => Sep 19, 2021 19:31:00 UTC [updatedISO] => 2021-09-19T19:31:00+00:00 [updateduk] => Sep 19, 2021 at 20:31 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] => 47,582.9357 [description] => United States Dollar [rate_float] => 47582.9357 ) [GBP] => Array ( [code] => GBP [symbol] => £ [rate] => 34,629.7186 [description] => British Pound Sterling [rate_float] => 34629.7186 ) [EUR] => Array ( [code] => EUR [symbol] => € [rate] => 40,579.3461 [description] => Euro [rate_float] => 40579.3461 ) ) )
|<#[response.bpi.USD.rate_float as dollars]#> ⇒||$ 47,582.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.