# Sitemap & Robots.txt Explorer with AI Crawlers (`opendatadesk/sitemap-robots-explorer`) Actor

List every URL in a website's sitemaps with last changed dates, and see which AI crawlers its robots.txt blocks. Works with many sites at once. No login needed.

- **URL**: https://apify.com/opendatadesk/sitemap-robots-explorer.md
- **Developed by:** [Open Data Desk](https://apify.com/opendatadesk) (community)
- **Categories:** SEO tools, Developer tools, AI
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.50 / 1,000 urls

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 & Robots.txt Explorer

List every page in a website's sitemaps, with last changed dates, and get a plain report on its robots.txt, including which AI crawlers are blocked. Works with several websites at once. No login and no proxy needed.

### What does Sitemap & Robots.txt Explorer do?

For each website you give it, the Actor:

1. Reads the robots.txt file and finds the sitemaps the site declares.
2. Reads those sitemaps, including sitemap index files that point to other sitemaps, and compressed `.xml.gz` files.
3. Returns one row per page URL, with the date it last changed when the sitemap has one.
4. Builds a report about the robots.txt, so you can see at a glance how the site treats crawlers.

It is useful for:

- SEO checks and site audits.
- Making a clean list of URLs before you run a bigger crawl.
- Finding pages that changed recently.
- Checking whether a site blocks AI crawlers such as GPTBot or ClaudeBot.
- Comparing the language versions of pages, because hreflang links from the sitemap are included.

### What data do you get?

#### URLs (dataset)

| Field | What it is |
| --- | --- |
| `site` | The website |
| `url` | The page URL |
| `lastmod` | The date the sitemap says the page changed, or `null` if the sitemap has none |
| `changefreq`, `priority` | As stated in the sitemap, or `null` |
| `sitemapUrl` | The sitemap file the URL came from |
| `alternates` | Other language or region versions of the page (hreflang), if listed |
| `imageCount` | How many images the sitemap lists for the page |

#### Example row

```json
{
    "site": "nytimes.com",
    "url": "https://www.nytimes.com/2026/11/16/world/europe/pope-leo-peru-health.html",
    "lastmod": "2026-11-16T12:43:12.000Z",
    "changefreq": null,
    "priority": null,
    "sitemapUrl": "https://www.nytimes.com/sitemaps/new/news.xml.gz",
    "alternates": [],
    "imageCount": 1
}
```

#### Robots.txt and AI crawler report (key-value store, key `ROBOTS_REPORT`)

One entry per website with:

- Whether a robots.txt exists, and the sitemaps it declares.
- Which sitemap files were read, and any problems found, such as a file that could not be loaded.
- The crawl delay, if the site sets one.
- Whether the site has an `llms.txt` file.
- For 15 well known AI crawlers (for example GPTBot, ClaudeBot, PerplexityBot, Google-Extended and CCBot): `blocked`, `partly blocked` or `allowed`, and whether the rule is written for that crawler or comes from the general rules for everyone.

The list of crawlers is based on the names that the companies publish, and names do change over time. The report reflects what robots.txt says. It does not prove that a crawler follows it.

### How to use it

1. Open the Input tab and add websites. A domain such as `example.com` is enough. You can also paste a direct link to a sitemap file.
2. Optional: limit the number of URLs, keep only URLs that match a pattern, or only URLs changed after a date.
3. Click Start and download the URLs as JSON, CSV or Excel. Open the key-value store to see the report.

### Input options

- **Websites**: domains or links, one per line.
- **Find sitemaps automatically**: reads robots.txt, then tries `/sitemap.xml`, `/sitemap_index.xml` and a few other usual places.
- **Include robots.txt and AI crawler report**: on by default. It is billed once per website.
- **Max URLs per website** and **Max URLs in total**: set a ceiling for large sites.
- **Only URLs matching** and **Skip URLs matching**: regular expressions, for example `/blog/` or `\.pdf$`.
- **Only URLs changed after** and **Keep URLs without a date**: Many sitemaps do not list dates, so choose what should happen to those.
- **Proxy**: optional. Most sites do not need it for sitemaps.

### How much does it cost?

You pay for each URL that is returned, and once per website for the report. URLs that are filtered out are free. The prices are shown at the top of this page, and you can set a maximum cost for a run.

### Tips

- Run it with a small limit first, to see what a site's sitemap looks like.
- Very large sites can have hundreds of sitemap files. Use the patterns or the date filter to keep the result focused.
- If a site has no sitemap, the report says so in the problems list.
- This Actor reads sitemap and robots.txt files only. It does not visit the pages, so it does not tell you whether a page still works.

### Is it legal to use?

Sitemaps and robots.txt files are public files that websites publish so that machines can read them. This Actor reads only those files, one request at a time per website. You are responsible for how you use the URLs you collect, including the terms of the websites you plan to crawl next.

### Issues and requests

If a site's sitemap is not read correctly, please open an issue on the Issues tab with the website address.

# Actor input Schema

## `sites` (type: `array`):

Domains or links, one per line. For example example.com or https://example.com. You can also paste a direct link to a sitemap file, like https://example.com/sitemap.xml.

## `discoverSitemaps` (type: `boolean`):

Reads the sitemap addresses listed in robots.txt. If there are none, it tries the usual places such as /sitemap.xml and /sitemap_index.xml. Turn this off if you only want to read the sitemap links you pasted.

## `includeRobotsReport` (type: `boolean`):

Adds one report per website: which sitemaps are declared, the crawl delay, whether llms.txt exists, and whether AI crawlers such as GPTBot and ClaudeBot are blocked. Saved in the key-value store under ROBOTS_REPORT. Billed once per website.

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

Stops reading a website after this many URLs. Use 0 for no limit.

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

The run stops after this many URLs across all websites. Use 0 for no limit.

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

Regular expressions. A URL is kept only if it matches at least one of them. Example: /blog/ keeps only blog pages. Leave empty to keep everything.

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

Regular expressions. A URL is dropped if it matches any of them. Example: .(pdf|jpg)$ or /tag/.

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

Date like 2026-01-31. Keeps only URLs whose sitemap entry says they changed on or after this date. Sitemaps are optional about dates, so see the next setting for URLs without one.

## `keepUrlsWithoutLastmod` (type: `boolean`):

Only matters when you set a date above. When on, URLs that have no date in the sitemap are kept. When off, they are dropped.

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

A sitemap can point to other sitemaps. This is how many levels the Actor follows.

## `maxSitemapFilesPerSite` (type: `integer`):

A safety limit for very large websites with thousands of sitemap files.

## `proxyConfiguration` (type: `object`):

Most websites do not need a proxy for sitemaps. Turn on Apify Proxy only if a website blocks your requests.

## Actor input object example

```json
{
  "sites": [
    "example.com",
    "https://www.example.org/sitemap.xml"
  ],
  "discoverSitemaps": true,
  "includeRobotsReport": true,
  "maxUrlsPerSite": 100,
  "maxItems": 10000,
  "includePatterns": [],
  "excludePatterns": [],
  "modifiedAfter": "",
  "keepUrlsWithoutLastmod": true,
  "maxSitemapDepth": 5,
  "maxSitemapFilesPerSite": 500,
  "proxyConfiguration": {}
}
```

# Actor output Schema

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

Dataset of sitemap URLs returned by the run. Each item is one URL.

## `report` (type: `string`):

Robots.txt and AI crawler report for the website, stored under the key ROBOTS_REPORT.

# 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 = {
    "sites": [
        "crawlee.dev"
    ],
    "maxUrlsPerSite": 100
};

// Run the Actor and wait for it to finish
const run = await client.actor("opendatadesk/sitemap-robots-explorer").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 = {
    "sites": ["crawlee.dev"],
    "maxUrlsPerSite": 100,
}

# Run the Actor and wait for it to finish
run = client.actor("opendatadesk/sitemap-robots-explorer").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 '{
  "sites": [
    "crawlee.dev"
  ],
  "maxUrlsPerSite": 100
}' |
apify call opendatadesk/sitemap-robots-explorer --silent --output-dataset

```

## MCP server setup

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

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/NWBcxsB9ltjANUTKs/builds/jSfopkgdBphSPdmpD/openapi.json
