---
name: sitemap-url-extractor
description: "Lists every URL of a website from its sitemaps (robots.txt discovery, nested indexes, .gz, text, RSS/Atom, hreflang, image and news data), with lastmod, path and date filters and an optional live HTTP status check. Use when an agent needs to know what pages a site has before reading them, for SEO audits, migrations, content inventories or change tracking."
license: MIT
compatibility: Needs the Apify MCP server (https://mcp.apify.com) or the Apify API, and an Apify account (runs are paid per event).
metadata:
  publisher: xsi
  actor: xsi/sitemap-url-extractor
  store-url: https://apify.com/xsi/sitemap-url-extractor
  pricing-checked: "2026-11-29 16:58 Europe/Brussels"
---

# Sitemap URL Extractor: All URLs, Lastmod & Status

Apify Actor `xsi/sitemap-url-extractor` by xsi. Store page: https://apify.com/xsi/sitemap-url-extractor

Extract every URL of a website from its sitemaps: robots.txt discovery, nested indexes, .gz, text, RSS/Atom, hreflang, images, news. Filter by path or lastmod. Optional live HTTP status check. $0.20 per 1,000 URLs ($0.50 with status checks), failed sites free.

## When to use it

- 'Give me all URLs of this website', a content inventory, or the pages changed since a date (`lastmodSince`).
- Finding broken or non-indexable sitemap URLs (`checkStatus: true`, billed as `url-checked` instead of `url`).

## When not to use it

- The site has no sitemap: the Actor reads sitemaps, it is not a crawler (such sites return `no_sitemap`, free).
- You need the page contents, not just URLs: pass the URLs to a page reader afterwards.

## How to call it through the Apify MCP server

Connect the Apify MCP server with this Actor pinned as its own tool: `https://mcp.apify.com?tools=xsi/sitemap-url-extractor` (it then appears as the tool `xsi--sitemap-url-extractor`), or use the default tools and run it with `call-actor`.

1. Optional: `fetch-actor-details` with `{"actor": "xsi/sitemap-url-extractor"}` to read the current input schema, README and pricing.
2. Run it with `call-actor`. Run limits go in `callOptions`, not in the Actor input; `maxTotalChargeUsd` caps what the run can charge.

```json
{
  "actor": "xsi/sitemap-url-extractor",
  "input": {
    "urls": [
      "docs.apify.com"
    ],
    "includePatterns": [
      "/platform/"
    ],
    "maxUrlsPerSite": 500
  },
  "waitSecs": 30,
  "callOptions": {
    "maxTotalChargeUsd": 0.5
  }
}
```

3. `call-actor` returns the run status and storage IDs, not the results. Read them with `get-dataset-items` and the run's `datasetId` (supports `limit`, `offset`, `fields`). If the run is not finished within `waitSecs` (0-45 s), poll it with `get-actor-run`; for long jobs start with `waitSecs: 0`.

Required input fields: `urls`. The example uses only fields from the Actor's input schema (default build, read 2026-11-29).

Plain HTTP alternative: `POST https://api.apify.com/v2/acts/xsi~sitemap-url-extractor/run-sync-get-dataset-items` with the same input as JSON and `Authorization: Bearer <APIFY_TOKEN>`.

## Price (pay per event)

Read from the public Apify API (`https://api.apify.com/v2/acts/xsi~sitemap-url-extractor`, `pricingInfos`) on 2026-11-29 16:58 Europe/Brussels. Pricing model `PAY_PER_EVENT`, in effect since 2026-11-26. Prices are per event, in USD, by Apify plan (FREE, BRONZE, SILVER, GOLD, PLATINUM, DIAMOND). There is no start event. Minimum value for `maxTotalChargeUsd`: $0.01.

| Event | Title | Price per event | What is charged / free |
|---|---|---|---|
| `url` | URL returned | FREE $0.0002 / BRONZE $0.00015 / SILVER $0.0001 / GOLD $0.00008 / PLATINUM $0.00008 / DIAMOND $0.00008 | One unique page URL returned from the sitemaps (with lastmod, hreflang, images, news data when present). Sites without a readable sitemap, unreachable sites, invalid input, duplicates and URLs removed by your filters are free. |
| `url-checked` | URL returned + status checked | FREE $0.0005 / BRONZE $0.0003 / SILVER $0.0002 / GOLD $0.0001 / PLATINUM $0.0001 / DIAMOND $0.0001 | Replaces "URL returned" when "Check status" is on: the URL plus its live HTTP status, redirect target, X-Robots-Tag and indexable flag (HEAD, with GET fallback when HEAD is refused). Never charged together with "URL returned". |

On the FREE plan, 1,000 `url` events cost $0.2. Prices can change with Apify's notice period: check the Store page or `fetch-actor-details` before a large run.

## Limits

- A site with no sitemap in robots.txt or the usual locations, or that blocks automated clients, returns `no_sitemap` (free). You can pass the sitemap URL directly.
- URLs without `lastmod` are left out when `lastmodSince` is set (counted in the summary).
- Reads sitemaps only (and a HEAD/GET per URL with `checkStatus`); collects URLs, not personal data.

## Facts about this tool

- Public on the Apify Store; users in the last 30 days: 0 (API, 2026-11-29). It is a new tool without reviews yet.
- Source of every fact in this file: the Actor's Store page and README, and the public Apify API. Report errors at https://github.com/xsi-hq/xsi-agent-tools/issues
