Skip to content

Instantly share code, notes, and snippets.

@Douile
Last active March 3, 2024 02:26
Show Gist options
  • Star 9 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save Douile/67daa69b59255bcdc390025053dbe295 to your computer and use it in GitHub Desktop.
Save Douile/67daa69b59255bcdc390025053dbe295 to your computer and use it in GitHub Desktop.
Getting epic games tokens (fortnite)

A guide on how to packet sniff launcher and fortnite tokens

With images

Step by step

  1. Install and run Fiddler 4
  2. Enable Https capture and decryption
  • Open tools menu image
  • Open options image
  • Goto https tab image
  • Enable Capture HTTPS Connects and Decrypt HTTPS traffic. If you have to install certificates you will have to press yes and give administrator access. image
  1. Launch epic games launcher and login (unless you have autologin)
  2. Retrieve your launcher token  * Find request to /account/api/oauth/token
  • Look in headers for Authorization image
  • Remove basic from the beginning
  • The remaining characters are your launcher token
  1. Pause capture (f12)
  2. Launch fortnite
  3. When the game says connecting/update restart capture (f12)
  4. Retrieve your launcher token  * Find request to /acount/api/oauth/token as seen before (not the one you used for launcher token)
  • Look in headers for Authorization
  • Remove basic from the beginning
  • The remaining characters are your fortnite token
  1. Have fun using your tokens to make api requests

Original guide

pfaw


I am in no way associated with epic games, all servers belong to them. This information provided without warranty and with no guarantee. By using this guide you agree that I am in no way responsible for your actions.

@Draww
Copy link

Draww commented Jun 1, 2018

I get the error when scanning fornite token.
the token doesn't come out.

@c0wtschpotato
Copy link

Hey,

when i only read Browser traffic, like you show it in your pic, i get no fortnite token. When i scan all processes the game wont let me log in. I guess its a theft protection. But this way it seems i cant sniff the fortnite game token.

@fnkap
Copy link

fnkap commented Jun 12, 2018

When I try to login to fortnite with Fiddler open it doesn't let me to.
When I try to enable Fiddler after "Loading" screen, it doesn't log the token when I search /acount/api/oauth/token

@atgrau
Copy link

atgrau commented Jul 20, 2018

I got the token but when i try to GET something like catalog for example, server response is:

I send header as Authorization=[MY FORTNITE TOKEN]

{
"errorCode": "errors.com.epicgames.common.authentication.authentication_failed",
"errorMessage": "Authentication failed for /api/game/v2/world/info",
"messageVars":[
"/api/game/v2/world/info"
],
"numericErrorCode": 1032,
"originatingService": "fortnite",
"intent": "prod-live"
}

Any help?

@Bluenix2
Copy link

EVERYONE, make sure to not have the beta launcher. You can switch between the two in the settings.

@DanyIonut2580
Copy link

has been changed the api

@mkelzeer
Copy link

Can you link the new api? @Danylonut2580

@DanyIonut2580
Copy link

i need new api fortnite

@BlueRed-Dev
Copy link

hi do others people here want new epic/fortnite api here?

@BlueRed-Dev
Copy link

btw this gist is a bit wrong, it not give your token, the token you got from BASIC is the oauth2 client authentification basic token, the real token is from the same request, but in the response, in the JSON key access_token, epicgames does not provide a fix token according to oauth2. So if you want to get a token at anytime, see the form body on the request, where you can maybe see device_auth, refresh_token in the body.

@BlebDaPleb
Copy link

hi do others people here want new epic/fortnite api here?

yeah im looking for it, add me on disc "vxralware." , period included

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment