Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to get a product page from itemlookup #110

Open
shlomioz opened this issue Feb 15, 2018 · 3 comments
Open

How to get a product page from itemlookup #110

shlomioz opened this issue Feb 15, 2018 · 3 comments

Comments

@shlomioz
Copy link

Hi all,
I am using "ITEMLOOKUP" call, and I am trying to get (or generate) a product page URL of the cheapest product.
The "Technical Details" link is not good because the price there is not always the cheapest(not equal to the "LowestNewPrice" from the API response ) and the "MoreOffersUrl" is an offer-listing URL.

Do anyone know how can I get it?

@FdezRomero
Copy link
Contributor

FdezRomero commented Feb 15, 2018

If you have the ASIN of the product, you can easily compose the details page URL yourself:

https://www.amazon.com/dp/ASIN

@shlomioz
Copy link
Author

@FdezRomero thanks for responding,
This way is not always right, I attached two picture, one is showing to lowest price for condition new from the API, and the other is showing different price (and different seller)
capture

image

there is an other way to do it?

@shlomioz shlomioz reopened this Feb 25, 2018
@FdezRomero
Copy link
Contributor

@shlomioz From your original question I understood that you were trying to "get (or generate) a product page URL". But with your latest reply it seems that what you're trying to accomplish is to replicate the pricing information as shown on Amazon product pages.

By my experience, Amazon handles cases and you'll have to kind of reverse engineer the same conditions Amazon uses to choose the "buy box" price from all the available offers. The API provides all the information you need, just not in the same way as shown on Amazon.com. This is the way the data is coming from the Product Advertising API, it's not specific to this library.

I suggest you to include the Variations resource group to get all the available offers and play with the query conditions to get what you want. You'll find more information about getting the prices in the Product Advertising API docs.

When asking this kind of open question try to be more specific about what you're trying to accomplish and not only what didn't work for you, so other people can help you with better answers 😊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants