# Sitemap Extractor: All URLs, SEO Check & Change Monitor (`techliondev/sitemap-url-extractor`) Actor

Get every URL from any website's sitemaps with last-modified dates, images and languages. Optional page check finds broken links, redirects and SEO problems. Monitor new, changed and removed pages.

- **URL**: https://apify.com/techliondev/sitemap-url-extractor.md
- **Developed by:** [TechLion Dev](https://apify.com/techliondev) (community)
- **Categories:** SEO tools, Developer tools, Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.20 / 1,000 url saveds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

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 examples already wired to this Actor's own input schema, see the [API](#api) section below.

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

# README

### 🗺️ What is Sitemap Extractor?

**Sitemap Extractor** (also called Sitemap URL Extractor) gets **every page address a website lists in its sitemaps**, including sitemap.xml, and puts them in one clean table, with last-modified dates, images, language versions and news details. Give it a website and it finds the sitemaps for you, including sitemap indexes, gzipped files and plain-text sitemaps. Turn on the **page check** add-on to visit each page and find broken links, redirects and SEO (search engine optimization) problems, or schedule it to get **new, changed and removed pages**.

It is for SEO specialists, site owners and developers who need a full URL list from a sitemap, a broken-link check, or a change monitor.

- **SEO audits:** list every page a site shows search engines, then check status codes, titles, descriptions, canonical links and noindex tags.
- **Broken link reports:** find sitemap pages that return errors or redirect.
- **Competitor monitoring:** get new product, pricing or blog pages as soon as they appear.
- **Feed other tools:** give a complete URL list to a crawler, an AI (artificial intelligence) tool or a content inventory.
- **Site migrations:** compare old and new URL lists and catch missing pages.

#### What data does it extract?

| | |
| --- | --- |
| 🔗 Page URL, host, path, folder and file type | 📅 Last-modified date and days since it changed |
| 🔁 Change frequency and priority | 🖼️ Images listed for the page |
| 🌍 Other language versions (hreflang) | 📰 News article titles and publish times |
| 🗂️ Which sitemap file it came from | 🆕 New, modified or removed (change monitoring) |
| 🩺 HTTP status, redirects, final URL and response time (add-on) | 🏷️ Title, meta description, H1 heading and word count (add-on) |
| 🧭 Canonical link, noindex tag and language (add-on) | 🚩 Broken and problem page flags (add-on) |

#### Why this tool?

- **Finds sitemaps automatically** from robots.txt and the usual locations, and follows nested indexes up to 1,000 sitemap files.
- **Fast and cheap:** thousands of URLs in a few seconds, with no browser.
- **Built-in SEO check** as an optional add-on, with a "problems only" mode for quick audits.
- **Change monitoring** with new, modified and removed pages.
- **Free filters:** text to keep or skip, a regular expression (pattern) and a modified-since date. Filtered-out URLs are never charged.

### ⬇️ Input

```json
{
    "startUrls": ["https://apify.com", "https://blog.apify.com/sitemap.xml"],
    "maxUrlsPerSite": 200
}
```

An SEO audit that saves only broken pages, redirects and other problems:

```json
{
    "startUrls": ["https://example.com"],
    "maxUrlsPerSite": 2000,
    "urlExcludes": ["/tag/"],
    "checkPages": true,
    "onlyProblemPages": true
}
```

Main options:

- **Websites or sitemaps:** website addresses or direct sitemap links, and a limit per website.
- **Filters (free):** URL contains, URL does not contain, URL pattern (regular expression) and modified since (for example `7 days`).
- **Page check add-on ($):** check each page, optionally save only problem pages, and set how many pages to check at once.
- **Change monitoring:** track changes between runs, save only changes, and a memory name.

### ⬆️ Output

One row per URL. The **Overview** view shows addresses and dates, **Page checks** shows status and SEO fields, and **Changes** shows new, modified and removed pages. Download as Excel, CSV (comma-separated values), JSON (JavaScript Object Notation), XML or HTML.

#### Table view

Sample rows from a real run with page checks on:

| URL | Section | Modified | Status | Redirects | Time (ms) | Title | Words |
| --- | --- | --- | --- | --- | --- | --- | --- |
| https://apify.com/ | / |  | 200 | 0 | 159 | Apify: Marketplace of ready-to-… | 1,617 |
| https://apify.com/alternatives/crawl4ai-alternatives | alternatives |  | 200 | 0 | 20 | Best Crawl4AI alternatives · Ap… | 1,129 |
| https://apify.com/alternatives/gmapsextractor-alter… | alternatives |  | 200 | 1 | 46 | Outscraper alternative · Apify | 2,202 |
| https://apify.com/api | / |  | 200 | 0 | 8 | Turn any website into an API ·… | 1,899 |
| https://blog.apify.com/ | / | 2026-11-12 | 200 | 0 | 13 | Apify Blog: Guides to the large… | 755 |
| https://blog.apify.com/why-captchas-are-bad/ | / | 2026-11-11 | 200 | 0 | 11 | CAPTCHAs: why they're bad UX an… | 2,904 |
| https://blog.apify.com/scrape-google-ai-mode/ | / | 2026-11-11 | 200 | 0 | 14 | How to scrape AI Mode, Perplexi… | 2,978 |
| https://blog.apify.com/playwright-web-scraping/ | / | 2026-11-11 | 200 | 0 | 15 | How to scrape the web with Play… | 5,257 |

#### JSON example

One URL from the same run:

```json
{
    "url": "https://blog.apify.com/",
    "lastmod": "2026-11-12T13:40:25.586Z",
    "changefreq": null,
    "priority": null,
    "sitemapUrl": "https://blog.apify.com/sitemap-pages.xml",
    "imageUrls": [],
    "alternates": [],
    "newsTitle": null,
    "newsPublicationDate": null,
    "site": "https://blog.apify.com",
    "changeType": null,
    "scrapedAt": "2026-11-13T01:04:48.394Z",
    "host": "blog.apify.com",
    "path": "/",
    "pathDepth": 0,
    "section": "/",
    "fileExtension": null,
    "daysSinceModified": 0,
    "statusCode": 200,
    "finalUrl": "https://blog.apify.com/",
    "redirectCount": 0,
    "responseTimeMs": 13,
    "contentType": "text/html",
    "isBroken": false,
    "checkError": null,
    "title": "Apify Blog: Guides to the largest marketplace of tools for AI",
    "titleLength": 61,
    "metaDescription": "Learn how to use Apify Actors to get real-time web data, generate leads, monitor social media, and integrate your apps and agents.",
    "h1": "Apify Blog",
    "h1Count": 1,
    "canonicalUrl": "https://blog.apify.com/",
    "isCanonical": true,
    "robotsMeta": "index,follow",
    "isNoindex": false,
    "language": "en",
    "ogImage": "https://blog.apify.com/assets/images/og-default.png?v=UxNqiouJIzD5eyMu",
    "wordCount": 755
}
```

`RUN_SUMMARY` in the run's key-value store lists, for each website, the sitemaps read, URLs found and saved, changes, broken pages and any sitemap file that could not be read.

### ▶️ How to use it

1. Click **Try for free**.
2. Add websites (`https://example.com`) or sitemap links (`https://example.com/sitemap.xml`).
3. Add filters, and turn on **Check each page** for an SEO audit.
4. Click **Start**. The default input finishes in a few seconds.
5. Download the list, or schedule the run with **Track changes between runs**.

#### Monitoring a site for changes

1. Turn on **Track changes between runs**, keep **Save only changes** on, and schedule the run (for example daily).
2. The first run marks every URL as `new` and remembers the list.
3. Every later run saves only pages that are `new`, `modified` (their sitemap date changed) or `removed`.
4. Connect the run to email, Slack or a webhook to get alerts.

### 💲 How much does it cost?

Pay-per-event pricing: you pay for the URLs you get, not for computer time.

| Event | Price (free plan) | When it is charged |
| --- | --- | --- |
| Actor start | $0.00005 | Once per run |
| **URL saved** | **$0.0003** ($0.30 per 1,000) | For each URL saved, after your filters |
| Add-on: Page check | $0.001 | For each page visited by the page check |

Paid Apify plans get lower prices automatically. The **Pricing** tab lists every plan.

**Worked examples**

- **Default input, 400 URLs:** $0.00005 + 400 × $0.0003 = **about $0.12**.
- **10,000 URLs:** **$3.00**. The official Apify sitemap extractor charges $5.00 for the same 10,000 URLs.
- **SEO audit of 2,000 pages, problems only (say 120 problem pages):** 2,000 × $0.001 + 120 × $0.0003 = **about $2.04**.
- **Daily change monitor for a 5,000-page site (about 20 changes a day):** 30 runs × (20 × $0.0003) = **about $0.18 per month**.

### 🎯 Use cases

- **SEO teams and agencies:** quick technical audits and index coverage checks.
- **Competitive intelligence:** alerts for new pages on competitor sites.
- **Content and news monitoring** with news sitemaps.
- **Data pipelines:** URL lists for crawlers, search indexes and AI tools.
- **Web migrations:** before and after URL inventories.

### 🔌 Integrations

- **Schedules** with change monitoring.
- **Webhooks** when a run finishes.
- **Ready-made integrations** for Google Sheets, Slack, Zapier, Make and more.
- **API and client libraries** for Python and JavaScript (see the **API** tab).
- **AI agents** through the Apify MCP (Model Context Protocol) server.

### 💻 Use it from code (API)

You can start this Actor and read its results from your own code with the Apify API. Replace `YOUR_APIFY_TOKEN` with the API token from the **Settings > API & Integrations** page in Apify Console.

**Python** (install with `pip install apify-client`):

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("techliondev/sitemap-url-extractor").call(run_input={
    "startUrls": [
        "https://apify.com",
        "https://blog.apify.com/sitemap.xml"
    ],
    "maxUrlsPerSite": 200
})

for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)
```

**JavaScript / Node.js** (install with `npm install apify-client`):

```javascript
import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: 'YOUR_APIFY_TOKEN' });
const run = await client.actor('techliondev/sitemap-url-extractor').call({
    "startUrls": [
        "https://apify.com",
        "https://blog.apify.com/sitemap.xml"
    ],
    "maxUrlsPerSite": 200
});

const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);
```

**Any language (HTTP):** send a POST request with the input as JSON to the `run-sync-get-dataset-items` endpoint for `techliondev~sitemap-url-extractor` and you get the URLs back in the response. The **API** tab on this page shows the exact address and more examples.

### ❓ FAQ

#### How does it find the sitemaps?

It reads the website's robots.txt, then tries the usual addresses such as /sitemap.xml, /sitemap_index.xml and /wp-sitemap.xml. You can also give sitemap links directly.

#### The site has no sitemap. What happens?

The run summary lists it as `no_sitemap_found`. This tool does not crawl pages to find links.

#### What counts as a problem page?

A page that returns an error (400 or higher) or no response, redirects, has a noindex tag, has a canonical link pointing to another page, or has no title.

#### Will page checks overload a website?

Pages are checked 5 at a time by default with a simple, honest user agent. Lower **Pages to check at once** for small websites.

#### Is it legal?

Sitemaps are published by websites so that machines can read them. The page check only loads public pages, like a browser would. Respect each website's terms.

#### Can I get all the pages of a website without crawling it?

Yes. Most websites publish a sitemap that lists every page they want search engines to find. This Actor reads all of them (including sitemap index files and compressed sitemaps), so you get the full list in seconds instead of crawling page by page.

#### Can it find broken links and redirects?

Yes. Turn on the **Check each page ($)** add-on and every listed page is visited once to record its status code, redirects, page title, meta description and canonical tag. Turn on **Only save pages with problems** to keep just the pages that need fixing.

#### Your feedback

Found a bug or have an idea? Open an issue on the **Issues** tab.

# Actor input Schema

## `startUrls` (type: `array`):

Website addresses (https://example.com) to find their sitemaps automatically, or direct links to sitemap files (https://example.com/sitemap.xml, .xml.gz or .txt).

## `maxUrlsPerSite` (type: `integer`):

Stop after saving this many URLs from each website. With page checks on, this also limits how many pages are checked.

## `urlContains` (type: `array`):

Optional. Keep only URLs that contain at least one of these texts, for example /blog/ or /products/.

## `urlExcludes` (type: `array`):

Optional. Drop URLs that contain any of these texts, for example /tag/ or ?page=.

## `urlRegex` (type: `string`):

Optional. Keep only URLs matching this pattern, for example /blog/\d{4}/ or .pdf$. Not case-sensitive. Free.

## `modifiedSince` (type: `string`):

Keep only pages whose sitemap date is on or after this date, for example "7 days". Pages without a date are skipped when this is set.

## `checkPages` (type: `boolean`):

Visits every saved URL to read its HTTP status, redirects, response time, title, meta description, main heading (H1), canonical link, noindex tag, language and word count. Finds broken links and SEO (search engine optimization) problems. One request per page, charged as an add-on for each page checked.

## `onlyProblemPages` (type: `boolean`):

With page checks on, save only broken pages (errors 400 and up, or no response), redirects, noindex pages, pages whose canonical link points elsewhere, and pages with no title. Each checked page is still charged as a page check.

## `checkConcurrency` (type: `integer`):

How many pages to check at the same time. Keep this low for small websites so you don't overload them.

## `trackChanges` (type: `boolean`):

Remembers the URLs from the last run and marks each URL as new, modified (its date changed) or removed. Schedule the run to get a feed of site changes. The first run marks everything as new.

## `onlyChanges` (type: `boolean`):

With change tracking on, skip URLs that did not change since the last run.

## `stateName` (type: `string`):

Name of the storage where the previous URL list is kept. Use different names to track the same site for different purposes.

## Actor input object example

```json
{
  "startUrls": [
    "https://apify.com",
    "https://blog.apify.com/sitemap.xml"
  ],
  "maxUrlsPerSite": 200,
  "checkPages": false,
  "onlyProblemPages": false,
  "checkConcurrency": 5,
  "trackChanges": false,
  "onlyChanges": true,
  "stateName": "sitemap-monitor-state"
}
```

# Actor output Schema

## `urls` (type: `string`):

Dataset with one row per page URL

## `summary` (type: `string`):

Sitemaps read, URLs found and changes per website

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "startUrls": [
        "https://apify.com",
        "https://blog.apify.com/sitemap.xml"
    ],
    "maxUrlsPerSite": 200
};

// Run the Actor and wait for it to finish
const run = await client.actor("techliondev/sitemap-url-extractor").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "startUrls": [
        "https://apify.com",
        "https://blog.apify.com/sitemap.xml",
    ],
    "maxUrlsPerSite": 200,
}

# Run the Actor and wait for it to finish
run = client.actor("techliondev/sitemap-url-extractor").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "startUrls": [
    "https://apify.com",
    "https://blog.apify.com/sitemap.xml"
  ],
  "maxUrlsPerSite": 200
}' |
apify call techliondev/sitemap-url-extractor --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,techliondev/sitemap-url-extractor"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/EcEhdZeRCaEp72u9K/builds/t7Z0wkYveAkdmy9fN/openapi.json
