GruntAPI is a cross-platform CLI that allows anyone who plays Halo Infinite to query their Halo Infinite data, such as match stats, inventory, battle pass progress, and more.
📕 Learn More - Official Documentation
Before you can query the data, you need to log in:
gruntapi login
You will be prompted to enter your Microsoft account credentials. Once you authenticate, you can run a range of commands to test that you're logged into the right account, such as:
gruntapi servicerecord
This should return the current player's service record. If the call is successful, you are authenticated.
For a full list of commands and capabilities of GruntAPI, refer to the official documentation.
gruntapi servicerecord
To get another player's service record:
gruntapi servicerecord --player-id GAMERTAG_OR_XUID
In the example above, --player-id
can be either a player gamertag or their Xbox User ID (XUID) in the format xuid(PLAYER_XUID)
.
gruntapi matchhistory
gruntapi match --match-id MATCH_ID
gruntapi inventory
gruntapi seasoncalendar
gruntapi store --type generic
gruntapi store --type hcs
gruntapi store --type exchange
GruntAPI started as a .NET-based wrapper for Halo Infinite. Since then, the library was made private, however the name got transferred to this project, providing Halo Infinite enthusiasts an avenue to query their game data from their favorite terminal application.