{
  "openapi": "3.0.1",
  "info": {
    "title": "Bandcamp Scraper",
    "description": "Scrape Bandcamp, the artist-first music marketplace. Search albums, tracks, artists, labels; fetch any album/track/artist page; browse by tag/genre or the discover feed. Returns title, artist, label, release date, tracks, prices, cover art, and audio stream URLs.",
    "version": "1.0",
    "x-build-id": "jqniAI1udWsogqNed"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/crawlerbros~bandcamp-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-crawlerbros-bandcamp-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/crawlerbros~bandcamp-scraper/runs": {
      "post": {
        "operationId": "runs-sync-crawlerbros-bandcamp-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/crawlerbros~bandcamp-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-crawlerbros-bandcamp-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "required": [
          "mode"
        ],
        "properties": {
          "mode": {
            "title": "Mode",
            "enum": [
              "byUrl",
              "searchAlbum",
              "searchTrack",
              "searchArtist",
              "searchBand",
              "searchLabel",
              "byArtist",
              "byAlbum",
              "byTrack",
              "byTag",
              "byGenre",
              "discover"
            ],
            "type": "string",
            "description": "What to fetch.",
            "default": "byUrl"
          },
          "url": {
            "title": "URL",
            "type": "string",
            "description": "A bandcamp.com URL — album, track, artist subdomain, or tag page. Used by mode=byUrl/byAlbum/byTrack/byArtist.",
            "default": "https://godspeedyoublackemperor.bandcamp.com/album/lift-your-skinny-fists-like-antennas-to-heaven"
          },
          "urls": {
            "title": "URLs (mode=byUrl, batch)",
            "type": "array",
            "description": "Multiple bandcamp.com URLs. Album/track/artist/tag URLs are auto-routed.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "query": {
            "title": "Search query (mode=search*)",
            "type": "string",
            "description": "Free-text query for the search modes.",
            "default": "ambient"
          },
          "artistSubdomain": {
            "title": "Artist subdomain (mode=byArtist/byAlbum/byTrack)",
            "type": "string",
            "description": "Artist subdomain on bandcamp.com (the part before `.bandcamp.com`). Combine with `albumSlug` or `trackSlug` to build a URL."
          },
          "artistUrl": {
            "title": "Artist URL (mode=byArtist)",
            "type": "string",
            "description": "Full URL of the artist's bandcamp.com homepage."
          },
          "albumSlug": {
            "title": "Album slug (mode=byAlbum)",
            "type": "string",
            "description": "Album slug — the part after `/album/` in the URL."
          },
          "trackSlug": {
            "title": "Track slug (mode=byTrack)",
            "type": "string",
            "description": "Track slug — the part after `/track/` in the URL."
          },
          "tag": {
            "title": "Tag (mode=byTag)",
            "type": "string",
            "description": "Bandcamp tag slug, e.g. `electronic`, `lo-fi`, `synthwave`."
          },
          "genre": {
            "title": "Genre (mode=byGenre / discover)",
            "enum": [
              "all",
              "electronic",
              "rock",
              "metal",
              "alternative",
              "hip-hop-rap",
              "experimental",
              "punk",
              "folk",
              "pop",
              "ambient",
              "soundtrack",
              "world",
              "jazz",
              "acoustic",
              "funk",
              "r-and-b-soul",
              "devotional",
              "classical",
              "reggae",
              "podcasts",
              "country",
              "spoken-word",
              "comedy",
              "blues",
              "kids",
              "audiobooks",
              "latin"
            ],
            "type": "string",
            "description": "One of the curated Bandcamp top-level genres. Used by mode=byGenre and mode=discover."
          },
          "sortBy": {
            "title": "Sort (mode=discover)",
            "enum": [
              "top",
              "new",
              "rec"
            ],
            "type": "string",
            "description": "Sort order for the discover feed.",
            "default": "top"
          },
          "minPrice": {
            "title": "Minimum price (USD)",
            "minimum": 0,
            "maximum": 1000,
            "type": "number",
            "description": "Drop records with a listed price below this value. Records without pricing data pass."
          },
          "maxPrice": {
            "title": "Maximum price (USD)",
            "minimum": 0,
            "maximum": 1000,
            "type": "number",
            "description": "Drop records with a listed price above this value. Records without pricing data pass."
          },
          "onlyWithAudio": {
            "title": "Audio stream required",
            "type": "boolean",
            "description": "Only emit records that have a streamable audio URL or featured track.",
            "default": false
          },
          "onlyFree": {
            "title": "Only free items",
            "type": "boolean",
            "description": "Only emit records that are name-your-price-zero or explicitly free.",
            "default": false
          },
          "useProxy": {
            "title": "Use Apify proxy",
            "type": "boolean",
            "description": "Route requests through Apify proxy. Bandcamp is normally accessible without a proxy.",
            "default": false
          },
          "autoEscalateOnBlock": {
            "title": "Auto-escalate to proxy on block",
            "type": "boolean",
            "description": "If direct fetches return 403/429, retry through Apify proxy automatically.",
            "default": true
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Optional Apify proxy configuration override.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": []
            }
          },
          "maxItems": {
            "title": "Max items",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Hard cap on emitted records.",
            "default": 50
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}