Contact Us
If you still have questions or prefer to get help directly from an agent, please submit a request.
Popular topics: Multilogin X, Multilogin 6, Subscription & payments,
-
Will Multilogin X work on your device? Check our system requirements How to buy a Multilogin X subscription How to sync Multilogin 6 subscription with Multilogin X How to transfer profiles to Multilogin X from other apps How to navigate Multilogin X interface Multilogin X made easy: your 3-step guide to getting started How to connect the agent in Multilogin X How to create and launch a profile in Multilogin X How to warm up a profile in Multilogin X Stay undetected: 4 key steps to safe multiaccounting with Multilogin X Multilogin X support & resources: how to get help fast Getting started with Multilogin X FAQHow to choose the right proxy type Proxies & IP masking FAQ How to test a proxy What you need to know about Multilogin proxy: FAQ How to use Multilogin proxy: guide How to use HTTP and SOCKS proxies in Multilogin How to use Multilogin with 4G/5G connection How to set up Multilogin with NodeMaven How to use custom DNS in Multilogin How to fix profile launch or proxy connection issues How to fix “Profile failed to start” error How to fix “Wrong proxy data” error How to fix “ERR_TIMED_OUT” error How to fix “ERR_CONNECTION_RESET” error How to fix “ERR_CONNECTION_CLOSED” errorRetrieving the token Using the automation token in a workspace Retrieving profile, folder, and workspace IDs Retrieving the user ID Selenium automation example Playwright automation example Puppeteer automation example Logging in to Multilogin automatically Auto-launching the agent Exporting proxy details from profiles Converting external proxy lists into API-ready JSON files How to use Multilogin CLI tool How to launch CookieRobot using Script Runner How to export cookies using API Multilogin X automation FAQ API basics: key terms & concepts Script to create pre-configured profile templatesHow to send logs to support How to disconnect and reconnect the agent How to reinstall app components How to fix agent connection issues How to fix startup issues in Multilogin How to fix Multilogin issues on macOS How to unlock a locked profile How to fix profile launch or proxy connection issues How to fix missing browser data issue How to fix browser fingerprint inconsistencies Account banned: what should I do? How to fix Mimic launch issues on Linux How to enable web camera in Multilogin profiles My app or profile is slow: how to fix performance issues How to find missing profiles How to fix website loading issues in Multilogin How to access restricted websites How to fix connection issues in restricted regions How to fix "Your Windows system cannot perform the necessary WinAPI calls to launch Stealthfox browser" error How to fix small Stealthfox window resolution on Windows How to fix “The installation failed” macOS error How to fix “Failed to get profile data” error How to fix “Access denied” error How to fix "Restricted by plan" error How to fix “Some settings were reset” error How to fix “Profile failed to start” error How to fix “Plan limits reached” error How to fix “Wrong proxy data” error How to fix “Aw, Snap! STATUS_BREAKPOINT” error How to fix “Aw, Snap! STATUS_ACCESS_VIOLATION” error How to fix “ERR_TIMED_OUT” error How to fix “ERR_CONNECTION_RESET” error How to fix “ERR_CONNECTION_CLOSED” error Why isn't cookie import working? Why don’t cookies log you in to the target account?
-
How to send logs to support How to edit the app.properties file How to reinstall app components How to reinstall Multilogin 6 How to fix profile launch issues in Multilogin 6 How to fix proxy connection issues in Multilogin 6 How to fix frozen "Update in progress... Loading [3] of 2 components" status How to fix Android profile issues in Multilogin 6 How to fix issues with extension data in Mimic How to fix "Your Windows system cannot perform the necessary WinAPI calls to launch Stealthfox browser" error How to fix a profile stuck on “Active” status How to fix IP leaks when using a proxy How to fix "JavaScript error" in Multilogin 6 dark mode How to fix "Javax.crypto […] pad block corrupted" error How to fix "Fingerprint composition failed" error How to fix "Mimic/Stealthfox executable is not found" error How to fix “Profile is not created/updated” error How to fix "Downloading Mimic browser" error How to fix “Application request limit is reached” error How to fix "Invalid buffer arguments" error How to fix “Unable to save profile: User-Agent is empty” error How to fix "Cannot invite existing user" error Why isn't cookie import working? Why don’t cookies log you in to the target account?
-
How to choose the perfect Multilogin plan How to buy a Multilogin X subscription How to change a subscription How to renew a subscription How to cancel a subscription How to change a payment method How to manage invoices How to pay with crypto Subscription & payments FAQ How to sync Multilogin 6 subscription with Multilogin X
Exporting proxy details from profiles

Written by Marcelo Brandao
Updated on December 12th, 2024
Table of contents
Generating JSON proxy credentials lists from any set of Multilogin X browser Profile IDs can be streamlined using Python. This article will guide you through the process of creating these lists efficiently.
Before you start
- Ensure you have a Python environment set up with the following packages installed:
- os
- json
- dotenv
- hashlib
- requests
- Save the script
proxies_to_json.py
in your desired folder
proxies_to_json.py
import os
import json
import dotenv
import hashlib
import requests
dotenv.load_dotenv()
# Credentials are pulled from a local .env file
USERNAME = os.getenv("MLXUSERNAME")
PASSWORD = os.getenv("MLXPASSWORD")
# Insert Your FolderID here
FOLDERID = "91f042e6-xxx-4e1f-adee-5eed6bb47d60"
# Insert your profile_ids.json filepath here
LIST_PATH = "C:/.../files/pid_list.json"
# Paste your string values manually:
LIST_MANUAL = [
"95f6d02c-xxxx-47c4-b1d4-369801f2a37c",
"48da90d8-xxxx-40a2-8ccb-2d9e7e3eaebb",
"e2f9d96a-xxxx-4439-ae74-10beda6bf109",
"fffca377-xxxx-495e-a408-3a98716e14ea",
"f3559ca3-xxxx-479c-8a8a-c4b831e8f78b",
"1c1e09dc-xxxx-4495-979b-7cb805a3a8a1",
"a66ba910-xxxx-48ac-a6d1-615f996b3a1d",
"f17140f4-xxxx-47c5-96d5-1b9fd184203b",
"0a505d93-xxxx-4ba9-bd25-d37bf8bb168d",
]
# API-Related Objects
LOCALHOST = "http://127.0.0.1"
MLX_BASE = "https://api.multilogin.com"
LAUNCHERV1 = "https://launcher.mlx.yt:45001/api/v1"
HEADERS = {"Accept": "application/json", "Content-Type": "application/json"}
# Login Function
def signin() -> str:
payload = {
"email": USERNAME,
"password": hashlib.md5(PASSWORD.encode()).hexdigest(),
}
r = requests.post(f"{MLX_BASE}/user/signin", json=payload)
if r.status_code != 200:
print(f"\nError during login: {r.text}\n")
return ""
else:
response = r.json()["data"]
token = response["token"]
return token
# Search Profiles called "TempName": recently created by the Bulk Create function.
def profile_search():
url = "https://api.multilogin.com/profile/search"
body = {
"is_removed": False, # Do you wish to search for removed profiles? True/False
"limit": 100, # How many profile results do you wish to get?
"offset": 0, # Check MLX Documenter page for a full parameter breakdown
"search_text": "",
"storage_type": "all",
"order_by": "created_at",
"sort": "asc",
}
response = requests.request("POST", url, headers=HEADERS, json=body)
resp_json = json.loads(response.content)
return resp_json
# Obtain a list of ProfileIDs retrieved by the Profile Search endpoint
def get_profile_ids():
profile_list = profile_search()
if profile_list["data"]["total_count"] == 0:
print("No more profiles found: error in response or end of task.")
return []
else:
if (
profile_list
and "data" in profile_list
and "profiles" in profile_list["data"]
):
profile_ids = [
profile["id"] for profile in profile_list["data"]["profiles"]
]
return profile_ids
else:
print("Error - Please check Get Profile IDs function.")
# Use Profile Metas endpoint to get the Proxy information registrered.
def search_proxy_metas(option_call):
url = "https://api.multilogin.com/profile/metas"
if option_call == "1":
payload = json.dumps({"ids": LIST_MANUAL})
elif option_call == "2":
payload = json.dumps({"ids": get_profile_ids()})
elif option_call == "3":
with open(LIST_PATH, "r") as file:
proxies = json.load(file)
payload = json.dumps({"ids": proxies})
else:
print("Invalid option. Restart.")
return
response = requests.request("POST", url, headers=HEADERS, data=payload)
response_object = response.text
extracted_data = json.loads(
response_object
) # Full Profile Metas object (not only proxies)
query_result = []
for profile in extracted_data["data"]["profiles"]:
proxy_metas = profile["parameters"]["proxy"]
query_result.append(proxy_metas)
proxy_json = json.dumps(query_result, indent=4)
print(proxy_json)
# Write the JSON with results
with open("proxy_credentials.json", "w") as json_file:
json_file.write(proxy_json)
print(
f"Total of {len(query_result)} proxies were saved on proxy_credentials.json \n"
)
# Main function
def main():
token = signin()
if token:
HEADERS.update({"Authorization": f"Bearer {token}"})
else:
print("Failed to sign in.")
option_call = input(
"\n\n Select method to find proxy list: \n (1) from PATH \n (2) from Profile Search \n (3) Manual List (line 17) \n Write Selection: \n "
)
search_proxy_metas(option_call)
if __name__ == "__main__":
main()
- Save the
.env
file in the same folder.
Running the script
- Open your terminal and navigate to the folder containing the script
- Run the script
proxies_to_json.py
- Select the desired input option when prompted
You can choose to input your Profile ID list via path, text, or search, or using the results from the Profile Search endpoint.
If using the Profile Search option, adjust the function parameters accordingly.
- Check the results in the file
proxy_credentials.json
stored in the same folder