Task API — for account tools
Your account tool requests tasks per account and reports results when done to earn coin.
| Item | Value |
|---|---|
| Base URL | https://web.like4likes.com/api |
| Authentication | Authorization: Bearer YOUR_ACCESSTOKENContent-Type: application/json |
| Request body | JSON (Content-Type: application/json) |
| Response | JSON; always has ok (true/false); errors carry error, plus reasons when the account needs fixing |
| Networks | |
| Get the AccessToken | Account → AccessToken → Copy |
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.
- Get the AccessToken — Account → AccessToken → Copy, then send it with every request in the header.
- 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.
- Report the result — When done, send back the same job_id with success true/false; approved tasks earn coin.
POST https://web.like4likes.com/api/tasks/get
{
"account": "100012345678901",
"kinds": [
"like",
"follow"
],
"network": "facebook"
}{
"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"
}
]
}{"ok":false,"error":"DENIED"}Get a task
Request tasks for one account: one task per call. Report the result before it expires.
| Parameter | Type | Description |
|---|---|---|
account | string · Required | ID of the account doing the work (send as a string — long IDs sent as numbers lose digits) |
kinds | string[] · Required | Task kinds you want (see the Task kinds table below) |
network | string · Required | Social network of the account: facebook or tiktok |
| Networks | Task kinds | Value in kinds | Name required | Photo |
|---|---|---|---|---|
| Like post | like |
Vietnamese name | profile photo required |
| Parameter | Type | Description |
|---|---|---|
job_id | string | Job code: send it back verbatim when reporting (do not build or edit it) |
reward | number | coin earned when the task is approved |
target | string | Link or target to interact with |
detail | string | object | Extra content (e.g. comment text); empty when not needed |
kind | string | Task kind |
network | string | Social network |
open_url | string | Full link to open; equals target when there is no full link |
object_id | string | Raw object id, always a string (TikTok ids are long numbers, keep them as strings) |
POST https://web.like4likes.com/api/tasks/get
{
"account": "100012345678901",
"kinds": [
"like",
"follow"
],
"network": "facebook"
}{
"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.
| Parameter | Type | Description |
|---|---|---|
job_id | string · Required | The job_id you received when getting the task — send it back verbatim when reporting (as a string) |
success | bool · Required | true when done, false when it could not be done |
dead | bool · Optional | true when the post/target no longer exists (deleted, cannot be opened) — default false |
POST https://web.like4likes.com/api/tasks/report
{
"job_id": "6720f1c3a9e4b2d815c7a3f0",
"success": true,
"dead": false
}{
"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).
curl -H "Authorization: Bearer YOUR_ACCESSTOKEN" https://web.like4likes.com/api/me
{
"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.
| error | HTTP | Wait (s) | Meaning |
|---|---|---|---|
| EMPTY | 200 | 20 | No jobs, or the account does not fit — see reasons |
| WAIT | 200 | 30 | Calling too fast or the account is being checked — wait and retry |
| ACCOUNT_INVALID | 200 | — | Account does not exist or is not configured (not added to your user, wrong ID); not a temporary error — switch account |
| ACCOUNT_LOCKED | 200 | — | Your user is blocked from taking tasks — contact support (user info still works) |
| DENIED | 401 | — | Wrong or missing AccessToken, or the user cannot be used on this site |
| BUSY | 503 | 60 | System busy — try again later |
| BAD_REQUEST | 422 | — | Missing parameter, wrong type, or the report does not match the task you received |
| EXPIRED | 200 | — | 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)
| reasons | Meaning |
|---|---|
avatar_missing | Account has no profile photo |
name_not_vietnamese | Vietnamese jobs need a Vietnamese name |
name_not_thai | Thai jobs need a Thai name |
name_not_english | US jobs need an English name |
following_list_hidden | Make your following list public (TikTok) |
account_under_review | Account under review, try again later |
account_die | Account does not qualify, use another account |
no_suitable_jobs | No suitable jobs for this account |
{
"ok": false,
"error": "EMPTY",
"reasons": [
"avatar_missing",
"name_not_vietnamese"
]
}{
"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.