<# call "https://api.coindesk.com/v1/bpi/currentprice.json" to response; print bucket response; #>
response: Array ( [time] => Array ( [updated] => Feb 19, 2020 11:45:00 UTC [updatedISO] => 2020-02-19T11:45:00+00:00 [updateduk] => Feb 19, 2020 at 11:45 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] => 10,161.9417 [description] => United States Dollar [rate_float] => 10161.9417 ) [GBP] => Array ( [code] => GBP [symbol] => £ [rate] => 7,827.8250 [description] => British Pound Sterling [rate_float] => 7827.825 ) [EUR] => Array ( [code] => EUR [symbol] => € [rate] => 9,408.5556 [description] => Euro [rate_float] => 9408.5556 ) ) )
|<#[response.bpi.USD.rate_float as dollars]#> ⇒||$ 10,161.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.