Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

headers with fetch

  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);
            })
 
PREVIOUS NEXT
Tagged: #headers #fetch
ADD COMMENT
Topic
Name
6+9 =