# Track New Products on a Shopify Store

**Use case:** 

Watch an online store's sitemap and get only the product pages that appeared since the last run. Schedule it daily to see a competitor's new products as soon as they are listed. Here: the product URLs of the Allbirds Shopify store.

## Input

```json
{
  "startUrls": [
    "https://www.allbirds.com"
  ],
  "onlyNewUrls": true,
  "firstRunOutputsAll": true,
  "includeUrlPatterns": [
    "/products/"
  ],
  "maxUrlsPerSite": 2000,
  "maxSitemapsPerSite": 500
}
```

## Output

```json
{
  "url": {
    "label": "URL",
    "format": "string"
  },
  "lastmod": {
    "label": "Last modified",
    "format": "string"
  },
  "changefreq": {
    "label": "Change freq.",
    "format": "string"
  },
  "priority": {
    "label": "Priority",
    "format": "number"
  },
  "imageCount": {
    "label": "Images",
    "format": "integer"
  },
  "isNew": {
    "label": "New?",
    "format": "boolean"
  },
  "sitemapUrl": {
    "label": "Sitemap",
    "format": "string"
  }
}
```

## How it works

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

The Sitemap URL Extractor & New Page Monitor Actor is ready to run with the inputs already set for "Track New Products on a Shopify Store". [Sign up or log in](https://console.apify.com/create-task-from-example/OA6B56N4zq3dhu1uG) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Track New Products on a Shopify Store" task

The Sitemap URL Extractor & New Page Monitor Actor will start running based on the input automatically. You can also change all the input fields, like websites or sitemap urls, monitor mode: only new urls, and more, to match your specific use case.

### 3. Receive the "Track New Products on a Shopify 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 freq., 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 "Track New Products on a Shopify Store" task via API](https://apify.com/pennapixel/sitemap-url-monitor.md).

## FAQ

### How does it know which products are new?

Each run saves the URLs it has seen in a key-value store in your account. The next run returns only URLs that were not there before, flagged isNew.

### Does it work on stores that are not on Shopify?

Yes, on any site with an XML sitemap: change the pattern to match its product pages, for example /product/ or /p/.

## About this Actor

This example demonstrates how to use [Sitemap URL Extractor & New Page Monitor](https://apify.com/pennapixel/sitemap-url-monitor.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/pennapixel/sitemap-url-monitor.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/pennapixel/sitemap-url-monitor.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`).
