DocsProfile Managementbrowser_load_profile

browser_load_profile

Browser Load Profile

Load a saved browser profile from a JSON file into an existing context. Applies fingerprints, cookies, and settings from the profile. Use for maintaining consistent browser identity across sessions.

Usage Example

123456789101112
import asyncio
from owl_browser import OwlBrowser, RemoteConfig
# Async usage
async with OwlBrowser(config) as browser:
context = await browser.create_context()
context_id = context["context_id"]
await browser.load_profile(
context_id=context_id,
profile_path="value"
)

Parameters

Required

context_idstringrequired

The unique identifier of the browser context to load the profile into (e.g., 'ctx_000001')

profile_pathstringrequired

Path to the profile .json file to load (or upload file via multipart/form-data). Accepts both raw JSON profiles and encrypted profiles from browser_download_profile. Encrypted content (base64) is automatically detected and decrypted based on content, not extension. Example: '/home/user/profiles/shopping.json'

Response

Returns a JSON object with the operation result.

{
  "success": true,
  "result": <value>
}