Fortnite Battle Royale stats in your chat

Asked Dec 7, 2017·71 replies·Last activity 2 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.

Data provided by https://fortnitetracker.com <3

Usage
!fortnite action username platform

Examples
!fortnite kd xgerhard pc
xgerhard: xgerhard's K/d: 0.95 (Top 63%) [Solo].

!fortnite time xgerhard pc
xgerhard: xgerhard's Time Played: 1 hours and 53 minutes (1.88 hours) (Top 81%) [Solo].

!fortnite stats xgerhard pc
xgerhard: xgerhard's stats summary: [Wins: 0, Matches: 20, K/d: 0.95, Kills: 19, Kills Per Match: 0.95] [Solo].

!fortnite duo xgerhard pc
xgerhard: xgerhard's stats summary: [Wins: 3, Matches: 53, K/d: 2.14, Kills: 107, Kills Per Match: 2.02] [Duo].

<img src='>

Platforms
Available regions: pc, gamepad (Default = PC)

Playlists
Available playlists: Solo, Duo, Trio, Squad, Lifetime (Default = Solo. Lifetime = All playlists combined)

Get playlist stats by adding the playlist name before the action, for example:
!fortnite duokd xgerhard pc (K/D ration in duo playlist)
!fortnite squadwins xgerhard pc (Wins in the squad playlist)
!fortnite duotime xgerhard pc (Time played in duo playlist)
!fortnite lifetimewins xgerhard pc (Total wins in all playlist combined)

Tip!
Use the setplayer command to link your Fortnite account, for example:
!fortnite setplayer xgerhard pc
Now when I use !fortnite kd it will take my stats without entering the username.

Commandlist:

  • setplayer (Link your Fortnite username to your chat account)
  • help (Link to this page)

Summary (Summary includes: score, kd, kills, matches, wins, kpg)

  • stats (Summary of current playlist)
  • solo (Summary of solo playlist)
  • duo (Summary of duo playlist)
  • trio (Summary of trio playlist)
  • squad (Summary of squad playlist)

Stats

  • score (Fortnite score)
  • kd (K/d ratio)
  • kills (Total kills)
  • wins (Total wins)

71 replies

  • matches (Matches played)
  • kpm (Kills per minute)
  • kpg (Kills per game)
  • top3 (Top 3 finishes)
  • top5 (Top 5 finishes)
  • top6 (Top 6 finishes)
  • top10 (Top 10 finishes)
  • top12 (Top 12 finishes)
  • top25 (Top 25 finishes)

For the full list check here: https://2g.be/twitch/Fortnite/#command-list

Installation is simple
Copy - Paste the following code in your chat:
!commands add -cd=5 -ul=everyone !fortnite $(urlfetch https://2g.be/twitch/Fortnite/command/query=$(querystring))

Optional parameters:

  • default_platform - Set a default paltform for your users (pc, gamepad), when no platform is specified this platform will be used.

For example &default_platform=gamepad, when a user types !fortnite solo xgerhard the command will now check the solo gamepad stats.
You can still force the command to check a different platform, by typing for example !fortnite solo xgerhard pc to check the solo pcstats.

  • default_playlist - Set a default playlist for your users (solo, duo, trio, squad), when no playlist is specified this playlist will be used.

For example &default_playlist=squad, when a user types !fortnite stats xgerhard the command will now check the squad stats.
You can still force the command to check a different playlist, by typing for example !fortnite duostats xgerhard to check the duo playlist stats.

Need help? Post here, or contact @member on twitter.

ba93c75ba525f64b0746682814ddd678.png

How do i make it so that each person in chat doesn't have to set the player ?

Heya! Nobody has to use the 'setplayer' command. It's just an feature to remember your username.
For example the following command will work just fine without setplayer.
!fortnite duokd xgerhard pc

But if you don't want to type your username everytime you use the command you can use setplayer to remember your username.
!fortnite setplayer xgerhard pc
From now on you can just use:
!fortnite duokd
And it will now take the stats of xgerhard pc.

what would the command sequence look like if i just wanted a command that said !fortnitestats and it would just bring up the stats for one person. (the streamer)

Hello, first you would need to choose which playlist you want to show, or have just 3 commands for each, for example:

Solo:
!commands add !solostats $(urlfetch https://2g.be/twitch/Fortnite/command/query=solo xgerhard pc)

Duo:
!commands add !duostats $(urlfetch https://2g.be/twitch/Fortnite/command/query=duo username platform)

Squad:
!commands add !squadstats $(urlfetch https://2g.be/twitch/Fortnite/command/query=squad username platform)

Just replace the username and platform with the player you want.

An other option would be to make one command, with the playlist as parameter:
!commands add !fortnitestats $(urlfetch https://2g.be/twitch/Fortnite/command/query=$(querystring) xgerhard pc)

Again replace the username and platform, the usage will be !fortnitestats and the playlist you want the stats from:
!fortnitestats solo
!fortnitestats duo
!fortnitestats squad

how is possible make this? every win he does on fortnite, the bot update the command automatically

Screenshot_2.png

You sure that's updated automatic, the streamer must be using a different custom API then. I'm working on some daily tracking commands, but that's not live yet. I'll post it here whenever its ready.

ye sorry i check better and is a simply command updated everytime by the mods... really sorry

Is it possible to only get stats from the current season?

Yes, add a C in front of the command for current season stats. For example !fortnite csolo xgerhard

How mush would i have to pay for you to make it so i cam just copy and paste everything

i have nodiea how to do this stuff

Would it be possible to make an option to just lists all 3. So for example: !Fortnite [Name] would / could just say the solo, duo, and squad stats in chat. That's what people in my chat would want anyways.

Thanks for the suggestion, added to my to-do list!

No problemo. Shoot me a reply if you make it. Trust me, I like to look at my overall stats and not a specific gamemode. Just atm, the command in general is just nice to have so keep it up.

Swift Bison said:
I like to look at my overall stats and not a specific gamemode

Ah yeah, I need to update my info there is a way to get overall stats use overall or lifetime
!fortnite lifetime will give you a summary for your overall stats, but you can also use for example
!fortnite lifetimewins to get your total wins.

However, I do want to add a way to get the summary of all the playlists separately in one command, I figured that's what you meant right?

Hi.

Good job making this command. Would it be possible to make an overall stats from current season? With the various stats that are used in overall. I tried to use coverall, but it seems to get the exact same information as overall.

I've been meaning to do that, but now finally added it, you can use !fortnite season username platform.
This will return a summary for the current season.

!fortnite coverall / clifetime should also work, but thought season might be a bit more user friendly!

You can also get single stat values by using for example:
!fortnite seasonkd

Thanks, you took care of it so fast that I thought I had made a mistake when I tried it a couple of minutes ago. I was actually on my way to apologize for making a comment on it when I saw you had replied.

It is nice to have the c alternative aswell, It goes faster and takes less space. Its true that season is more friendly, but when people use this command they have to be taught how to use it anyway, it would be the same if they are taught to use c or season

Hi, could someone please assist with this. I am trying to get it so !solo ONLY shows wins like !wins does.
!fortnite solowins does have less info but still to much.

The website linked says "noranks - Add &noranks add the end of the url to stop the command from displaying ranks. For example K/D commands will show K/d: 2.17 [Solo] instead of K/d: 2.17 (Top 10%, #351,886) [Solo]." however it doesn't appear to be working for me, I put it to early and it can't find player, I put it to late and it acts like it isnt there.

I'm probs being dumb and putting it wrong or in wrong place but I don't see what I'm doing wrong, assistance would be very much apprechiated 😄

Screenshot_20180603-211536.jpg

!commands add !solo -cd=5 -ul=everyone $(urlfetch https://2g.be/twitch/Fortnite/command/query=solowins USERNAME PLATFORM&noranks)

Just replace the username and platform with yours the &noranks at the end will hide the part top x% part.

Thank you so much!

I'm not gonna lie, I thought thats what I had 😕 hahah but I deleted my old one and copy pasted yours, made edits and works a treat! Your the best ❤

I just checked my duo before I deleted it, its the same but the generator made it as "%20USERNAME%20%20PLATFORM" and adding it to the end of that didn't work. (that's only thing I can think of anyway)

Now I know in future haha 🙂

Hey! This is awesome work and what I’ve been looking for!
I have a question though. Is it possible to just get !wins from only the current session being played?

Thank you!!

B8454C66-3DDA-457C-AE38-658A97CE3077.png

Heya! I dont have an automatic way to detect the current gaming session, however you could set this up with the tracker profiles: https://2g.be/twitch/Fortnite/tracker
You can select an automatic reset daily/weekly/monthly, but you can also turn off the automatic reset and just reset your stats with a reset command after your gaming session (select 'Reset stats when' - 'Never').
Let me know if you need help setting it up.

Thanks!! Could you help set it up? ^^’’ sorry kind of a noob with programming.

@Bright Monkey In case you missed it, I DMed you, since the command contains personal tokens.

Hello, Is it possible to also exclude the "jonaman5678's Wins:" from the command response "jonaman5678's Wins: 24 [Solo]"? So that only 24[Solo] is left when i type this command
"!command add !solo ${customapi.https://2g.be/twitch/Fortnite/command/query=solowins%20jonaman5678%20pc&bot=streamelements&user=$(queryencode)&channel=$(queryencode ${channel}) PLATFORM&noranks}"

End the url with &notext, that's the shortest reponse, it will remove the username, but will still have the Wins: part.

Thankyou very much!
But is there an option to make it so like i can have a command that looks like this "Wins: 24 solo, 56 duo , 100 squad"?

Not yet, for now you can request them individually, but I'll add an option to get all playlists at once soon.

Allright thanks alot for helping me out!

Not sure if you did this already, but I'm trying to use this command and only display the wins from this specific season. Does that just pull from overall or just season? Also, I can't seem to get it to work but everything else has been working.

!commands add !solo -cd=5 -ul=everyone $(urlfetch https://2g.be/twitch/Fortnite/command/query=solowins USERNAME PLATFORM&noranks)

Heya, solowins gives you total wins, all seasons. Start the command with a c to get the current season stats, so in this case: csolowins.

Is this available for mixer through obs or chatbot?

If there is a mixer chatbot that allows for Custom APIs then this should work just fine.

I'm trying to combine my PS4 account stats with my PC account stats, is this possible? Even if it only includes my win count.

Unfortunately this is not possible at the moment.

Hi, very anxious to try this out in a channel I mod for, but have a couple questions:

1) I will use setplayer to default the channel's streamer. I want the !fortnite command to be available to use by everyone, but I don't want them to be able to change the setplayer setting. How to lock down setplayer usage without locking down the overall !fortnite usage?

2) Any way to use the !fortnite command to show the streamer's wins for that calendar day? It should be a total of Solo, Duo, and Squad wins, but should automatically reset back to 0 at midnight. Also don't want this reset to impact other !fortnite query results.

Thanks!

Hiya,
1. Setplayer is a feature to link a Twitch account to a Fortnite username. So you can't set it for a whole channel, setplayer only effects when you yourself use the command. When !fortnite is active everybody can use setplayer to link their account.
If you want to only display the streamers stats, you can add a separate command that will only show the streamers stats, for example:
!commands add -cd=5 -ul=everyone !stats $(urlfetch https://2g.be/twitch/Fortnite/command/query=stats streamersname pc)

2. Have a look at https://2g.be/twitch/Fortnite/tracker it's possible however it will show the wins for each playlist separately. It wont effect the !fortnite command, you can set a custom command name for the daily stats.

Hiya, your commands looks correct. When the fortnitetracker API is returning an unknown error this is the default message, I'll change this to something more clear.

Why is it returning an error? I've contacted the fortnitetracker guys and we're looking into it!

Not to sure on the process, seems like the API is having trouble retrieving information from the fortnite tracker website.

Yup still might be some issues, there has not been an update yet.

xd, looks good, it is a good game

Getting a different error message now.

Something went wrong getting data from the Fortnitetracker.com API please try again later.

Yup, I changed that error message, it describes whats going on. My script is not receiving the data that it needs, aka no stats. So I'm hoping the Fortnitetracker guys can fix it, however they are depening on the Epic Games data resource and their rate limits.

Is there a way to link info to Yunite or some website to verify people's fortnite accounts on youtube

Not exactly sure what you mean, but there is no connection with Yunite of Youtube, it only grabs the data from Fortnitetracker website.

Yes! Just follow the instructions in the start post.

Hi there,

Do you also have this for call of duty, warzone? to show my KD in a command?

Hiya, I currently dont have this for Call of duty no.

Hiya, if you have questions, just ask them here.

I just want to settup a command with nightbot who shows my kd stats on call of duty (up to date) so I was wondering someone could help me 🙂

slight_smile.png

Hey so I don't know if this is possible but is there a way to do daily stats? or even like stats during a certain time for streaming?

HI Xgergard every time I try putting my stats for playstation it either shows an error of profile not found but if I search on fortnite tracker it appears or it shows the pc stats which I don't want.

can you help me to only show my playstation stats without any error message as I put the correct profile

Hiya, what's your username and platform so I can test it myself?
If you can't find yourself on Fortnitetracker, then I'm not sure if it will work, since that's where I get the stats from.

Hey there! Is it posible to get a Power Rank from a specific player?

I'm not really up to date with the current Fortnite ranking system, so I dont know what this is, so to answer your question this info is not available as command at the moment.

Hi @Gerhard! I just want to start off by saying that you have been a HUGE help to the community I mod for and we are very grateful. Recently, we have found an issue where the tracker had stopped counting wins. We believe it is because the fortnite tracker website has added a "trios" playlist. So now, instead of the tracker counting "trios" as "squads", there is, "solos, duos, trios and squads". Is there anything I can do on my end to add the trios playlist to the "tracker" command? Thank you again for any information.

Hiya, thanks for letting me know, I'm not really up to date with the Fortnite changes. There's nothing you can do on your end, but I will have a look at my side to add trios as a separate playlist, so you can setup a tracker for trios.

Thank you so much for your help @Gerhard we really appreciate it!

@Gentle Lobster Hey there! I did find the new playlist, and added it to the default commands to check (!fortnite triowins) for example.
I also added it to the Tracker page as option to track, so you can edit your current tracker and select the trios playlist to be included in one command. Or create a separate command for the trios tracker.
I don't really have data to test this, so if you do run into any issues, let me know :)

Thank you very much @Gerhard! I will let you know if we run into any issues. Thank you again 🙂

Hi,
I've read all your text many times, i've set it on a twitch channel, but when I type !fortnite, it says me that the account doesn't exist. Of course, it's a PC acc and I didn't change the command, it's still on "pc" default platform... I tested it with many accounts that exist, but it keep saying the same thing... Could you help me please ?

Didn't find your answer? The community is on Discord.

Ask on Discord