# Robots Txt Audit (`apage/robots-txt-audit`) Actor

Audit robots.txt files for AI crawler access. Get an AI Readiness Score (0-100), analyze 61+ AI crawlers (ChatGPT, Claude, Perplexity, Gemini), detect syntax errors, security concerns, and get actionable recommendations. Batch audit multiple domains at once with optional subdomain scanning.

- **URL**: https://apify.com/apage/robots-txt-audit.md
- **Developed by:** [Andy Page](https://apify.com/apage) (community)
- **Categories:** SEO tools, AI, Developer tools
- **Security:** Limited permissions
- **Stats:** 14 total users, 1 monthly users, 100.0% runs succeeded, 1 bookmarks
- **User rating**: No ratings yet

## Pricing

from $5.00 / 1,000 results

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

## Robots.txt Audit Actor (AI Crawler Edition)

Audit **robots.txt** files for AI crawler management. Get an **AI Readiness Score (0-100)** for every domain, see which AI systems — ChatGPT, Claude, Perplexity, Gemini, and 60+ others — can access your content, detect syntax errors, flag security concerns, and get actionable recommendations to maximize your AI search visibility.

### Why Use This Actor?

- **AI Readiness Score** — A single 0-100 headline metric that instantly tells you how AI-discoverable your site is, with a letter grade (A-F) and detailed breakdown
- **60+ AI crawlers tracked** — The most comprehensive AI crawler database available, covering AI Agents, AI Assistants, AI Search, and AI Training bots
- **Instant visibility** — Know in seconds if ChatGPT, Claude, Perplexity, Brave, or Gemini can cite your content
- **Subdomain scanning** — Discover robots.txt blind spots on www, blog, shop, api, docs, and 8 other common subdomains
- **Batch auditing** — Audit hundreds of domains in a single run with configurable concurrency
- **Actionable recommendations** — Get prioritized fixes with ready-to-paste robots.txt snippets
- **Security scanning** — Detect sensitive path disclosures that actually help attackers
- **Competitor comparison** — See how your AI crawler strategy compares to competitors

### Features

| Feature | Description |
|---------|-------------|
| AI Readiness Score | 0-100 score with A-F grade measuring AI discoverability |
| AI Crawler Detection | Analyzes 60+ AI crawlers across AI Agent, AI Assistant, AI Search, AI Data Scraper, and AI Training categories |
| Subdomain Scanning | Checks 13 common subdomains for separate robots.txt files |
| Search Engine Analysis | Checks access for Googlebot, Bingbot, DuckDuckBot, Yandex, Baidu, and more |
| Syntax Validation | Detects typos, malformed lines, non-standard directives, and orphaned rules |
| Security Audit | Flags sensitive paths disclosed in robots.txt (admin panels, .env, .git, etc.) |
| Sitemap Validation | Verifies declared sitemaps and discovers undeclared sitemaps at common locations |
| Strategy Classification | Classifies your AI posture as open, restrictive, mixed, or undefined |
| Competitor Comparison | Side-by-side AI crawler strategy comparison across domains |
| Proxy Support | Optional Apify proxy integration for fetching from restricted networks |
| CSV Export | Flattened output for spreadsheet analysis |

### AI Crawlers Tracked (60+)

#### AI Agents (5)

| Crawler | Company | Importance |
|---------|---------|------------|
| ChatGPT-Agent | OpenAI | High |
| GoogleAgent-Mariner | Google | Medium |
| NovaAct | Amazon | Medium |
| AmazonBuyForMe | Amazon | Low |
| Manus-User | Butterfly Effect | Low |

#### AI Assistants (10)

| Crawler | Company | Importance |
|---------|---------|------------|
| Gemini-Deep-Research | Google | High |
| Google-NotebookLM | Google | Medium |
| MistralAI-User | Mistral | Medium |
| PhindBot | Phind | Low |
| Amzn-User | Amazon | Low |
| kagi-fetcher | Kagi | Low |
| Ai2Bot-DeepResearchEval | AI2 | Low |
| Devin | Cognition | Low |
| TavilyBot | Tavily | Low |
| LinerBot | Liner | Low |

#### AI Search (20)

| Crawler | Company | Importance |
|---------|---------|------------|
| GPTBot | OpenAI | Critical |
| ChatGPT-User | OpenAI | Critical |
| OAI-SearchBot | OpenAI | Critical |
| ClaudeBot | Anthropic | High |
| Claude-SearchBot | Anthropic | High |
| Claude-User | Anthropic | High |
| Claude-Web | Anthropic | High |
| PerplexityBot | Perplexity AI | High |
| Perplexity-User | Perplexity AI | High |
| Bravebot | Brave | Medium |
| AzureAI-SearchBot | Microsoft | Medium |
| DuckAssistBot | DuckDuckGo | Medium |
| Amazonbot | Amazon | Medium |
| meta-webindexer | Meta | Medium |
| FacebookBot | Meta | Low |
| Amzn-SearchBot | Amazon | Low |
| YouBot | You.com | Low |
| PetalBot | Huawei | Low |
| Cloudflare-AutoRAG | Cloudflare | Low |
| AddSearchBot / Anomura / atlassian-bot / Channel3Bot / LinkupBot / ZanistaBot | Various | Low |

#### AI Data Scrapers (9)

| Crawler | Company | Importance |
|---------|---------|------------|
| GoogleOther | Google | Medium |
| imageSpider | ByteDance | Low |
| cohere-training-data-crawler | Cohere | Low |
| ChatGLM-Spider | Zhipu AI | Low |
| PanguBot | Huawei | Low |
| Timpibot | Timpi | Low |
| webzio-extended | Webz.io | Low |
| Kangaroo Bot | Kangaroo LLM | Low |
| VelenPublicWebCrawler | Velen/Hunter | Low |

#### AI Training (10)

| Crawler | Company | Importance |
|---------|---------|------------|
| Google-Extended | Google | High |
| anthropic-ai | Anthropic | High |
| Google-CloudVertexBot | Google | Medium |
| Applebot-Extended | Apple | Medium |
| CCBot | Common Crawl | Medium |
| Bytespider | ByteDance/TikTok | Low |
| meta-externalagent | Meta | Low |
| Meta-ExternalFetcher | Meta | Low |
| Diffbot | Diffbot | Low |
| Omgilibot / cohere-ai / AI2Bot | Various | Low |

*Plus 7 search engine crawlers, 7 SEO tool crawlers, and 8 social media crawlers.*

### Input Parameters

| Parameter | Type | Required | Default | Description |
|-----------|------|----------|---------|-------------|
| `domains` | string\[] | Yes | — | Domains to audit (e.g., `["example.com", "github.com"]`) |
| `checkCompetitors` | string\[] | No | `[]` | Competitor domains for side-by-side comparison |
| `includeSitemap` | boolean | No | `true` | Validate sitemap URLs declared in robots.txt |
| `scanSubdomains` | boolean | No | `false` | Scan 13 common subdomains (www, blog, shop, api, dev, staging, app, docs, help, support, cdn, mail, admin) for separate robots.txt files |
| `maxConcurrency` | integer | No | `10` | Max domains to process in parallel (1-50) |
| `outputFormat` | string | No | `"json"` | Output format: `json` or `csv` |
| `proxyConfig` | object | No | Apify residential | Proxy configuration for fetching robots.txt files |

#### Example Input

```json
{
  "domains": ["nytimes.com", "github.com", "shopify.com"],
  "checkCompetitors": ["medium.com"],
  "includeSitemap": true,
  "scanSubdomains": false,
  "maxConcurrency": 10,
  "outputFormat": "json"
}
```

### Output Schema

Each domain produces a comprehensive audit report:

```json
{
  "summary": {
    "domain": "nytimes.com",
    "robotsTxtExists": true,
    "robotsTxtUrl": "https://nytimes.com/robots.txt",
    "httpStatus": 200,
    "lastModified": "2026-01-15T00:00:00Z",
    "syntaxValid": true,
    "totalRules": 12,
    "responseTimeMs": 245,
    "aiCrawlerStatus": {
      "allowedAI": 5,
      "blockedAI": 8,
      "unspecifiedAI": 48,
      "defaultPolicy": "allow"
    },
    "aiReadinessScore": 72,
    "aiReadinessGrade": "B"
  },
  "aiReadinessScore": {
    "score": 72,
    "grade": "B",
    "breakdown": [
      { "factor": "Critical AI crawlers", "points": 35, "maxPoints": 35, "detail": "GPTBot: allowed (+12); ChatGPT-User: allowed (+12); OAI-SearchBot: allowed (+12)" },
      { "factor": "High-importance AI crawlers", "points": 15, "maxPoints": 20, "detail": "ClaudeBot: allowed (+5); Claude-SearchBot: allowed (+5); PerplexityBot: allowed (+5); Perplexity-User: BLOCKED (+0)" },
      { "factor": "Sitemap declared", "points": 10, "maxPoints": 10, "detail": "2 sitemap(s) declared and accessible" },
      { "factor": "Syntax quality", "points": 7, "maxPoints": 10, "detail": "1 high-severity syntax issue(s) found" },
      { "factor": "Search engines accessible", "points": 10, "maxPoints": 10, "detail": "All critical search engines allowed" },
      { "factor": "Wildcard policy", "points": 10, "maxPoints": 10, "detail": "Wildcard allows crawling (or no wildcard rule)" },
      { "factor": "Security posture", "points": 5, "maxPoints": 5, "detail": "No high-severity security path disclosures" }
    ]
  },
  "aiCrawlers": {
    "allowed": [
      {
        "bot": "GPTBot",
        "company": "OpenAI",
        "purpose": "ChatGPT responses & training",
        "status": "explicitly_allowed",
        "impact": "Your content CAN be accessed by OpenAI."
      }
    ],
    "blocked": [
      {
        "bot": "CCBot",
        "company": "Common Crawl",
        "status": "explicitly_blocked",
        "impact": "Your content CANNOT be accessed by Common Crawl."
      }
    ],
    "unspecified": [
      {
        "bot": "Bravebot",
        "company": "Brave",
        "status": "not_mentioned",
        "defaultBehavior": "allowed"
      }
    ]
  },
  "searchEngines": {
    "Googlebot": { "status": "allowed", "restrictions": [], "crawlDelay": null },
    "Bingbot": { "status": "partially_restricted", "restrictions": ["/admin"], "crawlDelay": null }
  },
  "syntaxIssues": [],
  "securityConcerns": [],
  "sitemaps": [
    { "url": "https://nytimes.com/sitemap.xml", "accessible": true, "httpStatus": 200, "source": "robots_txt" }
  ],
  "recommendations": [
    {
      "priority": "high",
      "category": "ai_visibility",
      "title": "Unblock Perplexity-User for AI search visibility",
      "description": "Perplexity-User is blocked.",
      "implementation": "User-agent: Perplexity-User\nAllow: /"
    }
  ],
  "aiStrategyInsights": {
    "currentPosture": "mixed",
    "description": "Mixed strategy: Allowing AI search but blocking AI training.",
    "suggestedStrategy": "Good approach. Review periodically as new AI crawlers emerge."
  },
  "competitorComparison": [],
  "subdomainAudits": []
}
```

### AI Readiness Score

The AI Readiness Score is a **0-100 metric** that measures how discoverable your site is to AI systems. It provides a single, comparable number with a letter grade (A-F) and a detailed breakdown showing exactly where points are gained or lost.

#### Scoring Breakdown

| Factor | Max Points | How It Works |
|--------|-----------|--------------|
| Critical AI crawlers allowed | 35 | +12 each for GPTBot, ChatGPT-User, OAI-SearchBot |
| High-importance AI crawlers | 20 | +5 each for ClaudeBot, Claude-SearchBot, PerplexityBot, Perplexity-User |
| Sitemap declared | 10 | 10 if declared in robots.txt, 5 if found at /sitemap.xml, 0 if none |
| No syntax errors | 10 | 10 if clean, -3 per high-severity issue |
| Search engines not blocked | 10 | 10 if Googlebot + Bingbot allowed, -5 per blocked |
| No wildcard Disallow: / | 10 | 10 if wildcard allows, 0 if wildcard blocks root |
| No security path disclosures | 5 | 5 minus 1 per high-severity concern |

#### Grades

| Grade | Score Range | Meaning |
|-------|-----------|---------|
| A | 90-100 | Excellent AI discoverability |
| B | 75-89 | Good, minor improvements possible |
| C | 55-74 | Fair, significant gaps in AI access |
| D | 35-54 | Poor, most AI crawlers blocked or no robots.txt |
| F | 0-34 | Critical, site is largely invisible to AI |

#### Special Cases

- **No robots.txt (404)**: Score = 50 (D) — all crawlers allowed by default but no intentional control
- **Access restricted (403/401)**: Score = 40 (D) — crawlers default to allow-all but situation is abnormal

### Example Use Cases

#### 1. Agency Client Audit

Audit all client domains for AI visibility issues:

```json
{
  "domains": [
    "client1.com",
    "client2.com",
    "client3.com"
  ],
  "includeSitemap": true,
  "maxConcurrency": 10
}
```

#### 2. Competitive Analysis

Compare your AI crawler strategy against competitors:

```json
{
  "domains": ["mycompany.com"],
  "checkCompetitors": ["competitor1.com", "competitor2.com", "competitor3.com"],
  "includeSitemap": false
}
```

#### 3. Enterprise Bulk Scan

Scan hundreds of domains for a portfolio audit:

```json
{
  "domains": ["site1.com", "site2.com", "...up to 1000 domains"],
  "maxConcurrency": 25,
  "outputFormat": "csv"
}
```

#### 4. Subdomain Audit

Scan a domain and its common subdomains (www, blog, shop, api, docs, etc.):

```json
{
  "domains": ["example.com"],
  "scanSubdomains": true,
  "includeSitemap": true
}
```

#### 5. Quick Single-Domain Check

Fast check for one domain:

```json
{
  "domains": ["example.com"]
}
```

### Output Formats

#### JSON (Default)

Standard Apify dataset output. Each domain produces one JSON object in the dataset. Use the **Overview** dataset view for a quick summary table including the AI Readiness Score.

#### CSV

Flattened audit data saved to the key-value store as `output-csv`. Ideal for importing into Google Sheets or Excel for reporting.

### How It Works

1. **Fetch** — Retrieves `/robots.txt` via HTTPS (falls back to HTTP). Handles 404, 403, 5xx, redirects, and HTML catch-all responses. Retries transient failures.
2. **Parse** — Extracts User-agent groups, Allow/Disallow rules, Crawl-delay, Sitemap declarations, and Host directives.
3. **Categorize** — Maps every user-agent to our database of 80+ known crawlers across AI, search engines, SEO tools, and social media bots.
4. **Analyze** — Determines access status for each of 60+ AI crawlers and 7 search engines. Identifies security concerns from sensitive path disclosures.
5. **Validate** — Checks syntax for typos, malformed lines, orphaned directives, and non-standard extensions.
6. **Recommend** — Generates prioritized, actionable recommendations with copy-paste robots.txt snippets.
7. **Score** — Calculates the AI Readiness Score (0-100) with a detailed factor-by-factor breakdown.
8. **Subdomain Scan** — Optionally checks 13 common subdomains for separate robots.txt files and runs the full audit pipeline on each.
9. **Compare** — If competitors are provided, adds side-by-side AI strategy comparison.

### Troubleshooting

#### Empty results or fetch errors

- **DNS failures**: The domain may not exist or may be unreachable. Check the `interpretation` field in the output for details.
- **Timeouts**: Some servers are slow. The actor retries transient failures automatically (2 retries with exponential backoff).
- **No robots.txt (404)**: This is a valid result — it means all crawlers are allowed by default. The actor still generates recommendations and an AI Readiness Score of 50.

#### All AI crawlers show as "unspecified"

This means the robots.txt has no AI-specific rules. All AI crawlers fall through to the wildcard (`*`) or default allow policy. The recommendations will suggest adding explicit rules.

#### Running locally

Install dependencies and run:

```bash
cd actors/robots-txt-audit
npm install
echo '{"domains":["example.com"]}' | npx apify-cli run --purge
```

Or run tests:

```bash
npm test
```

### Limitations

- **robots.txt only** — This actor analyzes `/robots.txt` files. It does not crawl pages, check meta robots tags, or verify X-Robots-Tag headers.
- **Static analysis** — The audit reflects the robots.txt content at fetch time. It does not monitor changes over time (planned for V2).
- **No Wayback Machine integration** — Historical robots.txt analysis is planned for V2.
- **Standard compliance** — The parser follows the [Google robots.txt specification](https://developers.google.com/search/docs/crawling-indexing/robots/robots_txt). Non-standard extensions (Crawl-delay, Host) are detected but flagged as non-standard.
- **Response size limit** — robots.txt files larger than 1 MB are skipped to prevent memory issues (this is extremely rare).

### FAQ

**Q: How long does a typical run take?**
A: 10 domains takes about 5-10 seconds. 100 domains with concurrency 10 takes about 30-60 seconds. It's very fast since we're only fetching small text files. Adding subdomain scanning increases time proportionally.

**Q: Do I need proxies?**
A: Usually not — robots.txt files are public and lightweight. Proxies are available if you're scanning from a datacenter IP that gets rate-limited.

**Q: What if a domain has no robots.txt?**
A: The actor reports `robotsTxtExists: false` with the interpretation "all crawlers are allowed by default", generates a recommendation to create one, and assigns an AI Readiness Score of 50 (Grade D).

**Q: How often is the AI crawler database updated?**
A: We track 60+ AI crawlers as of February 2026, sourced from Dark Visitors and our own research. The database is updated with each actor release as new AI crawlers emerge.

**Q: What is the AI Readiness Score?**
A: It's a 0-100 metric that measures how AI-discoverable your site is. A score of 90+ (Grade A) means your site is fully optimized for AI search engines. Below 35 (Grade F) means most AI systems can't access your content.

**Q: Can I use this to generate a robots.txt file?**
A: The recommendations include ready-to-paste robots.txt snippets. A full robots.txt generator is planned for V2.

### Changelog

#### v1.1.0 (February 2026)

- **AI Readiness Score**: New 0-100 headline metric with A-F grades and detailed 7-factor breakdown
- **60+ AI crawlers**: Expanded from 26 to 61 AI crawlers, now covering AI Agents (ChatGPT-Agent, NovaAct, Manus), AI Assistants (Gemini-Deep-Research, Devin, MistralAI-User), AI Data Scrapers (GoogleOther, ChatGLM-Spider), and AI Search (Bravebot, AzureAI-SearchBot, meta-webindexer)
- **Subdomain scanning**: Optionally scan 13 common subdomains for separate robots.txt files
- **Expanded non-AI crawlers**: Added rogerbot, Screaming Frog, SiteAuditBot (SEO) and Discordbot, WhatsApp, TelegramBot, Pinterestbot (social)
- **267 unit tests**

#### v1.0.1 (February 2026)

- Added 7 AI crawlers (ClaudeBot, Claude-SearchBot, Claude-User, Google-CloudVertexBot, DuckAssistBot, Perplexity-User, Meta-ExternalFetcher)
- 403/401 HTTP status handling with specific recommendations
- Sitemap auto-discovery at /sitemap.xml when not declared in robots.txt
- Crawl-delay detection and wildcard crawl-delay warnings
- Output deduplication (removed knownBots redundancy, cleaned up wildcard-inherited search engine restrictions)
- 218 unit tests

#### v1.0.0 (February 2026)

- Initial public release
- 19 AI crawlers tracked
- 7 search engine crawlers, 4 SEO tool crawlers, 3 social media crawlers
- Syntax validation with typo detection
- Security concern identification
- Prioritized recommendations with implementation snippets
- Competitor comparison
- Sitemap accessibility validation
- CSV export
- Proxy support via Apify proxy configuration
- Retry logic with exponential backoff
- 184 unit tests

### Support

- **Issues**: Report bugs via GitHub issues or the Apify community forum
- **Feature requests**: Contact us through Apify or open a GitHub issue
- **Enterprise**: For bulk scanning (10K+ domains/month), reach out for custom pricing

Built by **A Page Ventures** | [Apify Store](https://apify.com/store)

# Actor input Schema

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

List of domains to check robots.txt for. Enter domain names (e.g., 'example.com') or full URLs — protocols will be stripped automatically.

## `checkCompetitors` (type: `array`):

Optional: competitor domains to include in a comparison. Their robots.txt will be analyzed alongside your domains.

## `includeSitemap` (type: `boolean`):

Also check if sitemaps declared in robots.txt are accessible (sends HEAD requests to each sitemap URL).

## `scanSubdomains` (type: `boolean`):

Check common subdomains (www, blog, shop, api, dev, staging, app, docs, help, support, cdn, mail, admin) for separate robots.txt files and include them in the audit.

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

Maximum number of domains to process in parallel. Higher values are faster but use more memory.

## `outputFormat` (type: `string`):

Format of the output data. JSON is default and works with Apify integrations. CSV is good for spreadsheets.

## `proxyConfig` (type: `object`):

Proxy servers to use for fetching robots.txt files. Datacenter proxies are usually sufficient.

## Actor input object example

```json
{
  "domains": [
    "example.com",
    "github.com",
    "nytimes.com"
  ],
  "checkCompetitors": [
    "competitor1.com",
    "competitor2.com"
  ],
  "includeSitemap": true,
  "scanSubdomains": false,
  "maxConcurrency": 10,
  "outputFormat": "json",
  "proxyConfig": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# Actor output Schema

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

Domain audit summaries with AI Readiness Score, crawler counts, and overall posture

## `allData` (type: `string`):

Complete audit data including AI Readiness Score, all crawler statuses, syntax issues, security concerns, and recommendations

## `csvOutput` (type: `string`):

Flattened audit data in CSV format (available when outputFormat is set to csv)

# 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": [
        "example.com"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("apage/robots-txt-audit").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": ["example.com"] }

# Run the Actor and wait for it to finish
run = client.actor("apage/robots-txt-audit").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": [
    "example.com"
  ]
}' |
apify call apage/robots-txt-audit --silent --output-dataset

```

## MCP server setup

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

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/0bl4ilhG3dcCHLK5U/builds/Dd8lSGeD0ueiZkROE/openapi.json
