### Start Browser Profile via API Source: https://help.dolphin-anty.com/en/articles/7127390-basic-automation-dolphin-anty Use this GET request to start a browser profile with automation enabled. Replace 'PROFILE_ID' with the actual profile ID. ```http http://localhost:3001/v1.0/browser_profiles/PROFILE_ID/start?automation=1 ``` -------------------------------- ### JavaScript Authorization Request Example Source: https://help.dolphin-anty.com/en/articles/7127390-basic-automation-dolphin-anty Example of how to send a POST request to the authorization endpoint using axios. Ensure you have axios installed (`npm install axios`). ```javascript const axios = require('axios') const apiUrl = 'http://localhost:3001/v1.0/auth/login-with-token' const token = 'API_TOKEN' const requestData = {token: token} axios.post(apiUrl, requestData, { headers: {'Content-Type': 'application/json'} }).then(response => { console.log('OK ', response.data) }) .catch(error => { console.error('Error ', error)}) ``` -------------------------------- ### Python Authorization Request Example Source: https://help.dolphin-anty.com/en/articles/7127390-basic-automation-dolphin-anty Example of how to send a POST request to the authorization endpoint using the requests library. Ensure you have requests installed (`pip install requests`). ```python import requests api_url = 'http://localhost:3001/v1.0/auth/login-with-token' token = 'API_TOKEN' request_data = {'token': token} headers = {'Content-Type': 'application/json'} response = requests.post(api_url, json=request_data, headers=headers) if response.status_code == 200: print('OK ', response.json()) else: print('Error ', response.status_code) ``` -------------------------------- ### GO Authorization Request Example Source: https://help.dolphin-anty.com/en/articles/7127390-basic-automation-dolphin-anty Example of how to send a POST request to the authorization endpoint using Go's net/http package. ```go package main import ( "bytes" "fmt" "io" "net/http" ) func main() { url := "http://localhost:3001/v1.0/auth/login-with-token" data := []byte(`{"token":"API_TOKEN"}`) r, e := http.Post(url, "application/json", bytes.NewBuffer(data)) if e != nil { fmt.Println("Error:", e) return } defer r.Body.Close() b, _ := io.ReadAll(r.Body) if r.StatusCode == http.StatusOK { fmt.Println("OK", string(b)) } else { fmt.Println("Error", r.Status, string(b))} } ``` -------------------------------- ### Add Multiple Start Pages Source: https://help.dolphin-anty.com/en/articles/7898944-adding-homepages-to-dolphin-anty Provide multiple start pages in the format NAME::Link, with each entry on a new line. ```text Facebook::facebook.com Google::google.com Yandex::yandex.ru ``` -------------------------------- ### Example PC Load Configuration Source: https://help.dolphin-anty.com/en/articles/7946019-dolphin-anty-system-requirements-for-pc This example shows the hardware specifications of a PC used to run Dolphin Anty profiles. It serves as a reference for understanding potential system load. ```text Intel(R) Core(TM) i7-3630QM CPU @ 2.40GHz 2.40 GHz RAM: 8.00GB (Accessible: 7.89GB) System type 64-bit operating system, x64 processor ``` -------------------------------- ### Example Script for Bitcoin Faucet Automation Source: https://help.dolphin-anty.com/en/articles/7727923-script-builder-dolphin-anty This is a conceptual example illustrating the steps involved in creating a script to automate interactions with a Bitcoin faucet website. It outlines the sequence of actions required, such as opening a URL, handling pop-ups, logging in, and clicking a specific button. ```text It should be emphasized that this is just an example, but the information from this article can be used to create any other scripts. ``` ```text The correct pause timing can be calculated manually, the main thing to remember is that the value is specified in milliseconds (for this example we will take 5000). ``` -------------------------------- ### Install FUSE Source: https://help.dolphin-anty.com/en/articles/7851466-installing-dolphin-anty-on-linux Installs the FUSE (Filesystem in Userspace) utility, which is required for Dolphin Anty to function correctly. ```bash sudo apt install fuse ``` -------------------------------- ### Start Profile in Headless Mode via API Source: https://help.dolphin-anty.com/en/articles/10386138-api Use this endpoint to start a browser profile in headless mode for automation. Ensure the profile ID is correct and the API is accessible. ```http http://localhost:3001/v1.0/browser_profiles/PROFILE_ID/start?automation=1&headless=1 ``` -------------------------------- ### Install missing libnss3 library Source: https://help.dolphin-anty.com/en/articles/7851466-installing-dolphin-anty-on-linux If you encounter a 'libnss3.so' error, use this command to install the missing library on Ubuntu-based systems. This is often required for the application to run correctly. ```bash sudo apt install -y libnss3 ``` -------------------------------- ### Add Single Start Page Source: https://help.dolphin-anty.com/en/articles/7898944-adding-homepages-to-dolphin-anty Enter start pages in the format "Name::Link", with each entry on a new line. This is used when editing or creating a specific profile. ```text "Google::google.com" ``` -------------------------------- ### Start Profile in Headless Mode Source: https://help.dolphin-anty.com/en/articles/10386138-api This endpoint allows you to start a browser profile in headless mode for automation purposes. Ensure that automation is enabled and the profile ID is correctly specified. ```APIDOC ## GET /v1.0/browser_profiles/PROFILE_ID/start ### Description Starts a browser profile in headless mode for automation. ### Method GET ### Endpoint `http://localhost:3001/v1.0/browser_profiles/PROFILE_ID/start?automation=1&headless=1` ### Parameters #### Query Parameters - **PROFILE_ID** (string) - Required - The unique identifier of the browser profile. - **automation** (integer) - Required - Set to 1 to enable automation. - **headless** (integer) - Required - Set to 1 to run the profile in headless mode. ``` -------------------------------- ### Install Dolphin Anty using .deb package Source: https://help.dolphin-anty.com/en/articles/7851466-installing-dolphin-anty-on-linux Use this command to install Dolphin Anty on Debian-based systems like Ubuntu. You may need administrator privileges. ```bash sudo apt install ./dolphin-anty-linux-amd64-latest.deb ``` ```bash sudo dpkg -i dolphin-anty-linux-x86_64-latest.deb ``` -------------------------------- ### Start Browser Profile for Automation Source: https://help.dolphin-anty.com/en/articles/7127390-basic-automation-dolphin-anty Initiates a browser profile with DevTools Protocol enabled, preparing it for automation scripts. ```APIDOC ## GET /v1.0/browser_profiles/{PROFILE_ID}/start ### Description Starts a specified browser profile and enables automation via DevTools Protocol. ### Method GET ### Endpoint `http://localhost:3001/v1.0/browser_profiles/{PROFILE_ID}/start` ### Query Parameters - **automation** (integer) - Required - Set to `1` to enable automation. - **headless** (integer) - Optional - Set to `1` to start the browser in headless mode. ### Path Parameters - **PROFILE_ID** (string) - Required - The unique identifier of the browser profile to start. ### Notes - The local API must be running on the same machine where the browser is installed. - Ensure Dolphin{anty} is running and authorized. - The default local API port is 3001, but this can change if the port is busy. ``` -------------------------------- ### Install Dolphin Anty using .rpm package Source: https://help.dolphin-anty.com/en/articles/7851466-installing-dolphin-anty-on-linux Use this command to install Dolphin Anty on RPM-based systems like Fedora, RHEL, or CentOS. Administrator privileges may be required. ```bash sudo rpm -i dolphin-anty-linux-x86_64-latest.rpm ``` ```bash sudo dnf install dolphin-anty-linux-x86_64-latest.rpm ``` -------------------------------- ### Create Browser Profile via Python Source: https://help.dolphin-anty.com/en/articles/7155928-api-profile-creation-template-dolphin-anty This Python example shows how to create a new browser profile using a POST request to the Dolphin Anty API. It includes detailed configuration for user agent, WebRTC, canvas, WebGL, and other profile settings. The Authorization header must be provided. ```python import requests url = "https://dolphin-anty-api.com/browser_profiles" headers = {"Content-Type": "application/json","Authorization":"Bearer API_ТОКЕН"} payload = { "name":"Profile","platform":"windows","browserType":"anty","mainWebsite":"", "useragent":{"mode":"manual","value":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36"}, "webrtc":{"mode":"altered","ipAddress":None},"canvas":{"mode":"real"},"webgl":{"mode":"real"}, "webglInfo":{"mode":"manual","vendor":"Google Inc. (Intel)","renderer":"ANGLE (Intel, Intel(R) Iris(R) Xe Graphics Direct3D11 vs_5_0 ps_5_0, D3D11)","webgl2Maximum":"{\"UNIFORM_BUFFER_OFFSET_ALIGNMENT\":256,\"MAX_TEXTURE_SIZE\":16384}"}, "timezone":{"mode":"auto","value":None},"locale":{"mode":"auto","value":None}, "cpu":{"mode":"manual","value":4},"memory":{"mode":"manual","value":8}, "doNotTrack":False,"osVersion":"10" } resp = requests.post(url, headers=headers, json=payload) print(resp.status_code, "\n", resp.text) ``` -------------------------------- ### Upgrade Installed Packages Source: https://help.dolphin-anty.com/en/articles/7851466-installing-dolphin-anty-on-linux This command upgrades all installed packages to their latest available versions based on the updated package list. ```bash sudo apt upgrade ``` -------------------------------- ### List Files in Directory Source: https://help.dolphin-anty.com/en/articles/7851466-installing-dolphin-anty-on-linux Displays all files and directories in the current location, useful for verifying the presence of the downloaded Dolphin Anty file. ```bash ls ``` -------------------------------- ### Navigate to Downloads Folder Source: https://help.dolphin-anty.com/en/articles/7851466-installing-dolphin-anty-on-linux Use this command to change the current directory to the 'Downloads' folder where the application file is typically saved. ```bash cd Downloads/ ``` -------------------------------- ### Get User Agent via Python Source: https://help.dolphin-anty.com/en/articles/7155928-api-profile-creation-template-dolphin-anty Use this Python script to make a GET request to retrieve a user agent for a specified platform. Ensure the Authorization header is included. ```python import requests r = requests.get( "https://dolphin-anty-api.com/fingerprints/useragent", params={"browser_type":"anty","browser_version":"140","platform":"windows"}, headers={"Authorization":"Bearer API_ТОКЕН", "Accept":"application/json"}) print(r.status_code, r.text) ``` -------------------------------- ### Puppeteer Connection Example Source: https://help.dolphin-anty.com/en/articles/7127390-basic-automation-dolphin-anty Connect to a Dolphin Anty browser profile using Puppeteer and perform basic actions like navigating to a URL and taking a screenshot. ```APIDOC ## Puppeteer Connection Example ### Description Connect to a Dolphin Anty browser profile using Puppeteer and perform basic actions like navigating to a URL and taking a screenshot. ### Method ```javascript const puppeteer = require('puppeteer-core'); (async () => { // PUT YOUR port HERE const port = 50568; // PUT YOUR wsEndpoint HERE const wsEndpoint = '/devtools/browser/c71c1a9d-f07c-4dd9-84a9-53a4c6df9969'; // DIRECT CONNECTION const browser = await puppeteer.connect({ browserWSEndpoint: `ws://127.0.0.1:${port}${wsEndpoint}` }); // FROM THIS MOMENT YOU CAN AUTOMATE WHATEVER YOU WANT // FOR EXAMPLE, TAKE A SCREENSHOT OF GOOGLE const page = await browser.newPage(); await page.goto('https://google.com'); await page.screenshot({ path: 'google.png' }); await browser.close(); })(); ``` ``` -------------------------------- ### Java Authorization Request Example Source: https://help.dolphin-anty.com/en/articles/7127390-basic-automation-dolphin-anty Example of how to send a POST request to the authorization endpoint using Java's built-in HttpClient. This code requires Java 11 or later. ```java import java.net.URI; import java.net.http.*; public class Main { public static void main(String[] args) throws Exception { var client = HttpClient.newBuilder().version(HttpClient.Version.HTTP_1_1).build(); var req = HttpRequest.newBuilder(URI.create("http://localhost:3001/v1.0/auth/login-with-token")) .header("Content-Type", "application/json") .header("Accept", "application/json") .POST(HttpRequest.BodyPublishers.ofString( "{\"token\":\"API_TOKEN\"}" )) .build(); var res = client.send(req, HttpResponse.BodyHandlers.ofString()); System.out.println("OK " + res.statusCode()); System.out.println("Body: " + res.body());}} ```