Unofficial Free Fire player data SDK for Node.js.
Search players, fetch profiles, stats, equipped items, and send likes β with auto-managed guest authentication.
npm install shan-ffapiconst { FreeFireAPI } = require('shan-ffapi');
const api = new FreeFireAPI(); // auto-picks credentials from built-in pool
const profile = await api.getPlayerProfile('2216160076');
console.log(profile.basicinfo.nickname);| Region alias | Server |
|---|---|
SG, BD, TH, VN, ID, MY, PH, ME |
Singapore |
IND, IN |
India |
RU, CIS |
Russia |
BR, US, NA, SAC |
Brazil / Americas |
Omit region to have the SDK pick credentials from any available pool.
Returns the full raw decoded player profile (basicinfo, petinfo, clanbasicinfo, socialinfo, profileinfo, rankingleaderboardpos, etc.).
Returns structured equipped-item details with item metadata (name, rarity, image URL, β¦).
Returns an array of matching player objects. Keyword must be β₯ 3 characters.
| Param | Options | Default |
|---|---|---|
mode |
'br' | 'cs' |
'br' |
matchType |
'career' | 'ranked' | 'normal' |
'career' |
Authenticate with an explicit credential. Returns the session object.
Register a new guest account. Returns { uid, password, passwordHash, region, nickname }.
const { LikeAPI } = require('shan-ffapi');
const likes = new LikeAPI();
const result = await likes.sendLikes('2216160076', 'BD', 10);
console.log(result.sent, 'likes sent');const { getItemDetails, processPlayerItems } = require('shan-ffapi');- Built-in credential pool covers BD, SG, IND, and RU regions.
- Token sessions are reused across calls and refreshed automatically on 401.
- Current game version: OB54.
MIT