Public API v1
The PR.SOCIAL Public API is a bot-operator API: you link a fleet of social media accounts to your API key, pull orders (follow, like, subscribe, view and other actions), execute them with your accounts and report the results. Every confirmed completion is paid to your PR.SOCIAL balance instantly.
All responses are JSON. Business errors are returned as {"error":"..."} with HTTP 200 — check the error field, not the HTTP status. The only non-200 transport answers are 400 bad_json for a malformed JSON body, 404 not_found for an unknown endpoint path, 429 for IP-level flood, and 500 server_error if something crashes on our side (safe to retry with backoff). Amounts are USD.
Forward compatibility: we may add NEW response fields at any time — parse tolerantly and ignore unknown fields. Breaking changes only ever ship as a new API version (/api/v2), announced in advance.
Two working modes share the same order pool:
| Mode | Methods | For whom |
|---|---|---|
| Batch (recommended) | /getOrders + /report | Fleets. One call takes up to 200 orders for your free accounts, one call settles up to 500 completions. An operator with 10 000 accounts needs ~70 requests per 10-minute cycle instead of 20 000 |
| Single | /getOrder + /check (+ /ignore, /cancel) | The classic flow — the easiest way to start, compatible with most existing bot software |
Authentication
Every method (except /health) requires the api_token query parameter. Tokens start with prsa_.
Keep the token secret and use it server-side only. A missing, malformed, disabled or revoked token answers {"error":"api_token_invalid"}. If the whole API is switched off for maintenance, every method answers {"error":"service_unavailable"}.
Workflow
Each issued order is an assignment: order + account, held in our system for 600 seconds. Report it within that window (or release it with /ignore). An account holds one active assignment at a time, globally — across all API keys.
Earnings are credited to your PR.SOCIAL user balance the moment a completion is settled. Withdraw through your PR.SOCIAL account as usual.
Rate limits & pacing
| Limit | Default | On exceed |
|---|---|---|
| Requests per key | 120 per minute | {"error":"flood","retry_after":N} |
| Requests per key, daily | 10 000 | flood with retry_after: 60 |
| Task completions per key, daily | 1 000 | flood (retry_after 60 on /getOrder, 3600 on /getOrders) |
| Linked active accounts per key | 100 | Per-username limit_reached in /accounts/add |
| Usernames per /accounts/add or /accounts/unlink | 1 000 | too_many_accounts |
| Orders per /getOrders call | 200 | Silently capped |
| Items per /report call | 500 | too_many_reports |
| Requests per IP (all keys) | Not below your key's rate | HTTP 429 with {"error":"...","retry_after":N} and a Retry-After header — wait N seconds, do not retry at once |
Per-key limits (rate, daily tasks, max accounts) are individual settings — ask in Support (a ticket on the topic API key) to raise them.
Calls that finish or release taken work (/check, /report, /ignore, /cancel) are counted apart from all other calls, each group against the same per-minute rate: asking for work can never get your reports refused.
Pacing discipline
| Rule | Detail |
|---|---|
| After empty — back off | An {"error":"empty","retry_after":60} answer starts a 60-second cooldown on that service_id. /getOrder: while the service still has open orders that this account cannot take (already done, already a member, another country, or dropped with /ignore or /cancel in the last 24 hours), the cooldown covers this account only — keep asking with your other accounts; when the service has no open orders at all, it covers your whole key. /getOrders: an empty batch puts the cooldown on your whole key. Polling inside a cooldown answers flood with the remaining wait. Other services are not affected |
| Assignment TTL = 600 s | Report or release each taken order within 10 minutes. After the TTL the assignment expires and reporting it answers order_not_taken |
| One assignment per account | Calling /getOrder for an account that already holds an assignment answers flood with the remaining TTL. /getOrders simply skips busy accounts |
| Action delay | delay in /services (15 s) is the recommended pause between actions on one account |
Account checks
Your API key has a check_mode flag (enabled by the PR.SOCIAL team). When it is on, freshly linked accounts are queued for an automatic profile quality check, and orders are issued only to accounts with verdict passed or skipped. When it is off, checks are not queued; only accounts explicitly marked failed (e.g. by an admin) are excluded from orders.
check_status values
| Value | Meaning | Gets orders (check_mode on) |
|---|---|---|
| none | Never checked (linked while check_mode was off) | No |
| pending | Queued, waiting for the checker | No |
| passed | Profile exists and passes the quality gate | Yes |
| failed | Profile missing, suspended or below quality thresholds. Never gets orders, even with check_mode off | No |
| skipped | Platform has no automatic checker (e.g. facebook, telegram) — treated as checked | Yes |
check_reason values
| Value | When |
|---|---|
| account_not_found | The profile does not exist on the platform |
| account_suspended | The profile is banned / suspended by the platform |
| quality:<ids> | Failed one or more quality checks (followers, posts, avatar, privacy…); ids list the failed checks |
| admin_force_approve | Manually approved by an administrator |
| platform_not_checkable | Verdict skipped — no checker for this platform |
Identity normalization
Everywhere in the API an account is identified by its normalized username. Usernames are accepted in three forms and normalized automatically:
| Input | Normalized |
|---|---|
| Some_User | some_user |
| @Some_User | some_user |
| https://www.tiktok.com/@Some_User | some_user (last URL path segment) |
Rules: lowercase, leading @ stripped; allowed characters are a-z 0-9 . _ -, must start with a letter or digit, max 100 characters. Anything else is rejected as invalid (in bulk methods) or account_identity_invalid (in order methods).
One normalized username = one account, globally. An account active under another operator's key cannot be linked to yours (it comes back in the taken list) until they unlink it.
Website traffic
Website traffic is taken a whole order at a time: no accounts to link, no visitors to register. Every traffic service has its own service_id (the same number as on the PRM4U panel) and its name says what a visit is: the country it comes from and its source, for example 630 South Korea Traffic - [Google], 4920 Canada Traffic - [Direct Visits/No Referrer], 618 Canada Traffic - [Facebook]. Choose the numbers your software serves and work only those.
- GET /traffic/services — every traffic service: service_id, name, countries (empty: any country), seconds on the page, rate_per_1000 (USD), open_orders, visits_open.
- GET /traffic/orders?service_ids=630,4920 — open orders nobody has taken (all services when none is given), oldest first: order_id, service_id, url, quantity (visits to deliver).
- POST /traffic/take {"order_ids":[123]} — the order is yours alone; nobody else is given it.
- Deliver the visits: open the url from the service's country, from its source, and stay the seconds.
- POST /traffic/report {"reports":[{"order_id":123,"delivered":1500}]} — delivered is the running total of visits you delivered on the order. Report as you go: every report pays the visits it adds to your balance at once, and the customer sees the progress. The last report carries "done": true.
| Method | Body / query | Answer |
|---|---|---|
| GET /traffic/services | — | {"ok":true,"services":[...]} |
| GET /traffic/orders | service_ids (comma list), limit (up to 500, default 100) | {"ok":true,"orders":[...]} |
| POST /traffic/take | {"order_ids":[...]}, up to 100 | {"ok":true,"results":[{"order_id","ok":true,"order":{...}} | {"order_id","error"}]} |
| POST /traffic/report | {"reports":[{"order_id","delivered","done"}]}, up to 100 | {"ok":true,"results":[{"order_id","ok":true,"delivered","paid_visits","earned","status","closed"} | {"order_id","error"}]} |
| GET /traffic/taken | — | your taken orders with what you reported: {"ok":true,"orders":[...]} |
| POST /traffic/release | {"order_ids":[...]} | the orders go back to the list; what you reported stays paid |
Rules. A report with the same delivered again is answered ok and paid once; a smaller one is delivered_went_down; more than the order's quantity is counted as its quantity (capped). All visits delivered: the order is completed. "done": true with fewer: the order closes partially and the customer gets the rest back; with none delivered it goes back to the list. Can not finish? /traffic/release gives the order back for another software. An order taken and not reported for 24 hours may be taken by another key. An order the customer cancels answers order_closed: stop working it (what you reported before is paid).
Errors: traffic_not_on_key (your key does not take traffic: ask in Support), order_not_found, order_closed, order_taken (another key has it), order_not_taken (not yours), delivered_went_down, invalid_item, flood (the key's daily task limit: a visit counts as a task), busy (retry the same report), order_ids_required, too_many_orders, reports_required, too_many_reports. The visit kinds (visit_15, visit_30, visit_60) are not in /services, and /getOrders answers them service_id_invalid.
Errors
Business errors come back as {"error":"code"} with HTTP 200, sometimes with extra fields (retry_after, max). Transport errors: HTTP 400 {"error":"bad_json"} for an unparseable JSON body, HTTP 429 for IP-level flood.
| Error | Meaning / what to do |
|---|---|
| api_token_invalid | Token missing, malformed (must start with prsa_), unknown, disabled, or the owner account is banned. Check the api_token parameter; contact support if it worked before |
| service_unavailable | The API is temporarily switched off, or the order engine (Redis) is down. Retry with backoff, orders and balances are safe |
| flood | Too fast: per-key rate limit, daily request/task limit, cooldown violation after empty, or the account already holds an assignment. Wait retry_after seconds, then retry |
| empty | No order for this account on this service right now (/getOrders: for none of the accounts in the batch). Wait retry_after seconds (60) before asking again with that account (/getOrders: on that service) — an early poll answers flood. Whether your other accounts wait too: see Pacing discipline |
| service_id_invalid | service_id missing, not a number, unknown or inactive. Refresh /services |
| account_identity_invalid | account_identity missing or fails normalization |
| account_not_linked | The account is not linked to your key on this service's platform (or is unlinked/banned). Link it via /accounts/add. In /getOrders: no eligible accounts at all |
| account_check_pending | check_mode is on and the account has no verdict yet (in /getOrders: none of your accounts has one). Wait for the check to finish — see /accounts |
| account_check_failed | The account failed the quality check (in /getOrders: all your eligible accounts failed). It will not receive orders |
| order_not_taken | No live assignment matches this order + account + key: it expired (600 s TTL), was already reported/released, or was taken under a different key |
| completion_not_registered | The order stopped accepting completions (finished or canceled) before your report, or the settlement failed. The assignment is released; take a new order |
| platform_invalid | Unknown or inactive platform value in an accounts method |
| usernames_required | usernames must be a non-empty array |
| too_many_accounts | More than max (1000) usernames in one request — split the batch |
| reports_required | reports must be a non-empty array |
| too_many_reports | More than max (500) items in one /report call — split the batch |
| invalid_item | Per-item error inside /report results: the item is missing a numeric order_id or a valid account |
| server_error | Unexpected error on our side (HTTP 200 inside method flows, HTTP 500 on a crash — same code either way). Safe to retry in 30–60 seconds; if persistent, contact support |
| bad_json | HTTP 400. The request body is not valid JSON. Send Content-Type: application/json and a well-formed body |
| not_found | HTTP 404. Unknown endpoint path — check the method URL against this page |
Health
Liveness probe. The only method that requires no authentication.
Response fields
| Field | Description |
|---|---|
| ok | Always true when the API process is up |
| service | Service name |
| version | API build version |
| redis | Order engine state. false means order methods will answer service_unavailable |
Services
Lists every active service (platform + action) with its reference payout and the number of orders currently open. service_id is what you pass to the order methods.
Query parameters
| Parameter | Type | Description | |
|---|---|---|---|
| api_token | string | required | Your API token |
Response fields (per service)
| Field | Description |
|---|---|
| service_id | Service ID for order methods |
| name | Human-readable label |
| platform | Platform slug — also the platform value for account methods |
| action | Action type (follow, like, view, …) |
| reward | Reference payout per completed action, USD. The exact payout is fixed per order at assignment time |
| available | Orders currently open with free capacity |
| delay | Recommended pause between actions on one account, seconds |
Note: this method returns {"services":[...]} without an ok field.
Link accounts
Links up to 1000 accounts of one platform to your API key in a single call. Orders are only ever issued to linked accounts. Usernames are accepted as name, @name or a profile URL — see Identity normalization.
Query parameters
| Parameter | Type | Description | |
|---|---|---|---|
| api_token | string | required | Your API token |
JSON body
| Field | Type | Description | |
|---|---|---|---|
| platform | string | required | Platform slug from /services (instagram, tiktok, twitter, youtube, telegram, facebook, …) |
| usernames | array | required | 1–1000 usernames / @handles / profile URLs, or objects {"username":"...","country":"US"}: the two-letter country the account works from (orders sold for some countries go only to accounts of those countries) |
Response fields
| Field | Description |
|---|---|
| added | New accounts linked |
| reactivated | Previously unlinked accounts re-linked (stats and check verdict reset on owner change) |
| already_yours | Already active under your key — unchecked ones get their check re-queued |
| taken | Usernames active or banned under another operator — not linkable |
| invalid | Usernames that failed normalization |
| limit_reached | Usernames rejected because your active-accounts cap was hit |
| total_active | Active accounts on your key after this call |
| max_accounts | Your active-accounts cap (default 100) |
| check_mode | 1 if account checks are enabled for your key, else 0 |
| check_queued | Accounts queued for a quality check by this call |
Errors: platform_invalid, usernames_required, too_many_accounts.
List accounts
Lists accounts linked to your key with their check verdicts and stats. Unlinked accounts are hidden by default — pass status=unlinked to see them.
Query parameters
| Parameter | Type | Description | |
|---|---|---|---|
| api_token | string | required | Your API token |
| platform | string | optional | Filter by platform |
| status | string | optional | active / unlinked / banned |
| page | int | optional | Default 1 |
| limit | int | optional | Default 100, max 500 |
Response fields (per account)
| Field | Description |
|---|---|
| id | Internal account id |
| platform, username | Normalized identity |
| status | active / unlinked / banned |
| check_status | none / pending / passed / failed / skipped — see Account checks |
| check_reason | Verdict detail, null unless failed/skipped/approved |
| checked_at | When the last check finished, null if never |
| followers, posts | Profile counters captured by the check, null if unchecked |
| tasks_completed | Completions by this account under your key |
| last_task_at | Last completion time |
| linked_at | When the account was linked |
Unlink accounts
Detaches up to 1000 accounts from your key. Unlinked accounts stop receiving orders immediately and become linkable again (by you or any other operator; stats reset on owner change).
Query parameters
| Parameter | Type | Description | |
|---|---|---|---|
| api_token | string | required | Your API token |
JSON body
| Field | Type | Description | |
|---|---|---|---|
| platform | string | required | Platform slug |
| usernames | string[] | required | 1–1000 usernames to unlink |
Response fields
| Field | Description |
|---|---|
| unlinked | Accounts detached by this call |
| not_found | Usernames that were not active under your key (or failed normalization) |
Errors: platform_invalid, usernames_required, too_many_accounts.
Get orders (batch)
Takes up to 200 orders in one call. The server picks your free eligible accounts (least recently worked first), matches them to open orders of the service and creates one assignment per account. Accounts never get an order they have already completed.
Query parameters
| Parameter | Type | Description | |
|---|---|---|---|
| api_token | string | required | Your API token |
JSON body
| Field | Type | Description | |
|---|---|---|---|
| service_id | int | required | Service from /services |
| count | int | optional | Orders wanted, 1–200 (default 1). Capped by your remaining daily task budget |
Response fields
| Field | Description |
|---|---|
| issued | Assignments created (may be less than count) |
| ttl | Assignment lifetime, seconds (600). Report within this window |
| orders | Array of {order_id, url, account}: execute the action on url with account, then include the same pair in /report |
Errors: service_id_invalid, account_not_linked, account_check_pending, account_check_failed, flood, empty, service_unavailable. The same order can appear for several of your accounts — each pays separately.
Report completions (batch)
Confirms up to 500 executed orders in one call. Each item is settled independently: valid ones are paid to your balance instantly, invalid ones come back with a per-item error — the rest of the batch is unaffected. Settlement is idempotent: re-reporting an already-settled pair answers ok without double pay.
Query parameters
| Parameter | Type | Description | |
|---|---|---|---|
| api_token | string | required | Your API token |
JSON body
| Field | Type | Description | |
|---|---|---|---|
| reports | object[] | required | 1–500 items of {order_id, account} — exactly the pairs issued by /getOrders |
Response fields
| Field | Description |
|---|---|
| settled | Completions paid by this call |
| results | Per-item outcome, same order as the request: {order_id, account, ok:true} or {order_id, account, error} |
Batch errors: reports_required, too_many_reports, service_unavailable. Per-item errors: invalid_item, order_not_taken, completion_not_registered, account_not_linked (the account was unlinked or banned after the order was issued — do not retry).
Get order (single)
Takes one order for one account. The account must be linked to your key on the service's platform and pass the check gate. The order is assigned for 600 seconds — confirm with /check or release with /ignore.
Query parameters
| Parameter | Type | Description | |
|---|---|---|---|
| api_token | string | required | Your API token |
| service_id | int | required | Service from /services |
| account_identity | string | required | Username of the linked account (any accepted form) |
Response fields
| Field | Description |
|---|---|
| response.id | Order ID — pass as order_id to /check |
| response.url | Target URL to act on |
| response.retry_after | Recommended pause before this account's next action, seconds |
Errors: service_id_invalid, account_identity_invalid, account_not_linked, account_check_pending, account_check_failed, flood, empty, service_unavailable.
Check (single)
Confirms that the account executed the order taken via /getOrder. On success the reward is credited to your balance instantly and the assignment is released. Idempotent — re-checking a settled pair answers ok again.
Query parameters
| Parameter | Type | Description | |
|---|---|---|---|
| api_token | string | required | Your API token |
| order_id | int | required | response.id from /getOrder |
| account_identity | string | required | The same account the order was taken for |
Errors: order_not_taken (assignment expired, released, or the pair does not match), completion_not_registered (order finished/canceled before your report), account_not_linked (the account was unlinked or banned after the order was issued — do not retry), account_identity_invalid, service_unavailable.
Ignore
Releases an assignment without completing it — the order slot returns to the pool immediately and the account becomes free for the next /getOrder. Use it when the account cannot or does not want to perform the action. The ignored order is not offered to this account again for ~24 hours; other accounts still receive it.
Query parameters
| Parameter | Type | Description | |
|---|---|---|---|
| api_token | string | required | Your API token |
| order_id | int | required | Order to release |
| account_identity | string | required | The account holding the assignment |
Errors: order_not_taken, account_identity_invalid, service_unavailable.
Cancel
Like /ignore it releases the assignment, returns the slot to the pool and hides the order from this account for ~24 hours. The difference: cancel means «the link is broken» (deleted profile, dead page, private video). Once several different accounts cancel the same order, the platform re-checks the link itself and pulls the order from distribution if it is confirmed dead. Use /cancel only for broken or unavailable links and /ignore for everything else — parameters and errors are identical.
Query parameters
| Parameter | Type | Description | |
|---|---|---|---|
| api_token | string | required | Your API token |
| order_id | int | required | Order to release |
| account_identity | string | required | The account holding the assignment |
Errors: order_not_taken, account_identity_invalid, service_unavailable.
Questions or need a key? Ask in Support · Developer area · API home