WarZone stats API

Asked Aug 17, 2021·4 replies·Last activity 5 years ago·Open in Discord ↗
Archived from the original community forum
Things may have changed since it was written. Still stuck? Ask the community on Discord.

Hello!

I was able to use the link below to make a command to display my stats. But I have a questions! (and the thread below is closed)

community(dot)nightdev(dot)com/t/warzone-custom-api-command/29069

Is there a way to add just BR stats? I notice it has the same "value" so im not sure how to determine which stat is should be pulling..

If you need more info or if I need to explain better, please let me know!!

4 replies

Hey @Quiet Lion!

You might have missed it, but I explained it here:
/t/warzone-custom-api-command/1534609341339144445#m1534609358422278228

If you want the warzone lifetime overview data of your profile keep using segments[0] , if you want only the battle royale data use segments[1] , and if you want only the DMZ/Plunder data use segments[2] .

If you don't understand how to apply it, let me know.

Ah, must have, thank you!! One more question, can you have multiple segments in one command or would you have to have a command for each game mode?

Yes you can have multiple segments in one command, in our case here you'd do it this way:

$(eval a=$(urlfetch json https://api.tracker.gg/api/v2/warzone/standard/profile/PLATFORM/USERNAME/).data; b=a.segments[0].stats; c=a.segments[1].stats;)

Awesome, thank you so much for the help!!