Get Session
Get session details. Use this to poll for task completion and output.
const options = {method: 'GET', headers: {'X-Browser-Use-API-Key': '<api-key>'}};
fetch('https://api.browser-use.com/api/v3/sessions/{session_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://api.browser-use.com/api/v3/sessions/{session_id} \
--header 'X-Browser-Use-API-Key: <api-key>'import requests
url = "https://api.browser-use.com/api/v3/sessions/{session_id}"
headers = {"X-Browser-Use-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "created",
"model": "bu-mini",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"thinkingLevel": "disabled",
"title": "<string>",
"output": "<unknown>",
"outputSchema": {},
"stepCount": 0,
"lastStepSummary": "<string>",
"isTaskSuccessful": true,
"liveUrl": "<string>",
"recordingUrls": [],
"profileId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"workspaceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"proxyCountryCode": "ad",
"browserScreenWidth": 123,
"browserScreenHeight": 123,
"maxCostUsd": "<string>",
"totalInputTokens": 0,
"totalOutputTokens": 0,
"proxyUsedMb": "0",
"llmCostUsd": "0",
"proxyCostUsd": "0",
"browserCostUsd": "0",
"totalCostUsd": "0",
"screenshotUrl": "<string>",
"agentmailEmail": "<string>",
"integrationsUsed": [
"<string>"
]
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Response
Successful Response
Represents a session and its current state.
Poll this endpoint to track task progress. The status field indicates the session lifecycle stage,
and output contains the agent's structured result once the task completes.
Current session lifecycle status. Progresses through: created (sandbox starting) → idle (ready, waiting for task) → running (task executing) → stopped / timed_out / error. Poll this field to track progress.
created, idle, running, stopped, timed_out, error The model tier used for this session.
bu-mini, bu-max, bu-ultra, gemini-3-flash, claude-opus-4.6, claude-opus-4.7, claude-sonnet-5, claude-opus-4.8, gpt-5.4-mini, glm-5.2, minimax-m3, grok-4.6, glm-5.3-flash, deepseek-v4-flash-vision, claude-haiku-4.5, gpt-5.2, gpt-5-mini, gpt-5.5, gpt-5.6-sol, gpt-5.6-terra, gpt-5.6-luna, gemini-3-pro, gemini-3.1-pro, gemini-3.5-flash The agent's final output. If codeMode was true, this will be an object with text (summary), code (Python source), and optionally output (execution result). If outputSchema was provided, this will be structured data conforming to that schema. Otherwise it may be a free-form string or null.
Country code of the proxy used for this session, or null if no proxy.
ad, ae, af, ag, ai, al, am, an, ao, aq, ar, as, at, au, aw, az, ba, bb, bd, be, bf, bg, bh, bi, bj, bl, bm, bn, bo, bq, br, bs, bt, bv, bw, by, bz, ca, cc, cd, cf, cg, ch, ci, ck, cl, cm, co, cr, cs, cu, cv, cw, cx, cy, cz, de, dj, dk, dm, do, dz, ec, ee, eg, eh, er, es, et, fi, fj, fk, fm, fo, fr, ga, gd, ge, gf, gg, gh, gi, gl, gm, gn, gp, gq, gr, gs, gt, gu, gw, gy, hk, hm, hn, hr, ht, hu, id, ie, il, im, in, iq, ir, is, it, je, jm, jo, jp, ke, kg, kh, ki, km, kn, kp, kr, kw, ky, kz, la, lb, lc, li, lk, lr, ls, lt, lu, lv, ly, ma, mc, md, me, mf, mg, mh, mk, ml, mm, mn, mo, mp, mq, mr, ms, mt, mu, mv, mw, mx, my, mz, na, nc, ne, nf, ng, ni, nl, no, np, nr, nu, nz, om, pa, pe, pf, pg, ph, pk, pl, pm, pn, pr, ps, pt, pw, py, qa, re, ro, rs, ru, rw, sa, sb, sc, sd, se, sg, sh, si, sj, sk, sl, sm, sn, so, sr, ss, st, sv, sx, sy, sz, tc, td, tf, tg, th, tj, tk, tl, tm, tn, to, tr, tt, tv, tw, tz, ua, ug, uk, us, uy, uz, va, vc, ve, vg, vi, vn, vu, wf, ws, xk, ye, yt, za, zm, zw Was this page helpful?
const options = {method: 'GET', headers: {'X-Browser-Use-API-Key': '<api-key>'}};
fetch('https://api.browser-use.com/api/v3/sessions/{session_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://api.browser-use.com/api/v3/sessions/{session_id} \
--header 'X-Browser-Use-API-Key: <api-key>'import requests
url = "https://api.browser-use.com/api/v3/sessions/{session_id}"
headers = {"X-Browser-Use-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "created",
"model": "bu-mini",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"thinkingLevel": "disabled",
"title": "<string>",
"output": "<unknown>",
"outputSchema": {},
"stepCount": 0,
"lastStepSummary": "<string>",
"isTaskSuccessful": true,
"liveUrl": "<string>",
"recordingUrls": [],
"profileId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"workspaceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"proxyCountryCode": "ad",
"browserScreenWidth": 123,
"browserScreenHeight": 123,
"maxCostUsd": "<string>",
"totalInputTokens": 0,
"totalOutputTokens": 0,
"proxyUsedMb": "0",
"llmCostUsd": "0",
"proxyCostUsd": "0",
"browserCostUsd": "0",
"totalCostUsd": "0",
"screenshotUrl": "<string>",
"agentmailEmail": "<string>",
"integrationsUsed": [
"<string>"
]
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}