Skip to main content

GET /file//download

This endpoint allows you to download the llms.txt file for a given site. It sets the Content-Disposition header to prompt a download in the browser. This is a public endpoint and does not require authentication.

Path Parameters

siteId
string
required
The ID of the site.

Query Parameters

full
boolean
default:"false"
If true, downloads the version of the file that includes the full text of each page.

Response

The response will be the llms.txt file with appropriate headers:
  • Content-Type: text/plain; charset=utf-8
  • Content-Disposition: attachment; filename="{hostname}-llms.txt"
  • Cache-Control: public, max-age=300
The filename will be automatically generated based on the site’s hostname (e.g., example-com-llms.txt or example-com-llms-full.txt for full text version).
curl -X GET https://api.llmgenerator.com/api/v1/file/550e8400-e29b-41d4-a716-446655440000/download \
  -o llms.txt