跳转到主要内容

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 /sites//markdown/export

生成并返回站点全部 URL 及其内容的 Markdown 导出,仅限付费套餐。
该功能需要付费订阅,免费用户将收到错误响应。

路径参数

siteId
string
必填
要导出的站点 ID。

查询参数

format
string
默认值:"individual"
导出格式:
  • individual:返回 JSON,每条 URL 对应一段 Markdown
  • combined:返回合并后的单个 Markdown 文本
fresh
boolean
默认值:"false"
若为 true,实时抓取内容而非使用缓存 Markdown。

响应

format=individual 时返回 JSON:
success
boolean
导出是否成功。
format
string
导出格式(individual)。
files
array
Markdown 文件对象数组。
format=combined 时返回纯 Markdown 文本,并附带下载用的 Content-Disposition 头。
curl -X GET "https://api.llmgenerator.com/api/v1/sites/550e8400-e29b-41d4-a716-446655440000/markdown/export" \
  -H "Authorization: Bearer YOUR_API_KEY"
{
  "success": true,
  "format": "individual",
  "files": [
    {
      "url": "https://example.com/",
      "title": "Example Domain - Home",
      "markdown": "# Example Domain\n\nWelcome to Example Domain...\n"
    },
    {
      "url": "https://example.com/about",
      "title": "About Us",
      "markdown": "# About Us\n\nLearn more about Example Domain...\n"
    }
  ]
}