Skip to main content

GET_getContent

await client.GET_getContent(region, locale="")
Get game content (characters, maps, skins, etc.), optionally filtered by locale. Providing a locale results in faster response times.
ParameterTypeDescription
regionstrRegion to query. Valid values: ap, br, esports, eu, kr, latam, na
localestr, optionalLocale for localized names. Input is case-insensitive (e.g. en-US, en-us). Leave empty to return all locales
Returns: ContentDto or dict Raises: InvalidRegion, InvalidLocale, RiotAPIResponseError
Always pass a locale for faster API responses. See the glossary for all valid locales.

Example

import valaw
import asyncio

async def main():
    client = valaw.Client("YOUR_TOKEN", "americas")
    try:
        content = await client.GET_getContent("na", "en-US")
        print(f"Version: {content.version}")
        print(f"Characters: {len(content.characters)}")
        for character in content.characters:
            print(f"  {character.name}")
    finally:
        await client.close()

asyncio.run(main())