📝 README — API FREE FIRE (LEGI STUDIO)
API này cung cấp toàn bộ các endpoint cho dịch vụ giải đấu Free Fire (bảng xếp hạng, lineup, profile,...). Dưới đây là phần tóm tắt và chi tiết giống nội dung README.md.
📌 Tổng quan endpoints
- /api-bot/team
POST /api-legi/team/add— Thêm / cập nhật teamGET /api-legi/team/list— Lấy danh sách teamGET /api-legi/team/info— Lấy info 1 teamDELETE|POST /api-legi/team/remove— Xoá team
- /api-bot/profile
GET /api-legi/profile/layoutsPOST /api-legi/profile
- /api/lineup
GET /api-legi/lineup/layoutsPOST /api-legi/lineup
- /api/tinhdiem
GET /api-legi/tinhdiem— Tính điểm & render bảng điểm
/api-legi/team — CHI TIẾT
POST /api-legi/team/add
Auth: header x-bot-key Method: POST Content-Type: multipart/form-data
Fields
uid— sender UID (bắt buộc)teamName— tên team (bắt buộc)accountIDs— JSON array | newline | comma-separatedmode—original|removebg|border
Ví dụ curl
curl -v -X POST "https://legistudio.site/api-legi/team/add" \
-H "x-bot-key: API_KEY" \
-F "uid=UID" \
-F "teamName=TEAM_NAME" \
-F 'accountIDs=["123456789012345","987654321098765"]' \
-F "mode=removebg" \
-F "image=@/path/to/logo.png"
Lưu ý: Mỗi team tối đa 8 IDs. Mỗi sender_uid tối đa 24 teams.
/api-legi/profile
GET layouts: /api-legi/profile/layouts?apikey=API_KEY
POST render profile — header x-bot-key, multipart/form-data. Hỗ trợ trả base64 JSON hoặc stream PNG.
/api-legi/lineup
GET layouts: /api-legi/lineup/layouts?apikey=API_KEY
POST render lineup — header x-bot-key, multipart/form-data.
/api-legi/tinhdiem
Method: GET — Auth: apikey query. Tham số bắt buộc: id, batdau, ketthuc, bang, ct, ct2, logo. Hỗ trợ stream=true.
Ví dụ nhanh
curl -X POST "https://legistudio.site/api-legi/team/add" \
-H "x-bot-key: API_KEY" \
-F "uid=UID123" \
-F "teamName=ALPHA" \
-F 'accountIDs=123456789012345,987654321098765' \
-F "image=@./logo.png"
Những điều cần biết
- Một số endpoint trả ảnh trực tiếp (
Content-Type: image/png) — client cần lưu file hoặc xử lý binary stream. - Khi dùng
TeamName=true+LogoTeam=truevới/api-legi/tinhdiem, phải kèmdata=UID. - Tên layout phân biệt
default/vip/dq.