Would love an API so I can add MCC stats to my discord bot
it s cool, make it case-sensitivecitizen kwho wrote:Hey all! So, as a long-time Halo-fan I've been itching to have programmatic access to Halo APIs for a while. 343i ran a beta for the Halo 5 API but it was a little too verbose -- not necessarily the best developer experience (they have a million other things to worry about!)
Not only have I played way too much Halo over the years, I also run a startup in San Francisco called Standard Library. We actually work with companies to put their APIs on our platform and make them easy to use. As a weekend project, I took a shot at the Halo: MCC API -- or at least what I could build from what's publicly available.
The result is here -- a Master Chief Collection API.
There are a few endpoints:
- games.history shows your game history, to a max of 100
- games.latest shows your latest game info
- squad.activity shows recent activity (max 10 games) from a group of users, up to 8 -- it can show you if your friends are currently playing together
- stats shows a specific Service Record by Gamertag
I also built a really simple project that you can deploy in a click that sends SMS to your friends when you're online / playing:
Would love thoughts and feedback! I'm unsure as to the total load the API will be able to handle (may be bottlenecked on authentication), but you shouldn't have to enter any of your personal credentials or anything to use it.