跳转到主要内容

Documentation Index

Fetch the complete documentation index at: https://docs.llmgenerator.com/llms.txt

Use this file to discover all available pages before exploring further.

GET /file//download

下载指定站点的 llms.txt。通过 Content-Disposition 触发浏览器下载。公开接口,无需认证。

路径参数

siteId
string
必填
站点 ID。

查询参数

full
boolean
默认值:"false"
若为 true,下载包含每页全文的版本。

响应

返回 llms.txt 文件并附带响应头:
  • Content-Type: text/plain; charset=utf-8
  • Content-Disposition: attachment; filename="{hostname}-llms.txt"
  • Cache-Control: public, max-age=300
文件名根据站点主机名生成(例如 example-com-llms.txt;全文版可能为 example-com-llms-full.txt)。
curl -X GET https://api.llmgenerator.com/api/v1/file/550e8400-e29b-41d4-a716-446655440000/download \
  -o llms.txt