Skip to content

Anti-detect/multilogin-api-examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Multilogin API Examples — Antidetect Browser Automation

CI License: MIT Python 3.9+ Node 18+ Maintainer

Disclaimer: Independent open-source examples by @Anti-detect — not affiliated with Multilogin Ltd. Some pricing links are partner referrals (no extra cost to you).

Open-source SDK-style examples for Multilogin X Local REST API — antidetect browser profiles, fingerprint isolation, multi-account management, Playwright/Selenium/Puppeteer automation, batch workflows, and CI-ready unit tests.

Repository github.com/Anti-detect/multilogin-api-examples
Pricing multilogin.com/pricing
SAAS50 50% off new browser subscriptions
MIN50 50% off Cloud Phone
Official API Postman collection
Documentation docs/index.md

Languages / 语言 / Языки

Language Guide
English docs/index.md
Tiếng Việt docs/vi/README.md
中文 docs/zh/README.md
Русский docs/ru/README.md
Português (BR) docs/pt/README.md

Table of contents


Features

  • Reusable clients — Python (MultiloginClient) + Node (client.js)
  • Context manager — auto stop on exit (with client.profile(id))
  • Batch workflows — start/stop multiple antidetect profiles safely
  • Browser automation — Playwright CDP, Selenium debugger attach, Puppeteer
  • Health check — verify agent + token before production runs
  • Unit tests — mocked HTTP, runs in CI without Multilogin installed
  • curl + Node + Python — pick your stack
  • Multilingual docs — EN, VI, ZH, RU, PT

Quick start

1. Prerequisites

  • Multilogin X installed, logged in, agent running
  • Automation token: Settings → Automation → Generate
  • Profile UUID from the app

2. Python (recommended)

git clone https://github.com/Anti-detect/multilogin-api-examples.git
cd multilogin-api-examples/examples/python
pip install -r requirements.txt
cp .env.example .env   # edit token + profile id

Windows PowerShell:

$env:MULTILOGIN_TOKEN="your-token"
$env:MULTILOGIN_PROFILE_ID="profile-uuid"
python health_check.py
python list_profiles.py
python start_profile.py

Linux / macOS:

export MULTILOGIN_TOKEN="your-token"
export MULTILOGIN_PROFILE_ID="profile-uuid"
make -C ../.. health

3. Node.js

cd examples/nodejs
$env:MULTILOGIN_TOKEN="your-token"
npm run health
npm run list

Project structure

multilogin-api-examples/
├── .github/workflows/ci.yml
├── config/links.json             ← affiliate & repo URLs (single source)
├── docs/
│   ├── index.md                  ← documentation hub
│   ├── comparison.md
│   ├── vi/  zh/  ru/  pt/        ← multilingual guides
├── examples/
│   ├── python/                   # SDK-style client + 8 scripts
│   ├── nodejs/
│   └── curl/
├── scripts/
├── Makefile

Examples catalog

Python

Script Description
multilogin_client.py Core library — import into your projects
health_check.py Agent + token + profile count
list_profiles.py List profiles (JSON)
start_profile.py Start → wait → stop
session_context_demo.py with client.profile() auto cleanup
batch_workflow.py Start/stop N profiles
playwright_connect.py Playwright over CDP
selenium_connect.py Selenium debugger attach

Node.js · curl

Path Description
examples/nodejs/ client.js, health, list, start, puppeteer
examples/curl/profiles.sh Shell helper

Python client

from multilogin_client import MultiloginClient, MultiloginError

with MultiloginClient() as client:
    assert client.ping()
    for p in client.list_profiles_normalized():
        print(p.id, p.name)
    with client.profile("your-profile-uuid") as session:
        print("CDP:", session.cdp_url)
        print("Selenium:", session.selenium_address)
Env variable Required Default
MULTILOGIN_TOKEN Yes
MULTILOGIN_PROFILE_ID For start scripts
MULTILOGIN_BASE_URL No http://127.0.0.1:35000
MULTILOGIN_BATCH_LIMIT No 1
MULTILOGIN_CDP_URL Playwright

Documentation

Guide Description
docs/index.md Full documentation index
docs/getting-started.md Install → first API call
docs/api-quickstart.md Auth, endpoints, patterns
docs/api-reference.md Endpoint reference table
docs/architecture.md System design & scaling
docs/browser-automation.md Playwright, Selenium, Puppeteer
docs/comparison.md Antidetect browser API comparison
docs/security.md Tokens, network, compliance
docs/troubleshooting.md Error fixes
docs/faq.md Common questions

Development

make install && make test

See CONTRIBUTING.md · SECURITY.md

Report issues: github.com/Anti-detect/multilogin-api-examples/issues


Promo codes

Code Product
SAAS50 New browser subscriptions
MIN50 Cloud Phone

View pricing →


GitHub Topics

multilogin multilogin-api antidetect-browser anti-detect browser-fingerprint browser-automation multi-account fingerprint-browser playwright selenium puppeteer python nodejs rest-api cloud-phone web-scraping e-commerce-automation


License

MIT — examples and docs only. Multilogin® is a trademark of Multilogin Ltd.

About

Multilogin guides, API examples & antidetect browser tips for multi-account workflows

Topics

Resources

License

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors