> ## Documentation Index
> Fetch the complete documentation index at: https://firecrawl-noaa-mar-989-create-firecrawl-codex-plugins.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# ドキュメント検索

`/support/docs-search` エンドポイントは、Firecrawl の公開ドキュメントに基づいて質問に回答します。Firecrawl APIキーが必要です。関連するドキュメントページへの引用付きで、簡潔な回答を返します。

<div id="use-cases">
  ## ユースケース
</div>

* **AIエージェント**：Firecrawl APIの使い方、パラメータ、ベストプラクティスを調べる必要がある場合
* **サポートボット**：ドキュメントをもとに顧客からの質問に回答する場合
* **開発ツール**：関連ドキュメントをインラインで表示する場合

<div id="example">
  ## 例
</div>

```bash theme={null}
curl -X POST https://api.firecrawl.dev/v2/support/docs-search \
  -H "Authorization: Bearer fc-YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "question": "what header carries the webhook signature, and how do I verify it?"
  }'
```

<div id="response">
  ### レスポンス
</div>

```json theme={null}
{
  "requestId": "req_...",
  "answer": "The signature is sent in the X-Firecrawl-Signature header...",
  "evidence": [
    {
      "pathOrUrl": "webhooks/security.mdx#L1-L52",
      "reason": "Documents webhook signature verification"
    }
  ],
  "usage": { "inputTokens": 4356, "outputTokens": 688, "totalTokens": 5044 },
  "durationMs": 11252
}
```

<div id="response-fields">
  ## レスポンスフィールド
</div>

| フィールド        | 型       | 説明                                                   |
| ------------ | ------- | ---------------------------------------------------- |
| `answer`     | string  | Firecrawl のドキュメントに基づく簡潔な回答                           |
| `evidence`   | array   | 参照したドキュメントページ。`pathOrUrl` と `reason` を含みます           |
| `usage`      | object  | トークン使用量 (`inputTokens`、`outputTokens`、`totalTokens`) |
| `durationMs` | integer | 合計実行時間 (ミリ秒)                                         |

機能の詳細なガイドについては、[Ask 機能のドキュメント](/ja/features/ask)を参照してください。

> Firecrawl APIキーが必要な AI エージェントですか？ 自動オンボーディング手順については、[firecrawl.dev/agent-onboarding/SKILL.md](https://www.firecrawl.dev/agent-onboarding/SKILL.md)を参照してください。


## OpenAPI

````yaml /ja/api-reference/v2-openapi.json POST /support/docs-search
openapi: 3.0.0
info:
  title: Firecrawl API
  version: v2
  description: Firecrawlのサービスを利用して、Webスクレイピングやクロールを行うためのAPIです。
  contact:
    name: Firecrawl Support
    url: https://firecrawl.dev/support
    email: support@firecrawl.dev
servers:
  - url: https://api.firecrawl.dev/v2
security:
  - bearerAuth: []
paths:
  /support/docs-search:
    post:
      tags:
        - Support
      summary: AIを使ってFirecrawlのドキュメントを検索する
      operationId: supportDocsSearch
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - question
              properties:
                question:
                  type: string
                  minLength: 1
                  maxLength: 8000
                  description: Firecrawlの公開ドキュメントに基づいて回答する質問。
      responses:
        '200':
          description: ドキュメントに基づく回答が正常に返されました。
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DocsSearchResponse'
        '400':
          description: 無効なJSONまたはschema違反
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
      security:
        - bearerAuth: []
components:
  schemas:
    DocsSearchResponse:
      type: object
      properties:
        requestId:
          type: string
          description: このrequestの一意の識別子。
        answer:
          type: string
          description: Firecrawlの公開ドキュメントに基づく簡潔な回答。
        evidence:
          type: array
          description: 回答で参照されたドキュメントのページ。
          items:
            type: object
            properties:
              pathOrUrl:
                type: string
              reason:
                type: string
        usage:
          type: object
          properties:
            inputTokens:
              type: integer
            outputTokens:
              type: integer
            totalTokens:
              type: integer
        durationMs:
          type: integer
          description: 合計実行時間（ミリ秒）。
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````