Free tool — no app, no tokenShopify product recommendations API inspector
Paste a product URL and read the exact JSON Shopify’s recommendations endpoint returns. No access token, no app, no OAuth — it is the same request your theme already makes. See which products come back, whether your complementary pairs are configured, and copy a section that renders the list.
Nothing fetched yet
Paste a URL above to read the list.
The endpoint takes a product id, so the tool resolves one first. That is why a product URL is one step shorter than a store URL, and why the report names the product it used.
Nothing here needs a token. The blog explains the request if you would rather make it yourself.
The section it generates
The JSON path, because the JSON is what you just inspected — and because it is the one that lets you render the list yourself. It renders 4 products, hides itself when the list is empty, and builds each card with textContent so a product title can never become markup.
The section
Paste into a custom-liquid block on your product template, or into sections/main-product.liquid.
<div class="ssm-recs" data-ssm-recs hidden>
<h2 class="ssm-recs__title">You may also like</h2>
<div class="ssm-recs__grid" data-ssm-recs-grid></div>
</div>
<script>
(() => {
const root = document.querySelector('[data-ssm-recs]')
if (!root) return
const grid = root.querySelector('[data-ssm-recs-grid]')
const params = new URLSearchParams({
product_id: '{{ product.id }}',
limit: '4',
intent: 'related',
})
const mount = (products) => {
if (!Array.isArray(products) || products.length === 0) return
for (const product of products) {
const card = document.createElement('a')
card.className = 'ssm-recs__card'
card.href = product.url
if (typeof product.featured_image === 'string') {
const image = document.createElement('img')
image.src = product.featured_image
image.alt = ''
image.loading = 'lazy'
image.width = 320
image.height = 320
card.append(image)
}
const title = document.createElement('span')
title.className = 'ssm-recs__name'
title.textContent = product.title
card.append(title)
grid.append(card)
}
root.hidden = false
}
fetch(window.Shopify.routes.root + 'recommendations/products.json?' + params)
.then((response) => response.json())
.then((data) => mount(data.products))
.catch(() => {})
})()
</script>The style
Layout only — your theme sets the colours and the type.
/*
Recommendations row — generated at wearebooster.com/tools/recommendations
No colours: your theme sets those. This is layout only.
*/
.ssm-recs {
margin-block: 2.5rem;
}
.ssm-recs__title {
margin-block-end: 1rem;
}
.ssm-recs__grid {
display: grid;
gap: 1rem;
grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 750px) {
.ssm-recs__grid {
grid-template-columns: repeat(4, minmax(0, 1fr));
}
}
.ssm-recs__card {
display: block;
color: inherit;
text-decoration: none;
}
.ssm-recs__card img {
width: 100%;
height: auto;
aspect-ratio: 1;
object-fit: cover;
border-radius: 0.5rem;
}
.ssm-recs__name {
display: block;
margin-block-start: 0.5rem;
}What this can’t do
- It reads what the endpoint returns for one product. It cannot tell you whether those products convert, and it does not rank them.
- It sees products published to the Online Store channel only. A product hidden from that channel is answered with an empty list, not an error.
- A storefront with a password, or one behind bot protection that refuses data-centre traffic, will answer with something that is not JSON. That is reported as a block, not as an empty catalogue.
- Results are cached for ten minutes. If you have just changed your complementary pairs, the previous answer can survive that long.
How it reads your store
The product
/products/<handle>.js — or /products.json?limit=1 for a store URL.
The list
/recommendations/products.json?product_id=&limit=10&intent=…
The report
The fields we name, and the response as sent. Nothing else is kept.
Three requests per lookup, from our server, never from your browser. The URL you paste is not stored anywhere.
Questions
Do I need an API key or an access token?
No. /recommendations/products.json is a public storefront request, the same one a theme makes when it renders “You may also like”. The Admin API and the Storefront API both need authentication; this endpoint does not.
Why is my complementary list empty?
Because complementary products are a manual decision. Shopify generates the related list from your catalogue, but pairs are chosen in the free Search & Discovery app — Recommendations, then Complementary products. Until a pair is saved there, an empty list is the correct answer.
Why does it return nothing for a product that is clearly in stock?
The product has to be published to the Online Store channel. A product that is only available to other sales channels is answered with an empty array rather than an error. A store that is very new can also be too thin for Shopify to model related products.
How many recommendations can I ask for?
Between one and ten. Ten is the maximum and the default, and the endpoint returns fewer when there is less to work with. A row of four to eight is what fits a product page without scrolling off it.
Is this the same thing as the “You may also like” row on my theme?
Yes. Most themes, including Dawn, use the section-rendering variant of this same endpoint and swap the returned HTML into the page. This tool inspects the JSON variant, which is the one you use when you want to render the cards yourself.
What happens to the URL I paste?
It is fetched once by our server, analysed, and cached in memory for ten minutes so that repeat visits and shared links do not keep hitting your store. It is not written to a file, a database or an analytics property, and it is not part of any page we index.
A recommendations row is not proof that anyone bought
Sold So Many puts a number on the product page that came from your own orders — units sold, cart adds, shoppers on the storefront — and shows nothing when there is nothing true to say. It is the other half of a product page this tool does not cover.