08-12-2023 10:21 PM
I'm using Inventory API but open to any that will return this data.
I am trying to find a way to get the sort of data efficiently from API calls and coming up empty. The best I can find is:
1. run a bunch of calls to get all of my items
2. run an insane number of calls to get all offers for all of those items
I would then have all of the current data to extract and calculate this sort of data but slamming the API that many times for some quick data seems beyond excessive.
08-12-2023 11:10 PM
Could you elaborate which data you need and which you would like to have?
Are you trying to include inventory, or only active listings?
What do you mean by "offers" in this context?
And what do you mean by "quantity"?
08-13-2023 12:24 AM - edited 08-13-2023 12:27 AM
@shipscript wrote:Could you elaborate which data you need and which you would like to have?
Well, eBay API's often return all sorts of cool data so if an API has this, I would love to see what's inside of the response. But presently I need:
Go to Seller Hub > Listings > Active
Dropdowns: All Categories, All Formats, All Statuses
This produces a table with 4,952 results and Quantity 6,179. I need those numbers. 4,952 and 6,179. I do not need the results. Only those numbers.
So I need to know how many active listings I have. And the total quantity of items in those listings.
@shipscript wrote:Are you trying to include inventory, or only active listings?
ACTIVE Inventory status, I believe is the technical answer. I do not want OUT_OF_STOCK, ENDED or 404 status Inventory items included. But any API which returns the two data points above I'm willing to use.
>What do you mean by "offers" in this context?
Inventory API Offers. Item > Offer > Publish. A very crude way to get this data would be to do GetItem calls, and then GetOffers calls for each item. As GetOffers is what will return the ACTIVE/OUT_OF_STOCK/ENDED etc status. It would be borderline absurd to get the data that way but it's the only way I can think of to do it.
08-13-2023 12:31 AM - edited 08-13-2023 12:33 AM
> Dropdowns: All Categories, All Formats, All Statuses
That actually may contradict what I said I want as it can include ENDED items.
I specifically want live and active listings where people can buy/bid right now. So excluding ENDED.
08-17-2023 11:17 AM
I couldn't see anything in the API endpoints for that. However I am fairly certain you can make a GET call to https://www.ebay.com/sh/lst/active?catType=storeCategories&status=ACTIVE along with a valid cookie and parse the page it gives you for that info. If that method doesn't work you could also use something like Selenium to navigate the sign in page.
08-17-2023 04:02 PM
Thanks. Do you know if that's allowed? I certainly don't want to get into any trouble for scraping.
08-18-2023 10:52 AM
I would try emailing eBay support directly to ask if that would constitute as a violation of the ToS. You could also send in an unsolicited suggestion to add aggregate info like that to an API endpoint.