How to connect the Fortnite API to Google Sheets

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:

  1. Install the Apipheny add-on
  2. Choose a Fortnite API Endpoint URL
  3. Enter the Fortnite API Request into the Apipheny add-on
  4. Run the Fortnite API Request in your Google Sheets

Step 1.) Install and open the Apipheny add-on in Google Sheets

To pull data from the Fortnite API into Google Sheets, first install and open the Apipheny Google Sheets add-on.

Apipheny is a no-code API integrator for Google Sheets that you can use to make unlimited API requests, connect to unlimited APIs, save API requests, schedule API requests, and more. 

1. Install Apipheny by opening the following link on desktop and then clicking the Install button on the page: https://apipheny.io/install

2. After you’ve installed Apipheny, open a Google Sheet and then click on the Add-Ons or Extensions option in the top menu. In the Add-ons menu, you should see Apipheny.

Click Apipheny > Import API to open the Apipheny sidebar in your Google Sheets.

Opening the Apipheny add-on in Google Sheets
Opening the Apipheny add-on in Google Sheets

Step 2.) Choose a Fortnite API Endpoint URL

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:

Fortnite API documentation page
Fortnite API documentation page

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:

BR Map endpoint documentation page
BR Map endpoint documentation page

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.

Step 3.) Enter the Fortnite API Request into the Apipheny add-on

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:

Fortnite API request entered into Apipheny
Fortnite API request entered into Apipheny

Step 4.) Run the Fortnite API Request in your Google Sheets

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:

Fortnite data imported into Google Sheets
Fortnite data imported into Google Sheets

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:

  • Save and schedule your Fortnite API request
  • Make a POST request to the Fortnite API (if available)
  • Use the custom =APIPHENY() function to call the Fortnite API request inside your spreadsheet
  • Create an API request by referencing the value of a cell in the API URL with three curly braces eg. {{{Sheet1!A1}}}

More Tutorials

Related Posts