<# call "https://api.coindesk.com/v1/bpi/currentprice.json" to response; print bucket response; #>
response: Array ( [time] => Array ( [updated] => Dec 1, 2023 12:54:00 UTC [updatedISO] => 2023-12-01T12:54:00+00:00 [updateduk] => Dec 1, 2023 at 12:54 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] => 38,130.8958 [description] => United States Dollar [rate_float] => 38130.8958 ) [GBP] => Array ( [code] => GBP [symbol] => £ [rate] => 31,861.8715 [description] => British Pound Sterling [rate_float] => 31861.8715 ) [EUR] => Array ( [code] => EUR [symbol] => € [rate] => 37,145.0596 [description] => Euro [rate_float] => 37145.0596 ) ) )
|<#[response.bpi.USD.rate_float as dollars]#> ⇒||$ 38,130.90|
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.