eBay API - How to get number of active listings in each country? - ebay-api

Is there any way to use the eBay API to get the number of active listings in each country/eBay site?
I have 80,000+ listings split across 7 different ebay sites. I cannot use the Trading API as this is limited to 25,000 results.
I have looked at the Merchant Data API and the ActiveInventoryReport call. It has a SiteFilter but the Api Reference just says "Reserved for internal or future use." I tested it and it doesn't seem to work.

I got a semi-official answer from eBay. It's not possible:
Right now we dont have a way to get the listings per site basis. You
will have to add extra logic in your application to check the Listing
Site of the Item.

Related

Does TripAdvisor have pagination?

Does anyone know if TripAdvisor has pagination in any of their functions but it's undocumented? Seems bizarre to me that you wouldn't have pagination functionality built in but I don't see anything about it in their documentation?
If it's not there, how could I replicate it to get a decent spread on the returned locations?
https://www.tripadvisor.com/developers
Any help is much appreciated!
As of today, TripAdvisor API v1.0 limits all endpoints to a pretty low number of max returned items, so paging becomes pointless.
The (low) limit is different for each endpoint - all is listed in the API reference, which I cite below.
Note that their public API - used when you browse the TripAdvisor website - is https://www.tripadvisor.com/data/graphql/ids, and unsurprisingly it has an offset property for paging.
But be adivsed to not go the scraping route, as it violates their Terms of Use.
Here are the API response items limits:
Find Search
The Location Search request returns up to 10 locations found by the given
search query.
Nearby Search
The Nearby Location Search request returns up to 10 locations found
near the given latitude/longtitude.
Location Photos
The Location Photos request returns up to 2 high-quality photos for a
specific location. The photos are ordered by recency.
Location Reviews
The Location Reviews request returns up to 3 of the most recent
reviews for a specific location.
In case you're in a need for more (and you probably do), you are required to contact them, but only if the following apply (FAQ):
Once your website/app has been up and running successfully with our content for a while and you required more reviews and photos, please reach out to [...] to request more data.

ebay API - Get promoted listings

Using the Ebay Api I want to query whether any listings have promoted listings associated with them.
Using the Marketing API I've tried: getCampaigns and getPromotions.
On the Trading API I've tried: getPromotionalSaleDetails.
The standard getSellerList call doesn't return promoted listing data.
I'm hoping there is an API call that will return all listings that have "promoted listings" on them, or a list of campaigns that will give me an id number that I can use to look up the relevant listings.
Edit
According to the documentation for the getCampaign api call, campaigns created through the eBay website ("eBay web flow") are not returned via this method. Of course, all the campaigns I want to retrieve were created via the eBay website. And the documentation doesn't point the developer to where this data can be retrieved. Probably because it doesn't exist. The eBay forum mentions this.

Product showing up in Amazon MWS API but not Product Advertising API

I'm building an integration for my warehouse and using Amazon's API's to get product information from UPC. I've ran into a number of times where a result comes back accurately from the GetMatchingProduct on MWS API but not from the Product Advertising API. Even Vice Versa has occurred.
Why might this be? Is there a reason I should just use one or the other?
Example: UPC - 363824072463
MWS brings back ASIN - B0057UUHGU which is the relevant one that also comes back when you just search Amazon. However the Product Advertising API does not return this in its list of results at all.
We have found that often times new, or recently changed items take a little while to correctly populate in the Product Advertising API.
Also, for what you say your purposes are, I would be cautious relying on the Product Advertising API. It is a sales tool, so sometimes when given an out-of-stock item, for instance, it will return results of a different item (maybe similar, maybe was variated with it, etc) as the purpose of that API is to drive sales to Amazon.

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.