Robots.txt & XML Sitemap Discrepancy Checker
Pricing
from $0.70 / 1,000 item scrapeds
Go to Apify Store
Robots.txt & XML Sitemap Discrepancy Checker
Audit robots.txt directives (Disallow, Allow, Crawl-delay) against XML Sitemap URLs. Identifies blocked sitemap URLs, missing sitemaps, and indexing discrepancies.
🤖 Robots.txt & XML Sitemap Discrepancy Checker
Audit technical SEO compliance by cross-checking robots.txt directives (Disallow, Allow, User-agent, Crawl-delay) against XML Sitemap URLs. Instantly spot critical indexing errors such as URLs listed in your sitemap that are blocked from search engine crawlers by robots.txt.
🥊 Why This Actor Beats the Competition
| Feature | This Actor (Pay-Per-Result) | Enterprise SEO Suites (Ahrefs, Semrush) | Manual Audit / Spreadsheets |
|---|---|---|---|
| Cost | 💰 $1.00 / 1,000 URLs checked | $200–$500/month recurring fees | High labor cost & error-prone |
| Speed | ⚡ Under 15 seconds per audit | Hours of site-wide crawler processing | Slow manual pattern matching |
| API Integration | ✅ Direct REST API, Python & Node.js SDKs | Complex web dashboards | None |
| Discrepancy Detection | ✅ Identifies blocked sitemap URLs automatically | Buried in technical crawl error logs | Manual regex required |
🛠️ Step-by-Step: How to Use
Method 1: Apify Web Console
- Enter your domain (e.g.
https://apify.comorapify.com) in Domains or Website URLs. - Set Max Sitemap URLs to Audit (e.g.
30). - Click Start to run the check.
Method 2: Python SDK
from apify_client import ApifyClientclient = ApifyClient("YOUR_APIFY_TOKEN")run = client.actor("litezero/robots-txt-sitemap-checker").call(run_input={"domainsOrUrls": ["https://apify.com"],"maxUrlsToAudit": 50})for item in client.dataset(run["defaultDatasetId"]).iterate_items():if item["isBlockedByRobots"]:print(f"CRITICAL DISCREPANCY: {item['url']} is in sitemap but blocked by: {item['matchedRule']}")
📥 Input Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
domainsOrUrls | Array | ["https://apify.com"] | Domains or website homepages to audit. |
maxUrlsToAudit | Integer | 30 | Maximum sitemap URLs to check against robots.txt rules. |
📤 Output Sample JSON
{"domain": "https://apify.com","url": "https://apify.com/store","isBlockedByRobots": false,"matchedRule": "None (Allowed by default)","hasSitemapInRobots": true,"sitemapsFound": ["https://apify.com/sitemap.xml"],"disallowRulesCount": 8,"allowRulesCount": 2,"robotsTxtUrl": "https://apify.com/robots.txt","auditedAt": "2026-10-03T09:20:00.000Z"}
💡 Top Commercial Use Cases
- Pre-Launch Technical SEO QA: Ensure dev/staging Disallow rules were removed before production deployment.
- Crawl Budget Optimization: Confirm high-priority sitemap landing pages are 100% crawlable by Googlebot.
- Agency Client Audits: Deliver automated robots.txt vs sitemap audit reports in client discovery phases.\n