Skip to main content

ixBrowser Local API

Official Python client for ixBrowser Local API V2.0.

Language

Prerequisites

  • Python 3.5 or later.
  • The ixBrowser desktop client is installed and running.
  • The ixBrowser Local API service is enabled in the desktop client.
  • By default, this SDK connects to http://127.0.0.1:53200/api/v2/.

If your local API service uses a different host or port, pass them to IXBrowserClient:

from ixbrowser_local_api import IXBrowserClient

c = IXBrowserClient(target="127.0.0.1", port=53200)

Installation

Install from PyPI:

pip install ixbrowser-local-api

Install from source:

git clone https://github.com/ixspyinc/ixbrowser-local-api-python.git
cd ixbrowser-local-api-python
pip install .

(Legacy Support) If you still use the deprecated setup.py installation, we recommend installing setuptools first:

git clone https://github.com/ixspyinc/ixbrowser-local-api-python.git
cd ixbrowser-local-api-python
pip install setuptools
python setup.py install

Quick Start

import random
from ixbrowser_local_api import IXBrowserClient

c = IXBrowserClient()

profiles = c.get_profile_list()
if profiles is None:
    print("Get profile list error:")
    print("Error code=", c.code)
    print("Error message=", c.message)
else:
    item = random.choice(profiles)
    profile_id = item["profile_id"]
    print("Random profile_id=", profile_id)

    open_result = c.open_profile(
        profile_id,
        cookies_backup=False,
        load_profile_info_page=False,
    )
    if open_result is None:
        print("Open profile error:")
        print("Error code=", c.code)
        print("Error message=", c.message)
    else:
        print(open_result)
        # open_result contains "webdriver" and "debugging_address".
        # They can be used to attach Selenium, Playwright, or another
        # browser automation tool to the opened profile.

Error Handling

Most client methods return the API data on success. When a request fails, the method returns None, and the error details are stored on the client instance:

result = c.get_profile_list()
if result is None:
    print(c.code)
    print(c.message)

See docs/error-handling.md for details.

Documentation

Examples

The examples/ directory contains runnable scripts for common tasks:

  • examples/simple_test.py: basic connectivity and common API calls.
  • examples/show_info.py: print local information and list resources.
  • examples/profile_create.py: create a profile with proxy, preferences, and fingerprint settings.
  • examples/profile_open.py: open a profile and attach Selenium.
  • examples/profile_open_with_random_fingerprint.py: open a profile with a randomized fingerprint.
  • examples/profile_update.py: update profile settings.
  • examples/profile_copy.py: create a profile by copying another profile.
  • examples/tag/: profile tag CRUD examples.
  • examples/proxy_tag/: proxy tag CRUD examples.
  • examples/profile_transfer_code/: transfer code examples.

See examples/README.md for the full examples map.

Official API Documentation

Metadata

Release files for ixbrowser-local-api 1.2.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ixbrowser-local-api 1.2.6
File Size Uploaded
ixbrowser_local_api-1.2.6.tar.gz 15.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ixbrowser-local-api 1.2.6
File Interpreter ABI Platform
ixbrowser_local_api-1.2.6-py3-none-any.whl Python 3 none any Details

Total release size: 30.5 kB

Release files / ixbrowser_local_api-1.2.6.tar.gz

Download URL ixbrowser_local_api-1.2.6.tar.gz
Size 15.0 kB
Tags Source
SHA-256 checksum
How to use checksums
7d3ca35504c1bf72defde1398a7a8fdf3e6053bff23cb73966ae33c90279f801
BLAKE2b-256 checksum
How to use checksums
24f0c356485b9050bfc785a7fbc0b038261a613a1cbcb2b3b3ab122c9b478933
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.25

Release files / ixbrowser_local_api-1.2.6-py3-none-any.whl

Download URL ixbrowser_local_api-1.2.6-py3-none-any.whl
Size 15.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3559349a386a18e8c7b0ae0c285b975523a1552b218a881fc75dbe121b7b3d6e
BLAKE2b-256 checksum
How to use checksums
ae26ab003868ff184ce54fcc3f8f9e4e1919370153edbd94b45b5451922884ad
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.25

Release history Release notifications | RSS feed

1.2.9

2 release files

1.2.8

2 release files

1.2.7

2 release files

This release

1.2.6 This release

2 release files

1.2.5

2 release files

1.2.4

2 release files

1.2.3

2 release files

1.2.2

2 release files

1.2.1

2 release files

1.2.0

2 release files

1.1.1

2 release files

1.0.10

2 release files

1.0.9

2 release files

1.0.8

2 release files

1.0.7

2 release files

1.0.6

2 release files

1.0.5

2 release files

1.0.4

2 release files

1.0.3

2 release files

1.0.2

1 release file

1.0.1

1 release file

1.0.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page