Like4Likes · API docs

Task API — for account tools

Your account tool requests tasks per account and reports results when done to earn coin.

ItemValue
Base URLhttps://web.like4likes.com/api
AuthenticationAuthorization: Bearer YOUR_ACCESSTOKEN
Content-Type: application/json
Request bodyJSON (Content-Type: application/json)
ResponseJSON; always has ok (true/false); errors carry error, plus reasons when the account needs fixing
NetworksFacebook
Get the AccessTokenAccount → AccessToken → Copy
Keep the AccessToken secret: anyone holding it can take tasks and report results for you. Creating a new AccessToken disables the old one. This AccessToken is also your SMM API key — anyone who has it can place orders with your balance; paste it only into tools you trust.

Quick start: 3 steps

Three things your tool does: get the AccessToken, request a task for one account, report the result. Each approved task earns coin.

  1. Get the AccessToken — Account → AccessToken → Copy, then send it with every request in the header.
  2. Get a task — Send the account ID, the task kinds you want and the social network; you get one task with its job_id, target link and reward.
  3. Report the result — When done, send back the same job_id with success true/false; approved tasks earn coin.
Example request
POST https://web.like4likes.com/api/tasks/get
{
    "account": "100012345678901",
    "kinds": [
        "like",
        "follow"
    ],
    "network": "facebook"
}
Example response
{
    "ok": true,
    "tasks": [
        {
            "job_id": "6720f1c3a9e4b2d815c7a3f0",
            "reward": 5,
            "target": "https://www.facebook.com/100012345678902/posts/1",
            "detail": "",
            "kind": "like",
            "network": "facebook",
            "open_url": "https://www.facebook.com/100012345678902/posts/1",
            "object_id": "100012345678902_1"
        }
    ]
}
Report before the task expires; the system sets the deadline per platform. After that the task closes and can no longer be reported. When ok is false: read error (and reasons if present). WAIT: wait 30 seconds, EMPTY 20 seconds, BUSY 60 seconds, then call again.
Wrong or missing AccessToken, or an AccessToken of another site (HTTP 401) — a user blocked from tasks gets ACCOUNT_LOCKED, not this error: {"ok":false,"error":"DENIED"}

Get a task

Request tasks for one account: one task per call. Report the result before it expires.

POST/api/tasks/get
Request
ParameterTypeDescription
accountstring · RequiredID of the account doing the work (send as a string — long IDs sent as numbers lose digits)
kindsstring[] · RequiredTask kinds you want (see the Task kinds table below)
networkstring · RequiredSocial network of the account: facebook or tiktok
Task kinds
NetworksTask kindsValue in kinds Name required Photo
Facebook Like post like Vietnamese name profile photo required
Fields of a task (tasks[])
ParameterTypeDescription
job_idstringJob code: send it back verbatim when reporting (do not build or edit it)
rewardnumbercoin earned when the task is approved
targetstringLink or target to interact with
detailstring | objectExtra content (e.g. comment text); empty when not needed
kindstringTask kind
networkstringSocial network
open_urlstringFull link to open; equals target when there is no full link
object_idstringRaw object id, always a string (TikTok ids are long numbers, keep them as strings)
Example request
POST https://web.like4likes.com/api/tasks/get
{
    "account": "100012345678901",
    "kinds": [
        "like",
        "follow"
    ],
    "network": "facebook"
}
Example response
{
    "ok": true,
    "tasks": [
        {
            "job_id": "6720f1c3a9e4b2d815c7a3f0",
            "reward": 5,
            "target": "https://www.facebook.com/100012345678902/posts/1",
            "detail": "",
            "kind": "like",
            "network": "facebook",
            "open_url": "https://www.facebook.com/100012345678902/posts/1",
            "object_id": "100012345678902_1"
        }
    ]
}
Example of an unsuccessful call
{
    "ok": false,
    "error": "EMPTY",
    "reasons": [
        "avatar_missing",
        "name_not_vietnamese"
    ]
}

Report a result

Report the result of a task you received; send only the job_id of that task.

POST/api/tasks/report
Request
ParameterTypeDescription
job_idstring · RequiredThe job_id you received when getting the task — send it back verbatim when reporting (as a string)
successbool · Requiredtrue when done, false when it could not be done
deadbool · Optionaltrue when the post/target no longer exists (deleted, cannot be opened) — default false
Example request
POST https://web.like4likes.com/api/tasks/report
{
    "job_id": "6720f1c3a9e4b2d815c7a3f0",
    "success": true,
    "dead": false
}
Example response
{
    "ok": true
}
Example of an unsuccessful call
{
    "ok": false,
    "error": "EXPIRED"
}

User info

Check the AccessToken and read your current coin balance (read live from your account, no lag).

GET/api/me
Example request
curl -H "Authorization: Bearer YOUR_ACCESSTOKEN" https://web.like4likes.com/api/me
Example response
{
    "ok": true,
    "account": {
        "username": "nguoilam01",
        "balance": 12850,
        "currency": "COIN"
    }
}

Error codes

Wait seconds: fixed time to wait before calling again. "—" = retrying does not help, switch account or fix the request.

errorHTTPWait (s)Meaning
EMPTY20020No jobs, or the account does not fit — see reasons
WAIT20030Calling too fast or the account is being checked — wait and retry
ACCOUNT_INVALID200—Account does not exist or is not configured (not added to your user, wrong ID); not a temporary error — switch account
ACCOUNT_LOCKED200—Your user is blocked from taking tasks — contact support (user info still works)
DENIED401—Wrong or missing AccessToken, or the user cannot be used on this site
BUSY50360System busy — try again later
BAD_REQUEST422—Missing parameter, wrong type, or the report does not match the task you received
EXPIRED200—Task already closed (reported before or past its deadline) — cannot be reported again

Why no job was given

error says what happened; reasons say why and what to fix on the account (no_suitable_jobs = simply no jobs)

reasonsMeaning
avatar_missingAccount has no profile photo
name_not_vietnameseVietnamese jobs need a Vietnamese name
name_not_thaiThai jobs need a Thai name
name_not_englishUS jobs need an English name
following_list_hiddenMake your following list public (TikTok)
account_under_reviewAccount under review, try again later
account_dieAccount does not qualify, use another account
no_suitable_jobsNo suitable jobs for this account
Example of an unsuccessful call (EMPTY)
{
    "ok": false,
    "error": "EMPTY",
    "reasons": [
        "avatar_missing",
        "name_not_vietnamese"
    ]
}
Example of an unsuccessful call (WAIT)
{
    "ok": false,
    "error": "WAIT",
    "reasons": [
        "account_under_review"
    ]
}

A TikTok account new to the system gets WAIT with account_under_review the first time it is used, while it is being set up; keep calling again after the wait seconds until WAIT stops.