Company
Date Published
Author
Robert Davis
Word count
1700
Language
English
Hacker News points
None

Summary

The Call of Duty API with Python can be used to gather metrics from the game, including score, experience points, kill/death ratio, level, and prestige. The API provides a five-step process for using it: installing Python, obtaining an API key, subscribing to the API, using the API with Python code, and charting the results to look for correlations. The script used in this example pulls data from the first 450 pages of the leaderboard on the "battle" platform, retrieves nearly six thousand records, and charts several metrics against time played. The results show a strong correlation between time played and experience points, but weaker correlations with score and kill/death ratio. The levels generally increase with time played, while the prestige reaches a maximum level of 100. The data suggests that success in the game may not be directly correlated with hours played, as some players have high scores despite playing for thousands of hours, and others have low scores despite playing for shorter periods.