Extract product data from Shopify store collections

I’m seeking assistance on how to obtain product details from various Shopify stores, particularly from the sections that showcase their best-selling products. It seems that each store has its own unique design and layout on the collections page when sorted by top-selling items.

I’m curious if there’s a general method or technique that would work with different Shopify stores to collect this product information. Perhaps using web scraping methods or leveraging an API endpoint that is typically available across most Shopify stores.

Has anyone tackled a similar challenge? I’m looking for a solution that doesn’t involve tailoring the code for each separate store since the structure of the HTML can differ between shops.

Any guidance on how to best handle this would be greatly appreciated. I’m willing to explore both programmatic solutions and any API-based approaches that may be available.

yup, i think that json endpoint is super helpful! just append /products.json to the store URL and you’ll get a structured response, which saves time instead of scraping. makes sense to go this route rather than messing with layouts!

The Shopify Admin API is your best bet here. You’ll need API credentials from each store owner, but once you’ve got those, you can pull product data consistently no matter how their frontend looks. The Products API endpoint gives you inventory levels, sales data, and lets you sort by popularity metrics. I’ve done similar projects - while JSON product feeds are useful, they don’t always have the sales ranking info you want. The admin API needs permission but gives you way richer data like actual sales figures and inventory turnover rates. Just heads up that rate limits can be strict, so build in proper throttling if you’re hitting multiple stores.