This API is an Arduino wrapper class for the API hosted at https://fortniteapi.com/ which is an unofficial API that scrapes data from the publically available data from the Epic Games API.
This library will make it easy for you to get information from Fortnite, such as player stats, store items, leaderboards and challenges. I leave it up to you what and how you process this data in the most useful or pointless way possible!
All hats got off to @samhoogantink Sam who manages and maintains the API servers and code - this just pulls in that data for use on Arduino.
You will need an Arduino compatible microcontroller that can connect to the internet/your network - ideally an ESP8266, that's it. The API doesn't use (anymore) any authentication method or password, so you don't need to sign up or request a key.
Check that the Fortnite API is up and running, and polling the Fortnite game servers.
https://fortnite-public-api.theapinetwork.com/prod09/status/fortnite_server_status
Your browser should give you something like this:
{
"status": "UP",
"message": "Fortnite is up.",
"version": "7.10",
"time": {
"since": {
"seconds": "1545132605"
},
"duration": {
"seconds": 2338740,
"formated": "27 days, 01 hour, 39 minutes and 00 seconds"
}
}
}
Available in the official Arduino Library Manager - Sketch -> Include Library -> Manage Libraries... and then search for "fortniteapi" and click Install!
Also available via GitHub if you clone it or download as a ZIP. The downloaded ZIP code can be included as a new library into the IDE selecting the menu:
Sketch / include Library / Add .Zip library
You will also have to install the awesome ArduinoJson library written by Benoît Blanchon. Search ArduinoJson on the Arduino Library manager or get it from here. !v5, not v6 BETA!
Include Fortnite API in your project:
#include <FortniteAPI.h>
This is the first sketch to try out. Enter your WiFi credentials, compile and upload. Open the serial monitor and you should start to see player stat information coming back from user "Ninja".
- Hat tip to Brian Lough, aka @witnessmenow for his tireless work on his Arduino API libraries which gave me the base to create my own.
- Sam (@samhoogantink) for his amazing work on the API. https://fortniteapi.com/
- Stephen Ludgate - Initial work - chunkysteveo
See the LICENSE.md file for details
- 1.0.1
- Adding basic funciton to check server status, and checking that the tags are working to pull in update on Arduino Library Manager. More endpoints to follow!
- 1.0.0
- First release, just getting it out there. Bear with me while I fill it out!
- Crikey - lots to do!
Stephen Ludgate:
Email - [email protected]
https://github.com/chunkysteveo/FortniteAPI
- Fork it (https://github.com/chunkysteveo/FortniteAPI/fork)
- Create your feature branch (
git checkout -b feature/fooBar
) - Commit your changes (
git commit -am 'Add some fooBar'
) - Push to the branch (
git push origin feature/fooBar
) - Create a new Pull Request