• Website
  • Server status
  • API documentation
  • Blog
Telegram Icon Community
EN
English
Português
Русский
中文 (中国)
Tiếng Việt
Log in Try for €1.99
  • Website
  • Server status
  • API documentation
  • Blog
  • Telegram Icon Community
  • English (US)
    English
    Português
    Русский
    中文 (中国)
    Tiếng Việt
Log in View Plans

Custom Python scripts

Build powerful automation workflows with Python and the Multilogin API. Create, manage, and launch browser profiles with fully customizable scripts.

search icon

Contact Us

If you still have questions or prefer to get help directly from an agent, please submit a request.
We’ll get back to you as soon as possible.

Please fill out the contact form below and we will reply as soon as possible.

  • Getting started with Multilogin X automation
  • Basic automation with CLI
  • Low-code automation with Postman
  • Script runner & predefined scripts
  • Puppeteer, Selenium, and Playwright
  • Custom Python scripts
  • Quick solutions with Developer Tools
  • Home
  • breadcrumb separator bar
  • Multilogin X
  • breadcrumb separator bar
  • Task automation with API
  • breadcrumb separator bar
  • Custom Python scripts
  • breadcrumb separator bar
  • How to create preset profile templates with Python

How to create preset profile templates with Python

Written by Marcelo B ( Updated on May 14th, 2025 )

Updated on May 14th, 2025

If you're automating website investigations, you probably want your profiles ready to roll immediately – without the hassle of manually selecting a Multilogin proxy and importing cookies. Good news: we’ve got a script for that! 🛠️🔥

Why use preset profile templates?

This handy script automates the entire process for you. Here’s what it does:

  1. Get a Multilogin proxy through the API
  2. Create a profile through the API
  3. Import cookies into the profile
  4. Repeat the process, if needed

There is a known UI bug when creating profiles with Multilogin proxy in API: proxy details will appear at the Custom tab. Keep this in mind! 🚨

 

Customize the script

  1. Extract the contents from profile_template.zip  into your local folder
  2. Open the file (.env) with any text editor
  3. Customize the values in your .env file:
    • AUTHORIZATION_TOKEN: your Multilogin X access token
    • PROXY_TYPE: http/socks5
    • BROWSER_TYPE: mimic/stealthfox
    • PROXY_COUNTRY: Use the 2-digit convention (check here)
    • FOLDER_ID: Your Multilogin X folder ID
    • RANGE_START: First number of profile to be created (used in the profile name)
    • RANGE_END: Last number of profile to be created 
    • COOKIE_TYPE: google/ebay/etsy/bing/mixed/facebook/amazon, or other
       
AUTHORIZATION_TOKEN = <your token string>

# socks5 or http
PROXY_TYPE = socks5

# mimic or stealthfox
BROWSER_TYPE = mimic

# Multilogin proxy coutry
PROXY_COUNTRY = us

FOLDER_ID = <your profile folder ID>

# number of profile to be created. Will be used in the profile name
RANGE_START = 1
RANGE_END = 6

COOKIE_TYPE = amazon
# list of cookie type: ['google','ebay','etsy','bing','mixed','facebook','amazon']

Run the script

Make sure your agent is running before starting the script.

 
  1. Make sure your agent is running
  2. Open the command prompt (Win) or Terminal (macOS) 
  3. Locate the folder where you extracted the files
  4. Run the script using Python:
python profile_template.py

The script will loop through and create multiple profiles if needed. Easy, right? 😎 This is an example of a successful output:

If you run into any issues, double-check the .env settings and your token as it might have expired.

 

Was this article helpful?

Give feedback about this article

In this article

  • Why use preset profile templates?
  • Customize the script
  • Run the script

Multilogin community

Stay informed, share your thoughts, and engage with others!

Telegram Icon Join us on Telegram

Read more on the topic

Blog Post Img

10 Best Datacenter Proxies for Web Scraping (2025 Edition)

Apr 2, 2025 5 min read
Google SERP Img

What is a Google SERP Proxy and Why Should You Care?

Apr 1, 2025 6 min read
UK Proxy Img

What Are Dedicated UK Proxies? Everything You Need to Know

Apr 1, 2025 6 min read
Related Article Title Icon

Related Articles

  • How to set up default profile settings in Multilogin 6
  • How to edit the app.properties file

ANTIDETECT PLATFORM

  • Antidetect browser
  • Mobile antidetect browser
  • Headless browser
  • Multilogin residential proxies
  • Multi-account management
  • Web automation

RESOURCES

  • Knowledge base
  • API documentation
  • Glossary
  • Blog
  • Multilogin 6 download
  • Server status
  • Release notes

PLATFORM PROXIES

  • Google proxy
  • Facebook proxy
  • Reddit proxy
  • Twitter proxy
  • Amazon proxy
  • LinkedIn proxy

GEO PROXIES

  • Japan proxy
  • UK proxy
  • USA proxy
  • China proxy
  • Canada proxy
  • India proxy

MULTI-ACCOUNT MANAGEMENT

  • Create multiple Facebook accounts
  • Create multiple LinkedIn accounts
  • Create multiple Amazon accounts
  • Create multiple eBay accounts
  • Create multiple Gmail accounts
  • Create multiple Discord accounts

COMPARISON

  • Multilogin vs. Gologin
  • Multilogin vs. Adspower
  • Multilogin vs. Dolphin Anty
  • Multilogin vs. Incognition
  • Multilogin vs. Octo Browser

GET IN TOUCH

  • Contact 24/7 support
    [email protected]
  • Contact sales
  • Affiliate program
  • Careers

© 2025 Multilogin. All rights reserved.

  • Privacy policy
  • Terms of service
  • Cookie policy
Multilogin abstract watermark
  • ANTIDETECT PLATFORM

    • Antidetect browser
    • Mobile antidetect browser
    • Headless browser
    • Multilogin residential proxies
    • Multi-account management
    • Web automation
  • RESOURCES

    • Knowledge base
    • API documentation
    • Glossary
    • Blog
    • Multilogin 6 download
    • Server status
    • Release notes
  • MULTI-ACCOUNT MANAGEMENT

    • Create multiple Facebook accounts
    • Create multiple LinkedIn accounts
    • Create multiple Amazon accounts
    • Create multiple eBay accounts
    • Create multiple Gmail accounts
    • Create multiple Discord accounts
  • COMPARISON

    • Multilogin vs. Gologin
    • Multilogin vs. Adspower
    • Multilogin vs. Dolphin Anty
    • Multilogin vs. Incognition
    • Multilogin vs. Octo Browser
  • PLATFORM PROXIES

    • Google proxy
    • Facebook proxy
    • Reddit proxy
    • Twitter proxy
    • Amazon proxy
    • LinkedIn proxy
  • GEO PROXIES

    • Japan proxy
    • UK proxy
    • USA proxy
    • China proxy
    • Canada proxy
    • India proxy
  • GET IN TOUCH

    • 24/7 support: [email protected]
    • Contact sales
    • Affiliate program
    • Careers
Multilogin abstract watermark
  • Privacy policy
  • Terms of service
  • Cookie policy

© 2025 Multilogin. All rights reserved.

Expand