llms-text API Reference

Generate structured llms.txt files for any website. Crawl, extract, and serve - in one request.

Live v1 base www.llms-text.com/api/v1
Introduction

The llms-text API lets you generate, store, and retrieve llms.txt files for any public website. All endpoints return JSON (or plain text with ?format=text) and include full CORS headers for browser use.

Base URL

https://www.llms-text.com/api/v1

Format

All requests and responses are application/json unless ?format=text is set.

Authentication

The API is free to use without a key, subject to rate limits. Pass an API key to bypass limits.

Request header
X-API-Key: your-api-key

Getting a key

API keys are issued manually. Contact us to request access.

Rate Limits

Limits are per IP per 10-minute window. Authenticated requests bypass all limits.

EndpointLimit (unauthenticated)Authenticated
POST /generate (standard)5 / 10 minUnlimited
POST /generate (fullVersion)2 / 10 minUnlimited
GET /generate/:domainUnlimitedUnlimited

Rate-limited responses return 429 with a Retry-After header.

Error Codes

All errors use standard JSON error responses.

HTTPcodeWhen
400INVALID_JSONBody is not valid JSON
400MISSING_URLurl field absent from body
403SSRF_BLOCKEDURL resolves to a private address
404NOT_FOUNDNo stored generation for this domain
422INVALID_URLURL is not a valid http/https address
429RATE_LIMITEDToo many requests in window
502CRAWL_FAILEDTarget site unreachable
Health Check
GET /api/v1/ping Returns API status
Response 200
application/json
{ "status": "ok", "api": "llms-text", "version": "v1" }
Generate llms.txt

Crawls a URL, generates a structured llms.txt, and stores it in the database.

POST /api/v1/generate Crawl + generate + store
Request body (JSON)
FieldTypeDescription
urlrequired string Full http/https URL of the website to generate for
fullVersion boolean Crawl up to 50 pages (vs 15 standard). Default: false
sitemapUrl string Explicit sitemap URL. Skips autodiscovery if provided
excludePaths string Comma-separated path fragments to exclude
Example request
cURL
curl -X POST https://www.llms-text.com/api/v1/generate -H "Content-Type: application/json" -d '{"url":"https://www.example.com"}'
Response 200
application/json
{ "llmsTxt": "# Example...", "generationId": 42, "domain": "example.com", "crawledPages": 15 }
Try it
POST www.llms-text.com/api/v1/generate
// Response will appear here...
Ready
Retrieve by Domain

Fetches the most recent stored generation for a domain.

GET /api/v1/generate/domain Lookup stored generation
Path parameters
ParamTypeDescription
domainrequired string Domain name (e.g. michaelvereb.com)
Example requests
JSON response
curl https://www.llms-text.com/api/v1/generate/michaelvereb.com
Response 200
application/json
{ "llmsTxt": "# Michael Vereb...", "domain": "michaelvereb.com", "generationId": 30 }
OpenAPI Specification

Machine-readable OpenAPI 3.1 spec. Import into Postman or OpenAPI tooling.

Download openapi.json