# Robots.txt, Sitemap XML & Meta Robots SEO Checker (`risimwell/bulk-rendered-robots-txt-sitemap-auditor`) Actor

Audit robots.txt, XML sitemaps, and meta robots tags across multiple domains. Uses Playwright to detect dynamically rendered SEO directives and verify crawler compliance at scale.

- **URL**: https://apify.com/risimwell/bulk-rendered-robots-txt-sitemap-auditor.md
- **Developed by:** [Ricardo Enriquez](https://apify.com/risimwell) (community)
- **Categories:** SEO tools, Business, Developer tools
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $4.50 / 1,000 items extracted

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/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

## Bulk Rendered Robots.txt & Sitemap SEO Compliance Auditor

### Why use this Actor?

In modern web development, traditional static SEO scrapers often fail because directives like meta-robots tags and sitemap links are frequently injected dynamically via JavaScript. The **Bulk Rendered Robots.txt & Sitemap SEO Compliance Auditor** solves this by leveraging a headless browser powered by Playwright to audit multiple domains simultaneously at scale.

Save hours of manual auditing, prevent costly indexing errors, and ensure your technical SEO health is always optimized.

#### Dataset Overview

| Field | Type | Description |
| --- | --- | --- |
| `domain` | String | The target domain being audited. |
| `robots_txt_found` | Boolean | Indicates whether a valid robots.txt file was discovered. |
| `sitemap_urls` | Array | List of XML sitemap locations declared or discovered. |
| `sitemaps_audit` | Array | Detailed validation status, including XML validity and URL count. |
| `meta_robots` | String | Rendered meta robots directive extracted via headless browser. |
| `is_indexable` | Boolean | Final status determining if the page can be indexed by search engines. |
| `indexability_issues` | Array | Detailed listing of any blocking rules or compliance errors. |

***

### Use Cases

- **Automated Agency Reporting:** Integrate with Make or n8n to generate weekly client technical SEO audits.
- **B2B Prospecting:** Quickly scan thousands of prospect domains to identify broken sitemaps or accidental noindex tags.
- **AI Agent Integration:** Connect via Model Context Protocol (MCP) to let your AI agents diagnose indexing health dynamically.
- **No-Code Workflows:** Trigger audits instantly through Zapier whenever a new domain is added to your CRM.

***

### Input JSON Example

```json
{
  "domains": [
    "https://apify.com",
    "https://example.com/reference"
  ],
  "maxItems": 5,
  "checkSitemaps": true,
  "checkMetaRobots": true,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

***

### Verified Output JSON Example

```json
[
  {
    "domain": "apify.com",
    "url": "https://apify.com",
    "base_url": "https://apify.com",
    "robots_txt_found": false,
    "robots_txt_status": null,
    "sitemap_urls": [
      "https://apify.com/sitemap.xml"
    ],
    "user_agent_directives": {},
    "sitemaps_audit": [
      {
        "url": "https://apify.com/sitemap.xml",
        "status_code": 200,
        "is_valid_xml": true,
        "urls_count": 24,
        "is_sitemap_index": true,
        "error": null
      }
    ],
    "meta_robots": "index,follow",
    "canonical_url": "https://apify.com",
    "title": "Apify: Marketplace of ready-to-run tools for AI",
    "is_indexable": true,
    "indexability_issues": [],
    "audit_timestamp": "2026-11-26T21:06:40.782607+00:00",
    "error": null
  }
]
```

***

### Quick Automation (n8n / Make / cURL & MCP Server)

You can easily run this Actor programmatically using standard webhooks, API requests, or AI server bridges.

#### cURL Example

```bash
curl -X POST "https://api.apify.com/v2/acts/YOUR_ACTOR_ID/run-sync-get-dataset-items?token=YOUR_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"domains": ["https://example.com"]}'
```

#### n8n / Make Integration

Use the standard Apify integration node with the endpoint:
`https://api.apify.com/v2/acts/YOUR_ACTOR_ID/run-sync-get-dataset-items`

#### MCP Server

Connect your LLM agents to live SEO auditing by pointing them to `https://mcp.apify.com` with your authorized credentials.

***

### Pay-Per-Event Pricing

This Actor utilizes a transparent Pay-Per-Event (PPE) pricing model:

- **Actor Start (`ACTOR_START`):** $0.002 fixed cost when the SEO audit batch initializes.
- **Item Extracted (`ITEM_EXTRACTED`):** $0.0045 per domain processed, including robots.txt parsing, sitemap validation, and Playwright headless rendering.

*Estimated cost for auditing 1,000 domains:* Approximately **$4.70** total.

### Input Parameters

| Parameter | Type | Default | Description |
| :--- | :--- | :--- | :--- |
| `domains` | array | `["https://apify.com", "https://example.com"]` | List of domains or URLs to check for SEO compliance. |
| `maxItems` | integer | `5` | Maximum number of domains to process. |
| `checkSitemaps` | boolean | `true` | Whether to parse and validate sitemaps found in robots.txt. |
| `checkMetaRobots` | boolean | `true` | Whether to use Playwright to extract meta robots tags from the rendered HTML. |
| `proxyConfiguration` | object | `{"useApifyProxy": true}` | Use proxies to avoid being blocked. |

# Actor input Schema

## `domains` (type: `array`):

List of domains or URLs to check for SEO compliance.

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

Maximum number of domains to process.

## `checkSitemaps` (type: `boolean`):

Whether to parse and validate sitemaps found in robots.txt.

## `checkMetaRobots` (type: `boolean`):

Whether to use Playwright to extract meta robots tags from the rendered HTML.

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

Use proxies to avoid being blocked.

## Actor input object example

```json
{
  "domains": [
    "https://apify.com",
    "https://example.com"
  ],
  "maxItems": 5,
  "checkSitemaps": true,
  "checkMetaRobots": true,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

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

Structured records extracted by this Actor.

# 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 = {
    "domains": [
        "https://apify.com",
        "https://example.com"
    ],
    "maxItems": 5,
    "checkSitemaps": true,
    "checkMetaRobots": true,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("risimwell/bulk-rendered-robots-txt-sitemap-auditor").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 = {
    "domains": [
        "https://apify.com",
        "https://example.com",
    ],
    "maxItems": 5,
    "checkSitemaps": True,
    "checkMetaRobots": True,
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("risimwell/bulk-rendered-robots-txt-sitemap-auditor").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 '{
  "domains": [
    "https://apify.com",
    "https://example.com"
  ],
  "maxItems": 5,
  "checkSitemaps": true,
  "checkMetaRobots": true,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call risimwell/bulk-rendered-robots-txt-sitemap-auditor --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,risimwell/bulk-rendered-robots-txt-sitemap-auditor"
        }
    }
}
```

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/4gWcLnzB2Af1c1igA/builds/uxw0VQbH75Ef7x2xX/openapi.json
