# \[WS\] Tunebat (songkeybpm)

**URL:** https://community.mp3tag.de/t/ws-tunebat-songkeybpm/49503
**Category:** Broken Web Sources
**Created:** [July 1, 2020, 8:04am UTC](https://community.mp3tag.de/t/ws-tunebat-songkeybpm/49503 "2020-07-01T08:04:27Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![bugzero](https://community.mp3tag.de/user_avatar/community.mp3tag.de/bugzero/32/10350_2.png) [@bugzero](https://community.mp3tag.de/u/bugzero)
#### Post date: [July 1, 2020, 8:04am UTC](https://community.mp3tag.de/t/ws-tunebat-songkeybpm/49503/1 "2020-07-01T08:04:27Z")

</div>

## A Story

On 2017 I developped a web script for Tunebat web (SongKeyBpm was its first name). I've been using it for more than 2 years and as some people asked for it, I decided to create this post. I got the ideas from the beatport script by stevehero (thanks to him for all the knowledge I got).

Now I think I can share with you my work.

## Download

[Tunebat.v99.zip](https://community.mp3tag.de/uploads/short-url/kB3sT3ssAt414ZbRVY3kmF2nWUu.zip) (4.0 KB)  
Last Modified: 2021-07-15

## How to Install

1. Download the `.zip` and extract to `%appdata%\mp3tag\data\sources` directory (Just hit Win+R and copy paste `%appdata%\mp3tag\data\sources`)
2. You can access the scripts right-clicking on the title with mouse and `Tag sources->Tunebat->Search..` if using version 3.06 or above.

## Script Info

On July 2021 Tunebat has made a big update and the scripts have been fully rewrote. I've finished only HTML script, but I've been working also with JSON one. In SOME few days I'll publish version 1.0, so I need you to test it.

Availables tags are: `_TIME_CHECK,ALBUM,ALBUMARTIST,ALBUM ARTIST,ARTIST,BPM,CAMELOT,COVERURL,INITIALKEY,PUBLISHER,RELEASETIME,SPOTIFY_URL,TITLE,TRACK,YEAR`

Other tags (maybe useless, but by default disabled): `EXPLICIT,POPULARITY,ENERGY,DANCEABILITY,HAPPINESS,ACOUSTICNESS,INSTRUMENTALNESS,LIVENESS,SPEECHINESS,LOUDNESS`

If you need more information that my script does not supply or is incomplete please don't hesitate to contact me.

You can try it and make suggestions. Enjoy!

## Version History

0.99: HTML script has been fully rewrote. WIP on JSON script.  
0.9a: - Added source to get information from JSON script.  
0.7: Removed debug files  
0.6: First Release

---

<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: [July 1, 2020, 9:08am UTC](https://community.mp3tag.de/t/ws-tunebat-songkeybpm/49503/2 "2020-07-01T09:08:02Z")

</div>

Great Thank you.  
bugzero

---

<div class="post-metadata">

### Author: ![TimMixedIt](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/t/a9a28c/32.png) [@TimMixedIt](https://community.mp3tag.de/u/TimMixedIt)
#### Post date: [January 29, 2021, 11:13am UTC](https://community.mp3tag.de/t/ws-tunebat-songkeybpm/49503/3 "2021-01-29T11:13:11Z")

</div>

How tf can I use this haha, I dont get it.

---

<div class="post-metadata">

### Author: ![LyricsLover](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/c6cbf5/32.png) [@LyricsLover](https://community.mp3tag.de/u/LyricsLover)
#### Post date: [January 29, 2021, 11:29am UTC](https://community.mp3tag.de/t/ws-tunebat-songkeybpm/49503/4 "2021-01-29T11:29:18Z")

</div>

From the mp3tag help:

 ![Web sources](https://community.mp3tag.de/uploads/default/original/2X/1/16123c88ca1a6db355f93895342e157279d99741.png)

More help:

> [@Freedb and Web Sources](https://community.mp3tag.de/t/freedb-and-web-sources/2748/3):
>
> How to use a \*.src web source file? Copy or move the \*.src file to the [configuration folder](https://community.mp3tag.de/t/freedb-and-web-sources/2748/4) at %APPDATA%\Mp3tag\data\sources You can also just execute the openSourcesDirectory.bat file that automatically opens the correct folder. It either comes with the \*.src file or can be downloaded from [here](https://download.mp3tag.de/OpenSourcesDirectory.zip). You can now use the script from the Tag Sources menu or from the [:mt\_freedb:] button. Please visit the [Web Sources category](https://community.mp3tag.de/c/development/web-sources-scripts) if you are interested in more scripts.

and

> [@Freedb and Web Sources](https://community.mp3tag.de/t/freedb-and-web-sources/2748/4):
>
> How to find the configuration folder? Use File → Open configuration folder. The configuration folder contains the following data: Export configurations \*.mte %APPDATA%\Mp3tag\export Actions \*.mta %APPDATA%\Mp3tag\data\actions Web sources scripts \*.src %APPDATA%\Mp3tag\data\sources Custom genres, column views and tools \*.ini %APPDATA%\Mp3tag\data Library (if enabled) \*.db3 %APPDATA%\Mp3tag\data\library For a Standard installation, the configuration folder is at %APPDATA%\…

---

<div class="post-metadata">

### Author: ![TimMixedIt](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/t/a9a28c/32.png) [@TimMixedIt](https://community.mp3tag.de/u/TimMixedIt)
#### Post date: [April 10, 2021, 10:14am UTC](https://community.mp3tag.de/t/ws-tunebat-songkeybpm/49503/5 "2021-04-10T10:14:55Z")

</div>

The script worked pretty well over the last months an I was very happy with it, but now there is a Error, it says:

Error connecting to the server: [http://tunebat.com](http://tunebat.com)

> 403: Forbidden

[Try again] [Cancel]

![Screenshot 2021-04-10 121058](https://community.mp3tag.de/uploads/default/original/2X/3/38eb813d1545fb7b1cc5dfb593355907f3472c8d.jpeg)

---

<div class="post-metadata">

### Author: ![bugzero](https://community.mp3tag.de/user_avatar/community.mp3tag.de/bugzero/32/10350_2.png) [@bugzero](https://community.mp3tag.de/u/bugzero)
#### Post date: [April 11, 2021, 2:52pm UTC](https://community.mp3tag.de/t/ws-tunebat-songkeybpm/49503/6 "2021-04-11T14:52:23Z")

</div>

I had the same issue, and I tried to modify the script without any success. Then, I updated mp3tag and It started working again. Try to update mp3tag with administrator privileges.

---

<div class="post-metadata">

### Author: ![dubbi8432](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/d/3ec8ea/32.png) [@dubbi8432](https://community.mp3tag.de/u/dubbi8432)
#### Post date: [August 22, 2021, 4:28pm UTC](https://community.mp3tag.de/t/ws-tunebat-songkeybpm/49503/7 "2021-08-22T16:28:55Z")

</div>

Hello, nice script. I want to use this, but now it doesn't work.  
Do you have an updated version?

---

<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 22, 2021, 5:01pm UTC](https://community.mp3tag.de/t/ws-tunebat-songkeybpm/49503/8 "2021-08-22T17:01:47Z")

</div>

This error might be it only accept a limited call per hour or day(how many don't now):  
 ![imagem](https://community.mp3tag.de/uploads/default/original/2X/1/1273908520efd0bb3d1087dba3851be6e5715085.png)  
or: Service Unavailable - The server is currently unable to handle the request due to a temporary condition which will be alleviated after some delay. You can choose to resend the request again.

---

<div class="post-metadata">

### Author: ![bugzero](https://community.mp3tag.de/user_avatar/community.mp3tag.de/bugzero/32/10350_2.png) [@bugzero](https://community.mp3tag.de/u/bugzero)
#### Post date: [September 3, 2021, 9:47am UTC](https://community.mp3tag.de/t/ws-tunebat-songkeybpm/49503/9 "2021-09-03T09:47:02Z")

</div>

I've been trying to identify the problem and I think Tunebat has made some changes the Web Sources Framework won't be able to override.

I've made a test on Tunebat with just a _curl_ command and get an horrible answer. A connection to Tunebat now needs the use of cookies and javascript enabled to redirect the query.

Maybe this web script source should be moves to "Broken Web Scripts"

---

<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: [September 27, 2021, 3:38pm UTC](https://community.mp3tag.de/t/ws-tunebat-songkeybpm/49503/10 "2021-09-27T15:38:33Z")

</div>

> [@bugzero](#):
>
> Maybe this web script source should be moves to "Broken Web Scripts"

Done. Thanks for letting me know!

---

<div class="post-metadata">

### Author: ![bookemdano](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/b/ea666f/32.png) [@bookemdano](https://community.mp3tag.de/u/bookemdano)
#### Post date: [February 25, 2023, 8:42pm UTC](https://community.mp3tag.de/t/ws-tunebat-songkeybpm/49503/11 "2023-02-25T20:42:08Z")

</div>

Hi @bugzero

I regret that I have found this topic too late, as I see that the tunebat script no longer works.

I have read somewhere (maybe here on this forum) that all of their data comes from spotify anyway. I guess they maybe pay Spotify to license the tempo, key, camelot etc. metadata?

So I wonder if it is possible for a web script to obtain that data directly from Spotify? Or is it not accessible via API?

Barring that, I have recently found out about [songbpm.com](http://songbpm.com), which seems to present the exact same data (again, I think sourced by Spotify) but perhaps without the limitations songbat has imposed.

Just an idea. I wish that Apple Music would invest in adding this data to their service, as making playlists by BPM is really helpful (e.g. for running).
