跳转到主要内容

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/

返回指定站点的 llms.txt 正文。公开接口,无需认证,可直接用于站点嵌入。
响应包含 CORS 头(Access-Control-Allow-Origin: *),并缓存约 5 分钟。

路径参数

siteId
string
必填
站点 ID。

查询参数

full
boolean
默认值:"false"
若为 true,返回包含每页全文的版本,便于 AI 上下文。

响应

响应体为 llms.txt 纯文本,并附带:
  • Content-Type: text/plain; charset=utf-8
  • Cache-Control: public, max-age=300
curl -X GET https://api.llmgenerator.com/api/v1/file/550e8400-e29b-41d4-a716-446655440000
# Example Domain
> An example domain for use in documentation and examples.

## Pages

- [Home](https://example.com/): The main landing page for Example Domain.
- [About](https://example.com/about): Learn more about Example Domain and its purpose.
- [Contact](https://example.com/contact): Get in touch with the Example Domain team.