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 on http://www.kamashanti.org.

Please feel free to report any bug you might encounter, or suggest improvements. The source code is not publicly released but upon request I could reveal it.

10 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

Laisser un commentaire