Bandcamp API endpoint
Returns the tags Bandcamp relates to a tag, strongest first, including location tags. Use it to walk from a genre in bandcamp_filters to its subgenres, then pass them to bandcamp_discover.
/bandcamp/related-tagsReturns the tags Bandcamp relates to a tag, strongest relation first. Use it to walk from a genre in bandcamp-filters down to subgenres and location tags, then pass them to bandcamp-discover.
tag is required: a lowercase tag slug such as ambient, hip-hop-rap, 日本 or são-paulo. Bandcamp normalizes the slug it returns (électronique comes back as electronique); use the returned tag. size is 1 to 50 (default 20).
Notable response behavior:
related[].tag is the slug to use as a tags value; related[].name is the display name; relation is a 0 to 1 strength; is_location marks place tags.kids, return related: [] with an empty name.| Field | Filled in, of 38 checked | Values in the sample |
|---|---|---|
| name | 38 | “relaxation” and 37 other values |
| tag | 38 | “relaxation” and 37 other values |
| relation | 38 | 0.08 to 0.64, median 0.18 |
| is_location | 38 | true in 2 of 38 |
| Parameter | Type | Required | Default | Description | Example |
|---|---|---|---|---|---|
| tag | string | Yes | Tag slug | ambient | |
| size | integer | No | Related tags to return Minimum: 1. Maximum: 50. | ||
| x-api-key (header) | string | Yes | API key required |
curl -X GET "https://api.crawlora.net/api/v1/bandcamp/related-tags?tag=ambient" \ -H "x-api-key: $CRAWLORA_API_KEY"
{
"code": 200,
"data": {
"tag": "ambient",
"name": "Ambient",
"related": [
{
"name": "drone ambient",
"tag": "drone-ambient",
"relation": 0.539757849161287,
"is_location": false
},
{
"name": "atmospheric",
"tag": "atmospheric",
"relation": 0.3876023565156175,
"is_location": false
},
{
"name": "dark ambient",
"tag": "dark-ambient",
"relation": 0.37747330027653286,
"is_location": false
}
]
},
"msg": "OK"
}Request schema
No body schema
Response schema
#/definitions/bandcamp.relatedTagsResponseDoc
| Field | Type | Required | Enum | Bounds | Example | Description |
|---|---|---|---|---|---|---|
| code | integer | No | 200 | |||
| data | bandcamp.RelatedTagsResponse | No | ||||
| data.name | string | No | ||||
| data.related | array | No | ||||
| data.related[].is_location | boolean | No | ||||
| data.related[].name | string | No | ||||
| data.related[].relation | number | No | ||||
| data.related[].tag | string | No | ||||
| data.tag | string | No | ||||
| msg | string | No | OK |
| Status | Description | Schema |
|---|---|---|
| 400 | Bad Request | #/definitions/app.Response |
| 429 | Too Many Requests | #/definitions/app.Response |
| 503 | Service Unavailable | #/definitions/app.Response |
Use environment variables for secrets and keep Crawlora API keys server-side.
curl -X GET "https://api.crawlora.net/api/v1/bandcamp/related-tags?tag=ambient" \
-H "x-api-key: $CRAWLORA_API_KEY"