<# call "https://api.coindesk.com/v1/bpi/currentprice.json" to response; print bucket response; #>
response: Array ( [time] => Array ( [updated] => Apr 23, 2021 16:55:00 UTC [updatedISO] => 2021-04-23T16:55:00+00:00 [updateduk] => Apr 23, 2021 at 17:55 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] => 50,037.0517 [description] => United States Dollar [rate_float] => 50037.0517 ) [GBP] => Array ( [code] => GBP [symbol] => £ [rate] => 36,143.5137 [description] => British Pound Sterling [rate_float] => 36143.5137 ) [EUR] => Array ( [code] => EUR [symbol] => € [rate] => 41,461.1513 [description] => Euro [rate_float] => 41461.1513 ) ) )
|<#[response.bpi.USD.rate_float as dollars]#> ⇒||$ 50,037.05|
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.