Skip to main content

This is a wrapper for the Valorant API, source: https://github.com/henrikdev/valorant-api

Project description

Downloads

LanoValoPy (Lanore Valorant Python)

LanoValoPy is a python-based wrapper for the following Valorant Rest API:

https://github.com/Henrik-3/unofficial-valorant-api

This API is free and freely accessible for everyone. An API key is optional but not mandatory. This project is NOT being worked on regularly.

This is the first version. There could be some bugs, unexpected exceptions or similar. Please report bugs on our discord.

API key

You can request an API key on Henrik's discord server
It is NOT required to use an API key though!

Summary

  1. Introduction
  2. Download
  3. Documentation
  4. Support

Introduction

Some requests may take longer.

Get Account

import asyncio
from lano_valo_py import LanoValoPy
from lano_valo_py.valo_types.valo_enums import MMRVersions, Regions

async def main():
    # Initialize the API client with your token
    api_client = LanoValoPy(henrik_token="YOUR_TOKEN_HERE")

    # Example: Get Account Information
    account_options = AccountFetchOptionsModel(name="LANORE", tag="evil")
    try:
        account_response = await api_client.get_account(account_options)
        print(account_response)
    except Exception as e:
        print(f"Error fetching account: {e}")

if __name__ == "__main__":
    asyncio.run(main())

Get Stored-MMR-History

from lano_valo_py.valo_types.valo_enums import MMRVersions, Regions
from lano_valo_py.valo_types.valo_models import (
    GetMMRStoredHistoryFilterModel,
    GetMMRStoredHistoryOptionsModel,
    GetMMRStoredHistoryByPUUIDResponseModel
)

import asyncio

from lano_valo_py import LanoValoPy


async def main():
    # Initialize the API client with your token
    api_client = LanoValoPy(henrik_token="You_token_here")

    # Example: Get Stored MMR History

    # Use filter if u have more than 20 match in one episode
    option_filter = GetMMRStoredHistoryFilterModel(
        size=20
    )  # max size one one page is 20, page is 1 by default

    mmr_options = GetMMRStoredHistoryOptionsModel(
        version=MMRVersions.v1,
        region=Regions.eu,
        name="Lanore",
        tag="evil",
        filter=option_filter,
    )
    stored_mmr_history_response = await api_client.get_stored_mmr_history(mmr_options)
    print(stored_mmr_history_response)

    # Example: Get Stored MMR History By PUUID
    mmr_options = GetMMRStoredHistoryByPUUIDResponseModel(
        version=MMRVersions.v1,
        region=Regions.eu,
        puuid="e4122af3-fa8c-582c-847d-42a3868925cd",
        filter=option_filter,
    )
    stored_mmr_history_response = await api_client.get_stored_mmr_history_by_puuid(mmr_options)
    print(stored_mmr_history_response)

Examples

For more examples

Supported Endpoints

  • Account info
  • MMR history
  • Match history
  • Stored Data
  • etc...

Rate Limits

The unofficial Valorant API has the following limits:

  • Basic key: 30 requests per minute
  • Advanced key: 90 requests per minute
  • Custom key: Limit you requests

Common Use Cases

  • Track player rank over time
  • Compare teammates' stats
  • Monitor store rotations

Download

pip install lanovalopy@latest

Documentation

Hosted

The documentation is hosted here: https://Lanxre.github.io/LanoValoPy/

Support

For support visit my discord server

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

lanovalopy-1.0.4.tar.gz (27.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

lanovalopy-1.0.4-py3-none-any.whl (49.7 kB view details)

Uploaded Python 3

File details

Details for the file lanovalopy-1.0.4.tar.gz.

File metadata

  • Download URL: lanovalopy-1.0.4.tar.gz
  • Upload date:
  • Size: 27.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.11.13 Linux/6.11.0-1018-azure

File hashes

Hashes for lanovalopy-1.0.4.tar.gz
Algorithm Hash digest
SHA256 3e77a2d83c0db0ae2d8cb0044d19dfb1395e0e544f79bdb1cbf412524bb27b90
MD5 d0962754aef47966fa5319403357b69e
BLAKE2b-256 435cf93404615f08b14ca5a0f24eb8d5d076b7deaecc4cce21c14281c07497d9

See more details on using hashes here.

File details

Details for the file lanovalopy-1.0.4-py3-none-any.whl.

File metadata

  • Download URL: lanovalopy-1.0.4-py3-none-any.whl
  • Upload date:
  • Size: 49.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.11.13 Linux/6.11.0-1018-azure

File hashes

Hashes for lanovalopy-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 4d81483804e070a515f29dc67d0a50474413a3b59bf1572be87e32040e7cff2a
MD5 29de025c14eac7293adac4f163c392d5
BLAKE2b-256 c84253198ca843bbf5cd48f71ca8ac03c60e13963ba57a1fbe9e45c22c6493ed

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page