> ## 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/{siteId}

1 つのサイトについて、状態・ファイル URL・直近の生成オプションなどの詳細を返します。

### パスパラメーター

<ParamField path="siteId" type="string" required>
  取得するサイトの ID。
</ParamField>

### レスポンス

<ResponseField name="id" type="string">
  サイトの一意な識別子。
</ResponseField>

<ResponseField name="url" type="string">
  正規化されたサイトの URL。
</ResponseField>

<ResponseField name="userId" type="string">
  サイト所有者のユーザー ID。
</ResponseField>

<ResponseField name="status" type="string">
  現在の状態: `pending`、`processing`、`completed`、`failed`。
</ResponseField>

<ResponseField name="fileUrl" type="string">
  生成済み llms.txt へのアクセス URL。
</ResponseField>

<ResponseField name="fullTextUrl" type="string">
  全文版へのアクセス URL（利用できる場合）。
</ResponseField>

<ResponseField name="lastGenerationOptions" type="object">
  直近の生成で使用したオプション。

  <Expandable title="lastGenerationOptions のプロパティ">
    <ResponseField name="maxUrls" type="number">
      処理した URL の上限。
    </ResponseField>

    <ResponseField name="showFullText" type="boolean">
      全文を含めたかどうか。
    </ResponseField>

    <ResponseField name="generationMethod" type="string">
      方式: `simple` または `enhanced`。
    </ResponseField>
  </Expandable>
</ResponseField>

<ResponseField name="createdAt" type="string">
  サイト作成日時の ISO 8601 タイムスタンプ。
</ResponseField>

<ResponseField name="updatedAt" type="string">
  最終更新日時の ISO 8601 タイムスタンプ。
</ResponseField>

<RequestExample>
  ```bash cURL theme={null}
  curl -X GET https://api.llmgenerator.com/api/v1/sites/550e8400-e29b-41d4-a716-446655440000 \
    -H "Authorization: Bearer YOUR_API_KEY"
  ```

  ```javascript Node.js theme={null}
  const response = await fetch(
    'https://api.llmgenerator.com/api/v1/sites/550e8400-e29b-41d4-a716-446655440000',
    {
      headers: { 'Authorization': 'Bearer YOUR_API_KEY' }
    }
  );

  const data = await response.json();
  ```
</RequestExample>

<ResponseExample>
  ```json 成功 (200) theme={null}
  {
    "id": "550e8400-e29b-41d4-a716-446655440000",
    "url": "https://example.com",
    "userId": "user_abc123",
    "status": "completed",
    "fileUrl": "https://api.llmgenerator.com/api/v1/file/550e8400-e29b-41d4-a716-446655440000",
    "fullTextUrl": "https://api.llmgenerator.com/api/v1/file/550e8400-e29b-41d4-a716-446655440000?full=true",
    "lastGenerationOptions": {
      "maxUrls": 50,
      "showFullText": true,
      "generationMethod": "enhanced"
    },
    "createdAt": "2026-01-15T10:00:00.000Z",
    "updatedAt": "2026-01-20T14:30:00.000Z"
  }
  ```

  ```json 見つからない (404) theme={null}
  {
    "message": "Site not found"
  }
  ```

  ```json 禁止 (403) theme={null}
  {
    "message": "Access denied to this site"
  }
  ```
</ResponseExample>
