---
title: "Read browser storage"
method: GET
path: "/v1/browser/storage"
tags: ["Browser"]
---

# Read browser storage

`GET /v1/browser/storage`

## Request

- Base URL: `http://localhost:9998`
- URL: `http://localhost:9998/v1/browser/storage`
- Auth: HTTP bearer

Returns cookies, localStorage, and sessionStorage for the attached page.
Use the `types` query parameter to limit which storage types are returned.

## Query parameters

- `types` string

## Response `200`

Storage data

- StorageData
  - `cookies` StorageCookie[], nullable
    - `name` string, required
    - `value` string, required
    - `domain` string, required
    - `path` string, required
    - `httpOnly` boolean, required
    - `secure` boolean, required
    - `sameSite` string, nullable
    - `expires` number, nullable
  - `localStorage` StorageItem[], nullable
    - `key` string, required
    - `value` string, required
  - `sessionStorage` StorageItem[], nullable
    - `key` string, required
    - `value` string, required

## Other responses

- `409`: Not connected to a browser
- `502`: CDP error
- `503`: Browser service not initialized

---

[API](https://skmtc.dev/modelpiper/apis/toolpiper-api.md) · [All operations](https://skmtc.dev/modelpiper/apis/toolpiper-api/llms.txt) · [OpenAPI document](https://skmtc.dev/modelpiper/apis/toolpiper-api/revisions/6722bf56385c?raw)
