Vai al contenuto
GET /v1/search

Search bands, albums, tracks, labels

Provalo dal vivo

10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.

Intestazioni personalizzate (facoltative)
api.oanor.com/bandcamp-api

Funziona. Prendi una chiave API e usala nel tuo progetto.

Ottieni una chiave API

Frammenti di codice

curl "https://api.oanor.com/bandcamp-api/v1/search" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/bandcamp-api/v1/search", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/bandcamp-api/v1/search");
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/bandcamp-api/v1/search",
    headers={"x-oanor-key": "oanor_test_..."}
)

Risposta di esempio

Una risposta reale di questo endpoint, acquisita dall'ultimo health check.

{
    "data": {
        "note": "Search Bandcamp across bands, albums, tracks and labels — each result with its kind, name, artist, page url, location and cover art. Filter with type=band|album|track. The discovery entry point into Bandcamp's independent-music marketplace.",
        "count": 25,
        "query": "radiohead",
        "source": "Bandcamp",
        "results": [
            {
                "id": 3957198221,
                "art": "https://f4.bcbits.com/img/a40867508_10.jpg",
                "url": "https://radiohead.bandcamp.com",
                "kind": "band",
                "name": "Radiohead",
                "artist": null,
                "band_id": null,
                "is_label": false,
                "location": "Oxford, UK",
                "tag_names": [
                    "Alternative"
                ]
            },
            {
                "id": 3317386587,
                "art": "https://f4.bcbits.com/img/a3185643660_10.jpg",
                "url": "https://radiohead.bandcamp.com",
                "kind": "album",
                "name": "KID A MNESIA",
                "artist": "Radiohead",
                "band_id": 3957198221,
                "is_label": false,
                "location": null,
                "tag_names": []
            },
            {
                "id": 2162872411,
                "art": "https://f4.bcbits.com/img/a552435637_10.jpg",
                "url": "https://radiohead.bandcamp.com",
                "kind": "album",
                "name": "In Rainbows",
                "artist": "Radiohead",
                "band_id": 3957198221,
                "is_label": false,
                "location": null,
                "tag_names": []
            },
            {
                "id": 2045365829,
                "art": "https://f4.bcbits.com/img/a2501641316_10.jpg",
                "url": "https://radiohead.bandcamp.com",
                "kind": "album",
                "name": "OK Computer",
                "artist": "Radiohead",
                "band_id": 3957198221,
                "is_label": false,
                "location": null,
                "tag_names": []
            },
            {
                "id": 3253272115,
                "art": "https://f4.bcbits.com/img/a138267232_10.jpg",
                "url": "https://radiohead.bandcamp.com",
                "kind": "album",
                "name": "The Bends",
                "artist": "Radiohead",
                "band_id": 3957198221,
                "is_label": false,
                "location": null,
                "tag_names": []
            },
            {
                "id": 2788392198,
                "art": "https://f4.bcbits.com/img/a808547322_10.jpg",
                "url": "https://radiohead.bandcamp.com",
                "kind": "album",
                "name": "Kid A",
                "artist": "Radiohead",
                "band_id": 3957198221,
                "is_label": false,
                "loc
…