Bandcamp API

Music / OAuth Advanced HTTPS
Varies by plan (check documentation)

Overview

Bandcamp is an independent music marketplace API that lets you access artist and fan data, sales information, and music catalog details for authorized accounts. Authentication uses OAuth so that users explicitly grant your app permission to read or act on their behalf. It is useful for fan engagement tools, sales dashboards, or music discovery integrations within the Bandcamp ecosystem.

💡

Beginner Tip

Bandcamp's API is mainly designed for labels and artists to manage their own stores — it is not a general public search API, so you need explicit OAuth approval from each account you access. Review the developer page at bandcamp.com/developer to understand data access scope before building.

Available Data

track name and artist
album metadata
audio preview URLs
popularity score
genre classification
Use case: Integrate api of music store bandcamp data into web and mobile applications

Example Response

JSON Response
{
  "name": "Bohemian Rhapsody",
  "artist": "Queen",
  "album": "A Night at the Opera",
  "duration_ms": 354000,
  "popularity": 92,
  "preview_url": "https://p.scdn.co/mp3-preview/..."
}

Field Reference

bands List of bands or artist accounts associated with the authenticated user.
bands[].id Unique Bandcamp band ID used in subsequent API calls.
bands[].name Artist or band name as shown on Bandcamp.
bands[].subdomain The custom subdomain for the band's Bandcamp page (e.g., artistname.bandcamp.com).
bands[].member_bands Sub-bands or labels under this account, if any.

Implementation Example

const url = "https://bandcamp.com/developer";
// Replace headers or query params with the values required by this API.
const response = await fetch(url, {
  headers: {
  "Authorization": "Bearer YOUR_API_KEY"
  }
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
const data = await response.json();
console.log(data);

What Can You Build?

Note: These code examples are AI-generated and unverified. Always refer to the official API documentation for accurate usage.

Common Errors & Troubleshooting

401 Unauthorized OAuth token is missing or not authorized for the requested scope.
Complete the OAuth 2.0 authorization flow so the user grants your app access to their Bandcamp account.
403 Forbidden Your app does not have permission to access this resource.
Request the correct OAuth scopes during authorization — e.g., sales data requires the sales scope.
Rate limit exceeded Too many API calls in a short period.
Cache results locally and avoid polling; batch requests where possible.

Matrix Score Breakdown

🌐 Reachability 30/30
⚡ Speed 10/20
🔒 Security 15/15
🛠 Developer XP 3/20
✓ Reliability 10/15

Partially tested on Apr 5, 2026

Technical Specifications

Auth OAuth
HTTPS REQUIRED
CORS UNKNOWN
Category Music
Difficulty Advanced
Verified: 2026-04-04

Alternatives to Bandcamp

Technical alternatives for different use cases.

Independent music platform with direct artist support

Better For

CC-licensed samples and sound effects

Trade-off

Supporting independent artists directly

Similar APIs

View All →