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!!
Emily
August 17, 2021, 9:27pm
2
Hey @xMrMcGuirex !
You might have missed it, but I explained it here:
The API blocked requests from Nightbot , the command is dead.
Hey @Rapo84 !
Sure!
Go there and look for your profile, make sure you selected the right platform.
Once you found it, your URL will look like this:
https://cod.tracker.gg/warzone/profile/PLATFORM/USERNAME/overview
In the command replace the PLATFORM and USERNAME value by yours according to the link above:
$(eval s=$(urlfetch json https://api.tracker.gg/api/v2/warzone/standard/profile/PLATFORM/USERNAME/).data.s…
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.
2 Likes
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?
Emily
August 18, 2021, 7:52pm
5
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;)
2 Likes
Awesome, thank you so much for the help!!
2 Likes
system
Closed
September 1, 2021, 8:04pm
7
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.