# \[WS\] Bandcamp (search by URL)

**URL:** https://community.mp3tag.de/t/ws-bandcamp-search-by-url/17838
**Category:** Web Sources Scripts
**Created:** [April 11, 2016, 6:54pm UTC](https://community.mp3tag.de/t/ws-bandcamp-search-by-url/17838 "2016-04-11T18:54:39Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![ms6676749](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/m/b4bc9f/32.png) [@ms6676749](https://community.mp3tag.de/u/ms6676749)
#### Post date: [April 11, 2016, 6:54pm UTC](https://community.mp3tag.de/t/ws-bandcamp-search-by-url/17838/1 "2016-04-11T18:54:39Z")

</div>

# Bandcamp Tag Source

This Bandcamp Tag Source allows for searching by Bandcamp URL via [bandcamp.com](http://bandcamp.com)

## Download

[Bandcamp-0.4.8.zip](https://community.mp3tag.de/uploads/short-url/jn0V8njiuX4AYg7KcjUkl7clJzn.zip) (4,9 KB)

Requires Mp3tag v3.32 on Windows 10 or above or Mp3tag for Mac v1.9.13.

## Supported Fields

| | |
| --- | --- |
| `ARTIST` | |
| `ALBUM ` | |
| `TITLE ` | |
| `TRACK ` | |
| `TOTALTRACKS ` | |
| `GENRE ` | |
| `KEYWORDS ` | Bandcamp keywords |
| `PUBLISHER ` | |
| `IRSC ` | Only for track URLs |
| `RELEASETIME ` | |
| `YEAR ` | `YYYY` or `YYYY-MM-DD` based on settings. |
| `COMMENT ` | Bandcamp description |
| `COMMENT URL` | Bandcamp urls included in description |
| `CREDITS ` | Bandcamp credits |
| `WWW ` | Bandcamp Album URL |
| `WWW TRACK ` | Bandcamp Track URL |

It also fetches cover art in good quality. If you want the highest possible quality, please enable the respective configuration setting.

## Changelog

## [0.4.8](https://community.mp3tag.de/t/17838/69) (2026-07-02) @yorickausyps

- Added configuration setting to select track numbers with leading zeros and to append total track count to track numbers.
- Redesigned configuration settings and changed setting for `YEAR` format to type boolean.
- Added support for custom tag field `COMMENT URL`, that will get bandcamp urls if there are any included in the `COMMENT` tag field respectively the web sources description json object.

## [0.4.7](https://community.mp3tag.de/t/17838/65) (2026-06-22) @yorickausyps

- Fixed artist from track URLs may have multiple values.

## [0.4.6](https://community.mp3tag.de/t/17838/64) (2026-06-16) @yorickausyps

- Added support for `WWW TRACK` to store Bandcamp track URLs.
- Added script `Bandcamp Album` to request Bandcamp Album URL, using existing contents from `WWW`.
- Added script `Bandcamp Track` to request Bandcamp Track URL, using existing contents from `WWW TRACK`. This enables to use the Bandcamp Album results to afterwards request Bandcamp Track info and artwork for one track after another.
- Added configuration setting to use separate `COMMENT`, `CREDITS`, `GENRE` and `KEYWORDS` tags for track Urls, to allow easy comparison of track tags with corresponding album tags.
- Added support for `IRSC` for track URL results only.
- Added support for `PUBLISHER`.
- Changed to use standard capitalization for `KEYWORDS`.
- Some more internal changes

## [0.4.5](https://community.mp3tag.de/t/17838/63) (2026-06-03) @yorickausyps

- Use existing contents from `WWW` when searching by Bandcamp URL.

## [0.4.4](https://community.mp3tag.de/t/17838/58) (2026-05-05) @Florian

- Added support for searching by Bandcamp URL.
- Changed to use standard capitalization for `GENRE`.
- Fixed `GENRE` contained Bandcamp discover URL.

> **Further changes**
>
> ## [0.4.3](https://community.mp3tag.de/t/17838/53) (2024-05-24) @Florian
> 
> - Added support for cover thumbnails in search results.
> 
> ## [0.4.2](https://community.mp3tag.de/t/17838/43) (2023-09-17) @Florian
> 
> - Added support for cover thumbnails in search results (macOS-only).
> - Added configuration setting for `YEAR` format.
> - Added configuration setting to use highest quality for cover art.
> - Added configuration settings to omit albums or tracks from search results.
> 
> ## [0.4.1](https://community.mp3tag.de/t/17838/41) (2023-09-13) @Florian
> 
> - Added error handling in case search term returns no results.
> - Fixed typo in `WordSeparator` configuration setting, which effectively removed every space character from the query before it was sent to Bandcamp.
> 
> ## [0.4.0](https://community.mp3tag.de/t/17838/39) (2023-09-12) @Florian
> 
> - Changed to use JSON representation for parsing album part.
> 
> ## [0.3.4](https://community.mp3tag.de/t/17838/37) (2023-09-11) @Florian
> 
> - Fixed track numbers and titles are not always listed correctly.
> 
> ## [0.3.3](https://community.mp3tag.de/t/17838/28) (2021-06-13) @ms6676749
> 
> - Changed to return artist and track results only.
> 
> ## [0.3.2](https://community.mp3tag.de/t/17838/27) (2021-04-26) @ms6676749
> 
> - Updated to modified search page.
> 
> ## [0.3.1](https://community.mp3tag.de/t/17838/17) (2020-10-08) @ms6676749
> 
> - Fixed broken Tag Source.
> 
> ## [0.3.0](https://community.mp3tag.de/t/17838/15) (2020-09-28) @ms6676749
> 
> - Fixed broken Tag Source.
> 
> ## [0.2.0](https://community.mp3tag.de/t/17838/9) (2019-01-16) @Florian
> 
> - Fixed broken Tag Source.
> 
> ## [0.1.3](https://community.mp3tag.de/t/17838/4) (2017-06-18) @ms6676749
> 
> - Minor fixes.
> 
> ## [0.1.2](https://community.mp3tag.de/t/17838/3) (2016-06-26) @ms6676749
> 
> - Minor fixes.
> 
> ## [0.1.1](https://community.mp3tag.de/t/17838/2) (2016-05-16) @ms6676749
> 
> - Minor fixes.
> 
> ## [0.1.0](https://community.mp3tag.de/t/17838/1) (2016-04-11) @ms6676749
> 
> - Initial release.

---

<div class="post-metadata">

### Author: ![ms6676749](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/m/b4bc9f/32.png) [@ms6676749](https://community.mp3tag.de/u/ms6676749)
#### Post date: [May 12, 2016, 3:07am UTC](https://community.mp3tag.de/t/ws-bandcamp-search-by-url/17838/2 "2016-05-12T03:07:38Z")

</div>

Updated. I have more luck searching , so I set the index parser to search that field accordingly.

---

<div class="post-metadata">

### Author: ![ms6676749](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/m/b4bc9f/32.png) [@ms6676749](https://community.mp3tag.de/u/ms6676749)
#### Post date: [June 25, 2016, 11:57pm UTC](https://community.mp3tag.de/t/ws-bandcamp-search-by-url/17838/3 "2016-06-25T23:57:11Z")

</div>

Updated. First time I used it in awhile and I noticed that it had difficulty parsing one of the variants of "trackinfo: "

Fixed for now...

---

<div class="post-metadata">

### Author: ![ms6676749](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/m/b4bc9f/32.png) [@ms6676749](https://community.mp3tag.de/u/ms6676749)
#### Post date: [June 18, 2017, 1:43pm UTC](https://community.mp3tag.de/t/ws-bandcamp-search-by-url/17838/4 "2017-06-18T13:43:58Z")

</div>

Updated websource. Sorry about the jankiness from my older Bandcamp scripts. Admittedly, they were done in a hurry. No one mentioned anything to me here, so I thought they worked well for others. Again, I don't use Bandcamp all that much, so I tested this recently and found the one I posted from last year was broken. This one should be much better (using sayregexp now). See OP for new src file.

---

<div class="post-metadata">

### Author: ![Xerus](https://community.mp3tag.de/user_avatar/community.mp3tag.de/xerus/32/5261_2.png) [@Xerus](https://community.mp3tag.de/u/Xerus)
#### Post date: [June 26, 2017, 2:23pm UTC](https://community.mp3tag.de/t/ws-bandcamp-search-by-url/17838/5 "2017-06-26T14:23:49Z")

</div>

Umm, how do I query an artist?  
I don't have any albums, only individual Songs but nearly all of them are on bandcamp and got a cover there.

---

<div class="post-metadata">

### Author: ![ms6676749](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/m/b4bc9f/32.png) [@ms6676749](https://community.mp3tag.de/u/ms6676749)
#### Post date: [June 28, 2017, 5:44am UTC](https://community.mp3tag.de/t/ws-bandcamp-search-by-url/17838/6 "2017-06-28T05:44:19Z")

</div>

Artist pages often times don't have the track info you're looking for. Also, one would need to go to another page, which is beyond what the index parser can do (index -\> URL; not index -\> URL -\> URL2).

I updated the initial post to include a source that permits searching for single tracks.

---

<div class="post-metadata">

### Author: ![Florian](https://community.mp3tag.de/user_avatar/community.mp3tag.de/florian/32/5759_2.png) [@Florian](https://community.mp3tag.de/u/Florian)
#### Post date: [December 21, 2017, 7:34pm UTC](https://community.mp3tag.de/t/ws-bandcamp-search-by-url/17838/7 "2017-12-21T19:34:25Z")

</div>

Just wanted to say thanks for the nice web source. It's great that Bandcamp is accessible from Mp3tag 🙂

Kind regards  
— Florian

---

<div class="post-metadata">

### Author: ![Leo](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/c2a13f/32.png) [@Leo](https://community.mp3tag.de/u/Leo)
#### Post date: [January 14, 2019, 5:26am UTC](https://community.mp3tag.de/t/ws-bandcamp-search-by-url/17838/8 "2019-01-14T05:26:40Z")

</div>

I downloaded the source. It works well to find the track on Bandcamp but all the tags fields are then empty.  
I'm pretty sure it is caused by the structure of the website that must have changed. Do you have any update or could you help me with some tips on how to adapt the source to make it work ?

Many thanks

 ![39%20AM](https://community.mp3tag.de/uploads/default/original/2X/9/901613c5ecc19980a888e11bae87dc1062865dee.png) ![44%20AM](https://community.mp3tag.de/uploads/default/original/2X/3/3afe126e07b901b215fa13fe874eb15c7e29c69c.png)

---

<div class="post-metadata">

### Author: ![Florian](https://community.mp3tag.de/user_avatar/community.mp3tag.de/florian/32/5759_2.png) [@Florian](https://community.mp3tag.de/u/Florian)
#### Post date: [January 16, 2019, 8:29pm UTC](https://community.mp3tag.de/t/ws-bandcamp-search-by-url/17838/9 "2019-01-16T20:29:34Z")

</div>

I've fixed the Track-based search and updated the web source in the first post.

---

<div class="post-metadata">

### Author: ![siklehelm](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/s/8e8cbc/32.png) [@siklehelm](https://community.mp3tag.de/u/siklehelm)
#### Post date: [November 14, 2019, 5:56pm UTC](https://community.mp3tag.de/t/ws-bandcamp-search-by-url/17838/10 "2019-11-14T17:56:50Z")

</div>

It's mostly in working order still, but I've had two odd problems with this:

1. Tracks 7 and all the way down are repeated with track 1. I've done many, but this issue is oddly specific to this album/page. 

2. Song titles with quotation are being attached (escaped?) with backslashes (so "). It's not a huge deal, but it requires extra steps in tagging by having to use $replace otherwise it'll output some odd file type/name shenanigans.

---

<div class="post-metadata">

### Author: ![ohrenkino](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ohrenkino/32/4843_2.png) [@ohrenkino](https://community.mp3tag.de/u/ohrenkino)
#### Post date: [November 14, 2019, 8:35pm UTC](https://community.mp3tag.de/t/ws-bandcamp-search-by-url/17838/11 "2019-11-14T20:35:30Z")

</div>

Seems to be an undesirable result - has also been noted in a German thread:

> [@Fehler Discogs-Abfrage v2.99a](https://community.mp3tag.de/t/fehler-discogs-abfrage-v2-99a/46853):
>
> Hallo ich konnte bei Discogs nichts erkennen, was zu dem Fehler führen könnte.

---

<div class="post-metadata">

### Author: ![get8p](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/g/b9bd4f/32.png) [@get8p](https://community.mp3tag.de/u/get8p)
#### Post date: [January 24, 2020, 1:46pm UTC](https://community.mp3tag.de/t/ws-bandcamp-search-by-url/17838/12 "2020-01-24T13:46:35Z")

</div>

When attempting to tag a single file, looking for albums will only return the first track for some reason. Is there a way to fix this? Also, is there a way to produce a full date format e.g. 2017-07-28?

[![](https://i.imgur.com/IP0nLOC.jpg) ](https://i.imgur.com/IP0nLOC.jpg)

---

<div class="post-metadata">

### Author: ![wikilex](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/w/5fc32e/32.png) [@wikilex](https://community.mp3tag.de/u/wikilex)
#### Post date: [August 19, 2020, 11:07am UTC](https://community.mp3tag.de/t/ws-bandcamp-search-by-url/17838/13 "2020-08-19T11:07:48Z")

</div>

When you buy something on Bandcamp, usually you already know the URL. Sometimes the search of the script doesn't find the release even though it is letter for letter like on Bandcamp. Hence it would pretty great to have an option to enter the URL manually instead of just searching for it.

Can this be added to the script?

---

<div class="post-metadata">

### Author: ![Romano](https://community.mp3tag.de/user_avatar/community.mp3tag.de/romano/32/7465_2.png) [@Romano](https://community.mp3tag.de/u/Romano)
#### Post date: [August 19, 2020, 12:48pm UTC](https://community.mp3tag.de/t/ws-bandcamp-search-by-url/17838/14 "2020-08-19T12:48:47Z")

</div>

try this:  
[Bandcamp#U&RL.src](https://community.mp3tag.de/uploads/short-url/m8ZD8m27aH4toAc4xRqZGDK803i.src) (3.5 KB)

---

<div class="post-metadata">

### Author: ![ms6676749](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/m/b4bc9f/32.png) [@ms6676749](https://community.mp3tag.de/u/ms6676749)
#### Post date: [September 28, 2020, 7:05am UTC](https://community.mp3tag.de/t/ws-bandcamp-search-by-url/17838/15 "2020-09-28T07:05:28Z")

</div>

Bandcamp changed their site, so here are updated websources for album searching (1st websource) or simply paste the URL into the search window (2nd websource). It doesn't grab as many info fields as before. Just keeping it simple with the basics.

[Bandcamp - Default.src](https://community.mp3tag.de/uploads/short-url/jxUgx6zHRfhori2zwVt2HJDZKMt.src) (3.8 KB)  
[Bandcamp - URL.src](https://community.mp3tag.de/uploads/short-url/4YeSSbMWpcwzfXTPfvdxoMWJeox.src) (2.6 KB)

---

<div class="post-metadata">

### Author: ![Maitol](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/m/ce73a5/32.png) [@Maitol](https://community.mp3tag.de/u/Maitol)
#### Post date: [October 5, 2020, 6:05am UTC](https://community.mp3tag.de/t/ws-bandcamp-search-by-url/17838/16 "2020-10-05T06:05:56Z")

</div>

Hello @all,

Is it also possible to include the Bandcamp track URL in the tags?

Thank you very much for an answer.

---

<div class="post-metadata">

### Author: ![ms6676749](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/m/b4bc9f/32.png) [@ms6676749](https://community.mp3tag.de/u/ms6676749)
#### Post date: [October 8, 2020, 4:59pm UTC](https://community.mp3tag.de/t/ws-bandcamp-search-by-url/17838/17 "2020-10-08T16:59:19Z")

</div>

It is saved as `BANDCAMP_URL` in the tags. If you want to save it in the more common tag field `WWW`, then open up the src file in notepad, or your favorite text editor, and change the line `outputto "BANDCAMP_URL"` to `outputto "WWW"`

Anyways, bandcamp changed their pages again, so here's updated src files:

[&Bandcamp#&1 Def&ault.src](https://community.mp3tag.de/uploads/short-url/qTiCwWiTjXWeVVQvYpreYVF1MSY.src) (4.7 KB) [&Bandcamp#&2 &URL.src](https://community.mp3tag.de/uploads/short-url/xYxS7pv7Vaoob2BJlNbJfLXMPdV.src) (3.6 KB)

---

<div class="post-metadata">

### Author: ![Maitol](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/m/ce73a5/32.png) [@Maitol](https://community.mp3tag.de/u/Maitol)
#### Post date: [October 9, 2020, 1:31am UTC](https://community.mp3tag.de/t/ws-bandcamp-search-by-url/17838/18 "2020-10-09T01:31:18Z")

</div>

Thank you very much for your answer.  
Unfortunately that was not exactly what I meant.  
When I look at the source code of the album page, there is a part:  
`" <script type="application/ld+json">"`  
there URLs of the individual tracks are stored.  
As an example:  
"{"numTracks":19, "track":{"itemListElement":[{"position":1, "item":{"@id": "[https://subterraneanrecords.bandcamp.com/track/aive-veitstanz](https://subterraneanrecords.bandcamp.com/track/aive-veitstanz)", "name": "Aive - Veitstanz","@type": "MusicRecording", "duration": "P00H04M48S"},"@type": "ListItem"}"

and there I would have liked to output "@id", in the example "[https://subterraneanrecords.bandcamp.com/track/aive-veitstanz](https://subterraneanrecords.bandcamp.com/track/aive-veitstanz)".

I have not yet quite figured out how to find and output this data.

---

<div class="post-metadata">

### Author: ![ms6676749](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/m/b4bc9f/32.png) [@ms6676749](https://community.mp3tag.de/u/ms6676749)
#### Post date: [October 9, 2020, 2:35am UTC](https://community.mp3tag.de/t/ws-bandcamp-search-by-url/17838/19 "2020-10-09T02:35:16Z")

</div>

Just add this section before or after any of the sections (e.g. `# Bandcamp_URL` and its code) listed below the big `ALBUM` heading. Be aware that some releases do not have track URL's for every track, so those pages will mess up the output of this section.

```
# Bandcamp_Track_URL
gotoline 3
findline "<script type=\"application/ld+json" 1 1
ifnot ""
	outputto "BANDCAMP_TRACK_URL"
	moveline 1
	unspace
	regexpreplace "(^.*?position\"\:)" ""
	regexpreplace "(?:.*?)(https\:\/\/.+?\.bandcamp\.com\/track\/.+?)(\")" "$1]["
	regexpreplace "^" "["
	sayregexp "(?<=\[).+?(?=\])" "|" ","
endif
```

---

<div class="post-metadata">

### Author: ![Maitol](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/m/ce73a5/32.png) [@Maitol](https://community.mp3tag.de/u/Maitol)
#### Post date: [October 9, 2020, 3:50am UTC](https://community.mp3tag.de/t/ws-bandcamp-search-by-url/17838/20 "2020-10-09T03:50:05Z")

</div>

Best 😀  
It works perfect. 👍  
Slowly, but only really slowly, I also understand how the data is found and put together.

I should really take a look at rule expressions.

Thanks again for the quick help.

[Next page](https://community.mp3tag.de/t/ws-bandcamp-search-by-url/17838.md?page=2)
