valo_api_official package

Subpackages

Submodules

valo_api_official.config module

Classes:

Config()

class Config

Bases: object

Attributes:

NEAREST_CLUSTER

NEAREST_CLUSTER_SHORT

USER_AGENT

ALL_REGIONS

ALL_LOCALS

NEAREST_CLUSTER: str = 'europe'
NEAREST_CLUSTER_SHORT: str = 'eu'
USER_AGENT: str = 'Python Valorant API Wrapper'
ALL_REGIONS: List[str] = ['eu', 'na', 'ap', 'kr', 'latam', 'br']
ALL_LOCALS: List[str] = ['ar-AE', 'de-DE', 'en-US', 'es-ES', 'es-MX', 'fr-FR', 'id-ID', 'it-IT', 'ja-JP', 'ko-KR', 'pl-PL', 'pt-BR', 'ru-RU', 'th-TH', 'tr-TR', 'vi-VN', 'zh-CN', 'zh-TW']

valo_api_official.endpoints_config module

Classes:

EndpointsConfig()

class EndpointsConfig

Bases: object

Attributes:

ACCOUNT_BY_PUUID

ACCOUNT_BY_NAME

ACTIVE_SHARDS

CONTENT

STATUS

LEADERBOARD

MATCH_DETAILS

MATCH_HISTORY

RECENT_MATCHES

RAW

STORE_FEATURED

STORE_OFFERS

VERSION_INFO

WEBSITE

MMR_DETAILS_BY_PUUID

MMR_DETAILS_BY_NAME

MMR_HISTORY_BY_PUUID

MMR_HISTORY_BY_NAME

CROSSHAIR

ACCOUNT_BY_PUUID = 'https://europe.api.riotgames.com/riot/account/{version}/accounts/by-puuid/{puuid}'
ACCOUNT_BY_NAME = 'https://europe.api.riotgames.com/riot/account/{version}/accounts/by-riot-id/{name}/{tag}'
ACTIVE_SHARDS = 'https://europe.api.riotgames.com/riot/account/{version}/active-shards/by-game/{game}/by-puuid/{puuid}'
CONTENT = 'https://eu.api.riotgames.com/val/content/{version}/contents'
STATUS = 'https://{region}.api.riotgames.com/val/status/{version}/platform-data'
LEADERBOARD = 'https://{region}.api.riotgames.com/val/ranked/{version}/leaderboards/by-act/{act_id}'
MATCH_DETAILS = 'https://{region}.api.riotgames.com/val/match/{version}/matches/{match_id}'
MATCH_HISTORY = 'https://{region}.api.riotgames.com/val/match/{version}/matchlists/by-puuid/{puuid}'
RECENT_MATCHES = 'https://{region}.api.riotgames.com/val/match/{version}/recent-matches/by-queue/{queue}'
RAW = '/valorant/{version}/raw'
STORE_OFFERS = '/valorant/{version}/store-offers'
VERSION_INFO = '/valorant/{version}/version/{region}'
WEBSITE = '/valorant/{version}/website/{countrycode}'
MMR_DETAILS_BY_PUUID = '/valorant/{version}/by-puuid/mmr/{region}/{puuid}'
MMR_DETAILS_BY_NAME = '/valorant/{version}/mmr/{region}/{name}/{tag}'
MMR_HISTORY_BY_PUUID = '/valorant/{version}/by-puuid/mmr-history/{region}/{puuid}'
MMR_HISTORY_BY_NAME = '/valorant/{version}/mmr-history/{region}/{name}/{tag}'
CROSSHAIR = '/valorant/{version}/crosshair/generate'

Module contents

Functions:

set_api_key(api_key)

Sets the API key to use for all API requests.

set_api_key(api_key)

Sets the API key to use for all API requests.

Parameters:

api_key (str) – The API key to use.