Zum Inhalt springen
GET /v1/charts

Sitewide listening charts

Live testen

10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.

Eigene Header (optional)
api.oanor.com/listenbrainz-api

Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.

API-Key holen

Code-Snippets

curl "https://api.oanor.com/listenbrainz-api/v1/charts" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/listenbrainz-api/v1/charts", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/listenbrainz-api/v1/charts");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
    "https://api.oanor.com/listenbrainz-api/v1/charts",
    headers={"x-oanor-key": "oanor_test_..."}
)

Beispiel-Response

Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.

{
    "data": {
        "count": 25,
        "range": "week",
        "charts": [
            {
                "mbid": "69158f97-4c07-4c4e-baf8-4e4ab1ed666e",
                "name": "Boards of Canada",
                "rank": 1,
                "title": null,
                "artist": "Boards of Canada",
                "listen_count": 33354
            },
            {
                "mbid": "f59c5520-5f46-4d2c-b2c4-822eabf53419",
                "name": "Linkin Park",
                "rank": 2,
                "title": null,
                "artist": "Linkin Park",
                "listen_count": 17407
            },
            {
                "mbid": "a74b1b7f-71a5-4011-9441-d0b5e4122711",
                "name": "Radiohead",
                "rank": 3,
                "title": null,
                "artist": "Radiohead",
                "listen_count": 13545
            },
            {
                "mbid": "9fff2f8a-21e6-47de-a2b8-7f449929d43f",
                "name": "Drake",
                "rank": 4,
                "title": null,
                "artist": "Drake",
                "listen_count": 12043
            },
            {
                "mbid": "20244d07-534f-4eff-b4d4-930878889970",
                "name": "Taylor Swift",
                "rank": 5,
                "title": null,
                "artist": "Taylor Swift",
                "listen_count": 11600
            },
            {
                "mbid": "164f0d73-1234-4e2c-8743-d77bf2191051",
                "name": "Ye",
                "rank": 6,
                "title": null,
                "artist": "Ye",
                "listen_count": 11351
            },
            {
                "mbid": "f27ec8db-af05-4f36-916e-3d57f91ecf5e",
                "name": "Michael Jackson",
                "rank": 7,
                "title": null,
                "artist": "Michael Jackson",
                "listen_count": 10800
            },
            {
                "mbid": "381086ea-f511-4aba-bdf9-71c753dc5077",
                "name": "Kendrick Lamar",
                "rank": 8,
                "title": null,
                "artist": "Kendrick Lamar",
                "listen_count": 10517
            },
            {
                "mbid": "b51c672b-85e0-48fe-8648-470a2422229f",
                "name": "aespa",
                "rank": 9,
                "title": null,
                "artist": "aespa",
                "listen_count": 9921
            },
            {
                "mbid": "b10bbbfc-cf9e-42e0-be17-e2c3e1d2600d",
                "name": "The Beatles",
                "rank": 10,
                "title": null,
                "artist": "The Beatles",
                "listen_count": 9685
            },
            {
                "mbid": "c8b03190-306c-4120-bb0b-6f2ebfc06ea9",
                "name": "The Weeknd",
                "rank": 11,
                "title": null,
                "artist": "The Weeknd",
                "listen_count": 87
…