> ## Documentation Index
> Fetch the complete documentation index at: https://docs.firecrawl.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# 停止交互

> 停止与抓取任务关联的交互式浏览器会话。

使用此端点可停止抓取任务的交互式浏览器会话。停止会话会释放浏览器资源并完成计费结算。

额度按会话持续时间计费：**每浏览器分钟 2 个额度**，按秒折算。

<div id="path-parameters">
  ## 路径参数
</div>

| 参数      | 类型            | 必填 | 描述               |
| ------- | ------------- | -- | ---------------- |
| `jobId` | string (UUID) | 是  | 与浏览器会话关联的抓取任务 ID |

<div id="response">
  ## 响应
</div>

| 字段                  | 类型      | 描述             |
| ------------------- | ------- | -------------- |
| `success`           | boolean | 会话是否已成功销毁      |
| `sessionDurationMs` | number  | 会话总时长 (毫秒)     |
| `creditsBilled`     | number  | 该会话已计费的额度数量    |
| `error`             | string  | 错误消息 (仅在失败时返回) |

<div id="example-request">
  ### 请求示例
</div>

```bash theme={null}
curl -X DELETE "https://api.firecrawl.dev/v2/scrape/550e8400-e29b-41d4-a716-446655440000/interact" \
  -H "Authorization: Bearer $FIRECRAWL_API_KEY"
```

<div id="example-response">
  ### 响应示例
</div>

```json theme={null}
{
  "success": true
}
```

<div id="error-codes">
  ### 错误代码
</div>

| 状态    | 描述               |
| ----- | ---------------- |
| `403` | 该会话属于其他团队        |
| `404` | 未找到此抓取任务对应的浏览器会话 |

有关详细使用方式和示例，请参见 [Interact 功能指南](/zh/features/interact).


## OpenAPI

````yaml zh/api-reference/v2-openapi.json DELETE /scrape/{jobId}/interact
openapi: 3.0.0
info:
  contact:
    email: support@firecrawl.dev
    name: Firecrawl Support
    url: https://firecrawl.dev/support
  description: 用于与 Firecrawl 服务交互，执行网页抓取和爬取任务的 API。
  title: Firecrawl API
  version: v2
servers:
  - url: https://api.firecrawl.dev/v2
security:
  - bearerAuth: []
paths:
  /scrape/{jobId}/interact:
    delete:
      tags:
        - Scraping
      summary: 停止与抓取任务关联的交互式浏览器会话
      operationId: stopInteractiveScrapeBrowserSession
      parameters:
        - description: 抓取任务 ID
          in: path
          name: jobId
          required: true
          schema:
            format: uuid
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                properties:
                  success:
                    type: boolean
                type: object
          description: 交互式抓取浏览器会话已成功停止
        '403':
          content:
            application/json:
              schema:
                properties:
                  error:
                    example: Forbidden.
                    type: string
                  success:
                    example: false
                    type: boolean
                type: object
          description: 禁止访问
        '404':
          content:
            application/json:
              schema:
                properties:
                  error:
                    example: Browser session not found.
                    type: string
                  success:
                    example: false
                    type: boolean
                type: object
          description: 未找到交互式抓取浏览器会话
      security:
        - bearerAuth: []
components:
  securitySchemes:
    bearerAuth:
      scheme: bearer
      type: http

````