Overview
The GetInfo endpoint checks a UID using the requested region and returns the upstream player lookup result as JSON.
Authentication
Send your UpBot token in the Authorization header. Bearer authentication is recommended.
Authorization: Bearer UPBOT_YOUR_TOKEN
A token query parameter is accepted for compatibility, but headers are safer because URLs may be stored in logs.
Query parameters
| PARAMETER | TYPE | REQUIRED | DESCRIPTION |
|---|---|---|---|
uid | string | YES | Free Fire Player ID to verify. |
region | string | YES | Provider-supported region code, such as BD. |
Request URL
https://api.upbot.top/getinfo?uid=2444465764®ion=BD
Code examples
cURL
curl "https://api.upbot.top/getinfo?uid=2444465764®ion=BD" -H "Authorization: Bearer UPBOT_YOUR_TOKEN"
PHP
<?php $url='https://api.upbot.top/getinfo?'.http_build_query(['uid'=>'2444465764','region'=>'BD']); $ch=curl_init($url); curl_setopt_array($ch,[CURLOPT_RETURNTRANSFER=>true,CURLOPT_HTTPHEADER=>['Authorization: Bearer UPBOT_YOUR_TOKEN'],CURLOPT_TIMEOUT=>15]); $result=json_decode(curl_exec($ch),true); curl_close($ch);
JavaScript (server-side)
const url=new URL('https://api.upbot.top/getinfo');
url.search=new URLSearchParams({uid:'2444465764',region:'BD'});
const response=await fetch(url,{headers:{Authorization:'Bearer UPBOT_YOUR_TOKEN'}});
const result=await response.json();Responses
Player found
{"status":"success","uid":"2444465764","region":"BD","nickname":"Player Name"}The upstream provider controls the final field names and may include additional player information. Check status, then read the available nickname or player-name field.
Validation error
{"status":"failed","message":"uid and region are required."}Authentication error
{"status":"failed","message":"Invalid API token"}HTTP status codes
The provider returned a player lookup result.
Token is missing or invalid.
Token is disabled or expired.
This endpoint accepts GET only.
uid or region is missing.
An unexpected internal error occurred.
