Overview
UpBot Like API validates each request, protects against duplicate orders, records credit usage and refunds credits when delivery fails.
Use the exact
https://likeapi.upbot.top/api/v1/like.php URL. Do not use the trailing-slash endpoint on this server.Authentication
Keep your token on your server and send it as a Bearer token.
HTTP headers
Authorization: Bearer UPBOTLIKE-YOUR-API-KEY Content-Type: application/json Accept: application/json
Request fields
| FIELD | TYPE | REQUIRED | DESCRIPTION |
|---|---|---|---|
uid | string | YES | 5–20 digit player UID. |
likes | integer | YES | Supported value: 100 or 200. |
idempotency_key | string | YES | Unique ID for this order. |
api_key | string | ALTERNATIVE | Use when Bearer authentication is unavailable. |
Code examples
cURL
Shell
curl -X POST "https://likeapi.upbot.top/api/v1/like.php"
-H "Authorization: Bearer UPBOTLIKE-YOUR-API-KEY"
-H "Content-Type: application/json"
-d '{"uid":"9936903241","likes":100,"idempotency_key":"SHOP-ORDER-1001"}'PHP
PHP 8+
<?php
$data=['uid'=>'9936903241','likes'=>100,'idempotency_key'=>'SHOP-ORDER-1001'];
$ch=curl_init('https://likeapi.upbot.top/api/v1/like.php');
curl_setopt_array($ch,[CURLOPT_POST=>true,CURLOPT_RETURNTRANSFER=>true,CURLOPT_HTTPHEADER=>['Authorization: Bearer UPBOTLIKE-YOUR-API-KEY','Content-Type: application/json'],CURLOPT_POSTFIELDS=>json_encode($data),CURLOPT_TIMEOUT=>60]);
$result=json_decode(curl_exec($ch),true);
curl_close($ch);JavaScript (server-side)
Node.js
const response=await fetch('https://likeapi.upbot.top/api/v1/like.php',{
method:'POST',
headers:{Authorization:'Bearer UPBOTLIKE-YOUR-API-KEY','Content-Type':'application/json'},
body:JSON.stringify({uid:'9936903241',likes:100,idempotency_key:'SHOP-ORDER-1001'})
});
const result=await response.json();Successful response
200 OK
{"status":"success","request_id":"REQ-...","uid":"9936903241","likes":100,"credits_used":1}HTTP status codes
200Success
Request completed.
401Unauthorized
Token is invalid or inactive.
402No credits
Account balance is insufficient.
409Duplicate
Order or daily UID already exists.
422Rejected
Request fields or provider failed.
500Server error
Internal gateway error.