Ben Borgers

How to get Shopify storefront data without authentication

May 9, 2022

Shopify has a Storefront API that lets you get public information about your store, but it requires authentication and is a somewhat-involved GraphQL API.

Instead, there’s an alternative (“hidden”) API: all you have to do is to add .json to the end of a URL!

Imagine that your Shopify site is at You could get JSON data about your products in your store via this URL:

Or you could get data about your store’s collections via this URL:

You can even get data for a specific collection or specific product:

Most pages that you can navigate to on your Shopify site can be extracted as API data by adding .json to the end of the URL.

This can be super useful if you’re building a “headless” Shopify site and want a simple API to get data from your site without needing to use authentication tokens or a GraphQL API.

Subscribe to my newsletter!

A weekly round-up of new blog posts and updates to projects I’m working on.