Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

fetch api javascript

  headers = {
            'X-CoinAPI-Key': 'CB1D352F-23E7-4D64-97AC-FB5AEF4839FD'
        }
        fetch('https://rest.coinapi.io/v1/exchangerate/BTC', { headers })
            .then(response => response.json())
            .then(data => {
                console.log('Success:', data);
            })
Source by careerfoundry.com #
 
PREVIOUS NEXT
Tagged: #fetch #api #javascript
ADD COMMENT
Topic
Name
1+2 =