本页内容目前提供英文版。
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.
| Item | Value |
|---|---|
| Base URL | http://127.0.0.1:3939/api |
| Port | 3939; if it is taken, 3940–3943. The port in use is in %APPDATA%\AirdropLogin\data\port.txt. |
| Auth | None. The API only listens on 127.0.0.1, so only programs on your own computer can reach it. |
| Format | JSON in, JSON out. Send Content-Type: application/json with POST bodies. |
| Errors | HTTP 400 with { "error": "message" }. Actions with nothing to return answer { "ok": true }. |
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/profilesThe examples below use these call() helpers.
Profiles
/api/profilesid, name, account, groups, tags, note, proxy, seed, platform, brand, timezone, lang, acceptLang, createdAt, running./api/profiles/createcount (up to 500), prefix, group, proxies (one per profile, in order), platform, brand, timezone, lang, acceptLang./api/profiles/:idname, note, proxy, seed, timezone…). seed must be a whole number from 1 to 2147483647./api/profiles/bulkids, patch (fields to set), addTags, removeTags, addGroups, removeGroups./api/profiles/:id/open/api/profiles/:id/close/api/close-all/api/profiles/:id/clone/api/profiles/:id/cookies/exportdomain. Returns { cookies }./api/profiles/:id/cookies/importtext (JSON or Netscape format), domain, mode./api/profiles/resetids a clean browser, keeping ID, name, groups, proxy and tags./api/profiles/clear-cacheids./api/profiles/deleteids 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/openGroups
/api/groups/api/groups{ "name": "Shop A" } (up to 60 characters)./api/groups/deletename. 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
/api/proxy-checkproxy. Returns the IP the proxy shows to websites./api/proxy-pool/api/proxy-pool/apply/api/proxy-pool/check/api/profiles/:id{ "proxy": "socks5://user:pass@host:port" }; empty string removes it.IPv6 proxies
/api/ipv6/api/ipv6/create/api/ipv6/rotateids new IPv6 addresses./api/ipv6/deleteids, or all with { "all": true }./api/ipv6/testid.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
/api/workflowsid to start a run)./api/tasks/api/runsworkflowId, profileIds, optional name, inputVars (workflow variables) and config. Or start a saved task with { taskId, profileIds }. Returns the run with its id.| config field | Default | Meaning |
|---|---|---|
profileThreads | 3 | Profiles running at the same time |
delayOpenProfile | 2 | Seconds between opening profiles |
headless | false | Run without showing windows |
repeatTimes | 1 | How many times to run each profile |
closeBrowser | true | Close the browser when a profile finishes |
randomProfile | false | Shuffle profile order |
/api/runsstatus, startedAt, finishedAt and profiles[] with each profile's status, last log line and error./api/runs/:id/logs/:profileId/api/runs/:id/stop{ profileId }./api/runs/:id/retryprofileIds again in the same run./api/runs/:id/threads{ threads }./api/runs/delete{ 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/runsVirtual phones
Phone IDs look like ph-1, ph-2… and can be used as profileIds in POST /api/runs for 📱 workflows.
/api/phones/status/api/phones/machines/api/phones/createcount, prefix, group, cpu, memory, resolution./api/phones/clonefrom into count copies./api/phones/launchids in the background. Returns { launched }./api/phones/quitids; /api/phones/quit-all turns off all./api/phones/installfile (full path on your computer) on ids./api/phones/removeids./api/phones/:id/screen/api/phones/:id/input{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/screenSheets
Sheets are the spreadsheets workflows read from and write to (Spreadsheet nodes).
/api/sheets/api/sheets/:idcells is an array of rows, each an array of values./api/sheets{ name }./api/sheets/import{ paths: ["C:\\data\\list.xlsx"] }, or { name, data } with rows./api/sheets/:id/ops{ 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}./api/sheets/:id/export/api/sheets/:id/deletecurl -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/exportPuppeteer / 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>, whereprofilesRootcomes fromGET /api/settingsandaccountfromGET /api/profiles. - Use
connect, neverlaunch: the app owns the browser. When you are done,disconnect()and close it withPOST /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();