
Local HTTP API
A local server on 127.0.0.1:50778 controls profiles, proxies, cookies, scripts and tasks. Auth via x-api-key — only localhost origins are accepted.
Drive Afina through a documented local HTTP API on 127.0.0.1:50778 — start profiles, run RPA scripts, manage proxies and cookies, attach Puppeteer or Playwright over the returned CDP WebSocket. One antidetect browser, one API, predictable behavior at scale.

Multi-account workflows fall apart when antidetect, automation and queueing live in different tools. Afina ships a local HTTP API, an RPA scripts engine, a visual flow canvas and a task scheduler in one platform — and exposes a CDP WebSocket so Puppeteer and Playwright keep working with isolated, fingerprinted profiles.

A local server on 127.0.0.1:50778 controls profiles, proxies, cookies, scripts and tasks. Auth via x-api-key — only localhost origins are accepted.

POST /api/profiles/start returns a wsEndpoint you can plug into Puppeteer or Playwright directly — full devtools control over a real, isolated profile.

Build flows on a drag-and-drop canvas or run JS modules through executeModule. Launch them from your code with POST /api/scripts/run and stream the log.

POST /api/profiles/one-time spins up a fresh fingerprinted profile and hard-deletes it the moment the browser stops — perfect for scraping and isolated checks.
# Start a profile and get a CDP WebSocket endpoint
curl -X POST http://127.0.0.1:50778/api/profiles/start \
-H "x-api-key: $AFINA_API_KEY" \
-H "Content-Type: application/json" \
-d '{"profileId":"1d64f838-a1b8-47de-8a3f-9cebf859c375"}'
# Response
{
"msg": "success",
"wsEndpoint": "ws://127.0.0.1:9223/devtools/browser/abcd-...",
"data": { "port": 9223 }
}Spin up isolated profiles, hit the local API and ship your first flow today — the same browser your team already uses.
Afina API & Automation turns the Afina antidetect browser into a programmable workstation. Instead of stitching together third-party automation, headless Chrome and a separate profile manager, you get a local HTTP API, a CDP WebSocket, an RPA engine and a task scheduler in one platform — all working on top of isolated profiles with real browser fingerprints, isolated cookies and per-profile proxies.
Standard Chromium automation breaks the moment platforms start fingerprinting. Headless flags, missing fonts, identical WebGL renderers and shared cookies make every script look like the same machine — and that machine gets flagged. Afina solves this at the runtime level: every script runs inside a fingerprinted profile from the profile manager, so anti-fraud systems see a normal human session, not a bot harness.
A REST server on 127.0.0.1:50778 exposes the entire app: profiles, proxies, cookies, scripts, tasks, modules, email manager, databases and global variables. Authentication uses an x-api-key header you generate in Settings, and only localhost origins are accepted — credentials never leave the machine.
POST /api/profiles/start returns a wsEndpoint you can plug into Puppeteer or Playwright directly. You keep the API you already know, but every command runs against a real fingerprinted profile, not headless Chrome — so detection-heavy targets like ad platforms and ticketing sites stop pattern-matching your traffic.
Build flows on a drag-and-drop canvas or write JS modules that run through executeModule. Launch them from your own code with POST /api/scripts/run, stream logs over Server-Sent Events, and reuse the same blocks across hundreds of accounts. No-code marketers and engineers share the same script library.
POST /api/profiles/one-time spins up a fresh profile with a unique fingerprint and hard-deletes it the moment the browser stops. Perfect for data scraping, headless checks, fingerprint validation and anything that should leave zero trace on disk.
Group accounts into task groups, set start time, parallelism, repeat count, working hours and timeouts. Afina dispatches the work across browser instances, retries failures, and exposes the queue state through the same API — so dashboards and external orchestrators can drive Afina without polling the UI.
Affiliate teams generate creatives and warm accounts across thousands of profiles. SEO and SMM agencies post, comment and check rankings from real residential proxies. Airdrop and Web3 farms sign transactions, claim tokens and rotate wallets without leaking common fingerprints. Data teams scrape SERPs, marketplaces and dashboards on isolated profiles. QA engineers replay flaky end-to-end flows under a different geo and time zone — all from the same API.
If you've been juggling Selenium + a profile manager + a proxy rotator + a scheduler, Afina collapses that stack into one local API with a documented surface, an MCP server for AI agents, and the same fingerprint engine the manual UI uses. Automation stops looking like automation.