API local de AirdropLogin

Controla perfiles, grupos, proxies, ejecuciones, teléfonos y hojas desde tus scripts con la API REST que la app ejecuta en tu equipo.

Esta página está disponible en inglés.

Getting started

While AirdropLogin is open, it runs a REST API on your computer. Everything you do in the app (profiles, proxies, workflow runs, phones, sheets) can be done from your own scripts in any language.

ItemValue
Base URLhttp://127.0.0.1:3939/api
Port3939; if it is taken, 3940–3943. The port in use is in %APPDATA%\AirdropLogin\data\port.txt.
AuthNone. The API only listens on 127.0.0.1, so only programs on your own computer can reach it.
FormatJSON in, JSON out. Send Content-Type: application/json with POST bodies.
ErrorsHTTP 400 with { "error": "message" }. Actions with nothing to return answer { "ok": true }.
Running workflows needs an active license key. Without one the API still answers, but POST /api/runs returns an error.

Find the port from a script

PORT=$(cat "$APPDATA/AirdropLogin/data/port.txt" 2>/dev/null || echo 3939)
curl http://127.0.0.1:$PORT/api/profiles

The examples below use these call() helpers.

Profiles

GET/api/profiles
Every profile: id, name, account, groups, tags, note, proxy, seed, platform, brand, timezone, lang, acceptLang, createdAt, running.
POST/api/profiles/create
Create profiles. Body: count (up to 500), prefix, group, proxies (one per profile, in order), platform, brand, timezone, lang, acceptLang.
POST/api/profiles/:id
Update one profile with the fields to change (name, note, proxy, seed, timezone…). seed must be a whole number from 1 to 2147483647.
POST/api/profiles/bulk
Edit many profiles: ids, patch (fields to set), addTags, removeTags, addGroups, removeGroups.
POST/api/profiles/:id/open
Open the profile's browser window.
POST/api/profiles/:id/close
Close it.
POST/api/close-all
Close every open profile.
POST/api/profiles/:id/clone
Make a new profile with the same fingerprint settings and a clean browser.
POST/api/profiles/:id/cookies/export
Export cookies, optionally for one domain. Returns { cookies }.
POST/api/profiles/:id/cookies/import
Import cookies: text (JSON or Netscape format), domain, mode.
POST/api/profiles/reset
Give ids a clean browser, keeping ID, name, groups, proxy and tags.
POST/api/profiles/clear-cache
Clear the browser cache of ids.
POST/api/profiles/delete
Delete ids and their browser data. This can't be undone.

Example: create 5 profiles with proxies and open the first

curl -X POST http://127.0.0.1:3939/api/profiles/create -H "Content-Type: application/json" \
  -d '{"count":5,"prefix":"shop","group":"Shop A","proxies":["1.2.3.4:8000:user:pass","1.2.3.5:8000:user:pass"]}'

curl http://127.0.0.1:3939/api/profiles
curl -X POST http://127.0.0.1:3939/api/profiles/PROFILE_ID/open

Groups

GET/api/groups
List of group names.
POST/api/groups
Add a group: { "name": "Shop A" } (up to 60 characters).
POST/api/groups/delete
Delete a group by name. Its profiles are kept.

To put profiles in a group, use POST /api/profiles/bulk with addGroups / removeGroups.

curl -X POST http://127.0.0.1:3939/api/profiles/bulk -H "Content-Type: application/json" \
  -d '{"ids":["ID1","ID2"],"addGroups":["Shop A"],"addTags":["warmed"]}'

Proxy

POST/api/proxy-check
Test one proxy. Returns the IP the proxy shows to websites.
GET/api/proxy-pool
The proxy list of the Proxy page and its settings.
POST/api/proxy-pool/apply
Save the list and spread it over profiles (round-robin or blocks), like the Apply button.
POST/api/proxy-pool/check
Check which proxies in the list are live.
POST/api/profiles/:id
Set one profile's proxy: { "proxy": "socks5://user:pass@host:port" }; empty string removes it.

IPv6 proxies

GET/api/ipv6
Status, settings and addresses of the built-in IPv6 proxy.
POST/api/ipv6/create
Create IPv6 addresses for profiles (Windows asks for admin rights).
POST/api/ipv6/rotate
Give ids new IPv6 addresses.
POST/api/ipv6/delete
Remove addresses of ids, or all with { "all": true }.
POST/api/ipv6/test
Test the address of profile id.

Example: drop dead proxies

curl -X POST http://127.0.0.1:3939/api/proxy-check -H "Content-Type: application/json" -d '{"proxy":"1.2.3.4:8000:user:pass"}'

Workflow runs

GET/api/workflows
Your workflows (use their id to start a run).
GET/api/tasks
Saved tasks (workflow + profiles + settings).
POST/api/runs
Start a run: workflowId, profileIds, optional name, inputVars (workflow variables) and config. Or start a saved task with { taskId, profileIds }. Returns the run with its id.
config fieldDefaultMeaning
profileThreads3Profiles running at the same time
delayOpenProfile2Seconds between opening profiles
headlessfalseRun without showing windows
repeatTimes1How many times to run each profile
closeBrowsertrueClose the browser when a profile finishes
randomProfilefalseShuffle profile order
GET/api/runs
The latest runs: status, startedAt, finishedAt and profiles[] with each profile's status, last log line and error.
GET/api/runs/:id/logs/:profileId
Full log of one profile in a run.
POST/api/runs/:id/stop
Stop the run, or only one profile with { profileId }.
POST/api/runs/:id/retry
Run profileIds again in the same run.
POST/api/runs/:id/threads
Change how many profiles run at once while running: { threads }.
POST/api/runs/delete
Delete history: { ids } or { allFinished: true }.

Example: run a workflow on a group and wait for it

curl -X POST http://127.0.0.1:3939/api/runs -H "Content-Type: application/json" \
  -d '{"workflowId":"WORKFLOW_ID","profileIds":["ID1","ID2"],"config":{"profileThreads":2}}'

curl http://127.0.0.1:3939/api/runs

Virtual phones

Phone IDs look like ph-1, ph-2… and can be used as profileIds in POST /api/runs for 📱 workflows.

GET/api/phones/status
Whether phones are supported on this computer and their engine status.
GET/api/phones/machines
Every phone with its name, group, running state and settings.
POST/api/phones/create
Create phones: count, prefix, group, cpu, memory, resolution.
POST/api/phones/clone
Clone phone from into count copies.
POST/api/phones/launch
Start phones ids in the background. Returns { launched }.
POST/api/phones/quit
Turn off phones ids; /api/phones/quit-all turns off all.
POST/api/phones/install
Install an APK file (full path on your computer) on ids.
POST/api/phones/remove
Delete phones ids.
GET/api/phones/:id/screen
A PNG screenshot of the phone's screen.
POST/api/phones/:id/input
Control the phone: {type:"tap",x,y}, {type:"swipe",x1,y1,x2,y2,ms}, {type:"key",key} (e.g. KEYCODE_HOME), {type:"text",text}.

Also available: /api/phones/proxies, /location, /rename, /modify, /backup, /restore, the same actions as the buttons on the Phones page.

curl -X POST http://127.0.0.1:3939/api/phones/launch -H "Content-Type: application/json" -d '{"ids":["ph-1"]}'
curl -X POST http://127.0.0.1:3939/api/phones/ph-1/input -H "Content-Type: application/json" -d '{"type":"tap","x":540,"y":1200}'
curl -o screen.png http://127.0.0.1:3939/api/phones/ph-1/screen

Sheets

Sheets are the spreadsheets workflows read from and write to (Spreadsheet nodes).

GET/api/sheets
Every sheet: id, name, size.
GET/api/sheets/:id
One sheet with its cells: cells is an array of rows, each an array of values.
POST/api/sheets
Create an empty sheet: { name }.
POST/api/sheets/import
Import Excel/CSV: { paths: ["C:\\data\\list.xlsx"] }, or { name, data } with rows.
POST/api/sheets/:id/ops
Change cells: { ops: [...] }. Each op is {r, c, v} (set row r, column c, both from 0), {op:"insertRows",at,n}, {op:"deleteRows",rows}, {op:"insertCols",at,n} or {op:"deleteCols",cols}.
GET/api/sheets/:id/export
Download the sheet as .xlsx.
POST/api/sheets/:id/delete
Delete the sheet.
curl -X POST http://127.0.0.1:3939/api/sheets -H "Content-Type: application/json" -d '{"name":"accounts"}'
curl -X POST http://127.0.0.1:3939/api/sheets/SHEET_ID/ops -H "Content-Type: application/json" \
  -d '{"ops":[{"r":0,"c":0,"v":"Mail"},{"r":0,"c":1,"v":"Status"},{"r":1,"c":0,"v":"a@example.com"}]}'
curl -o accounts.xlsx http://127.0.0.1:3939/api/sheets/SHEET_ID/export

Puppeteer / Playwright

Every profile opened by the app has a Chrome DevTools port, so you can drive it with Puppeteer, Playwright or any CDP tool and keep its fingerprint and proxy. When Chrome starts it writes a DevToolsActivePort file in the profile folder: line 1 is the port, line 2 the WebSocket path.

  • Profile folder: <profilesRoot>\<account>\<number>_<number>_<id>, where profilesRoot comes from GET /api/settings and account from GET /api/profiles.
  • Use connect, never launch: the app owns the browser. When you are done, disconnect() and close it with POST /api/profiles/:id/close.
  • Profiles opened by hand in clean mode (Settings) have no DevTools port, so scripts can't connect to them.
import fs from "node:fs";
import path from "node:path";
import puppeteer from "puppeteer-core";

const API = "http://127.0.0.1:3939/api";
const call = (m, r, b) => fetch(API + r, { method: m, headers: { "Content-Type": "application/json" }, body: b && JSON.stringify(b) }).then((x) => x.json());

async function connectProfile(id) {
  const { profilesRoot } = await call("GET", "/settings");
  const p = (await call("GET", "/profiles")).find((x) => x.id === id);
  await call("POST", `/profiles/${id}/open`);
  const base = path.join(profilesRoot, p.account);
  const dir = path.join(base, fs.readdirSync(base).find((d) => d.endsWith("_" + id)));
  const file = path.join(dir, "DevToolsActivePort");
  for (let i = 0; i < 60 && !fs.existsSync(file); i++) await new Promise((ok) => setTimeout(ok, 500));
  const [port, wsPath] = fs.readFileSync(file, "utf8").split(/\r?\n/);
  return puppeteer.connect({ browserWSEndpoint: `ws://127.0.0.1:${port}${wsPath}`, defaultViewport: null });
}

const browser = await connectProfile("PROFILE_ID");
const page = await browser.newPage();
await page.goto("https://example.com");
console.log(await page.title());
await browser.disconnect();