Menu
Home
Advertise
Forums
Search forums
What's new
Unread posts
New articles
New article comments
Latest activity
Earn Money
Money apps
Passive Income
Paid Survey
Forex
Stock
Real estate
Paid to write
Social Media Earning
Review Website/Apps
Crytocurrency
Bitcoin (BTC)
Ethereum (ETH)
Crypto Exchange
Mining
Crypto Faucet / Airdrops
Binance
Business
Business strategy
Funding a business
Marketing
Digital Marketing
Social media marketing
Email marketing
Brand management
Personal Finance
Money Saving
Retirement
Personal loan
Savings for Students
Debt help
Tax relief
Insurance
Car Insurance
Life Insurance
Liability Insurance
Home Insurance
Health Insurance
Disability Insurance
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
Search forums
Menu
Log in
Register
Install the app
Install
Home
Forums
Money Making Forums
Marketing Forums
Introduction to AdsPower Local API
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="AdsPower, post: 171985, member: 50547"] [HEADING=2][B]AdsPower Local API and Headless Browsing[/B][/HEADING] AdsPower provides Local API for all subscriptions now. You can run AdsPower 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. [B]What is “headless” and API key?[/B] · “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. [JUSTIFY] [B]How to run in headless mode?[/B] 1. Get the API key. 1) Open AdsPower Client, go to “Account Management -> Settings”. [ATTACH type="full"]48009[/ATTACH] 2) Click “Generate api-key” under “Local API”. [ATTACH type="full"]48010[/ATTACH] 3) Copy the API key. [ATTACH type="full"]48011[/ATTACH] 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.[/JUSTIFY] [TABLE] [TR] [TD][CENTER]Parameter[/CENTER][/TD] [TD][CENTER]Requiered[/CENTER][/TD] [TD][CENTER]Description[/CENTER][/TD] [/TR] [TR] [TD][JUSTIFY]--headless[/JUSTIFY][/TD] [TD][JUSTIFY]Yes[/JUSTIFY][/TD] [TD][JUSTIFY]When the value is “true”, it’s used to start the headless mode[/JUSTIFY][/TD] [/TR] [TR] [TD][JUSTIFY]--api-key[/JUSTIFY][/TD] [TD][JUSTIFY]Yes[/JUSTIFY][/TD] [TD][JUSTIFY]Identifier used by Local APIs as authentification in headless mode[/JUSTIFY][/TD] [/TR] [TR] [TD][JUSTIFY]--api-port[/JUSTIFY][/TD] [TD][JUSTIFY]No[/JUSTIFY][/TD] [TD][JUSTIFY]The service enpoint of Local APIs[/JUSTIFY][/TD] [/TR] [/TABLE] [JUSTIFY]*Parameters for Windows / Mac:[/JUSTIFY] 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: [ATTACH type="full"]48012[/ATTACH] [B]Non-headless vs headless[/B] 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. [B]FAQ[/B] 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. [/QUOTE]
Insert quotes…
Verification
Post reply
Home
Forums
Money Making Forums
Marketing Forums
Introduction to AdsPower Local API
Top