Step 1: Connect to the Fortnite API
First thing we need is an API key. This will be passed along with each call we make to any of the API endpoints.
- Login here https://fortnitetracker.com/site-api
- Click on Manage or Create API Keys
- Create an Application
- At the bottom of your applications details page you will see your API Key.
We are going to be using the player stats endpoint to retrieve the stats on a player. The endpoint requires a platform (pc, xb1, psn), and an epic nickname.
Endpoint https://api.fortnitetracker.com/v1/profile/{platform}/{epic-nickname}
Now we will write a function to make it easy to get player stats. Using curl, we will pass along our endpoint and the correct parameters (platform, epic nickname, api key)
// place your api key here define( 'FN_API_KEY', 'YOUR-API-KEY-HERE' );
/**
* Get player stats from the fortnite api
*
* @param String $platform the epicNickname is on (pc, xb1, psn)
* @param String $epicNickname name of the player
*
* @return Array
*/
function getPlayerStats( $platform, $epicNickname ) { // api endpoint with the platform and epicNickname
$apiUrlPlayerStatsEndpoint = 'https://api.fortnitetracker.com/v1/profile/' . $platform . '/' . $epicNickname;
// open curl call
$ch = curl_init();
// specify our api endpoint
curl_setopt( $ch, CURLOPT_URL, $apiUrlPlayerStatsEndpoint );
// pass along our api key as TRN-API-Key in the headers
curl_setopt( $ch, CURLOPT_HTTPHEADER, array( 'TRN-Api-Key:' . FN_API_KEY ) );
// more curl options curl_setopt( $ch, CURLOPT_RETURNTRANSFER, TRUE );
curl_setopt( $ch, CURLOPT_HEADER, FALSE );
curl_setopt( $ch, CURLOPT_SSL_VERIFYPEER, FALSE );
// get response from api and close curl
$response = curl_exec( $ch );
curl_close( $ch );
// return api response as a php array
return json_decode( $response, true );
}
Step 2: Style It Up
Once we have our data. We can go ahead and start giving it a nice Fortnite look and feel. If we want our player stats to feel like Fortnite, we need the correct font face. Here is the font face I am using.
@font-face {
font-family: 'Fortnite';
src: url( 'BurbankBigCondensed-Bold.otf' );
}
Fortnite Player Stats Website
Put everything together and we get our own Fortnite player stats website! I highlighted the main part which is connecting to the API and the custom Fortnite font face. The rest is just simple HTML/CSS and full code is up on GitHub!
Links
That is going to do it for this post! Leave any comments/questions/concerns below and thanks for stopping by the blog!

b52club has everything needed for great sessions with high quality casino streams engaging card games detailed sports analysis and fast lottery updates.
b52 club stands out for its stable platform engaging casino tables fun card games accurate sports data and lottery features that are user friendly.
the experience on Gemwin.blog never disappoints with smooth casino gameplay strategic card games sharp sports betting and reliable lottery features.
Many casual gamers want a simple place to wager money. Personally I choose rikvip because everything works perfectly without lag. The virtual sports betting arena simulates real matches beautifully providing nonstop action throughout the day. Getting help from their dedicated support staff is always a pleasant and highly efficient experience. I cannot recommend this spectacular gambling destination enough to everyone.
The internet is full of mediocre casino sites these days. I absolutely love https://rikvip.at for their massive daily promotional offers. Playing mobile casino games works flawlessly without requiring any additional software downloads on your smartphone. The customer support agents respond immediately and resolve technical issues without any annoying unnecessary delays. It remains my absolute favorite website for daily online entertainment.
This site was… how do you say it? Relevant!! Finally I have found something that helped me. Thanks!
Discover an extensive selection of slot games, mini-games, and live casino tables at https://hitclub9.tech/.
If you are seeking a reliable and highly secure betting environment, look no further than the trusted portal xoso66.
You’ve made some good points there. I looked on the net to find out more about the issue and found most people will go along with your views on this website.
In this grand design of things you secure a B+ just for effort and hard work. Exactly where you misplaced everybody was on your facts. You know, they say, details make or break the argument.. And it could not be much more true at this point. Having said that, allow me inform you what did do the job. Your authoring is actually extremely persuasive and this is most likely why I am making an effort in order to comment. I do not really make it a regular habit of doing that. Second, whilst I can see the jumps in logic you come up with, I am not really convinced of just how you appear to unite the details which produce the final result. For now I will yield to your point but hope in the foreseeable future you actually connect your facts much better.
Excellent article! We are linking to this great post on our site. Keep up the good writing.
Safety and transparency are guaranteed when you place your bets and enjoy live gaming at SUNWIN.
Navigating through various betting options can feel quite overwhelming sometimes. Currently https://taisunwin.com.de is leading the market with its awesome features. The slot games here are extremely fun and offer great graphics with high payout rates. Cashing out my winnings takes just a few minutes thanks to their modern payment gateways. You absolutely must create an account and start winning today.
Experience top-tier community discussions and discover massive winning opportunities today by visiting https://mavietnamforum.com.
playing on sun52 feels premium and secure with high-quality casino streams, engaging card games, sharp sports lines, and fast lottery results.
Maximize your entertainment value and enjoy high-speed loading times by registering an account at https://taisunwin.info/.
Ищите откровенные видео, исследуя надежные платформы в Интернете.
Изучите безопасные сайты для приватного просмотра.
My website … купить валиум онлайн
Видео для взрослых можно транслировать на надежных
платформах для обеспечения конфиденциальности.
Откройте для себя безопасные веб-сайты для качественного просмотра.
Check out my webpage :: LESBIAN PORN VIDEOS