# Help submiting ISRCs (via PHP or JS)

**URL:** https://community.metabrainz.org/t/help-submiting-isrcs-via-php-or-js/448778
**Category:** Development
**Tags:** javascript, isrc, php, isrcsubmit
**Created:** [October 24, 2019, 5:22pm UTC](https://community.metabrainz.org/t/help-submiting-isrcs-via-php-or-js/448778 "2019-10-24T17:22:03Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![marlonob](https://community.metabrainz.org/user_avatar/community.metabrainz.org/marlonob/32/26050_2.png) [@marlonob](https://community.metabrainz.org/u/marlonob)
#### Post date: [October 24, 2019, 5:22pm UTC](https://community.metabrainz.org/t/help-submiting-isrcs-via-php-or-js/448778/1 "2019-10-24T17:22:03Z")

</div>

Hello! I’m trying to add ISRC submitting to a seeder ([https://etc.marlonob.info/atisket/](https://etc.marlonob.info/atisket/)) that I wrote.

I have read the [documentation](https://beta.musicbrainz.org/doc/Development/XML_Web_Service/Version_2#ISRC_submission) but I can’t get it right. Could anyone help me with a _beginners_ guide to the process with either PHP or JavaScript? Currently I only link to the [script by tatsumo](https://tatsumo.pythonanywhere.com/) but that only works with Spotify and not Deezer.

Thanks in advance.

---

<div class="post-metadata">

### Author: ![outsidecontext](https://community.metabrainz.org/user_avatar/community.metabrainz.org/outsidecontext/32/90_2.png) [@outsidecontext](https://community.metabrainz.org/u/outsidecontext)
#### Post date: [October 29, 2019, 7:52am UTC](https://community.metabrainz.org/t/help-submiting-isrcs-via-php-or-js/448778/2 "2019-10-29T07:52:53Z")

</div>

Maybe start by saying what you tried and where you got stuck. It’s easier to find some help this way.

---

<div class="post-metadata">

### Author: ![Alex1](https://community.metabrainz.org/user_avatar/community.metabrainz.org/alex1/32/35211_2.png) [@Alex1](https://community.metabrainz.org/u/Alex1)
#### Post date: [August 23, 2020, 12:57pm UTC](https://community.metabrainz.org/t/help-submiting-isrcs-via-php-or-js/448778/3 "2020-08-23T12:57:28Z")

</div>

In case anyone else is wondering how to us the page/script by @Tatsumo (assuming that is you 🙂) which allows submitting ISRCs via a-tisket with one click (saves time!)…

Using [Sound Mirrors](https://musicbrainz.org/release-group/2ae555c8-1571-35ad-b31a-1dadb7de8273) as an example:

Step 1: Open the link via a-tisket (this is the one I had to open after submitting a new release)  
[https://tatsumo.pythonanywhere.com/album/7EWZNpL7QQ6ddMWD0oumbb](https://tatsumo.pythonanywhere.com/album/7EWZNpL7QQ6ddMWD0oumbb)

Step 2:  
Notice that there is no submit button! At this point you might give up (I did). I didn’t know what to do, until I realized you first have to kind-of authorize the tool to submit data.

Step 3:  
Click on “Refresh bearer token to submit new data” at the top of the page.

Step 4:  
This page will load, which is empty:  
[https://tatsumo.pythonanywhere.com/auto](https://tatsumo.pythonanywhere.com/auto)  
Again, you might think that something is wrong with this tool.

Step 5:  
Paste the link from step 1 into the browser again and this time, notice that there is a “Submit” button at the end of the page. Clicking that button will submit all ISRCs in one convenient swoop. (Don’t do it now though, I have already submitted the data.)

Btw, there are other ISRC submit tools in [ISRC#Resources](https://musicbrainz.org/doc/ISRC#Resources)

---

<div class="post-metadata">

### Author: ![jesus2099](https://community.metabrainz.org/user_avatar/community.metabrainz.org/jesus2099/32/36_2.png) [@jesus2099](https://community.metabrainz.org/u/jesus2099)
#### Post date: [January 2, 2021, 11:40pm UTC](https://community.metabrainz.org/t/help-submiting-isrcs-via-php-or-js/448778/4 "2021-01-02T23:40:25Z")

</div>

@marlonob @tatsumo,  
It is now [possible](https://tickets.metabrainz.org/browse/MBS-6048) to submit ISRC with edit notes so please add information in the edit notes, like the source URL. 🙂

---

<div class="post-metadata">

### Author: ![tatsumo](https://community.metabrainz.org/letter_avatar_proxy/v4/letter/t/ba8739/32.png) [@tatsumo](https://community.metabrainz.org/u/tatsumo)
#### Post date: [January 2, 2021, 11:57pm UTC](https://community.metabrainz.org/t/help-submiting-isrcs-via-php-or-js/448778/5 "2021-01-02T23:57:04Z")

</div>

Some documentation (even a sample edit) would be helpful.

I can’t see anything other than the commit itself

---

<div class="post-metadata">

### Author: ![tatsumo](https://community.metabrainz.org/letter_avatar_proxy/v4/letter/t/ba8739/32.png) [@tatsumo](https://community.metabrainz.org/u/tatsumo)
#### Post date: [January 3, 2021, 5:32pm UTC](https://community.metabrainz.org/t/help-submiting-isrcs-via-php-or-js/448778/6 "2021-01-03T17:32:35Z")

</div>

I did it based on that commit, and the following fetch

```
fetch("https://musicbrainz.org/ws/2/recording/?client=spotifyIsrcSubmit2.0", {
  "headers": {
    "accept": "*/*",
    "accept-language": "en-US,en;q=0.9,de;q=0.8,zh-CN;q=0.7,zh;q=0.6",
    "authorization": "Bearer <redacted>",
    "content-type": "application/xml; charset=\"utf-8\"",
  },
  "referrer": "https://d.ontun.es/",
  "referrerPolicy": "strict-origin-when-cross-origin",
  "body": "<metadata xmlns=\"http://musicbrainz.org/ns/mmd-2.0#\">\n <recording-list>\n <recording id=\"3225d276-4ad3-4222-b48e-051785121d79\">\n <isrc-list count=\"1\">\n <isrc id=\"GBK3W1800725\" />\n </isrc-list>\n </recording><recording id=\"f1f84f72-4a3e-4eeb-959e-b8181c825d9a\">\n <isrc-list count=\"1\">\n <isrc id=\"GBK3W1700535\" />\n </isrc-list>\n </recording><recording id=\"b2f4cf9a-09ab-4f14-97ea-ef81b387c628\">\n <isrc-list count=\"1\">\n <isrc id=\"GBK3W1800758\" />\n </isrc-list>\n </recording><recording id=\"2a99a251-d6b7-4211-b537-a94600bbf52b\">\n <isrc-list count=\"1\">\n <isrc id=\"GBK3W1800783\" />\n </isrc-list>\n </recording><recording id=\"dbb02d42-1785-4d83-874b-07a1f07045d0\">\n <isrc-list count=\"1\">\n <isrc id=\"GBK3W1800784\" />\n </isrc-list>\n </recording><recording id=\"cd289307-1252-4617-977d-3d3848f10e59\">\n <isrc-list count=\"1\">\n <isrc id=\"GBK3W1800785\" />\n </isrc-list>\n </recording><recording id=\"9f26efff-93b8-4c44-a865-460c49da984d\">\n <isrc-list count=\"1\">\n <isrc id=\"GBK3W1800786\" />\n </isrc-list>\n </recording><recording id=\"bf6b254b-5b3b-40b1-b015-0fee221989cd\">\n <isrc-list count=\"1\">\n <isrc id=\"GBK3W1800787\" />\n </isrc-list>\n </recording><recording id=\"93b0c5e8-afcf-4940-90a8-d48d71fc8bdd\">\n <isrc-list count=\"1\">\n <isrc id=\"GBK3W1700603\" />\n </isrc-list>\n </recording><recording id=\"bbefa188-48c4-44c5-b9e0-182ab8ee6984\">\n <isrc-list count=\"1\">\n <isrc id=\"GBK3W1800790\" />\n </isrc-list>\n </recording><recording id=\"8dedf5d0-8c4a-47e5-b156-5f7095cbcd3c\">\n <isrc-list count=\"1\">\n <isrc id=\"GBK3W1800728\" />\n </isrc-list>\n </recording><recording id=\"22f6e289-d89f-4e52-bb4c-c8377ef80453\">\n <isrc-list count=\"1\">\n <isrc id=\"GBK3W1800791\" />\n </isrc-list>\n </recording><recording id=\"deb03eb4-567f-4f82-9e0d-eaec2f9a73f8\">\n <isrc-list count=\"1\">\n <isrc id=\"GBK3W1800792\" />\n </isrc-list>\n </recording>\n </recording-list>\n <edit-note>Submitted from Spotify album ID 6EuYfecmZrodq8sKWW00tZ targetting MusicBrainz release 287dfaeb-0967-4887-9617-66e364acdea2.\n&apos;&apos;&apos;Imported from&apos;&apos;&apos;: https://d.ontun.es/#/explorer/album/6EuYfecmZrodq8sKWW00tZ/287dfaeb-0967-4887-9617-66e364acdea2 (requires Spotify login)</edit-note>\n </metadata>",
  "method": "POST",
  "mode": "cors",
  "credentials": "include"
});

```

resulted in [this edit](https://musicbrainz.org/edit/76136704) which has no note.

---

<div class="post-metadata">

### Author: ![kellnerd](https://community.metabrainz.org/user_avatar/community.metabrainz.org/kellnerd/32/66963_2.png) [@kellnerd](https://community.metabrainz.org/u/kellnerd)
#### Post date: [January 4, 2021, 11:44am UTC](https://community.metabrainz.org/t/help-submiting-isrcs-via-php-or-js/448778/7 "2021-01-04T11:44:31Z")

</div>

@jesus2099 @tatsumo [The feature is not available yet.](https://chatlogs.metabrainz.org/brainzbot/metabrainz/msg/4721733/)

---

<div class="post-metadata">

### Author: ![jesus2099](https://community.metabrainz.org/user_avatar/community.metabrainz.org/jesus2099/32/36_2.png) [@jesus2099](https://community.metabrainz.org/u/jesus2099)
#### Post date: [January 4, 2021, 1:11pm UTC](https://community.metabrainz.org/t/help-submiting-isrcs-via-php-or-js/448778/8 "2021-01-04T13:11:12Z")

</div>

Thanks @kellnerd.  
I have removed the _Resolution: **Fixed** _, added by GitHub bot because one of the two PR solving this ticket, was merged (but not the other). 🙂

---

<div class="post-metadata">

### Author: ![atj](https://community.metabrainz.org/user_avatar/community.metabrainz.org/atj/32/52875_2.png) [@atj](https://community.metabrainz.org/u/atj)
#### Post date: [January 5, 2021, 2:45pm UTC](https://community.metabrainz.org/t/help-submiting-isrcs-via-php-or-js/448778/9 "2021-01-05T14:45:43Z")

</div>

It looks like the required changes were merged today:

> <https://github.com/metabrainz/musicbrainz-server/commit/6de553da69f5d541176a8450ce4bd3bc1b885187>

So this should be available when the next release of the MB server is deployed 🥳

---

<div class="post-metadata">

### Author: ![tatsumo](https://community.metabrainz.org/letter_avatar_proxy/v4/letter/t/ba8739/32.png) [@tatsumo](https://community.metabrainz.org/u/tatsumo)
#### Post date: [January 5, 2021, 6:51pm UTC](https://community.metabrainz.org/t/help-submiting-isrcs-via-php-or-js/448778/10 "2021-01-05T18:51:41Z")

</div>

Awesome. The edit note is currently being included in all requests, so it should start appearing as soon as the server accepts it.
