How to Audit Any Website for AI Search (llms.txt & GPTBot/ClaudeBot robots.txt) via API
In 2026, ranking in Google is only half the story. Developers, buyers, and founders increasingly discover tools through ChatGPT Search, Claude, Perplexity, and AI coding agents. Yet most websites accidentally block AI c
In 2026, ranking in Google is only half the story. Developers, buyers, and founders increasingly discover tools through ChatGPT Search, Claude, Perplexity, and AI coding agents.
Yet most websites accidentally block AI crawlers in robots.txt or fail to publish an /llms.txt file that helps language models index their documentation cleanly.
If you run an SEO agency, a GEO (Generative Engine Optimization) tool, or a B2B SaaS growth team, auditing hundreds of client or competitor domains manually is slow. Here is how to run an automated AI-Readiness & llms.txt Audit in one HTTP call.
What Makes a Site AI-Ready?
A fast, technical AI-Readiness audit checks four signals simultaneously:
-
/llms.txt&/llms-full.txtPresence: Verifies real Markdown/plain-text files (filtering out soft-404 HTML fallback pages) and extracts the title, character length, and link count. -
12 Major AI Crawler Rules in
robots.txt: Parses exact allow/block directives forGPTBot,OAI-SearchBot,ChatGPT-User,ClaudeBot,Claude-Web,anthropic-ai,PerplexityBot,Google-Extended,CCBot,Meta-ExternalAgent,Bytespider, andApplebot-Extended. -
XML Sitemap Discovery: Checks
/sitemap.xmlplus allSitemap:directives declared insiderobots.txt. - 0 to 100 AI-Readiness Score: Returns a weighted score plus concrete recommendations you can embed directly in client reports.
Audit Any Domain in 10 Lines of TypeScript
const RAPIDAPI_KEY = process.env.RAPIDAPI_KEY!;
async function auditAiReadiness(url: string) {
const res = await fetch(
`https://ai-readiness-llms-txt-ai-bot-robots-txt-auditor-api.p.rapidapi.com/api/ai-readiness?url=${encodeURIComponent(url)}`,
{
headers: {
'x-rapidapi-key': RAPIDAPI_KEY,
'x-rapidapi-host': 'ai-readiness-llms-txt-ai-bot-robots-txt-auditor-api.p.rapidapi.com',
},
}
);
return res.json();
}
const report = await auditAiReadiness('https://stripe.com');
console.log({
score: report.aiReadinessScore,
hasLlmsTxt: report.llmsTxt.present,
botsAllowed: report.robotsTxt.aiBotsAllowed,
botsBlocked: report.robotsTxt.aiBotsBlocked,
});
Bulk-Auditing Hundreds of Domains for Agencies
If you need to audit a spreadsheet of 500 prospect domains for outbound GEO prospecting or agency lead generation, you can run the batch Apify Actor directly (HTTP-first, 128 to 512 MB RAM, no headless browser compute costs):
- Apify Batch Actor: https://apify.com/kickybreaks/ai-readiness-llms-txt-auditor
Give Your AI Agent Direct Access (MCP Server)
You can also wire this auditor (along with 5 other B2B & RAG endpoints) straight into Claude Desktop, Cursor, or Windsurf using our open-source MCP Server:
- GitHub MCP Server & n8n Starter Kit: https://github.com/SgtClickClack/b2b-ai-data-apis-starter
Try It Free Across Any Marketplace
- RapidAPI Hub (AI-Readiness Auditor): https://rapidapi.com/JulianRoberts/api/ai-readiness-llms-txt-ai-bot-robots-txt-auditor-api
- RapidAPI Hub (SEO Metadata & JSON-LD Extractor): https://rapidapi.com/JulianRoberts/api/seo-metadata-opengraph-json-ld-extractor-api
- Zyla API Hub (All-in-One 11-Endpoint Suite): https://zylalabs.com/api-marketplace/other/kickybreaks+b2b+and+ai+data+api/15877
- Postman Public API Network Collection: https://www.postman.com/julian-g-roberts-8522179/kickybreaks-b2b-ai-data-apis/overview
Need a custom GEO auditing dashboard, private data pipeline, or AI workflow built for your team? Book a fixed-price sprint on Contra: https://contra.com/julian_roberts_fvzgvg6y/work
Originally published by Dev.to AI. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.