Skip to content

Repository files navigation

Call of Duty: Mobile API (Unofficial)

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.

Base URL

https://callofdutymobile.vercel.app/

Endpoints

This API provides two endpoints: /user for retrieving user information and /claim for claiming the daily gift.

1. Get User Data

Endpoint:GET /user/<Nickname> or GET /user/<UID>

Retrieves player profile information based on nickname or UID.

Example Response

{
"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"
}
}

Response Fields

FieldDescription
typeAPI response status
countryIdCountry identifier (internal)
levelPlayer level
customLevelImageUrlPlayer level icon URL
nicknamePlayer nickname
picUrlPlayer avatar URL
rankClassInternal MP rank class
customReadableMpRankHuman-readable MP rank
customMpRankImageUrlRank icon image URL
ratingRanked MP rating
shortIdCODM internal ID
countryCountry code (e.g., "US" for United States)

2. Claim Daily Gift

Endpoint:GET /claim/<Nickname> or GET /claim/<UID>

Claims the daily secret cache reward for the specified player.

Example Response

{
"success": true,
"message": "Daily reward claimed successfully",
"userProfile": {
"userId": "8WTJCP",
"country": "IN",
"nickname": "Nyx8080"
}
}

Known Issues

  • 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

About

Unoffical Call Of Duty Mobile API

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Contributors

Languages