# Find all pages on a website: URL list from its sitemaps

**Use case:** 

Enter a website and get the list of pages its sitemaps publish, with last-modified dates where the sitemap has them, ready to export as CSV, JSON or Excel. This example lists the roughly 1,000 URLs in linear.app's sitemap; pages missing from the sitemap are not included. There is no page-by-page crawling, so most sites finish in seconds. Use it for SEO audits, content inventories and migrations.

## Input

```json
{
  "startUrls": [
    "https://linear.app"
  ],
  "maxUrls": 5000,
  "maxUrlsPerSite": 0,
  "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 "Find all pages on a website: URL list from its sitemaps". [Sign up or log in](https://console.apify.com/create-task-from-example/W0KLK5EKQx2beOslT) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Find all pages on a website: URL list from its sitemaps" 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 "Find all pages on a website: URL list from its sitemaps" 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 "Find all pages on a website: URL list from its sitemaps" task via API](https://apify.com/urameshi7k/sitemap-extractor.md).

## FAQ

### What data does the Sitemap Extractor & URL Finder return?

Each URL comes with the sitemap it was found in and an image count, plus its last-modified date, change frequency and priority when the sitemap lists them. linear.app's sitemap has dates for most URLs but no change frequency or priority.

### How does the task filter URLs during extraction?

The task can filter URLs by patterns using regular expressions and can limit results based on modification dates.

### Can I find new URLs added since the last run?

Yes. Turn on Only new URLs and schedule the task. The first run only saves a baseline of the current URLs; every later run returns just the URLs that are new since the previous run.

### What formats can I export the extracted URLs in?

The extracted URLs can be exported in CSV, JSON, or Excel formats.

### How does the task discover sitemaps on a website?

It reads the site's robots.txt and uses the sitemaps listed there. Only if robots.txt lists none does it try common paths such as /sitemap.xml, /sitemap_index.xml and /wp-sitemap.xml. Nested sitemap indexes are followed up to 5 levels.

### What is the maximum number of URLs that can be processed?

This example returns up to 5,000 URLs per run, more than the roughly 1,000 in linear.app's sitemap, so nothing is cut off. Raise Max URLs per run for bigger sites, or set it to 0 for no limit.

## 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`).
