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:
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:
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.
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: https://developer.riotgames.com/apis
The menu on the left contains a list of APIs, each with its own endpoints:
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:
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:
All API calls to Riot should be made to the https://platform_id.api.riotgames.com base domain, where platform_id is the Region Platform that you’re making the request on.
Riot API root/base domain: https://platform_id.api.riotgames.com
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: https://developer.riotgames.com/docs/tft
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:
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.
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:
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.
Crypto API Tutorials:
Need website help? Hire an SEO Consultant.