Storage

Get Storage

Retrieve browser storage data from cookies, localStorage, sessionStorage, cache, and IndexedDB.

Retrieve browser storage data from cookies, localStorage, sessionStorage, cache, and IndexedDB.

Fetches stored data from multiple browser storage systems based on the requested storage type. Supports filtered or full retrieval of cookies, key-based or full dumps of localStorage and sessionStorage, cache inspection, and structured IndexedDB queries for databases, object stores, or individual records. Returns the requested data as JSON to the native application.

TIP

<table border="1" cellspacing="0" cellpadding="8"> <thead> <tr> <th>Storage Type</th> <th>Domain filtering / scoping</th> <th>Path filtering / scoping</th> <th>StoreName filtering / scoping</th> <th>Key filtering / scoping</th> <th>Wildcard allowed? (on which fields)</th> <th>Required for Set?</th> </tr> </thead> <tbody> <tr> <td>Cookies</td> <td><code>action.Domain</code></td> <td><code>action.Path</code> (cookie path)</td> <td>(unused)</td> <td><code>action.Key</code> (cookie name)</td> <td>Domain, Path, Key</td> <td>Key + Data; Domain/Path optional</td> </tr> <tr> <td>LocalStorage</td> <td>(implicit current origin)</td> <td>(unused)</td> <td>(unused)</td> <td><code>action.Key</code></td> <td>Key only</td> <td>Key + Data</td> </tr> <tr> <td>SessionStorage</td> <td>(implicit current origin)</td> <td>(unused)</td> <td>(unused)</td> <td><code>action.Key</code></td> <td>Key only</td> <td>Key + Data</td> </tr> <tr> <td>Cache Storage</td> <td>(implicit current origin)</td> <td>(unused)</td> <td><code>action.StoreName</code> (cache name)</td> <td><code>action.Key</code> (cache name / request)</td> <td>StoreName, Key</td> <td>StoreName, Key + Data</td> </tr> <tr> <td>IndexedDB</td> <td>(unused — IndexedDB is origin-scoped)</td> <td><code>action.Path</code> (database name)</td> <td><code>action.StoreName</code> (object store)</td> <td><code>action.Key</code> (record key)</td> <td>Path, StoreName, Key</td> <td>Path + StoreName + Key + Data (exact)</td> </tr> </tbody> </table>

Examples

MagicHelper: MagicHelper utility library

GPAL.MagicHelper.GetStorage(WebsiteStorageType storage type, string domain, string path, string key, string storeName);

Puppeteer Client: Puppeteer-style C# client

browser.PuppeteerClient.GetStorage(WebsiteStorageType.localStorage).WithStorageDomain("ebay.com").WithStorageKey("u_sclid").Execute();

Puppeteer Communicator: Low-level communicator

await browser.PuppeteerCommunicator.GetStorage(string storageType, string sessionId, string domain, string storeName, string path, string key);

REST Client: Direct REST/HTTP client

GPAL.OttoMagicClient.WithEndpoint(ApiEndpoint.GetStorage).WithStorageType(WebsiteStorageType.localStorage).WithStorageDomain("ebay.com").WithStorageKey("u_sclid").Execute();