Client

The Client class is the main interface for interacting with the Valorant API.

class valopy.client.Client(api_key, redact_header=True)[source]

Bases: object

Client for interacting with the Valorant API.

adapter

The adapter used for making HTTP requests.

Type:

Adapter

async close()[source]

Close the client’s adapter session.

Return type:

None

async get_account_v1(name, tag, force_update=False)[source]

Get Account V1 information.

Parameters:
  • name (str) – The name of the account.

  • tag (str) – The tag of the account.

  • force_update (bool, optional) – Whether to force update the account information, by default False

Returns:

The Account V1 information.

Return type:

AccountV1

async get_account_v2(name, tag, force_update=False)[source]

Get Account V2 information.

Parameters:
  • name (str) – The name of the account.

  • tag (str) – The tag of the account.

  • force_update (bool, optional) – Whether to force update the account information, by default False

Returns:

The Account V2 information.

Return type:

AccountV2

async get_content(locale=None)[source]

Get basic content data like season ids or skins.

Parameters:

locale (Optional[Locale], optional) – The locale for the content data, by default None

Returns:

The content data retrieved from the API.

Return type:

Content

async get_version(region=Region.EU)[source]

Get the current API version for a specific region.

Parameters:

region (Optional[Region], optional) – The region to get the API version for, by default Region.EU

Returns:

The version data retrieved from the API.

Return type:

Version