Fortnite is a free-to-play Battle Royale game with numerous game modes for every type of game player. We can use the Fortnite API to import data from Fortnite into Google Sheets. In this tutorial, we’ll show you how to connect the Fortnite API to Google Sheets in 4 steps:
Apipheny is a free API connector for Google Sheets. You can use Apipheny to connect your Google Sheets to API data sources, easily.
1.) Install Apipheny by opening the following link on desktop and then clicking the Install button in the Google Marketplace: https://apipheny.io/install
2.) After you’ve installed Apipheny, open a Google Sheet and then click on the Extensions dropdown in the menu at the top.
In the dropdown list you should see Apipheny. Click Apipheny then click Import API to open the Apipheny sidebar in your Google Sheet.
Tip: you can open a new Google Sheet by entering this URL in your browser: sheet.new
In this section, we’ll show you how to browse the Fortnite API documentation to find an API URL and endpoint that retrieves the specific information you need from your Fortnite account. If you already know your API URL, or you want to use the same example URL as us, just skip to Step 3.
First, open the Fortnite API documentation page: https://dash.fortnite-api.com/
The main section of the page contains general information about the API and a list of available endpoints:
In this example, we will use the BR Map endpoint, which returns data and images of the BR map and POIs.
https://fortnite-api.com/v1/map
The documentation for this endpoint contains the endpoint’s URL, a short description of its purpose, the accepted path parameters, and the responses it can return:
All API calls to the Fortnite API should be made using https://fortnite-api.com/v1/ base domain.
At this time, all endpoints are available without using an API Key.
Okay, now go back to your Google Sheet and make sure that the Apipheny add-on is open on the “Import” tab. With the Import Tab open, enter these details into the add-on:
Method: At the top of the Apipheny sidebar, select the HTTP method (GET or POST) as required by your Fortnite API endpoint. For this example, we are using the GET method.
API URL: In Step 4, we explained how you can find the Fortnite API endpoint that you need. Now copy the complete API URL into the Apipheny add-on, where it says API URL Path, followed by any GET parameters required for your query.
For this example, we are using the Playlists endpoint, which returns an array of all playlists. The corresponding URL for this endpoint is:
https://fortnite-api.com/v1/playlists
Headers aren’t required. You can leave this section blank in Apipheny.
Here’s what our request looked like when entered into Apipheny:
The last step is to click the Run button at the bottom of the Apipheny add-on and then your Fortnite data will be imported into your Google Sheet, like so:
After making a successful request to the Fortnite API, try querying a different Fortnite API endpoint, or try using one of the more advanced features in the Apipheny add-on, such as:
Schedule requests for automatic updates
Reference cell values in requests
Stack multiple URLs in a single request
Crypto API Tutorials: