I am trying to find out if there is an API or a way to obtain the exact stock of a product on a website that is not mine. I know there is a way, but I cannot find it.
Hi @mathyslol ,
I hope this message finds you well,
If the store is not yours, then there is no legitimate way to get its exact inventory. Shopify (and most ecommerce platforms) treat stock as private business data. Access to product inventory is only exposed through the Shopify Admin API, and that requires the store owner’s permission (via private app or custom app credentials).
Ask the store owner for access (if you’re collaborating, wholesaling, or reselling).
Use their official Shopify Storefront API (but only if they grant you an API token) — this only returns what they configure, and most don’t expose inventory counts.
Best
Anmol
Hello there @mathyslol to the best of my knowledge, there is no legal way to obtain the entire product stock from another Shopify store without meeting them directly for access or atleast the API needed. Any other method apart from this sounds hack related.
There is no good universal API to get the exact stock of stores you don’t own. Shopify inventory counts are private unless the merchant makes them public. Options are to ask for API access, get an official product feed or poll public availability endpoints. Scraping is unreliable and may be against terms or robots.txt.