What does the ?hash=item URL Param In eBay Sold URLS Mean? - ebay-api

Example of one ebay url:
https://www.ebay.com/itm/313606425313?hash=item4904664ae1:g:voUAAOSwP9BhH1Fj&var=612446123827
By the time you're reading this, the link may be dead.
But that's not the point, the point is what is the meaning of the ?hash=item4904664ae1:g:voUAAOSwP9BhH1Fj part of the url?
I understand the 313606425313 is the eBay itemId and if it's a variation size or color that is what &var=612446123827 is for.
Does anybody know what the ?hash=item part means?

Related

Get referral (parthnership) link for a product on Aliexpress?

The question is about API and independent from programming language.
I want to get a commission from products on Aliexpress.
API documentation (press "API Documents")
But I can't understand how to generate a link and then how to check if it is correct.
As I understand I need to use 1.1 listPromotionProduct request, get all the links from the result and apply 1.3 getPromotionLinks to them. Is it correct?
Yes you're right this is the way to do it, so you need to do two API calls, one to api.listPromotionProduct, collect up the URLs and then make a call to api.getPromotionLinks.
This URL works:
http://gw.api.alibaba.com/openapi/param2/2/portals.open/api.getPromotionLinks/YOURAPIKEY?fields=totalResults,trackingId,publisherId,url,promotionUrl&trackingId=YOURTRACKINGIDHERE&urls=https://www.aliexpress.com/item/Rotary-Cheese-Tools-Cheese-Grater-Stainless-Steel-Slicer-Shreds-Drum-Hand-Held-Ginger-Graters-Cutter-Kitchen/32706493641.html
Append more URLs to this URL using a comma (up to 50 URL's).
Likely Issue
The thing I was doing wrong was using the wrong trackingID, it's not your digital signature but the affiliate ID you specified in https://portals.aliexpress.com/publisher_manage.htm (I think you can have multiple affiliate ID's).

Transform eBay search URL into eBay REST API call to get the same items

Here's what I want to do .
Users search for the items they want to track on main eBay website and set filters
They enter the URL on my website. Sample eBay URL
I make calls to eBay API and email them if items with price lower than X have been listed
To do that, I need to transform the eBay URL I mentioned above into an URL to call eBay REST API and get the same products.
So far I only managed to search by keywords and order by newest listing:
http://svcs.ebay.com/services/search/FindingService/v1?SECURITY-APPNAME=XXXXXX&OPERATION-NAME=findItemsByKeywords&SERVICE-VERSION=1.0.0&RESPONSE-DATA-FORMAT=JSON&RESTPAYLOAD&keywords=iphone&paginationInput.entriesPerPage=10&sortOrder=StartTimeNewest
I don't know how to get the search parameters from main eBay URL and use them to call the API.
You'll probably need to reverse engineer all/most of eBay's URL parameters to interpret exactly what the user is intending to search for. Then from there you can build an API call.
I'm not aware of any formal documentation of eBay URL parameters. I've unofficially noted a few on my site, but there are many more.

youtube API v3 - rate (like/dislike) comment/commentThread?

Quick question - as stated in the title. Is that possible? I thought the following endpoint would be my best shot: https://developers.google.com/youtube/v3/docs/comments/update, but can't find anything that resembles api call for rating a video, nor did I find any documentation on that for v3
If it is, please point me to the http endpoint.
Partially Yes, You can use that endpoint and specify a value for snippet.viewerRating but as of now it only allows you to specify two values like and none.
The rating the viewer has given to this comment. Note that this property does not currently identify dislike ratings, though this behavior is subject to change. In the meantime, the property value is like if the viewer has rated the comment positively. The value is none in all other cases, including the user having given the comment a negative rating or not having rated the comment.

eBay API Search by MPN

I am trying to search listings on eBay by MPN via their api.
I stumbled upon this:
https://ebaydts.com/eBayKBDetails?KBid=1723
leading to FindProducts call
It should be able to filter products by MPN by setting ProductID.Type=MPN.
I tried it, but it returns products that are not related to the MPN
http://open.api.ebay.com/shopping?callname=FindProducts&responseencoding=XML&appid=APP_ID&siteid=0&version=829&MaxEntries=20&ProductID.Type=MPN&ProductID.Value=PLEDV1945A
So either i am doing something wrong, or it is returning wrong products.
Does someone know how to get listings by MPN the proper way?
Thank you
I don't know the exact answer to your question (and I haven't searched eBay by MPN before), but know that the FindProducts API call is being deprecated soon, and eBay is expecting people to use a newer API call called findItemsByProduct - docs here.
Also in eBay's newer Finding API family is the API call named findItemsAdvanced which is also worth a shot.

How to fetch, display Amazon Marketplace listings by item?

My question pretty much says it all: I'm looking for a way to display Amazon Marketplace listings based on an item lookup. Example: If I do a call to ItemLookup with an ASIN of 0590353403 (Harry Potter and the Sorcerer's Stone), I'm looking for a result set of perhaps the top ten new or used Marketplace listings, preferably with seller information attached.
I apologize if this is clearly documented somewhere, but I have been looking all through the Amazon API docs and on Google to no avail. StackOverflow doesn't seem to have any Related Questions that match what I'm asking, either.
Thanks in advance!
After some further research, it seems I've found what I was looking for. In order to get a listing of all sale offers -- not just those from Amazon itself -- you must specify the MerchantId parameter in your query to the web service. This parameter can take on a few different values: "Amazon" (default), "All," "Featured," or a specific Merchant ID.
To get all the offer information, including seller names and the like, you must also submit the parameter ResponseGroup with the value "OfferFull."
Hope this helps somebody else out down the line! :-)