Giter VIP home page Giter VIP logo

vlresports's Introduction

vlresports - Valorant Esports API

Valorant Competitive API

License GitHub stars GitHub forks GitHub issues Status

Support me on Ko-fi

vlresports is an open-source project that aims to provide a scraping API for the vlr.gg website to gather information about players and teams in the competitive Valorant scene. Please note that this project is not associated with vlr.gg or Riot Games.

πŸ“– Table of Contents

πŸš€ Introduction

vlresports is designed to facilitate access to essential data from the competitive Valorant scene. By scraping vlr.gg, it allows users to retrieve information about professional players, teams, and other relevant statistics. The goal of this project is to make it easier for developers and enthusiasts to access and utilize data for their applications, analysis, or research related to Valorant esports.

✨ Features

  • Scraping data from vlr.gg efficiently and securely.
  • Providing a simple and intuitive API to access player and team information.
  • Regular updates to keep the data current and relevant.
  • Lightweight and easy to integrate into other projects.

βš™οΈ Installation

To install vlresports, follow these steps:

  1. Clone the repository to your local machine.
  2. Install the necessary dependencies using npm.
  3. Run the API server locally or deploy it to your preferred hosting platform.
git clone https://github.com/Orloxx23/vlresports.git
cd vlresports
npm install
npm start

🎯 Usage

Once you have the API server up and running, you can interact with it using HTTP requests. The API provides endpoints for accessing players' and teams' data. Here's a basic example of how to use the API with cURL:

# Get information about a specific player
curl -X GET http://localhost:5000/api/v1/players/{player_id}

# Get information about a specific team
curl -X GET http://localhost:5000/api/v1/teams/{team_id}

Please refer to the API documentation for more detailed usage instructions and examples. You can also try out the API using the interactive documentation provided by Swagger UI.

πŸ“š API Endpoints

The following are the main endpoints provided by the API:

  • GET /api/v1/players: Retrieve information about all players.
  • GET /api/v1/players/{player_id}: Retrieve information about a specific player.
  • GET /api/v1/teams: Retrieve information about all teams.
  • GET /api/v1/teams/{team_id}: Retrieve information about a specific team.
  • GET /api/v1/events: Retrieve information about all events.
  • GET /api/v1/matches: Retrieve information about upcoming matches or matches being played.
  • GET /api/v1/results: Retrieve information about past match results.

🀝 Contributing

Contributions to vlresports are welcome and greatly appreciated. If you wish to contribute, please follow the guidelines outlined in the CONTRIBUTING.md file.

πŸ“ License

vlresports is open-source and available under the Apache 2.0 License.


We hope you find vlresports useful for your Valorant esports-related projects. If you have any questions, suggestions, or issues, feel free to raise them in the GitHub repository's issue tracker. Happy coding!

vlresports's People

Contributors

orloxx23 avatar polnavarro avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

vlresports's Issues

API returns inactive players as staff

I tried using your API to get Karmine Corp data from this endpoint : https://vlr.orlandomm.net/api/v1/teams/8877

{
    "players": [
        {
            "id": "302",
            "url": "https://www.vlr.gg/player/302/ze1sh",
            "user": "ZE1SH",
            "name": "Ahmed El Sheikh",
            "img": "https://owcdn.net/img/645c01ead0e8c.png",
            "country": "fr"
        },
        {
            "id": "2625",
            "url": "https://www.vlr.gg/player/2625/sh1n",
            "user": "sh1n",
            "name": "Ryad Ensaad",
            "img": "https://owcdn.net/img/6410bb380af8b.png",
            "country": "fr"
        }
    ],
    "staff": [
        {
            "id": "1284",
            "url": "https://www.vlr.gg/player/1284/mikee",
            "user": "mikee",
            "name": "Michael Lim",
            "tag": "Inactive",
            "img": "https://owcdn.net/img/639a9ab8487bb.png",
            "country": "fr"
        },
        {
            "id": "92",
            "url": "https://www.vlr.gg/player/92/scream",
            "user": "ScreaM",
            "name": "Adil Benrlitom",
            "tag": "Inactive",
            "img": "https://owcdn.net/img/64249de08c2e0.png",
            "country": "be"
        },
        {
            "id": "14669",
            "url": "https://www.vlr.gg/player/14669/nivera",
            "user": "Nivera",
            "name": "Nabil Benrlitom",
            "tag": "Inactive",
            "img": "https://owcdn.net/img/64249dd8899a0.png",
            "country": "be"
        },
        {
            "id": "4603",
            "url": "https://www.vlr.gg/player/4603/xms",
            "user": "xms",
            "name": "Alexandre FortΓ©",
            "tag": "Inactive",
            "img": "https://owcdn.net/img/64249dcfba4ea.png",
            "country": "fr"
        }
    ]
}

However, as you can see, it returns the inactive players as staff. I guess it happens when the team has no staff.

Thank you !

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.