# Sitemap & RSS Extractor: All URLs and Feed Items of a Site (`michael80/sitemap-rss-extractor`) Actor

Extract every URL from a website's sitemaps (index, gzip, news, image, hreflang) and every item from its RSS/Atom feeds in one flat table. Auto-discovery via robots.txt, filters, only-new monitoring. Failures free.

- **URL**: https://apify.com/michael80/sitemap-rss-extractor.md
- **Developed by:** [Toolmaster Data Tools](https://apify.com/michael80) (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.24 / 1,000 sitemap url extracteds

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

## Sitemap & RSS Extractor: All URLs and Feed Items of a Site

Get **every URL of a website from its sitemaps** and **every item from its RSS/Atom feeds** in one clean, CSV-ready table. Just enter the website: the Actor finds the sitemaps (robots.txt and standard locations) and the feeds (the page's RSS/Atom links) by itself.

- **Complete sitemap support:** sitemap index files (followed automatically), gzip (`.xml.gz`), plain-text sitemaps, image sitemaps (number of images plus the first image URLs), video sitemaps, **Google News sitemaps** (news title and publication date) and **hreflang alternates** (language versions of each page).
- **All feed formats:** RSS 2.0, RSS 1.0 (RDF) and Atom, with title, link, plain-text summary, publication and update date (normalised to ISO 8601 UTC), categories and podcast enclosures.
- **Filters:** keep or skip URLs by text or wildcard (`/blog/`, `*.pdf`), and keep only entries changed or published within the last N days.
- **Only new entries since the last run:** schedule it daily to get just the new pages or articles of competitors, customers or your own sites. Known entries are skipped and **free**.
- **Built for big sites:** sitemaps are read as a stream, so files with 50,000 URLs need little memory; a safety limit protects you from sites with thousands of sub-sitemaps.
- **Fair and safe:** failed downloads, missing sitemaps/feeds and filtered entries are free and reported transparently. XML is parsed securely (no entity expansion). Author names in feeds are deliberately not stored.

### Who uses it

| User | Typical use |
| --- | --- |
| SEO agencies | Full URL inventory, find orphaned or outdated pages, check hreflang and image coverage |
| Content and PR teams | Monitor new articles and press releases of competitors via their feeds |
| Developers and data teams | Seed crawlers, migration checks, change detection, feeding AI pipelines with fresh URLs |

### Input

| Field | Example | Notes |
| --- | --- | --- |
| `startUrls` | `["https://apify.com", "https://example.com/sitemap.xml", "https://blog.example.com/feed"]` | Websites, sitemaps or feeds |
| `extract` | `both` | `both`, `sitemaps` or `feeds` |
| `includePatterns`, `excludePatterns` | `["/blog/"]`, `["*.pdf"]` | Optional |
| `modifiedWithinDays` | `30` | Optional |
| `onlyNew`, `monitorName` | `true`, `"competitors"` | For scheduled monitoring |
| `maxSitemapFiles`, `maxResults` | `200`, `10000` | Safety limits |

### Output

One row per entry. `type` tells you what it is:

| Field | sitemap-url | feed-item |
| --- | --- | --- |
| `site`, `source`, `url` | website, sitemap file, page URL | website, feed URL, article URL |
| `lastModified`, `changeFrequency`, `priority` | `2026-11-10T07:00:00Z`, `daily`, `1.0` | – |
| `images`, `imageUrls`, `videos`, `alternates` | `2`, first 3 image URLs, `1`, `["de:https://…/de/"]` | – |
| `newsTitle`, `newsPublishedAt` | from Google News sitemaps | – |
| `feedTitle`, `feedFormat`, `feedLanguage` | – | `Shop Blog`, `rss`, `de-DE` |
| `title`, `summary`, `published`, `updated`, `categories`, `guid` | – | article data, summary as plain text (max. 600 characters) |
| `enclosureUrl`, `enclosureType` | – | podcast / media files |

Rows with `type` `error` or `note` explain what could not be read (free).

### Pricing (pay per event)

| Event | Price |
| --- | --- |
| Sitemap URL extracted | **$0.30 per 1,000 URLs** |
| Feed item extracted | **$0.80 per 1,000 items** |

Errors, filtered and already known entries are free. Higher Apify plans get automatic Store discounts.

### FAQ

**The site has no sitemap in robots.txt. What happens?** The Actor tries `/sitemap.xml`, `/sitemap_index.xml`, `/sitemap-index.xml` and `/wp-sitemap.xml` and tells you in a `note` row if nothing was found.

**Does it crawl the pages themselves?** No. It only reads the sitemaps and feeds the site publishes for exactly this purpose, which is fast and gentle on the website.

**Something wrong or missing?** Open an issue on the Actor page. We usually answer within one business day.

***

### Kurz auf Deutsch

Liest **alle Adressen einer Website aus ihren Sitemaps** und **alle Einträge ihrer RSS/Atom-Feeds** in eine CSV-taugliche Tabelle: Sitemap-Index, gzip, Bild-, Video- und News-Sitemaps, hreflang-Sprachversionen, RSS 2.0/1.0 und Atom. Automatische Suche über robots.txt, Filter nach Text oder Datum und **nur neue Einträge seit dem letzten Lauf** zur Überwachung von Wettbewerbern. Fehler und gefilterte Einträge sind kostenlos, Autorennamen werden nicht gespeichert.

***

**Anbieter / Impressum (Angaben gemäß § 5 DDG):** Michael Schönherr · Am Spiegelwald 1 · 08344 Grünhain-Beierfeld · Deutschland · E-Mail: toolmaster@tuta.io

# Changelog

This Actor's version history is a separate document: https://apify.com/michael80/sitemap-rss-extractor/changelog.md

# Actor input Schema

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

One URL per line: a website (sitemaps are found via robots.txt and standard locations, feeds via the page's RSS/Atom links), a sitemap URL (XML, sitemap index, .gz or plain text) or an RSS/Atom feed URL.

## `extract` (type: `string`):

For websites: extract all URLs from the sitemaps, all items from the RSS/Atom feeds, or both.

## `includePatterns` (type: `array`):

Optional. Keep only URLs that contain one of these texts (e.g. '/blog/') or match a wildcard (e.g. '*/product/*').

## `excludePatterns` (type: `array`):

Optional. Skip URLs that contain one of these texts or match a wildcard (e.g. '\*.pdf', '/tag/'). Skipped URLs are free.

## `modifiedWithinDays` (type: `integer`):

Optional. Only sitemap URLs whose lastmod, or feed items whose publication date, lies within the last N days. Entries without a date are skipped when this is set.

## `onlyNew` (type: `boolean`):

Remembers what earlier runs with the same settings delivered and returns only new URLs and feed items (known ones are skipped and free). Ideal for monitoring competitors' new pages or new articles on a schedule.

## `monitorName` (type: `string`):

Optional name of the storage that remembers delivered entries (only with 'Only new entries'). Use different names for different monitors; default 'sitemap-feeds-monitor'.

## `maxSitemapFiles` (type: `integer`):

Safety limit for very large sites with many sub-sitemaps (each file can hold up to 50,000 URLs).

## `maxResults` (type: `integer`):

Stops after this many URLs and feed items in total.

## `maxConcurrency` (type: `integer`):

How many start URLs are processed at the same time.

## `selfTest` (type: `boolean`):

Runs a small fixed extraction (apify.com and blog.python.org, 20 results) to check that everything works. Ignores the other fields.

## Actor input object example

```json
{
  "startUrls": [
    "https://apify.com",
    "https://blog.python.org/"
  ],
  "extract": "both",
  "onlyNew": false,
  "maxSitemapFiles": 200,
  "maxResults": 200,
  "maxConcurrency": 5,
  "selfTest": false
}
```

# Actor output Schema

## `overview` (type: `string`):

URL, dates, title, source per row.

## `results` (type: `string`):

Complete rows incl. images, hreflang alternates, news data, summaries, categories, enclosures.

# 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.python.org/"
    ],
    "maxResults": 200
};

// Run the Actor and wait for it to finish
const run = await client.actor("michael80/sitemap-rss-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.python.org/",
    ],
    "maxResults": 200,
}

# Run the Actor and wait for it to finish
run = client.actor("michael80/sitemap-rss-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.python.org/"
  ],
  "maxResults": 200
}' |
apify call michael80/sitemap-rss-extractor --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,michael80/sitemap-rss-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/rdtcfrwgSUUqWdEP0/builds/Xoodm6Sdt8tsEqgGa/openapi.json
