AdsPower Local API and Headless Browsing

2021/05/03 11:25:56Author: AdsPowerReads: 15137

AdsPower provides Local API. The list of endpoints can be found in the introduction to Local API.

Now you can run the latest version of AdsPower (app v3.3.2 and above / kernel v2.4.2.8 and above) in headless mode with the help of the “headless” parameter and API keys. Use of Local API is also allowed in this case.

* This feature is only available for users who have access to Local API. Please contact online client service if needed.

What is “headless”and API key?

  • “headless”: a parameter used to run AdsPower in headless mode

  • API key: an API key is a unique identifier used by Local APIs as authentification in headless mode. Each account has its own API key, which can be used to allow the use of Local APIs on multiple devices by one account.

How to run in headless mode?

1. Get the API key.

1) Open AdsPower Client, go to “Account Management -> Settings”


2) Click “Generate api-key” under “Local API”


3) Copy the API key


2. Run AdsPower in headless mode using the command line and API keys

1) Make sure you have opened CMD or Terminal in the folder of AdsPower

* The folder’s path is usually “C:\Program Files (x86)\AdsPower” on Windows

2) Execute the command line: paste the API key copied from AdsPower Client in the command line






When the value is “true”, it’s used to start the headless mode



Identifier used by Local APIs as authentification in headless mode



The service enpoint of Local APIs

*Parameters for Windows / Mac:

Windows: AdsPower.exe --headless=true --api-key=XXXX --api-port=50325

MacOS: /Applications/adsPower.app/Contents/MacOS/Adspower --args --headless=true --api-key=XXXX --api-port=50325

When the execution is succeeded, you can see the address to which the Local API returns as below:


Non-headless vs headless

In non-headless mode, the login to an account is restricted to one device, while in headless mode, the login to an account from multiple devices is allowed.

If you want to run automated operations using one account on multiple devices, you can use Local APIs in headless mode with the help of API keys.


Q: Can I run the software in non-headless mode and in headless mode simultaneously?

A: No.

Q: If the API key has been changed, can I still use the API, which was authentificated by the old API key?

A: No, the system will warn you about the invalid API key. Currently an account has only one API key. So if you reset the API key, the old one will become invalid.

Q: How to reset the API key?

A: Go to “Account Management->Settings”, click “Genereate api-key” to get a new one.

Q: If the API key has been changed, can I update it in headless mode?

A: No. You have to turn off the headless mode and use it with the new API key.

Q: How to tun off the headless mode?

A: You can use “ctrl+c” or simply close the command line window.

Popular comments

Nothing here... Leave the first comment!