eBay API call to findout if item is out of stock

383 views Asked by At

I am using the eBay developer APIs to scrape some books via the findItemsByProduct endpoint:

https://developer.ebay.com/devzone/finding/CallRef/findItemsByProduct.html

The only problem I am facing is that the response I receive does not tell me if the product is actually available or not.

E.g. JSON response I get from searching 9781492286738 is similar to a different call via 9780486433981 but whilst the former is actually available for purchase once I click on the url link contained in the response, the latter is actually out of stock:

https://www.ebay.co.uk/itm/Revolution-Betrayed-Trotsky-Leon-Paperback-Book-Cheap-Fast-Free-Post-/303078471909

enter image description here

Is there a way to make possibly a different call to see if the item is available? I've seen the Inventory endpoints but my understanding is that not relevant to my case as I am trying to check not my listings.

1

There are 1 answers

4
Joe On

I think you have to use getItem API for each item to get inventory