A lightweight, fast & secure API for fetching Free Fire player profiles
Built with Flask • Powered by AES-CBC Encryption • Backed by Protobuf Serialization
This project exposes a Free Fire Player Info API (OB55-ready) that:
- Retrieves player profiles by UID
- Handles token refresh automatically
- Uses AES-CBC encryption & Protobuf serialization
- Runs asynchronously via Flask for maximum performance
✅ Encrypted Communication — AES-CBC protocol for secure request handling
✅ Protobuf Serialization — Lightweight, binary-efficient data exchange
✅ In-Memory Token Cache — Fast performance with lifecycle management
✅ Async Flask Server — Works with Gunicorn, Uvicorn, or any WSGI server
✅ Auto Refresh — Periodic background token renewal
| Endpoint | Method | Description |
|---|---|---|
/get?uid=<PLAYER_UID>®ion_group=GLOBAL |
GET | Fetch player profile data |
/region?uid=<PLAYER_UID>®ion_group=GLOBAL |
GET | Fetch player region and nickname |
/refresh |
GET | Manually refresh all region tokens |
Example Usage
GET /get?uid=123456789®ion_group=GLOBALResponse
{
"AccountInfo": {
"AccountName": "LegendX",
"AccountLevel": 65,
"AccountRegion": "AS",
"AccountLikes": 2400
},
"BanStatus": {
"isBanned": false,
"reason": null
}
}├── app.py # Flask async app
├── core/
│ ├── encryption.py # AES-CBC encrypt/decrypt
│ ├── protobuf.py # Protobuf serializer/deserializer
│ └── token_cache.py # Token cache + lifecycle
├── static/
│ └── logo.png
├── requirements.txt
└── README.md
git clone https://github.com/TSun-FreeFire/TSun-FF-Info-API.git
cd TSun-FF-Info-APIpip install -r requirements.txtpython app.pyUse a production WSGI server instead of Flask's development server.
Linux/macOS:
gunicorn "wsgi:app" --bind 0.0.0.0:${PORT:-5000}Windows:
waitress-serve --listen=0.0.0.0:5000 wsgi:appContributions are welcome & appreciated! Follow these steps:
- Fork this repository
- Create a new branch (
feature/new-feature) - Commit your changes
- Push to your fork and open a Pull Request
⚠️ Do not commit credentials or tokens. ✅ Add tests where possible.
- Author: @Saeedxdie
- License: MIT (recommended)
- *Made with 💀 by TSun Studio
| Component | Description |
|---|---|
| Python | Core language |
| Flask | Backend framework |
| Protobuf | Data serialization |
| AES-CBC | Encryption algorithm |
| Gunicorn/Uvicorn | Deployment-ready ASGI/WGSI servers |
💌 Discord: Coming soon
🐞 Report Bug: Issues
⭐ Star this repo if you like it — it keeps the project alive!