Riot Games is a video game developer and publisher based in Los Angeles.

In this tutorial, you will learn how to connect the Riot Games API to Google Sheets in 5 steps:

  1. Install the Apipheny add-on
  2. Obtain your Riot API key
  3. Choose an endpoint
  4. Enter your API request into Apipheny
  5. Run your Riot API request to get the results

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

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:

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.

open apipheny

Tip: you can open a new Google Sheet by entering this URL in your browser:

Step 2.) Obtain your Riot API Key

Sign in to your Riot Developer Account and in the Dashboard section, you should see your Development API Key:

Riot Games Development API key
Riot Games Development API key

The key is initially obscured, but by clicking the Show button you can see the key.

Then just copy and paste the key somewhere safe, because you’ll need it in the following steps.

NOTE: The Riot API key expires after 24 hours. If it’s been more than 24 hours since you last got your key, you must log in again and generate a new key by clicking the REGENERATE API KEY button.

Step 3.) Get your Riot Endpoint URL

In this section, we’ll show you how to browse the Riot API documentation to find an API URL that retrieves the information you need. If you already know your API URL, or you want to use the same example URL as us, just skip to Step 4.

First, open the Riot API documentation page:

The menu on the left contains a list of APIs, each with its own endpoints:

Riot Games API documentation
Riot Games API documentation

Clicking on an API displays a list of associated endpoints. For instance, the Champion-Mastery-V4 API displays a list of 3 endpoints.

Clicking each endpoint expands a section listing the endpoint’s specific documentation.

An example endpoint is Scores by Summoner:{encryptedSummonerId}

The documentation for this endpoint contains the HTTP method used (GET), the link you should append to the root API URL for querying this endpoint, a short description of the endpoint’s purpose, the endpoint’s response classes, possible errors and available parameters:

Scores by Summoner API endpoint documentation
Scores by Summoner API endpoint documentation

All API calls to Riot should be made to the base domain, where platform_id is the Region Platform that you’re making the request on.

Riot API root/base domain:

For example, users in North America will use NA1, those in Western Europe will use EUW1. See the Regional Endpoints page for more platform IDs:

Step 4.) Enter the Riot API URL Into Apipheny

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) required by your API endpoint. For this example, we are using the GET method.

API URL: In Step 3, we explained how you can find the Riot REST API endpoint that you need. Now copy your 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 following endpoint for retrieving the user’s information:

In this URL, your_username is the name of your account and YOUR-API-KEY is the key you generated in Step 2. Don’t forget the platform ID too.

Headers are not required for this API request, so you can leave that section blank in Apipheny.

Riot API request in Apipheny
Riot API request in Apipheny

Step 5.) Run the Riot API Request

Lastly, click the Run button at the bottom of the Apipheny add-on and then wait for the Riot Games data to be imported into your Google Sheet:

Riot Games API data in Google Sheets
Riot Games API data in Google Sheets

After making a successful request to the Riot API, try querying a different endpoint, or try using one of the more advanced features in the Apipheny add-on.

Popular API Tutorials

API Knowledge

What is an API?

What is an API URL?

What are parameters?

What is an endpoint?

What is an API key/token?

What is basic authentication?

What are headers?

What is a GET request?

What is a POST request?

Import JSON to Google Sheets

SEO by SearchCyrus