Welche Programmiersprachen funktionieren mit der API?
Jede Sprache, die HTTP-Anfragen senden kann, funktioniert. Python-Beispiel:
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-Beispiel:
const res = await fetch('https://lunarcrush.com/api4/public/topic/bitcoin/v1', {
headers: { 'Authorization': 'Bearer YOUR_API_KEY' }
});
console.log(await res.json());
Hilfreiche Links