<# call "https://api.coindesk.com/v1/bpi/currentprice.json" to response; print bucket response; #>
response: Array ( [time] => Array ( [updated] => Feb 3, 2023 22:47:00 UTC [updatedISO] => 2023-02-03T22:47:00+00:00 [updateduk] => Feb 3, 2023 at 22:47 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] => 23,428.6802 [description] => United States Dollar [rate_float] => 23428.6802 ) [GBP] => Array ( [code] => GBP [symbol] => £ [rate] => 19,576.8177 [description] => British Pound Sterling [rate_float] => 19576.8177 ) [EUR] => Array ( [code] => EUR [symbol] => € [rate] => 22,822.9551 [description] => Euro [rate_float] => 22822.9551 ) ) )
|<#[response.bpi.USD.rate_float as dollars]#> ⇒||$ 23,428.68|
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.