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.

  • Facebook
  • Twitter
  • LinkedIn

28 commentaires à l'article “ASIN to EAN converter”

  1. Fred J
    3 avril 2008 | 10:28

    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

  2. 4 avril 2008 | 23:22

    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

  3. Warjat
    18 avril 2008 | 18:22

    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

  4. 19 avril 2008 | 3:54

    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.

  5. Warjat
    29 avril 2008 | 14:43

    Hey Erwin,
    Any news on the source code for this app, or a mass conversion version of it?

  6. Fred J
    30 avril 2008 | 8:15

    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 ?=)

  7. Mori
    4 mai 2008 | 17:35

    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??

  8. 5 mai 2008 | 12:25

    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!

  9. 5 mai 2008 | 13:48

    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.

  10. Mori
    5 mai 2008 | 14:17

    Thanks Erwin for your help and quick reply! Much appreciated as I am a big Evanescence fan.

    Thankyou, Mori

  11. 13 février 2009 | 1:47

    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/

  12. thomas
    16 juin 2009 | 15:56

    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

  13. 16 juin 2009 | 17:15

    Hi Thomas,

    I’ll do it right now… :-)

    Stay connected.

  14. 16 juin 2009 | 21:20

    You can now use semicolumns to process a lot of codes at the same time, as explained in the updated description.

  15. Andreas
    21 janvier 2011 | 15:09

    Hello!

    Very good Tool – but is it possible, to get some other countries in the search? I need poland for example…

    Greets

    Andreas

  16. 21 janvier 2011 | 15:49

    Hallo Andreas,

    As far as I know, there has been no Polish version of Amazon as yet.

    Best,

    Erwin

  17. Maxim
    8 juillet 2011 | 10:22

    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

  18. 27 août 2011 | 15:28

    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.

  19. fmera
    29 août 2011 | 6:21

    i just noticed the upgrade :) very much appreciated!

  20. 13 octobre 2011 | 17:13

    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

  21. 9 avril 2012 | 20:26

    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 !!!

  22. 15 avril 2012 | 12:05

    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.

  23. Mick
    29 mai 2012 | 21:44

    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

  24. 30 mai 2012 | 3:41

    Hi Mick, this tool is limited by the API quotas; if you hit them it should start working again on the following day.

  25. michele
    5 juillet 2012 | 11:41

    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

  26. 5 juillet 2012 | 17:27

    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).

  27. NewOne2010
    21 octobre 2012 | 9:37

    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

  28. 21 octobre 2012 | 12:57

    Hi, there are usage limits to the use of the Amazon API, so you should just wait and try again. It works right now.

Laisser un commentaire