South Star

Robots txt Analyzer Google Spec AI Crawlers Indexability API

Free tier included · Tools
Robots.txt analyzer and validator with Google spec compliance, 26 AI crawlers, and indexability checks.

Robots.txt Analyzer evaluates URLs against robots.txt exactly the way Google's open-source parser does: group selection by longest matching user-agent token, longest-rule-wins path matching, Allow wins ties, `*` wildcard and `$` anchor support. It also covers AI crawlers (GPTBot, ClaudeBot, etc.), generates compliant robots.txt and llms.txt files, validates RFC 9309 syntax, and audits HTML indexability (meta robots, canonical, X-Robots-Tag). Features include per-bot verdict, validation paste, sitemap.xml status, crawl rules, any UA matching rule, sitemaps, crawl-delay, 26 AI-bots, llms.txt, Content Signals, and AI-visibility score.

Use cases: SEO audits, crawler pre-flight checks, scraper pipelines, AI crawler policy enforcement, and automated robots.txt generation for new sites.

The API is offline and stateless — it analyzes only the robots.txt text you provide. No external network calls, no logging, no databases. Validation is fast: regex and string matching on short inputs. A single /check call completes in under 30ms.

Honest limits: robots.txt content is capped at 512,000 bytes per request. The /check endpoint accepts one URL per call; batch processing requires multiple calls. AI crawler analysis covers 26 known bots. Generated files follow RFC 9309 but may not cover every edge case. Indexability analysis parses HTML snippets, not full page fetches.

Endpoints

MethodPathWhat it does
GET/API metadata: name, version, and paths to the interactive docs and health endpoint.
GET/healthLiveness probe; returns status "ok" while the process is up.
POST/checkEvaluate one URL against a robots.txt file. Returns allowed/blocked verdict, matched rule, rule type, group matched, and crawl-delay.
POST/sitemapsExtract all Sitemap: directive URLs from a robots.txt file.
POST/infoReturn a group overview of a robots.txt file: user agents, rule counts, crawl-delay, and sitemap count.
POST/check/aiEvaluate 26 AI crawlers (GPTBot, ClaudeBot, etc.) against robots.txt with individual verdicts.
POST/validateValidate robots.txt syntax and RFC 9309 compliance, returning errors, warnings, and compliance status.
POST/generateGenerate a fully compliant robots.txt file based on AI blocking preferences, search engine rules, paths, and sitemaps.
POST/llmsGenerate a standardized llms.txt file for LLM crawlers and content signals.
POST/indexabilityAnalyze meta robots tags, X-Robots-Tag headers, canonical links, and compute an indexability grade and issue codes.

Quick start

curl -X POST "https://robots.p.rapidapi.com/check" \
  -H "X-RapidAPI-Key: YOUR_RAPIDAPI_KEY" \
  -H "X-RapidAPI-Host: robots.p.rapidapi.com" \
  -H "Content-Type: application/json" \
  -d '{"robots_txt":"User-agent: *\nDisallow: /admin/\nAllow: /admin/public\nCrawl-delay: 10\n\nSitemap: https://example.com/sitemap.xml\n","url":"https://example.com/admin/secret","user_agent":"Googlebot"}'

FAQ

Does the API fetch robots.txt or URLs from the network?

No. You provide the raw robots.txt text and the URL to check. The API is fully offline and stateless.

How many AI crawlers are analyzed in /check/ai?

26 known AI crawlers including GPTBot, ClaudeBot, Bard, and others. Each gets an individual verdict.

What is the robots.txt size limit?

Up to 512,000 bytes per request across all endpoints that accept robots_txt content.

Can I generate robots.txt for specific bots?

Yes. The /generate endpoint accepts a `bots` array to target specific user agents, plus `block_ai`, `allow_search`, `paths`, and `sitemaps` options.

Try Robots txt Analyzer Google Spec AI Crawlers Indexability free

Free tier on every plan. Get an API key and start calling in under a minute.

Open on RapidAPI

Related APIs