A lightweight unofficial API for accessing Call of Duty: Mobile player information and claiming the Daily Secret Cache reward by reverse engineering the official CODM webstore APIs.
https://callofdutymobile.vercel.app/
This API provides two endpoints: /user for retrieving user information and /claim for claiming the daily gift.
Endpoint:GET /user/<Nickname> or GET /user/<UID>
Retrieves player profile information based on nickname or UID.
{
"success": true,
"data": {
"type": "SUCCESS",
"result": 0,
"countryId": 840,
"level": 178,
"customLevelImageUrl": "https://cdn1.codashop.com/S/content/webstore/codm/images/icon_playerlevel.png",
"nickname": "ShadowHex",
"picUrl": "https://randomuser.me/api/portraits/men/42.jpg",
"rankClass": 24,
"customReadableMpRank": "Grand Master IV",
"customMpRankImageUrl": "https://cdn1.codashop.com/S/content/webstore/codm/images/icon_pvp_ranking_5_rating_4.png",
"rating": 6421,
"shortId": "XZ9KPL",
"country": "US"
}
}| Field | Description |
|---|---|
type | API response status |
countryId | Country identifier (internal) |
level | Player level |
customLevelImageUrl | Player level icon URL |
nickname | Player nickname |
picUrl | Player avatar URL |
rankClass | Internal MP rank class |
customReadableMpRank | Human-readable MP rank |
customMpRankImageUrl | Rank icon image URL |
rating | Ranked MP rating |
shortId | CODM internal ID |
country | Country code (e.g., "US" for United States) |
Endpoint:GET /claim/<Nickname> or GET /claim/<UID>
Claims the daily secret cache reward for the specified player.
{
"success": true,
"message": "Daily reward claimed successfully",
"userProfile": {
"userId": "8WTJCP",
"country": "IN",
"nickname": "Nyx8080"
}
}- Daily gift may not work in some regions.
- Sometimes an Epic cache is claimed when a Legendary cache is available.
Unofficial API - Use at your own risk. This project is intended for educational and development purposes only and this api is not affiliated with Call of Duty: Mobile. Made with ❤️ by Harry