Call Bitcoin Value API

This page uses a Hashtag Call to send a request to a Bitcoin Value API.   A Hashtag Print Bucket command is used to inspect the values from the JSON-decoded response.  
Note:  The Bitcoin Value API is provided by a 3rd party, and is not affiliated with the Hashtag Foundation.  
Processing this Hashtag Markup:
<#

call "https://api.coindesk.com/v1/bpi/currentprice.json" to response;
print bucket response;

#>
response: Array
(
    [time] => Array
        (
            [updated] => Apr 24, 2024 17:35:30 UTC
            [updatedISO] => 2024-04-24T17:35:30+00:00
            [updateduk] => Apr 24, 2024 at 18:35 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] => &#36;
                    [rate] => 65,073.496
                    [description] => United States Dollar
                    [rate_float] => 65073.4964
                )

            [GBP] => Array
                (
                    [code] => GBP
                    [symbol] => &pound;
                    [rate] => 52,282.325
                    [description] => British Pound Sterling
                    [rate_float] => 52282.3246
                )

            [EUR] => Array
                (
                    [code] => EUR
                    [symbol] => &euro;
                    [rate] => 60,869.553
                    [description] => Euro
                    [rate_float] => 60869.5533
                )

        )

)

Note:  Hashtag Markup is shown below <# in bold #>.   The value generated by processing the Hashtag Markup, and applying any Variable Contexts, is injected into this HTML page after the ⇒ symbol.  
<#[response.bpi.USD.rate_float as dollars]#> ⇒ $ 65,073.50


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.  

Optional parameters can be sent with the call.   The values in the named Hashtag Bucket will be sent with the request as HTTP POST variables.