> ## Documentation Index
> Fetch the complete documentation index at: https://student-213fb9fc.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# 列出浏览器会话

> 检索所有浏览器会话的列表，并可选地按状态进行过滤。

<div id="headers">
  ## 请求头
</div>

| 请求头             | 值                  |
| --------------- | ------------------ |
| `Authorization` | `Bearer <API_KEY>` |

<div id="query-parameters">
  ## 查询参数
</div>

| 参数       | 类型     | 是否必填 | 描述                                    |
| -------- | ------ | ---- | ------------------------------------- |
| `status` | string | 否    | 根据会话状态进行筛选：`"active"` 或 `"destroyed"` |

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

| 字段         | 类型      | 描述     |
| ---------- | ------- | ------ |
| `success`  | boolean | 请求是否成功 |
| `sessions` | array   | 会话对象列表 |

<div id="session-object">
  ### 会话对象
</div>

| 字段                       | 类型     | 描述                                 |
| ------------------------ | ------ | ---------------------------------- |
| `id`                     | string | 唯一会话标识符                            |
| `status`                 | string | 当前会话状态（`"active"` 或 `"destroyed"`） |
| `cdpUrl`                 | string | 用于 CDP 连接的 WebSocket URL           |
| `liveViewUrl`            | string | 实时查看会话的 URL                        |
| `interactiveLiveViewUrl` | string | 实时与会话交互（点击、输入、滚动）的 URL             |
| `createdAt`              | string | 会话创建时的 ISO 8601 时间戳                |
| `lastActivity`           | string | 上次活动的 ISO 8601 时间戳                 |

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

```bash theme={null}
curl -X GET "https://api.firecrawl.dev/v2/browser?status=active" \
  -H "Authorization: Bearer $FIRECRAWL_API_KEY"
```

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

```json theme={null}
{
  "success": true,
  "sessions": [
    {
      "id": "550e8400-e29b-41d4-a716-446655440000",
      "status": "active",
      "cdpUrl": "wss://cdp-proxy.firecrawl.dev/cdp/550e8400-e29b-41d4-a716-446655440000",
      "liveViewUrl": "https://liveview.firecrawl.dev/550e8400-e29b-41d4-a716-446655440000",
      "interactiveLiveViewUrl": "https://liveview.firecrawl.dev/550e8400-e29b-41d4-a716-446655440000?interactive=true",
      "createdAt": "2025-06-01T12:00:00Z",
      "lastActivity": "2025-06-01T12:05:30Z"
    }
  ]
}
```


## OpenAPI

````yaml zh/api-reference/v2-openapi.json get /browser
openapi: 3.0.0
info:
  title: Firecrawl API
  version: v2
  description: 用于与 Firecrawl 服务交互，执行网页抓取和爬取任务的 API。
  contact:
    name: Firecrawl Support
    url: https://firecrawl.dev/support
    email: support@firecrawl.dev
servers:
  - url: https://api.firecrawl.dev/v2
security:
  - bearerAuth: []
paths:
  /browser:
    get:
      tags:
        - Browser
      summary: 列出浏览器会话
      operationId: listBrowserSessions
      parameters:
        - name: status
          in: query
          required: false
          schema:
            type: string
            enum:
              - active
              - destroyed
          description: 按状态筛选会话
      responses:
        '200':
          description: 浏览会话列表
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  sessions:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                        status:
                          type: string
                          enum:
                            - active
                            - destroyed
                        cdpUrl:
                          type: string
                        liveViewUrl:
                          type: string
                        interactiveLiveViewUrl:
                          type: string
                          description: 用于实时与浏览器会话交互的 URL（点击、输入、滚动）
                        streamWebView:
                          type: boolean
                        createdAt:
                          type: string
                          format: date-time
                        lastActivity:
                          type: string
                          format: date-time
        '402':
          description: 需付费
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    example: Payment required to access this resource.
      security:
        - bearerAuth: []
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````