Skip to content
This repository was archived by the owner on Jan 17, 2024. It is now read-only.

ge1sterfahrer/WishlistAPI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WishlistAPI

This Web API returns the contents of Amazon Wishlists in JSON.

Usage

To use this API clone the repository or download the newest release from GitHub. The standart port used in this application is 8081, you can change that in the application.properties if you need to.

If run locally the API will listen on localhost:8081/wishlist_api. I will need two parameters:

  • The Top-Level-Domain of your wishlist ("de", "com", "co.uk")
  • The Wishlist ID found in the Wishlist URL

API call example: http://localhost:8081/wishlist_api?tld=de&id=2L8FP7DFBFEC7

Return

If called correctly the API will return valid JSON containing the following attributes of every item on the wishlist:

  • Link to preview image
  • Name of item
  • Comment of wishlist creator
  • Price
  • Amount needed
  • Amount received

PrintView Parsing

This API parses the printview of a wishlist, which doesn't include a link to the actual item. It includes the amount of items already bought though, which is a nice tradeoff.

Technical Details

This is a Spring Boot application using Jsoup for HTML parsing and GSON for generating valid JSON from objects.