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

# Summoner

Allows access to the information of a specific summoner. Returns a SummonerDTO

## Methods

### by\_account(regionId, encryptedAccountId, get\_url=False)

Get a summoner SummonerDTO by account ID

**regionId**: LOL server ID. Accepted values: 0-11(inclusive) for 'BR1', 'EUN1', 'EUW1', 'JP1', 'KR', 'LA1', 'LA2', 'NA1', 'OC1', 'RU' & 'TR1'

**encryptedAccountId**: Summoner IDs are only unique per region. Different APIs use different IDs

**get\_url**: When true, don't make an API call and returns the url connection

**return**: JSON object retrieved from riot API call (or link when get\_url is True)

### by\_name(regionId, summonerName, get\_url=False)

Get a summoner SummonerDTO by summoner name.

**regionId**: LOL server ID. Accepted values: 0-11(inclusive) for 'BR1', 'EUN1', 'EUW1', 'JP1', 'KR', 'LA1', 'LA2', 'NA1', 'OC1', 'RU' & 'TR1'

**summonerName**: Name as shown in the League Client (can contain not-alphabetic chars)

**get\_url**: When true, don't make an API call and returns the url connection

**return**: JSON object retrieved from riot API call (or link when get\_url is True)

### by\_puuid(regionId, encryptedPUUID, get\_url=False)

Get a summoner SummonerDTO by PUUID

**regionId**: LOL server ID. Accepted values: 0-11(inclusive) for 'BR1', 'EUN1', 'EUW1', 'JP1', 'KR', 'LA1', 'LA2', 'NA1', 'OC1', 'RU' & 'TR1'

**encryptedPUUID**: Public User ID's are globally unique. Different APIs use different IDs

**get\_url**: When true, don't make an API call and returns the url connection

**return**: JSON object retrieved from riot API call (or link when get\_url is True)

### by\_encrypted\_summoner\_id(regionId, encryptedSummonerId, get\_url=False)

Get a summoner SummonerDTO by summoner ID

**regionId**: LOL server ID. Accepted values: 0-11(inclusive) for 'BR1', 'EUN1', 'EUW1', 'JP1', 'KR', 'LA1', 'LA2', 'NA1', 'OC1', 'RU' & 'TR1'

**encryptedSummonerId**: Summoner IDs are only unique per region. Different APIs use different IDs

**get\_url**: When true, don't make an API call and returns the url connection

**return**: JSON object retrieved from riot API call (or link when get\_url is True)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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://conradofmf.gitbook.io/loliglio/classes/summoner.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.
