メインコンテンツへスキップ

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

Web サイトに対する URL ディスカバリーを開始します。進捗の確認や発見済み URL の取得に使う discoveryId が返されます。

リクエストボディ

url
string
必須
ディスカバリー対象の URL。http / https を含む有効な URL である必要があります。
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"
}