To get map information, this API query give map information for a title:
URI
https://my.callofduty.com/api/papi-client/ce/v1/title/${title}/platform/xbl/gameType/mp/communityMapData/availability
Params
title: Game title, ex: bo4Return schema
{
"status": "success|error",
"data": {
"mapName": [
"gameModeName"
]
}
}
mapName: id of the mapgameModeName: available mode for this mapExample
https://my.callofduty.com/api/papi-client/ce/v1/title/bo4/platform/xbl/gameType/mp/communityMapData/availability
You can get map data
URI
https://www.callofduty.com/api/papi-client/ce/v1/title/${title}/platform/xbl/gameType/mp/map/${map}/mode/${gamemode}/communityMapData
Params
title: Game title, ex: bo4map: Map idgamemode: Gamemode id (not the mode, the gamemode, example: kothReturn schema
{
"status": "success|error",
"data": {
"map": {
"mapId": "mapName",
"imageUrl": "mapImageUrl",
"left": mapImageLocationLeft,
"right": mapImageLocationRight,
"top": mapImageLocationTop,
"bottom": mapImageLocationBottom,
"rotation": null
},
"mode": "gamemode",
"matchesCount": matchesCount,
"scale": mapImageScale",
"yShift": mapImageYShift",
"xShift": mapImageXShift",
"histogramWidth": histogramWidth,
"histogramHeight": histogramHeight,
"date": lastDataTimestamp,
"simpleHistogramLayers": { "kills": [[killMatrix]] }
}
}
mapName: map id, same as the URI paramgamemode: game mode, same as the URI paramlastDataTimestamp: date of the returned datamatchesCount: count of matches on this map before lastDataTimestampmapImageUrl: url of the minimap imagemapImageScale: scale of the minimap imagemapImageYShift: scaled y shift of the imagemapImageXShift: scaled x shift of the imagemapImageLocationLeft: scaled location of the left of the imagemapImageLocationRight: scaled location of the right of the imagemapImageLocationTop: scaled location of the top of the imagemapImageLocationBottom: scaled location of the bottom of the imagekillMatrix: matrix of kills, probably (i,j) = pixel (x,y)histogramWidth: ???histogramHeight: ???Example
https://www.callofduty.com/api/papi-client/ce/v1/title/bo4/platform/xbl/gameType/mp/map/mp_urban_alt/mode/tdm/communityMapData
URI
https://www.callofduty.com/cdn/app/base-maps/${title}/${map}.jpg
Params
title: Game title, ex: bo4map: Map idExample
https://www.callofduty.com/cdn/app/base-maps/bo4/mp_urban_alt.jpg

URI
https://www.callofduty.com/cdn/app/maps/${title}/${imageURL}
Params
title: Game title, ex: bo4imageURL: Minimap image url, mapImageUrl in Get map dataExample
https://www.callofduty.com/cdn/app/maps/bo4/hud_minimap_mp_urban-inverted.jpg

For some reasons, some maps have the -inverted suffix
https://www.callofduty.com/cdn/app/maps/bo4/hud_minimap_mp_urban.jpg

See profile stats to get map stats per profile.