跳转到内容
EN

读取调试地址

GET/browserbase/v1/sessions/{id}/debug● 支持

Browserbase

请求参数

  • expiresIninteger可选

    Time-to-live of the generated live view URLs, in seconds. If omitted, the URLs expire with the session, up to a maximum of 21600 seconds (6 hours).

  • idstring必填

返回

200

仅支持服务指南列出的能力;部分官方请求参数不可用。

错误含 statusCode、error、message;自有面另含 code。请求 ID 见 X-Request-Id。 错误

请求示例

curl
curl -X GET "https://api.deepraxis.com/browserbase/v1/sessions/${SESSION_ID}/debug" \
  -H "X-BB-API-Key: $PRAXIS_API_KEY"
Python
import os, requests

response = requests.request("GET", f"https://api.deepraxis.com/browserbase/v1/sessions/{os.environ['SESSION_ID']}/debug",
    headers={"X-BB-API-Key": os.environ["PRAXIS_API_KEY"]}
)
print(response.status_code, response.text)
TypeScript
const SESSION_ID = process.env.SESSION_ID;
if (!SESSION_ID) throw new Error("Set SESSION_ID");
const response = await fetch(`https://api.deepraxis.com/browserbase/v1/sessions/${SESSION_ID}/debug`, {
  method: "GET",
  headers: { "X-BB-API-Key": `${process.env.PRAXIS_API_KEY}` },
});
console.log(response.status, await response.text());

连接与使用指南

反检测、扩展和 Selenium 不可用;代理只接受 external 类型且需组织开放。region 和 solveCaptchas 接受但忽略;不提供区域选择或验证码代解。

响应

HTTP 200

The request has succeeded.

application/json

名称 类型 说明
debuggerFullscreenUrl string
debuggerUrl string
pages array<object>
pages[].id string
pages[].url string
pages[].faviconUrl string
pages[].title string
pages[].debuggerUrl string
pages[].debuggerFullscreenUrl string
wsUrl string