Appearance
Getting started
The AresLogin API lets your scripts create, start and stop browser profiles, then control the browser with Playwright, Puppeteer or Selenium.
Base URL:
https://app.areslogin.io/api/v1Preview
The API is in preview. New fields and endpoints will be added as AresLogin grows; breaking changes will be announced here first.
1. Create an API key
Open the AresLogin app, go to API in the left menu, name a key and click Create key. Copy it right away: it is shown once.
Send the key with every request:
bash
curl https://app.areslogin.io/api/v1/me \
-H "Authorization: Bearer ares_..."A key acts as the account member who created it. It sees the same profiles and has the same permissions.
2. Keep the AresLogin app open
Profiles run on your own computer, inside the AresLogin app. The API sends the command to the app, and the app starts the browser. If the app is closed, start returns device_offline.
Your automation script must run on that same computer. The browser's control port listens on 127.0.0.1 only.
Calling the API on the computer itself
The app also serves the same API on the computer it runs on:
http://127.0.0.1:50326/api/v1Same paths, same key, same responses. Only the base URL changes. Use it when your script runs next to the app, for example on a VPS that hosts AresLogin:
bash
curl http://127.0.0.1:50326/api/v1/me \
-H "Authorization: Bearer ares_..."js
const ares = new AresLogin({ apiKey: process.env.ARES_API_KEY, baseUrl: 'http://127.0.0.1:50326/api/v1' });https://app.areslogin.io/api/v1 | http://127.0.0.1:50326/api/v1 | |
|---|---|---|
| Where you call it from | Anywhere | The computer running the app |
start without device_id | Your only online device, or the profile's home device; several online devices return device_required | Always this computer |
| Best for | Managing profiles and automations across several computers | A script that drives the browser on the same computer |
The local address still needs the app to be signed in and online: it forwards each call to AresLogin, where the key, permissions and limits are checked. It accepts calls from scripts only; requests sent by a web page are refused with browser_not_allowed.
3. Start a profile and connect
bash
npm install areslogin playwright-corejs
import { AresLogin } from 'areslogin';
import { chromium } from 'playwright-core';
const ares = new AresLogin({ apiKey: process.env.ARES_API_KEY });
const { data } = await ares.profiles.list({ per_page: 1 });
const run = await ares.profiles.start(data[0].id);
const browser = await chromium.connectOverCDP(run.cdp_url);
const page = await browser.contexts()[0].newPage();
await page.goto('https://example.com');
console.log(await page.title());
await browser.close(); // disconnects only
await ares.profiles.stop(data[0].id); // closes the browser, saves the profilePython:
bash
pip install areslogin playwrightpython
import os
from areslogin import AresLogin
from playwright.sync_api import sync_playwright
ares = AresLogin(api_key=os.environ["ARES_API_KEY"])
profile_id = ares.profiles.list(per_page=1)["data"][0]["id"]
run = ares.profiles.start(profile_id)
with sync_playwright() as p:
browser = p.chromium.connect_over_cdp(run["cdp_url"])
page = browser.contexts[0].new_page()
page.goto("https://example.com")
print(page.title())
browser.close()
ares.profiles.stop(profile_id)Limits
| Requests | 120 per minute per key |
| Keys | 10 active keys per account member |
| Automation | Chrome-based profiles. Firefox-based profiles can be started and stopped, but have no control port yet |
Profile and running-profile limits come from your plan, the same as in the app.