# Sitemap & RSS Feed Exporter (CSV, Excel, JSON) (`wood-between-studio/sitemap-feed-exporter`) Actor

Export every URL from XML sitemaps and every item from RSS, Atom or JSON feeds into one clean table. Auto-finds sitemaps and feeds from a homepage.

- **URL**: https://apify.com/wood-between-studio/sitemap-feed-exporter.md
- **Developed by:** [Wood Between Studio](https://apify.com/wood-between-studio) (community)
- **Categories:** SEO tools, Developer tools, News
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.50 / 1,000 url exporteds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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 Feed Exporter

**Turn any website's sitemap or RSS, Atom or JSON feed into a clean CSV, Excel or JSON list of URLs in seconds. Just paste a homepage and it finds the sitemaps and feeds for you.**

Give it a website, a sitemap or a feed, and get back one tidy table you can download as CSV, Excel or JSON. It reads XML sitemaps (including sitemap indexes and `.xml.gz` files) and RSS, Atom and JSON Feed files, and puts everything in the same columns.

You don't need to know where a site keeps its sitemap. Paste the homepage and the Actor checks `robots.txt`, the usual sitemap locations and the page's feed links for you.

### What it's good for

- **Content inventories.** Get every URL a site has published, with last-modified dates, before a migration, a redesign or a content audit.
- **Competitor tracking.** See what a competitor published this month. Set "Only items changed or published after" and schedule the run weekly.
- **Feeding other tools.** Use the URL list as input for a crawler, a link checker, a translation job or a spreadsheet.
- **News and blog monitoring.** Pull several RSS or Atom feeds into one dataset and push them to Google Sheets, Slack or a webhook with Apify integrations.
- **Podcast and media lists.** Feed enclosures (audio and video file URLs) are included.
- **SEO checks.** Turn on "Check HTTP status" to find sitemap entries that 404 or redirect. Those shouldn't be in a sitemap.

### What it handles

| Source | Notes |
|---|---|
| `sitemap.xml` | `loc`, `lastmod`, `changefreq`, `priority`, image sitemaps, `hreflang` alternates, Google News titles and dates |
| Sitemap index | Follows nested indexes (up to 5 levels by default) |
| `.xml.gz` | Decompressed automatically |
| RSS 2.0 / RSS 1.0 (RDF) | title, link, date, author, categories, summary, GUID, enclosure |
| Atom | same fields, mapped to the same columns |
| JSON Feed 1.0 / 1.1 | same fields |
| A normal web page | finds sitemaps in `robots.txt` (or tries `/sitemap.xml`, `/sitemap_index.xml`, `/wp-sitemap.xml`) and feeds in `<link rel="alternate">` tags |

### Input

The only required field is `startUrls`. A typical input:

```json
{
  "startUrls": [
    { "url": "https://www.woodbetweenstudio.com" },
    { "url": "https://github.blog/feed/" },
    { "url": "https://www.nytimes.com/sitemaps/new/sitemap.xml.gz" }
  ],
  "maxItems": 5000,
  "maxItemsPerStartUrl": 1000,
  "excludeUrlPattern": "/tag/|/author/",
  "modifiedAfter": "2026-01-01"
}
```

| Field | What it does | Default |
|---|---|---|
| `startUrls` | Homepages, sitemaps or feeds. Mix freely. | (required) |
| `autoDiscover` | Look up sitemaps and feeds when you give a normal page | `true` |
| `includeSitemaps` / `includeFeeds` | Turn either source type off | `true` / `true` |
| `maxItems` | Stop after this many rows in total | `10000` |
| `maxItemsPerStartUrl` | Cap per start URL, so one huge site doesn't use the whole budget. `0` = no cap | `0` |
| `includeUrlPattern` / `excludeUrlPattern` | Regular expressions to keep or drop URLs | empty |
| `modifiedAfter` | Keep only rows dated after this date (rows with no date are dropped) | empty |
| `maxSitemapDepth` | How deep to follow sitemap indexes | `5` |
| `checkStatus` | Send a HEAD request to each URL and record the status code | `false` |

### Output

Every row has the same shape. Sitemap URLs have `type: "sitemap-url"` and feed entries have `type: "feed-item"`. A field is `null` when the source doesn't provide it.

Sitemap row:

```json
{
  "type": "sitemap-url",
  "url": "https://www.woodbetweenstudio.com/shop/",
  "title": null,
  "lastModified": "2026-10-27T00:00:00.000Z",
  "published": null,
  "changeFrequency": null,
  "priority": null,
  "imageCount": 0,
  "images": [],
  "alternates": [],
  "sourceUrl": "https://www.woodbetweenstudio.com/sitemap.xml",
  "sourceType": "sitemap"
}
```

Feed row:

```json
{
  "type": "feed-item",
  "url": "https://github.blog/news-insights/company-news/github-universe-2026-evolving-every-layer-of-the-stack/",
  "title": "GitHub Universe 2026: Evolving every layer of the stack",
  "published": "2026-10-28T16:09:28.000Z",
  "author": "Jay Parikh",
  "categories": ["Company news", "News & insights", "GitHub Universe"],
  "summary": "Today, we laid out our vision for GitHub as the most comprehensive, end-to-end software delivery system…",
  "guid": "https://github.blog/?p=99788",
  "enclosureUrl": null,
  "feedTitle": "The GitHub Blog",
  "sourceUrl": "https://github.blog/feed/",
  "sourceType": "rss"
}
```

The key-value store also gets a `SUMMARY` record listing every sitemap or feed the Actor touched, what kind it was, how many rows it produced and any error (for example "HTTP 404" or "No sitemap or feed found for this site").

### Pricing

In plain words: **$0.50 per 1,000 rows exported** (that's $0.0005 per URL or feed item), plus Apify's small standard Actor start fee. Exporting a 2,000-URL sitemap costs about $1.

- Rows removed by your filters or by the duplicate check are not charged.
- Set `maxItems`, or a maximum cost per run in the run options, and the Actor stops cleanly at the limit.
- Reading sitemaps is light work, so platform usage per run is usually tiny.

### FAQ

**Does it crawl the website?**
No. It only reads the sitemap and feed files the site publishes. That's why it's fast and cheap. If a site has no sitemap and no feed, you'll get zero rows and a note in `SUMMARY`. For a site like that, use a crawler instead.

**Is this allowed?**
Sitemaps and feeds exist so that machines can read them. The Actor makes a handful of requests per site (or one per URL if you turn on status checks). Use it on sites you own or on public sitemaps and feeds, and follow each site's terms.

**A site has 200,000 URLs. Will it handle that?**
Yes. Raise `maxItems`, and give the run more memory if the sitemap files are very large. Use `maxItemsPerStartUrl` when you mix big and small sites in one run.

**Why are some feed summaries cut off?**
Summaries are plain text trimmed to 500 characters, so the table stays readable. The `url` field links to the full article.

**Can I get only new items each week?**
Yes. Schedule the Actor and set `modifiedAfter` to the date of your last run, or de-duplicate on `url` in your own sheet or database.

**The site uses a sitemap that isn't listed in robots.txt.**
Paste the sitemap URL itself as a start URL.

**Something didn't parse.**
Please open an issue on the Actor page with the URL. Broken sitemaps in the wild come in many odd shapes, and we fix reports quickly.

### Related tools

These work well together for a quick technical SEO check:

- **[Broken Link Checker](https://apify.com/wood-between-studio/broken-link-checker)**: find 404 errors, dead links and redirect chains across a whole site.
- **[SEO Meta Tag Audit](https://apify.com/wood-between-studio/seo-meta-audit)**: bulk-check meta titles, meta descriptions, canonicals, H1s and schema, with a 0-100 score per page.

Typical workflow: export the sitemap here, then paste the URL list into the link checker (list mode) or the meta audit.

***

Made by Wood Between Studio.

# Actor input Schema

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

Paste a homepage (we look up robots.txt, /sitemap.xml and feed links for you), a sitemap.xml / sitemap index / .xml.gz file, or an RSS, Atom or JSON Feed URL. Mix and match.

## `autoDiscover` (type: `boolean`):

When a URL is a normal web page, read robots.txt and the page's <link rel="alternate"> tags to find its sitemaps and feeds.

## `includeSitemaps` (type: `boolean`):

Include URLs listed in XML sitemaps.

## `includeFeeds` (type: `boolean`):

Include items from RSS, Atom and JSON feeds.

## `maxItems` (type: `integer`):

Stop after this many rows. Each row is one billed result.

## `maxItemsPerStartUrl` (type: `integer`):

Optional cap per website/sitemap/feed you entered, so one big site doesn't use up the whole run. 0 = no cap.

## `includeUrlPattern` (type: `string`):

Optional. Example: /blog/ or .pdf$

## `excludeUrlPattern` (type: `string`):

Optional. Example: /tag/|/author/

## `modifiedAfter` (type: `string`):

Optional date like 2026-01-01. Rows without a date are dropped when this is set.

## `maxSitemapDepth` (type: `integer`):

How many levels of nested sitemap indexes to follow.

## `checkStatus` (type: `boolean`):

Send a quick HEAD request to every exported URL and add its status code. Slower; off by default.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://www.woodbetweenstudio.com"
    }
  ],
  "autoDiscover": true,
  "includeSitemaps": true,
  "includeFeeds": true,
  "maxItems": 10000,
  "maxItemsPerStartUrl": 0,
  "maxSitemapDepth": 5,
  "checkStatus": false
}
```

# Actor output Schema

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

No description

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

No description

# 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": [
        {
            "url": "https://www.woodbetweenstudio.com"
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("wood-between-studio/sitemap-feed-exporter").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": [{ "url": "https://www.woodbetweenstudio.com" }] }

# Run the Actor and wait for it to finish
run = client.actor("wood-between-studio/sitemap-feed-exporter").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": [
    {
      "url": "https://www.woodbetweenstudio.com"
    }
  ]
}' |
apify call wood-between-studio/sitemap-feed-exporter --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,wood-between-studio/sitemap-feed-exporter"
        }
    }
}
```

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/TFm8UCBUbAPAo78zQ/builds/8vGU3dQJZCmeUR5tP/openapi.json
