<# call "https://api.coindesk.com/v1/bpi/currentprice.json" to response; print bucket response; #>
response: Array ( [time] => Array ( [updated] => Sep 26, 2020 20:56:00 UTC [updatedISO] => 2020-09-26T20:56:00+00:00 [updateduk] => Sep 26, 2020 at 21:56 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] => 10,721.7740 [description] => United States Dollar [rate_float] => 10721.774 ) [GBP] => Array ( [code] => GBP [symbol] => £ [rate] => 8,155.3030 [description] => British Pound Sterling [rate_float] => 8155.303 ) [EUR] => Array ( [code] => EUR [symbol] => € [rate] => 9,082.0609 [description] => Euro [rate_float] => 9082.0609 ) ) )
|<#[response.bpi.USD.rate_float as dollars]#> ⇒||$ 10,721.77|
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.