# Using The API

## Generating The API Key

To get an API key from Riot Games API, you must have a Riot Games account ready. After you log in into your account on [this site](https://developer.riotgames.com/), you can go to your dashboard.

After you go to your dashboard, you can see your Development API Key which expires after 24 hours. If you want a permanent API key, you have to[ Register for a Product.](https://developer.riotgames.com/app-type)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://leagueoflegends-js.gitbook.io/docs/using-the-api.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
