What programming languages work with the API?
Any language that can make HTTP requests works. Python example:
import requests
headers = {"Authorization": "Bearer YOUR_API_KEY"}
r = requests.get("https://lunarcrush.com/api4/public/topic/bitcoin/v1", headers=headers)
print(r.json())
JavaScript/Node example:
const res = await fetch('https://lunarcrush.com/api4/public/topic/bitcoin/v1', {
headers: { 'Authorization': 'Bearer YOUR_API_KEY' }
});
console.log(await res.json());
Helpful links