llms.txt validator API for developers
Everything the website does, without the hand-holding: a JSON API for the validator, the exact rules, and how verification and crawling work.
Validator API
Free, no key needed. Rate limited to about 12 checks a minute per IP (HTTP 429 with Retry-After when exceeded). Calling from a server that shares its IP? Send your API key with GET /validator.json and the limit is 60 a minute per key instead (an invalid key gets 401). CORS is open (including preflight), so you can call it from a browser. Private and local addresses are never fetched.
Check a live site
curl -s "https://llmsledger.com/validator.json?url=example.com" | jq '.score, .issues'
We fetch /llms.txt and /llms-full.txt, trying https and www/non-www variants (then http) if the address as given can't be reached.
Check a file before you publish it
curl -s -X POST "https://llmsledger.com/validator.json" \ -H "Content-Type: text/plain" --data-binary @llms.txt
From JavaScript or anything that prefers JSON, send {"content": "…"} with Content-Type: application/json.
Fail a CI build when the file has problems
curl -s -X POST "https://llmsledger.com/validator.json" -H "Content-Type: text/plain" --data-binary @public/llms.txt \ | jq -e '[.issues[] | select(.severity == "error")] | length == 0'
Response
| Field | Meaning |
|---|---|
score | 0–100. Starts at 100; each error costs 40, each warning 10. A missing file or an HTML page scores 0. |
valid | true when there are no errors. |
noFile | true when the URL returned nothing usable (404, empty, or an HTML page instead of text). |
title, summary | The # title and the > summary line. |
sections[] | name, links (count), optional (the ## Optional section). |
issues[] | severity (error, warning, info), code (see rules), line (1-based, may be null), message, fix. |
fetch | URL checks only: status, contentType, sizeBytes, fetchedAt. |
llmsFull | URL checks only: whether /llms-full.txt exists, its size, title and link count. |
Status codes: 200 (checked, including "no file" and sites that couldn't be reached: then reachable is false and error says why), 400 (bad input), 429 (rate limited).
Link checking
Opens each page a live file links to (up to 40) and reports the ones that don't work. Same rate limit as the validator.
curl -s "https://llmsledger.com/validator/links.json?url=example.com" | jq '.links[] | select(.ok | not)'
| Field | Meaning |
|---|---|
checked, skipped | How many links were opened, and how many were left out over the limit. |
links[] | title, url, ok, status (HTTP status, null if there was no answer) and problem (a short reason when ok is false). |
Rules
Based on the llms.txt proposal. Codes are stable; use them in scripts.
| Code | Level | Points | Meaning |
|---|---|---|---|
empty |
error | −100 | File is empty. The address returned nothing. Publish your llms.txt content there. |
html |
error | −100 | Web page instead of a file. The address returned a web page (HTML). Your site doesn't have an llms.txt yet, or it's in the wrong place. |
no-h1 |
error | −40 | Missing title. The file must start with your site or project name as a heading: # Your name. |
h1-not-first |
error | −40 | Title isn't first. Nothing may come before the # title line. |
preamble-before-title |
warning | −10 | Note above the title. A plain-text note (often added by SEO plugins like Yoast) sits above the # title. AI tools usually skip it, but the title should come first. |
multiple-h1 |
warning | −10 | More than one title. Use one # title. Use ## for section headings. |
content-type |
warning | −10 | Served with the wrong type. Servers should send llms.txt as text/plain or text/markdown. |
large |
warning | −10 | File is very large. Keep llms.txt short (under 1 MB). Put full content in llms-full.txt. |
section-no-links |
warning | −10 | Empty section. Each ## section should list pages as: - [Page name](https://url): short note. |
text-section |
info | 0 | Section with text only. A ## section that holds text but no links. That's fine for context; AI tools just won't find pages there. |
no-sections |
warning | −10 | No link sections. Add at least one ## section listing your most important pages. |
few-links |
warning | −10 | Very few pages listed. One or two links don't tell AI tools much. List your 3 to 10 most important pages. |
bad-url |
warning | −10 | Link isn't a web address. Links should be full web addresses (https://…) or paths on your site (/page). |
missing-scheme |
warning | −10 | Link is missing https://. A link like example.com/page is read as a page on your own site. Write https://example.com/page. |
repeated-domain |
warning | −10 | Address repeats the domain. A link like https://site.com/site.com/page is broken. Remove the repeated domain. |
malformed-link |
warning | −10 | Broken link format. A list item that looks like a link but won't parse, e.g. brackets in the name or spaces in the address. |
no-summary |
info | 0 | No summary line. Optional but recommended: a one-line description after the title, starting with >. |
relative-url |
info | 0 | Relative link. Links like /pricing work, but full addresses (https://…) are safer for AI tools. |
http-url |
info | 0 | Insecure link. Links that start with http:// work, but https:// is preferred where the page supports it. |
plain-list-items |
info | 0 | List items without links. List items inside sections are most useful as links. |
optional-section |
info | 0 | Has an Optional section. AI tools may skip the ## Optional section when they're short on space. That's by design. |
Verifying sites
Each site gets its own code. Any one of these proves ownership; we check all three each time you press verify:
- Meta tag in the home page
<head>:<meta name="llmsledger-verification" content="<your code>"> - File at
/.well-known/llmsledger-verification.txtcontaining the code (plain text). - DNS TXT record on the domain:
llmsledger-verification=<your code>
You can remove the tag, file or record once the site is verified. Free listings also need the badge link on the page you choose; paid plans don't.
Many sites
Add several sites takes a pasted list: one site per line, or rows copied from a spreadsheet or CSV (any column with a website in it counts; names and notes are ignored). It creates a code per site, which you can copy or download as a CSV (domain,code,meta_tag,dns_txt_value,well_known_url) to hand to whoever deploys. GET /api/v1/sites lists the same codes under pendingVerification. Then "Verify all". Agency covers 10 sites per pack ($79/month per pack) and costs less than Nightly from 5 sites.
Our crawler
- User agent:
LLMsLedgerBot/1.0 (+https://llmsledger.com/bot). We respectrobots.txtfor it. More about the crawler. - Schedule: Free every 3 months, Monthly every month, Nightly and Agency every night. "Check now" in the dashboard runs it on demand.
- Conditional requests (
ETag,If-Modified-Since), a size cap, and no requests to private addresses.
Monitoring
Every fetched version is stored with a line-by-line diff in the dashboard (paid plans). Nightly and Agency email you each change (what was added and removed, with a link to the full diff), and every paid plan emails you if the file breaks or disappears, or if pages it links to stop working (we open every link each time we check the file).
Your sites API
Create a personal key in your dashboard under API and webhooks and send it as a bearer token. Up to 60 requests a minute from each IP address (the AI readiness API is limited per key instead).
| Request | Returns |
|---|---|
GET /api/v1/sites | Every site on the account (plan, status, listed, score, AI readiness, broken links, last/next check, badge state, pending plan) and sites waiting for verification with their codes, meta tag, file URL and DNS value. |
GET /api/v1/sites/{domain} | One site, its current llms.txt issues (same fields as the validator; empty while the file is missing or the site can't be reached) its versions (the last 20 on paid plans, the current one on Free) and its latest readiness report (same shape as the readiness API, or null before the first check). |
GET /api/v1/readiness?url={domain} | AI readiness for any public website. See AI readiness API. |
POST /api/v1/sites | Adds a site. JSON body: {"domain": "example.com", "plan": "Agency"} (plan is optional: Agency if you have Agency packs, otherwise Free). Returns the verification code, meta tag, file URL and DNS value. |
POST /api/v1/sites/{domain}/verify | Checks the code on the site and applies the plan, like the green button on the verify page. Returns step (NotVerified, NeedsBadge, Published, NeedsPayment, AgencyFull, Conflict), a message, and an action.url when payment is needed in the browser. |
POST /api/v1/sites/{domain}/check | Checks the site now, like "Check now" in the dashboard, and returns outcome (Changed, Unchanged, NotModified, NotFound, Error, Blocked), the site and its issues. Once a minute per site (429 otherwise). |
curl -s -H "Authorization: Bearer $LLMS_LEDGER_KEY" "https://llmsledger.com/api/v1/sites" | jq '.sites[] | {domain, score, status}'Every error is JSON: {"error": "…"}. 400 (bad domain, plan or body), 401 (missing or revoked key), 404 (not a site on your account, or no such endpoint), 405 (wrong method), 409 (site belongs to another account), 415 (body isn't JSON), 429 (rate limited; Retry-After says how many seconds). Adding a site you've already added returns 200 with the same code. Verifying also checks the file and returns its issues, so you don't need /check straight after.
AI readiness API
The AI readiness check as JSON, for any public website (not only sites on your account). Send your API key as a bearer token, as above.
curl -s -H "Authorization: Bearer $LLMS_LEDGER_KEY" "https://llmsledger.com/api/v1/readiness?url=example.com" | jq '{score, band, toFix}'| Parameter | Meaning |
|---|---|
url | Required. The website, like example.com (a full URL works too; only the domain is used). |
maxAge | Minutes. Reuse a result checked within this long (default 1440, one day; at most 43200, 30 days; 0 always scans). Results come from anyone's check of that domain, on the website or the API, so popular sites are often already cached. |
fresh | true to scan now whatever is cached. |
- A scan takes up to 25 seconds (usually 2 to 10). If the site doesn't answer in time you still get 200, with
scorenulland the reason inerror; a site that's down or returns an error page does the same. Failed scans are never cached. Only a badurl,maxAgeorfreshgets 400. - Limits are per API key, not per IP: 60 requests a minute, of which at most 60 an hour may run a new scan (cached answers don't count toward the hourly limit). Over either limit you get 429 with
Retry-Afterin seconds. Checking a few dozen sites? Run four or five at a time and leavemaxAgeat a day. cachedsays whether the answer came from an earlier scan;checkedAt(UTC) says when that scan ran.bandisReady(80+ with no major check failed),Getting there(50+),Needs work, orUnknown(no score).heldBackBylists the titles of failed checks worth 10+ points, which keep a site out of Ready.checks[].statusispass,warn,failorinfo(reported, not scored:maxPoints0).toFixlists check codes in the order the report page shows them, most important first.crawlers[].kindissearch,on requestortraining.platformiswordpress,squarespace,wix,shopifyornull; thefixtext names that platform's settings.llmsTxtcarries the numbers behind the llms.txt check (score,valid,issueCount;nullwhen there's no file), so you don't need a second call to validator.json.- Check codes are stable: we add new codes, never rename or reuse old ones. Today:
https,ai-search-access,readable-content,noindex,ai-training,llms-txt,schema-org,schema-details,title,meta-description,h1,sitemap,canonical,open-graph,response-time,lang.scoringVersion(now 1) goes up whenever checks or points change, so scores from different versions shouldn't be compared directly. GET /api/v1/sites/{domain}includes the same object asreadinessfor sites on your account (from the weekly or monthly automatic check, ornullbefore the first one).
Example response for polarisautomation.com:
{
"domain": "polarisautomation.com",
"checkedAt": "2026-11-10T13:51:07+00:00",
"cached": true,
"score": 96,
"band": "Ready",
"error": null,
"responseMs": 223,
"platform": "wordpress",
"categories": [
{ "name": "Access", "points": 40, "maxPoints": 40, "percent": 100 },
{ "name": "Understanding", "points": 31, "maxPoints": 35, "percent": 89 },
{ "name": "Discovery", "points": 15, "maxPoints": 15, "percent": 100 },
{ "name": "Speed and basics", "points": 10, "maxPoints": 10, "percent": 100 }
],
"checks": [
{ "code": "https", "category": "Access", "title": "Secure connection (the padlock, HTTPS)", "status": "pass", "points": 5, "maxPoints": 5, "message": "Your site loads over HTTPS.", "fix": null },
{ "code": "ai-search-access", "category": "Access", "title": "AI search tools can read your site", "status": "pass", "points": 15, "maxPoints": 15, "message": "ChatGPT, Claude, Perplexity, Bing/Copilot and Google can all read your site.", "fix": null },
{ "code": "readable-content", "category": "Access", "title": "Enough readable text on your home page", "status": "pass", "points": 10, "maxPoints": 10, "message": "Your home page has 426 words of text that any crawler can read.", "fix": null },
{ "code": "noindex", "category": "Access", "title": "Home page allowed in search", "status": "pass", "points": 10, "maxPoints": 10, "message": "Your home page can be indexed.", "fix": null },
{ "code": "ai-training", "category": "Access", "title": "AI training crawlers", "status": "info", "points": 0, "maxPoints": 0, "message": "You allow AI training crawlers. That's a choice: blocking them (GPTBot, ClaudeBot, Google-Extended and others) doesn't affect AI search.", "fix": null },
{ "code": "llms-txt", "category": "Understanding", "title": "llms.txt file", "status": "pass", "points": 5, "maxPoints": 5, "message": "Your llms.txt scores 100/100.", "fix": null },
{ "code": "schema-org", "category": "Understanding", "title": "Business details search engines and AI can read (structured data)", "status": "pass", "points": 10, "maxPoints": 10, "message": "Your home page describes your business with Organization schema (\"Polaris Automation\").", "fix": null },
{ "code": "schema-details", "category": "Understanding", "title": "Complete business profile", "status": "warn", "points": 3, "maxPoints": 5, "message": "Your business profile is missing: contact details, address or service area.", "fix": "Add the missing details in your SEO plugin's organization or local business settings. Consistent details help AI tools describe you correctly." },
{ "code": "title", "category": "Understanding", "title": "Page title", "status": "pass", "points": 5, "maxPoints": 5, "message": "\"Polaris Automation - Manufacturing Automation & MES Solutions\"", "fix": null },
{ "code": "meta-description", "category": "Understanding", "title": "Page description", "status": "pass", "points": 5, "maxPoints": 5, "message": "\"Polaris Automation is a full-service systems integrator delivering MES, automation and controls that modernize your plant without replacing what works.\"", "fix": null },
{ "code": "h1", "category": "Understanding", "title": "Main heading", "status": "warn", "points": 3, "maxPoints": 5, "message": "Your home page has 2 main headings (H1). One is clearer.", "fix": "Keep one H1 and change the others to H2." },
{ "code": "sitemap", "category": "Discovery", "title": "Sitemap", "status": "pass", "points": 8, "maxPoints": 8, "message": "Found your sitemap at https://www.polarisautomation.com/sitemap_index.xml.", "fix": null },
{ "code": "canonical", "category": "Discovery", "title": "One main address for your home page (canonical)", "status": "pass", "points": 3, "maxPoints": 3, "message": "Main address: https://www.polarisautomation.com/", "fix": null },
{ "code": "open-graph", "category": "Discovery", "title": "Link preview when your site is shared (Open Graph)", "status": "pass", "points": 4, "maxPoints": 4, "message": "Links to your site show a title and image when shared.", "fix": null },
{ "code": "response-time", "category": "Speed and basics", "title": "Server response time", "status": "pass", "points": 5, "maxPoints": 5, "message": "Your home page loaded in 223 ms from our server.", "fix": null },
{ "code": "lang", "category": "Speed and basics", "title": "Language set", "status": "pass", "points": 5, "maxPoints": 5, "message": "Language: en-US.", "fix": null }
],
"toFix": [ "schema-details", "h1" ],
"heldBackBy": [],
"crawlers": [
{ "token": "Googlebot", "owner": "Google Search and AI Overviews", "kind": "search", "allowed": true },
{ "token": "Bingbot", "owner": "Bing and Microsoft Copilot", "kind": "search", "allowed": true },
{ "token": "OAI-SearchBot", "owner": "ChatGPT search", "kind": "search", "allowed": true },
{ "token": "ChatGPT-User", "owner": "ChatGPT (when a user asks)", "kind": "on request", "allowed": true },
{ "token": "PerplexityBot", "owner": "Perplexity", "kind": "search", "allowed": true },
{ "token": "Perplexity-User", "owner": "Perplexity (when a user asks)", "kind": "on request", "allowed": true },
{ "token": "Claude-SearchBot", "owner": "Claude search", "kind": "search", "allowed": true },
{ "token": "Claude-User", "owner": "Claude (when a user asks)", "kind": "on request", "allowed": true },
{ "token": "GPTBot", "owner": "OpenAI", "kind": "training", "allowed": true },
{ "token": "ClaudeBot", "owner": "Anthropic", "kind": "training", "allowed": true },
{ "token": "Google-Extended", "owner": "Google Gemini", "kind": "training", "allowed": true },
{ "token": "Applebot-Extended", "owner": "Apple", "kind": "training", "allowed": true },
{ "token": "CCBot", "owner": "Common Crawl", "kind": "training", "allowed": true },
{ "token": "meta-externalagent", "owner": "Meta", "kind": "training", "allowed": true }
],
"robotsTxtFound": true,
"llmsTxt": { "found": true, "score": 100, "valid": true, "issueCount": 1 },
"scoringVersion": 1,
"reportUrl": "https://llmsledger.com/ai-readiness?url=polarisautomation.com"
}
Webhooks
Add an https URL under API and webhooks. We POST JSON when one of your sites changes, breaks or goes live:
{
"id": "3f9c0d2a7b8e4f5a9c1d2e3f4a5b6c7d",
"event": "site.changed",
"sentAt": "2026-10-04T03:12:09Z",
"data": {
"site": { "domain": "example.com", "plan": "Nightly", "status": "Live", "score": 90, ... },
"version": { "id": 812, "sha256": "…", "added": 4, "removed": 1, "score": 90, "diff": "https://llmsledger.com/dashboard/sites/12/versions/812" }
}
}
- Events:
site.changed(Nightly and Agency),site.broken(paid plans, with areason),site.links_broken(paid plans, when links in the file stop working, with abrokenlist),site.listed,claim.closed(a site you were verifying was verified by another account; it leaves your pending list), andpingfrom "Send a test event" (never retried). - Verify the
X-LLMsLedger-Signatureheader:sha256=followed by the hex HMAC-SHA256 of the raw body using your signing secret. The event name is also inX-LLMsLedger-Event. sentAtis UTC in ISO 8601 (yyyy-MM-ddTHH:mm:ssZ), the time of the event. Retries keep the same body,idand signature.- Respond with any 2xx within 10 seconds. Failed calls are retried after 1, 5 and 30 minutes, then 2 and 8 hours. Headers:
X-LLMsLedger-Delivery(same asid; use it to ignore repeats) andX-LLMsLedger-Attempt. Your dashboard shows recent deliveries. Emails are sent either way.