# Shopify product URLs: list the product pages of any store

**Use case:** 

Enter any Shopify store and get the URLs of its product pages from its sitemaps, skipping pages, collections and blog posts. This example lists the 341 products of Warehouse, a Shopify theme demo store. It stops at 500 URLs; for bigger catalogs, set Max URLs per run to 0 (no limit). Use it for competitor research, catalog audits, or to feed product URLs into a scraper.

## Input

```json
{
  "startUrls": [
    "https://warehouse-theme-metal.myshopify.com"
  ],
  "maxUrls": 500,
  "maxUrlsPerSite": 0,
  "includeUrlPatterns": [
    "/products/"
  ],
  "sitemapUrlPatterns": [
    "products"
  ],
  "keepUrlsWithoutLastmod": false,
  "sameSiteOnly": false,
  "onlyNewUrls": false,
  "baselineOnFirstRun": true,
  "includeImageUrls": false,
  "includeAlternates": true,
  "maxSitemapDepth": 5,
  "maxConcurrency": 10,
  "requestTimeoutSecs": 30
}
```

## Output

```json
{
  "url": {
    "label": "URL",
    "format": "string"
  },
  "lastmod": {
    "label": "Last modified",
    "format": "string"
  },
  "changefreq": {
    "label": "Change frequency",
    "format": "string"
  },
  "priority": {
    "label": "Priority",
    "format": "number"
  },
  "imageCount": {
    "label": "Images",
    "format": "integer"
  },
  "sitemapUrl": {
    "label": "Found in sitemap",
    "format": "string"
  },
  "isNew": {
    "label": "New",
    "format": "boolean"
  }
}
```

## How it works

### 1. Sign up on Apify or log in

The Sitemap Extractor & URL Finder Actor is ready to run with the inputs already set for "Shopify product URLs: list the product pages of any store". [Sign up or log in](https://console.apify.com/create-task-from-example/DKQBYXNOWdaSN9aVe) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Shopify product URLs: list the product pages of any store" task

The Sitemap Extractor & URL Finder Actor will start running based on the input automatically. You can also change all the input fields, like websites or sitemap urls, max urls per run, and more, to match your specific use case.

### 3. Receive the "Shopify product URLs: list the product pages of any store" output

Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as URL, last modified, change frequency, and more.

### 4. Integrate into your workflow

The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also [run the "Shopify product URLs: list the product pages of any store" task via API](https://apify.com/urameshi7k/sitemap-extractor.md).

## FAQ

### What data does this task return from a Shopify store's sitemap?

Each product URL has the lastmod, change frequency and image count its sitemap lists, plus the sitemap it came from. On Shopify, lastmod is when the sitemap was generated (usually the moment you read it), not a product edit. Image count is 0 or 1.

### How can this task be used for competitor research?

It lists the product URLs of a competitor's Shopify store, so you can review their catalog and, with Only new URLs, spot new products. It returns no prices; feed the list to a scraper to monitor prices.

### What does the 'isNew' field indicate in the output?

isNew appears when Only new URLs is turned on. The first run only saves the current URLs as a baseline and returns nothing; later runs return only product pages that were not in the sitemap before, a simple way to track new product launches.

### Can the task filter products by their last-modified date?

Not on Shopify. Modified after compares the sitemap's last-modified date, and Shopify gives every product in a sitemap file the same date: when the file was generated. So all are kept or all dropped. To track new products, use Only new URLs.

### How does the task handle multiple sitemaps on Shopify?

It reads the store's sitemap index and follows only the product sitemap files, skipping pages, collections and blog posts. It stops at 500 URLs per run, so bigger catalogs are cut off; set Max URLs per run to 0 (no limit) to read every product file.

### What is the purpose of the imageCount field in the output?

The imageCount field is the number of images the sitemap lists for that URL. Shopify's sitemap lists only each product's main image, so it is 1 for almost every product (0 if it has no image), not the number of photos on the product page.

## About this Actor

This example demonstrates how to use [Sitemap Extractor & URL Finder](https://apify.com/urameshi7k/sitemap-extractor.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/urameshi7k/sitemap-extractor.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/urameshi7k/sitemap-extractor.md

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).
