跳转到主要内容

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.

POST /discovery

为网站启动 URL 发现任务,返回用于追踪进度与获取结果的 discoveryId

请求体

url
string
必填
目标网站 URL,须为合法的 http/https 地址。
maxUrls
number
默认值:"50"
最多发现的 URL 数量,范围 1–1000。
discoveryType
string
默认值:"full"
发现方式:
  • full:结合站点地图解析与爬取,覆盖更全
  • sitemap:仅解析 sitemap.xml
  • crawl:仅通过跟随链接爬取

响应

id
string
发现任务唯一标识。
url
string
正在发现的 URL。
status
string
任务状态:startedprocessingcompletedfailed
discoveryType
string
使用的发现方式。
maxUrls
number
URL 数量上限。
progress
string
进度百分比。
totalUrlsFound
number
当前已发现的 URL 数量。
createdAt
string
创建时间(ISO 8601)。
estimatedCompletion
string
预计完成时间。
curl -X POST https://api.llmgenerator.com/api/v1/discovery \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
        "url": "https://www.example.com",
        "maxUrls": 100,
        "discoveryType": "full"
      }'
{
  "id": "disc_1706540000_abc123xyz",
  "url": "https://www.example.com",
  "status": "started",
  "discoveryType": "full",
  "maxUrls": 100,
  "progress": "0",
  "totalUrlsFound": 0,
  "createdAt": "2026-01-29T12:00:00.000Z",
  "estimatedCompletion": "2026-01-29T12:05:00.000Z"
}