Fortnite wins command


#1

I’ve been trying to create a Custom API command that shows my current Fortnite wins (total), but I can’t get it to work.

Can someone help me with this?

Thanks in advance :slight_smile:


#2

Can you provide us with the API you were trying to use?

Thanks.


#3

Here you go: Fortnite Tracker - API

Thanks in advance.


#4

I don’t play Fortnite, so I do not have an account to test with.

You would create an API key. They say that you have to provide the API key in a header, not as a parameter, so a custom script or change to the Java Core would have to be developed. The commands tags for custom commands do not support sending data in a header.

It looks like you go here to create an API key: PUBG Tracker - Create API Key

I assume the key is sent with an Authentication header based on the vague documentation from the link given. I assume the key is either Authentication or Authorization, maybe if you register for an API key they provide more information.


#5

you could do this.

Create a !fortnite command so anyone can check their stats:

(customapi https://2g.be/twitch/Fortnite/command/query=(echo)&bot=phantombot&user=(sender)&channel=(channelname)&default_platform=ps&default_playlist=lifetime)

If you want to create a !wins command you would add the following:

(customapi https://2g.be/twitch/Fortnite/command/query=lifetimewins%20EPICUSERNAME%20ps&bot=phantombot&user=(sender)&channel=(channelname))

just change EPICUSERNAME to your epic username

Example:

wins


#6

Good to see someone providing a bridge service to make life easier!


#7

Thank you man :slight_smile:


#8

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.