eBay API Search by MPN - ebay-api

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.

Related

Ebay API. Translate

I use ebay API. Products get to the location US siteId = 0, so that everything goes back to English (the category and products).
Searched API for translation in the official documentation, found nothing.
Question: how to get the products and categories in Russian language?
Little old question but..
eBay does not automatically translate its categories according to the siteId.
there are several eBay marketplaces see here
and each has its own categories and its category version (means that some categories found in siteId==0 are not available in other siteId) that can be retrieved via getCategories
then there are "real" translation APIs
but that's another kind of services:
Translaion APIs

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.

Does ebay API allows to create a listing draft?

I would like to create a listing ebay draft as it is possible to do manually using this flow:
Go to the new listing sell creation page
Choose category id
Put some random data (title, description, etc.)
Close tab
You will see now unfinished draft, when you go to the new listing sell creation page.
Can I do the same thing using eBay api?
The reason of it is that I don't want to implement all functionality of addItem, currently.
eBay API will not allow to create draft listing.
when you call API for creating new listing, API needs all required fields value.
eBay Listing API provide one attribute PrivateListing.it will hide your product for selling.
If PrivateListing is true, designates the listing as private.customer can't see private listing.
eBay Listing API provide one more attribute ScheduleTime.
When you export product in eBay via API you can give ScheduleTime as well, eBay will active product for selling based on ScheduleTime.
You can make product inactive/draft using this alternative way.
http://developer.ebay.com/devzone/xml/docs/Reference/eBay/AddItem.html#AddItem
You can refer above link for eBay API.
As of now, I can confirm eBay does provide the API to create listing draft, though it's in beta at the moment.
POST - /item_draft/
Official doc is here
To my knowledge this cannot be done, since there are some pretty strict constraints around using the addItem API call, and eBay will throw an error if you don't complete the all the required fields. The required fields of addItem are numerous enough that if you could populate these fields, then you are already 90% of the way to completing your listing anyways.
If you are using Selling Manager Pro, you can create product templates which may be a way to accomplish what you are looking for.

eBay API - filter items by store/custom categories

My scenario: I have a client with an eBay store with custom categories. On their website, they would like to list the items they have for sale. They would like this list to be filterable by custom category.
I've been searching for a couple days now, and I'm still a bit unsure about the best way to proceed.
From what I can gather, the only way to get a list of categories defined in a store is through the GetStore call in the Trading API. This seems to be supported, though I need to get a user token from my client's eBay account. I will assume this works.
I do not, however, see any method of filtering items based on custom categories. I've looked through the documentation of both the Trading and Finding APIs, but all I see are filters on pre-defined eBay categories.
Is it possible to filter on custom/store categories?
I had a task to link seller products to custom categories and the only way I found is to retrieve a list of custom categories with "GetStore" from Trading API, retrieve all seller items with "findItemsAdvanced" call form Finding API, and loop through all retrieved items and get details with "GetItem" call from Trading API.
After that I could find custom categories under $xml->Item->Storefront->StoreCategoryID and $xml->Item->Storefront->StoreCategory2ID.
After digging through and posting in the eBay forums, I found out that no, it is not possible to filter on custom/store defined categories via the API. The only way to filter on custom/store defined categories is on the eBay hosted store.
This is apparently eBay's way to make the store hosted on their site more feature rich than anything you can do via the API.
Even though this question is old, I believe it interesting to give a more recent answer. As stated above, you cannot directly filter items sold by a store using custom store categories (StoreCategoryID). The easiest way to work around this is using the GetSellerList API using a coarse granularity level, which allows you to get the storeCategoryID of each Item on sale within a starting time range or an end time range. You can then filter the items yourself. Here's a link to a forum answer: https://ebay.custhelp.com/app/answers/detail/a_id/1178
Yes no way to get items by Custom categories.
It sounds like either getCategoryInfo or GetCategories might help you.

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! :-)