Skip to main content

API Profile Creation Template Dolphin {anty}

Updated over a month ago

Below are several important points about creating a profile via the API and an example request for creating one ⬇️

User-Agent 🌐

You can get the user agent for the required profile platform (operating system) by making a GET request to:

At the end of the URL, after &platform=, you can specify the desired platform from the options: MacOS, Windows, Linux. The user agent is only returned if you include the Authorization header with the value Bearer API_TOKEN

Or send a request via 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)

WEBGLinfo 👾

You can get the WebGL values for the required profile platform (operating system) by making a GET request to:

At the end of the URL, after &platform=, you can specify the desired platform from the options: MacOS, Windows, Linux. The WebGL configuration is only returned if you include the Authorization header with the value Bearer API_TOKEN

Or send a request via Python:

import requests

r = requests.get(
"https://dolphin-anty-api.com/fingerprints/webgl",
params={"browser_type":"anty","platform":"windows"},
headers={"Authorization":"Bearer API_ТОКЕН",
"Accept":"application/json"})
print(r.text)

Example code for creating a profile 🛠️

ℹ️ This example is written in Python. It sends a POST request to the API to create a browser profile with the specified settings (in this case, a Windows profile with a user agent based on Chrome core version 140).

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)

ℹ️ Most requests and their parameters are described in detail in our full documentation at this address 🧑‍💻

ℹ️ The User-agent parameter can only work in manual mode. Both WebGL info and User-agent must be requested in advance, but we recommend using the values provided by Dolphin{anty}

Did this answer your question?