API Reference
All endpoints return JSON. Most endpoints require an API key — get one free at /dashboard. The /stats endpoint is public.
Authentication
Pass your API key as a Bearer token in the Authorization header.
Authorization: Bearer llmi_your_key
Rate limits
Free tier (API key)
30 req / minPOST /check — unauthenticated
10 req / minGET /stats
Unlimited (public)Need higher limits? Contact us.
Base URL
https://llmsindex.dev/api/v1
Endpoints
GET/domainsList domains with llms.txt
GET/domains/:domainSingle domain details + content
GET/domains/:domain/historyVersion history
GET/statsGlobal adoption stats
POST/checkCheck any domain on-demand
GET /domains
Returns paginated list of domains that have llms.txt.
Query parameters
page1Page number (1-based)limit50Results per page (max 100)qSearch by domain namehas_llms_txttrueFilter by presence (true/false)curl https://llmsindex.dev/api/v1/domains?limit=10&q=stripe \ -H "Authorization: Bearer llmi_your_key"
GET /domains/:domain
Returns full details for a domain including the stored llms.txt content.
curl https://llmsindex.dev/api/v1/domains/stripe.com \ -H "Authorization: Bearer llmi_your_key"
GET /domains/:domain/history
Returns the version history — each entry represents a detected content change.
curl https://llmsindex.dev/api/v1/domains/stripe.com/history \ -H "Authorization: Bearer llmi_your_key"
GET /stats
Global adoption statistics. Cached for 5 minutes.
curl https://llmsindex.dev/api/v1/stats
{
"total_checked": 10000,
"total_with_llms_txt": 1402,
"adoption_rate": 14.0,
"new_this_week": 47
}POST /check
Check any domain on-demand. Results are cached (1h for unauthenticated, 5min for API key holders).
curl -X POST https://llmsindex.dev/api/v1/check \
-H "Content-Type: application/json" \
-H "Authorization: Bearer llmi_your_key" \
-d '{"domain": "example.com"}'