> For the complete documentation index, see [llms.txt](https://leagueoflegends-js.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://leagueoflegends-js.gitbook.io/docs/master.md).

# Introduction

## Installation

You can install leagueoflegends-js by using **npm:**

```bash
npm i leagueoflegends-js
```

## Examples

Fetching a summoner using name:

```javascript
const LoL = require("leagueoflegends-js");
const api = new LoL.API({
apikey: "YoUr-aPi-kEy",
reigon: "euw1",
});

api.fetchSummoner("name").then(summoner => {

console.log(summoner);// { Object }

})
```
