Validate llms.txt File in cURL

The llms.txt specification tells AI systems which pages to prioritize and how to cite your content. This endpoint validates your llms.txt file against the spec, checks for common mistakes, and suggests improvements.

Endpoint

POST /api/v1/llmstxt/validate

cURL Code

curl -X POST "https://seodiff.io/api/v1/llmstxt/validate" \
  -H "Authorization: Bearer $SEODIFF_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url":"https://example.com/llms.txt"}'

Example Response

{"valid":true,"warnings":["Consider adding a 'preferred-citation' field"],"sections_found":3,"urls_listed":12}
Authentication

All requests require an API key in the Authorization: Bearer header. Get your API key →

Same Endpoint, Other Languages

More cURL Examples

Evaluate pSEO Pages

Test programmatic pages against assertion rules. The core agentic evaluation endpoint.

Scan a Website

Enqueue a surface scan for diff detection and SEO regression identification.

Validate in CI/CD Pipeline

CI-friendly endpoint that blocks deployments when SEO regressions are detected.

Trigger Deep Audit

Start a comprehensive multi-page crawl with PageRank, link analysis, and pSEO diagnostics.

Google Search Console Data Sync

Pull GSC performance data into SEODiff for correlation with AI-readiness metrics.

Start testing in 30 seconds

Get an API key and run your first evaluation with a single cURL command.

Get API Key or Read full API docs