API
Introduction
With the API v1.5 in Undetectable, you will be able to get a list of profiles, create, launch, update, and close them. Additionally, with the obtained information, you can connect various automation tools such as Puppeteer, Playwright, and others to profiles on the Chromium core.
You can download Chromedriver for working with Selenium here:
Windows
MacOS M series
MacOS Intel
The program must be running to work with the API.
By default, the local server runs on port 25325. If this port is occupied, it will start on another port. You can check the port in the program settings and change it if necessary.
To access the local server, use the IP 127.0.0.1, localhost, or the local IP within your network, and the port from the settings plus the path you want to execute, for example,
http://localhost:25325/status
.
All API responses look like:
where
<status code>
and
<status>
reflect the status:
<status code>
|
<status>
|
Description |
---|---|---|
0 | ”success” | success |
1 | ”error” |
error,
<return object>
= {“error”:“error description”}
|
<return object>
- various data sent by the API, for example, a list of profiles.
Errors have the following format:
Requests
Status
/status
Description: Returns the status of the local server, whether it is running or not.
List of Profiles
/list
Description: Returns a list of profiles available in the program on the Chromium browser.
Create Profile
/profile/create
Description: Creates a profile with the selected parameters. All parameters are optional and may not be present. The list of browsers for the command: Chrome, Edge, FireFox, IE, Opera, Safari, Yandex. The list of OS for the command: Windows, Windows 7, Windows 8, Windows 8.1, Windows 10, Android, iPhone, iPad, Linux, Mac. If there are no configurations with the selected OS or Browser, a random OS or Browser type will be used.
Format: JSON
Starting a profile
/profile/start/<profileID>
Description: Starts the profile with the selected
<profileID>
. You can add parameters to the link:
Closing a profile
/profile/stop/<profileID>
Description: Stops the profile with the selected
<profileID>
Profile Update
/profile/update/<profileID>
Description: Updates the information in the profile with the specified
<profileID>
. All parameters are optional and may not be present.
Format: JSON
Profile Deletion
/profile/delete/<profileID>
Description: Deletes the profile with the selected
<profileID>
Clear Profile Data
/profile/cleardata/<profileID>
Description: Clears all data (cookies, history, notes, cache, etc.) of the profile with the selected
<profileID>
Clear profile cookies
/profile/clearcookies/<profileID>
Description: Clear only cookies from profile with selected
<profileID>
Clear profile cache
/profile/clearcache/<profileID>
Description: Clear only cache from profile with selected
<profileID>
Profile Cookies
/profile/cookies/<profileID>
Description: Requests the cookies of the profile with the selected
<profileID>
Send to Cloud
/profile/tocloud
Description: Sends the selected profiles to the cloud
Format: JSON
Make Local
/profile/tolocal
Description: Makes the selected profiles local
Format: JSON
Update Browser Version
/profile/updatebrowser/<profileID>
Description: Updates the browser version in the profile with the selected
<profileID>
Format: JSON
Configuration List
/configslist
Description: Returns a list of active configurations
Format: JSON