ASIN to EAN converter
Since I was needing such a product codes converter and I couldn’t find one on the web, I have decided to do it by myself… It’s always a challenge to learn a new API (here I used Amazon Web Services). But when it works fine, you are really API (thanks Youcef for the pun)!
If this tool was helpful for you, don’t hesitate to let me know by posting a comment. If you think you were lucky to find it, don’t forget to thank Good.
Please feel free to report any bug you might encounter, or suggest improvements. The source code is now available here.
You can input several codes by separating them with « ; » (semicolumn). The output will be one column with the original code and another with the converted code.



28 commentaires
Good Day!
This is nice. I’m looking for the other way round
Any chance to have a look at your code? I’d love to write the counterpart ean2asin / eantoasin …
Thanky You!
Le bonjour to France
Hello Fred J,
I’m reviewing your query. It’s a little more complicated to to the reverse thing (you have to specify a « SearchIndex » parameter in the request).
However I’ll do it soon and release it here. If you are interested I’ll send you the code (it might be useful if you want to do a mass conversion).
Cheers
Hi there,
This is a wonderful app.
Would you mind letting me know (or showing me the code) that does this conversion?
I have to do batch conversions, and knowing the process would greatly help me out.
Thanks
Fred J, I have added the feature you requested. You can now also do an EAN to ASIN conversion. For the moment only France, USA, and Germany are supported, but if required I can add others quite easily.
Note that for the EAN to ASIN conversion, you need to specify the Search Index, i.e. the category of the article. But for the USA locale, it is not necessary since the category « All » exists.
Warjat, I’m glad you appreciate, I will post the whole source code soon (within a few days) in this very thread. Basically there is one PHP file that does the job, and the rest is the Ajax interface. FYI, I will surely include a mass ASIN to EAN conversion feature in the future (within a few months). You will have to input coma separated ASIN codes, and it will give you a correspondance table.
Hey Erwin,
Any news on the source code for this app, or a mass conversion version of it?
Bump!
:=]
No really: The source to this would be really interesting and if You need help with anything, let me know (cleaning up/…)
I’m also willing to translate it to another lang. I think that just publishing the core functionality would be enough, if you don’t want the hassle of publishiung php/… code as well.
Any chance ?=)
Hi, this converter is awesome! It’s helped me search for and find, some really rare CD’s to add to my collection
Thank you so much!
p.s. out of the hundreds of ASIN no.’s I have tried only 1 does not work on either US, France or Germany setting. ASIN B0000932E8 – do you know why this could be??
Hello Mori, thanks for your interest.
I have checked that ASIN, which is an Evanescence CD.
It has not the same behaviour in the Germany Store, where it is referenced. The output is blank, while France and USA give an error.
I have tried to get the full result of a request, and the EAN is apparently not available for this product. So there is no need to check further!
I’m back, and as promised, I have released the source code in this new article.
It took me some times because I updated my wordpress installation (and I thought the new dashboard was CSSly broken until I found out that it was the new design), and then I had to look for a good syntax highlighter. I finally chose Syntax Highlighter Plus which seems updated and reliable (the only drawback is that the code is not immediatelly wrapped, certainly due to the fact that everything is done on the client side with Javascript). If you know any other syntax highlighter that could be better, don’t hesitate to let me know.
Enjoy.
Thanks Erwin for your help and quick reply! Much appreciated as I am a big Evanescence fan.
Thankyou, Mori
FYI I added UK, Japan and Canada support. I updated the source code as well:
http://erwinmayer.com/2008/05/05/release-of-source-code-for-my-asin-to-ean-and-ean-to-asin-converter/
Hi, this is indeed a great tool!
Anyhow, as I have a file of >1.000 items to be converted from ASIN to EAN, I wanted to see if there is some progress on the mass ASIN to EAN conversion feature. I entered several ASIN-numbers separated by coma but I did not seem to be already working.
Thanks in advance for your answer and best regards,
Thomas
Hi Thomas,
I’ll do it right now…
Stay connected.
You can now use semicolumns to process a lot of codes at the same time, as explained in the updated description.
Hello!
Very good Tool – but is it possible, to get some other countries in the search? I need poland for example…
Greets
Andreas
Hallo Andreas,
As far as I know, there has been no Polish version of Amazon as yet.
Best,
Erwin
Your ASIN to EAN converter is wonderful!
Please, please, please: could you add for EAN-to-ASIN also the query to the italian site, Amazon.it?
All the italian people will be grateful to you, so we will distinguish between the italian guarantee and the international!
Thank U!
Maxim
Hello Maxim, I have just added support for Italy and China! I have also upgraded to use the latest version of the API (2011-08-01) to be ale to use more up to date search indices, and especially the « All » search index.
i just noticed the upgrade
very much appreciated!
j’ai creer une page avec votre fonction.
en mode EAN2AQSIN
j’ai une erreur 405 dans l’edit du ASIN
je n’arrive pas bien a comprendre quels sont les cles a mettre
car je pense que c’est du a cela.
je debute sur amazon.
je cherche une fonction qui me donnerait le code ASIN a partir du code EAN13.
voici la page :
http://www.les-chemins-d-hermes.com/asin_to_ean_converter2.htm
par avance Merci Pierre
Hi Erwin,
As you know, to sell on Amazon, an EAN or UPC is needed for creating listings.
I am having great difficulty in sourcing these codes.
There are some products being listed already on the site which are the same as my potential listing.
What is the best way to start a listing?
Should I use existing product ASIN’s which i convert using your
asin-2-ean app?
or should I create a new ASIN? but to do so would require ean/upc info which I do not have…
please help !!!
Hi Sonny, depending on the products you have, you should in priority use existing EAN/ASIN codes if any exists. If you cannot find them on your products (bar codes), then I know some commercial databases may be able to help you.
Hi Erwin
Very useful tool indeed – I have been using it for a while, saved me a lot of hassle – thank you very much!
However I noticed it stopped working today – the products would show in an ad box properly but the EAN box remains empty…
Kind regards
Mick
Hi Mick, this tool is limited by the API quotas; if you hit them it should start working again on the following day.
Hello, I tried your system but does not work. I put the code ASIN: B000VAHC46 (italian Amazon), but does not give me any code AEN. It ‘s my problem, or is the system that does not work? Thanks for the answer
Hello Michele, apparently this item has no EAN code for the moment, this is strange. However the ASIN code does work (you can see the banner link to the product).
Hi Erwin,
your converter for the ASIN to EAN doenst work for amazon.com this time?
Do you know how to repair it?
kind regards
Hi, there are usage limits to the use of the Amazon API, so you should just wait and try again. It works right now.