How to screenshot your Shopify store with a crawler signature
If you run a Shopify store and take screenshots of it for visual QA, previews, audits, or archiving, you can tell Shopify that these requests come from a tool you chose to use. Shopify calls this a crawler signature. You create it in your Shopify admin and send it as HTTP headers with each ScreenshotOne request.
Shopify asks bots and agents to identify themselves with Web Bot Auth. Requests that aren’t signed get the strictest rate limits, and signed requests qualify for higher ones. A signature for your store lets Shopify recognize your screenshot requests as traffic you approved.
This guide is for stores you own or manage. Shopify creates signatures in the store’s own admin, for domains connected to that store.
Create a crawler signature in Shopify
Section titled “Create a crawler signature in Shopify”Shopify documents the steps in Crawling your store with Web Bot Auth:
- In your Shopify admin, go to Online Store > Preferences.
- In the Crawler access section, click Create signature.
- Enter a descriptive Name, for example,
ScreenshotOne. - Select the Domain you want to take screenshots of.
- Select how long the signature is Valid for, then click Create.
- Copy the
Signature-InputandSignaturevalues.
Keep these limits in mind:
- Each signature works for one domain. If you take screenshots of more than one domain, create a signature for each.
- A signature is valid for at most 3 months. It can’t be renewed. Create a new one before the old one expires.
- Shopify says signatures are meant for analyzing your online store: accessibility and SEO audits, automated testing, data analysis, and similar uses.
Send the signature with ScreenshotOne
Section titled “Send the signature with ScreenshotOne”Pass the three headers with the headers option:
Signature-Input: the value you copied from Shopify.Signature: the value you copied from Shopify.Signature-Agent:"https://shopify.com", including the double quotes.
For example, with a POST request:
{ "url": "https://example.com", "format": "png", "viewport_width": 1440, "viewport_height": 1024, "full_page": true, "full_page_algorithm": "by_sections", "block_cookie_banners": true, "block_chats": true, "headers": [ "Signature-Input:<the Signature-Input value from Shopify>", "Signature:<the Signature value from Shopify>", "Signature-Agent:\"https://shopify.com\"" ]}Or with the SDK for JavaScript:
import * as screenshotone from "screenshotone-api-sdk";
const client = new screenshotone.Client( process.env.SCREENSHOTONE_ACCESS_KEY, process.env.SCREENSHOTONE_SECRET_KEY,);
const options = screenshotone.TakeOptions.url("https://example.com") .format("png") .viewportWidth(1440) .viewportHeight(1024) .fullPage(true) .fullPageAlgorithm("by_sections") .blockCookieBanners(true) .blockChats(true) .headers( `Signature-Input:${process.env.SHOPIFY_SIGNATURE_INPUT}`, `Signature:${process.env.SHOPIFY_SIGNATURE}`, `Signature-Agent:"https://shopify.com"`, );
const imageBlob = await client.take(options);Shopify asks for the headers on every request, so send them with each screenshot, not only the first one.
Keep the signature safe
Section titled “Keep the signature safe”Treat the signature values like a credential:
- Store them as secrets, not in your code.
- Give the signature the shortest validity period that works for you, and create a new one when it expires.
- Use a name in Shopify that tells you where the signature is used, such as
ScreenshotOne.
Get an error instead of a screenshot of an error page
Section titled “Get an error instead of a screenshot of an error page”By default, if the store responds with a status code outside the 200–299 range, ScreenshotOne returns the host_returned_error error instead of a screenshot, and the request doesn’t count toward your quota. Keep ignore_host_errors off for this workflow. That way, an expired or mistyped signature shows up as an error, not as a screenshot of an error page that looks like a success.
When a request fails, check that:
- The signature hasn’t expired.
- The signature was created for the same domain as the URL you capture. A
myshopify.comaddress and a custom domain are different domains. Signature-Agentis"https://shopify.com"with the double quotes.
What the signature does not cover
Section titled “What the signature does not cover”Shopify notes that signatures don’t skip checkout security, such as the checkout queue during high traffic, customer verification, or payment processing. If your screenshots include cart or checkout pages, create a signature for the domain that serves your checkout.
Search engines and AI crawlers can still index your store without a signature. The signature only identifies the tools you choose to use.
More e-commerce options
Section titled “More e-commerce options”For the rendering side, such as product carousels, lazy-loaded images, and overlays, read how to screenshot e-commerce websites.
To see these options in a real project, read how Shops.Gallery captures thousands of storefronts with ScreenshotOne.
If something doesn’t render as expected, write to support@screenshotone.com with the URL and what you expected to see.