GithubHelp home page GithubHelp logo

hartl3y94 / amazon-wishlist-webservice Goto Github PK

View Code? Open in Web Editor NEW

This project forked from christian-draeger/amazon-wishlist-webservice

0.0 0.0 0.0 101 KB

This webservice will fetch data from public amazon wish lists and responds in json format

Java 44.44% HTML 28.65% JavaScript 0.12% CSS 26.78%

amazon-wishlist-webservice's Introduction

N|Solid

Amazon wish list api

This is a little API to retrieve Amazon Wish List data. There is no official API, as Amazon shut it down a couple years ago.

This webservice will fetch data from public amazon wish lists and responds in json format

e.g. this public amazon wish list

amazon-wishlist-webservice is written in Java and uses jSoup (server-side CSS3 selector driven DOM API) to scrape Amazon's Wish List page and spring-boot to have a standalone webservice instance that exports the response as JSON.

if you want to put some public or shared Amazon Wish List on your web page for instance, this project will fit your needs perfectly.

How to use

Required : Java 1.8 or higher installed

to start the application navigate to the appropriate path and call mvn spring-boot:run on your command line

Afterwards you can ask the webservice for any public Amazon Wish List URL (It can handle big wish lists with paginantion as well). You just have to call the endpoint with your Amazon Wish List URL as url parameter.

To get your wishlist in json format you can open http://localhost:8585/wishlist?url=https://www.amazon.de/gp/registry/wishlist/CGACJDFKWTIZ/ref=cm_wl_list_o_2`

Depending on the tld of your Amazon link you will get country specific data.

e.g. for an .de amazon link you will get € as currency, for .com $ etc.

if you want to play around with the API, it's hosted on heroku

https://amazon-wishlist-webservice.herokuapp.com/wishlist?url=${yourWishListUrl}

you can find a swagger-ui documentation here

curl example:

curl -H "Content-Type: application/json" -X GET https://amazon-wishlist-webservice.herokuapp.com/wishlist?url=https://www.amazon.de/gp/registry/wishlist/CGACJDFKWTIZ/ref=cm_wl_list_o_2

you will get a result including:

  • name of the wish list
  • url of the wish list
  • array of items including item specific data like:
    • item title
    • item price (if available)
    • item price (if available)
    • asin or iban (depends on item)
    • id
    • item url
    • item picture url
    • offered by (if available)

Example Response

{
    items: [
        {
            title: "Apple Mac Pro",
            price: "EUR 12.851,77",
            asin: "B00JSLJF4Y",
            id: "I35H0B9VBOXXYH",
            itemUrl: "http://www.amazon.de/dp/B00JSLJF4Y/ref=wl_it_dp_v_nS_ttl/255-9550544-5201764?_encoding=UTF8&colid=CGACJDFKWTIZ&coliid=I35H0B9VBOXXYH",
            pictureUrl: "https://images-eu.ssl-images-amazon.com/images/G/03/wishlist/print_icon._CB286433166_.png",
            offeredBy: "Angeboten von DASTRO ® --- Einfach. Genial. Günstig."
        },
        {
            title: "Apple CTO MGEQ2D/A-03254​6 Mac mini Desktop-PC (Intel Core i7 4578U, 3GHz, 8GB RAM, 1TB HDD/SSD, Intel Iris, Mac OS) silber",
            asin: "B00TYGWIII",
            id: "I1GMNGASED7EMI",
            itemUrl: "http://www.amazon.de/dp/B00TYGWIII/ref=wl_it_dp_v_nS_ttl/255-9550544-5201764?_encoding=UTF8&colid=CGACJDFKWTIZ&coliid=I1GMNGASED7EMI",
            pictureUrl: "https://images-eu.ssl-images-amazon.com/images/I/31%2BzeJZDTrL._SL500_SL135_.jpg"
        },
        {
            title: "TRENDnet TEW-714TRU N150 Wireless Travel Router",
            price: "EUR 28,37",
            asin: "B00FEE7LW2",
            id: "IDD5PJECJQUU5",
            itemUrl: "http://www.amazon.de/dp/B00FEE7LW2/ref=wl_it_dp_v_nS_ttl/255-9550544-5201764?_encoding=UTF8&colid=CGACJDFKWTIZ&coliid=IDD5PJECJQUU5",
            pictureUrl: "https://images-eu.ssl-images-amazon.com/images/I/51kPCLt9k3L._SL500_SL135_.jpg",
            offeredBy: "Angeboten von Amazon."
        },
        {
            title: "Jenkins: The Definitive Guide",
            price: "EUR 27,95",
            id: "I6GEDEDYNXI9V",
            itemUrl: "http://www.amazon.de/dp/1449305350/ref=wl_it_dp_v_S_ttl/255-9550544-5201764?_encoding=UTF8&colid=CGACJDFKWTIZ&coliid=I6GEDEDYNXI9V",
            pictureUrl: "https://images-eu.ssl-images-amazon.com/images/I/41g%2BQme62zL._SL500_SL135_.jpg",
            offeredBy: "Angeboten von Amazon.",
            isbn: 1449305350
        }
    ],
    name: "Christians Wunschzettel 2",
    url: "https://www.amazon.de/gp/registry/wishlist/CGACJDFKWTIZ/ref=cm_wl_list_o_2"
}

Support

https://github.com/christian-draeger/amazon-wishlist-webservice/issues

Pages

https://christian-draeger.github.io/amazon-wishlist-webservice/

amazon-wishlist-webservice's People

Contributors

christian-draeger avatar mle-idealo avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.