<# call "https://api.coindesk.com/v1/bpi/currentprice.json" to response; print bucket response; #>
response: Array ( [time] => Array ( [updated] => Jan 26, 2021 05:05:00 UTC [updatedISO] => 2021-01-26T05:05:00+00:00 [updateduk] => Jan 26, 2021 at 05:05 GMT ) [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] => 32,085.0634 [description] => United States Dollar [rate_float] => 32085.0634 ) [GBP] => Array ( [code] => GBP [symbol] => £ [rate] => 23,505.1003 [description] => British Pound Sterling [rate_float] => 23505.1003 ) [EUR] => Array ( [code] => EUR [symbol] => € [rate] => 26,450.0279 [description] => Euro [rate_float] => 26450.0279 ) ) )
|<#[response.bpi.USD.rate_float as dollars]#> ⇒||$ 32,085.06|
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.