A simple Node.js module to access the MultiVersus API.

Overview

multiversus.js

Discord server npm version

About

A simple Node.js module to access the MultiVersus API.

Installation

npm install multiversus.js
yarn add multiversus.js

Example usage

Initialize the client using your Steam username and password (if your account doesn't have Steam Guard):

const { Client } = require('multiversus.js');
const client = new Client();

(async () => {
	await client.login('username', 'password'); // You can initialize the client by supplying your Steam username and password
})();

Alternatively, initialize the client as follows, using a pre-existing access token. Access tokens can be obtained by analyzing the network requests made by MultiVersus using a tool such as Fiddler (if using Fiddler, make sure HTTPS traffic is decrypted):

const { Client } = require('multiversus.js');
const client = new Client({ accessToken: 'accessToken' });

Get the MultiVersus 2v2 leaderboard:

(async () => {
	const leaderboardData = await client.leaderboards.fetch('2v2'); // The type of the leaderboard to be retrieved can also be set to '1v1'.
	console.log(leaderboardData);
})();

Get a profile by a user's ID:

(async () => {
	const userData = await client.profiles.fetch('62e471bc5f77e966a384a570');
	console.log(userData);
})();

Search for users:

(async () => {
	const searchData = await client.profiles.search('ElijahPepe'); // A second parameter can also be defined to limit the results returned.
	console.log(searchData);
})();

Links

You might also like...

Template Repository for making your own budder Module. CORE is not included, this is just for the module.

A quick copy of the "How to make your own module" section Check out the official budderAPI repository Template Repository for making your own budder M

Apr 3, 2022

A module federation SDK which is unrelated to tool chain for module consumer.

A module federation SDK which is unrelated to tool chain for module consumer.

hel-micro, 模块联邦sdk化,免构建、热更新、工具链无关的微模块方案 Demo hel-loadash codesandbox hel-loadash git Why hel-micro 如何使用远程模块 仅需要一句npm命令即可载入远程模块,查看下面例子线上示例 1 安装hel-micr

Jan 3, 2023

Inter Process Communication Module for node supporting Unix sockets, TCP, TLS, and UDP. Giving lightning speed on Linux, Mac, and Windows. Neural Networking in Node.JS

Inter Process Communication Module for node supporting Unix sockets, TCP, TLS, and UDP. Giving lightning speed on Linux, Mac, and Windows. Neural Networking in Node.JS

Inter Process Communication Module for node supporting Unix sockets, TCP, TLS, and UDP. Giving lightning speed on Linux, Mac, and Windows. Neural Networking in Node.JS

Dec 9, 2022

Browse local files using the non-standard Web Browser File System Access API

Browse local files using the non-standard Web Browser File System Access API

Browse local files using the non-standard Web Browser File System Access API

Oct 26, 2022

[Experimental] Browse local files using the non-standard File System Access API

[Experimental] Browse local files using the non-standard File System Access API

jupyterlab-filesystem-access Browse local files using the non-standard Web Browser File System Access API. ⚠️ This extension is compatible with Chromi

Apr 14, 2022

[Experimental] Browse local files using the non-standard File System Access API

[Experimental] Browse local files using the non-standard File System Access API

jupyterlab-filesystem-access Browse local files using the non-standard Web Browser File System Access API. ⚠️ This extension is compatible with Chromi

Apr 15, 2022

Vanilla JavaScript Instagram Feed without access token. Not using the Instagram API

⚠️ This repository has been archived ⚠️ The focus of this repository was to provide an easy and ready to use plugin to display an Instagram Feed but s

Nov 22, 2022

Its an app that uses a weather API with access to over 200,000 cities current weather conditons.

Its an app that uses a weather API with access to over 200,000 cities current weather conditons.

Weather App Its an app that uses a weather API with access to over 200,000 cities current weather conditons. Screenshots Links Live Site URL: live sit

Aug 17, 2022

TzKTApi is a Node.js module to communicate with a tzkt API.

TzKTAPI TzKTApi is a Node.js module to communicate with a tzkt API. Heavily inspired by the dipdup-sdk. It uses the openapi-typescript-codegen to gene

Mar 10, 2022
Comments
  • Adding Auth

    Adding Auth

    How to use the Auth:

    1. Create a new steam account or use an already existing alt account
    2. Open Fiddler
    3. Open MultiVersus
    4. Search in Fiddler for the following request (should show up after the multiple epic requests) image
    5. Get the steam ticket image
    6. Close MultiVersus and logout from your steam account ==> If you login into that steam account again the steam ticket will change and you have to do the first 5 points again
    7. Enter the steam ticket into your code and execute the auth() function in the beginning

    For me this version of authentication has worked the past 4 days with only one time getting the steam ticket in the beginning, after that set the auth() function into an interval of 24h and your done. I don't really know if this steam ticket really works forever (what i doubt) but it seems to work for a long time.

    (I also use it for this API, the pendant to the valorant edition

    opened by Henrik-3 2
  • refactor: request handler / auth fix

    refactor: request handler / auth fix

    Please describe the changes this PR makes and why it should be merged:

    • New function: getAccount(id)
    • Refactor the request handler (easier to add new endpoints, less repetition in the code and adding the Content-Type header)
    • Fixes the steam auth that was introduced here https://github.com/ElijahPepe/multiversus.js/commit/1ad5cc936460bf389c948fe58df22a85aca14be3
    opened by Henrik-3 1
  • refactor: add types

    refactor: add types

    • adds types

    i only documented the profile endpoints (and only ones where the meaning was obvious), in order to make sure i'm doing it properly. i'm open to any changes or other ways of implementing it.

    opened by Jabster28 1
  • chore(deps): bump undici from 5.8.0 to 5.8.2

    chore(deps): bump undici from 5.8.0 to 5.8.2

    Bumps undici from 5.8.0 to 5.8.2.

    Release notes

    Sourced from undici's releases.

    v5.8.2

    ⚠️ Security Release ⚠️

    • CRLF Injection in Nodejs ‘undici’ via Content-Type GHSA-f772-66g8-q5h3 CVE-2022-35948
    • undici.request vulnerable to SSRF using absolute URL on pathname GHSA-8qr4-xgw6-wmr3 CVE-2022-35949

    What's Changed

    New Contributors

    Full Changelog: https://github.com/nodejs/undici/compare/v5.8.1...v5.8.2

    v5.8.1

    What's Changed

    New Contributors

    Full Changelog: https://github.com/nodejs/undici/compare/v5.8.0...v5.8.1

    Commits
    • 52d1ce5 Bumped v5.8.2
    • 66165d6 Merge pull request from GHSA-f772-66g8-q5h3
    • 124f7eb Merge pull request from GHSA-8qr4-xgw6-wmr3
    • aef314c feat(webidl): better error message for ByteString converter (#1591)
    • 2f4b3b6 docs: mock different endpoints in a single file (#1589)
    • e1e1638 5.8.1
    • c1dd24a fix: make mock headers case-insensitive (#1585)
    • 1822ee6 docs: Fix DiagnosticsChannel sidebar link (#1582)
    • dd613ef fix: follow signal.reason in Request (#1580)
    • 40af2c0 fix: fetch a long base64 url will crash and nothing happens (close: #1574) (#...
    • Additional commits viewable in compare view

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    • @dependabot use these labels will set the current labels as the default for future PRs for this repo and language
    • @dependabot use these reviewers will set the current reviewers as the default for future PRs for this repo and language
    • @dependabot use these assignees will set the current assignees as the default for future PRs for this repo and language
    • @dependabot use this milestone will set the current milestone as the default for future PRs for this repo and language

    You can disable automated security fix PRs for this repo from the Security Alerts page.

    chore dependencies 
    opened by dependabot[bot] 0
Releases(2.1.3)
Documentation on the in-game Multiversus API

Multiversus API Documentation Community maintained documentation on the in-game Multiversus API. This is very early and we do not know everything yet.

Brian Baldner 8 Aug 16, 2022
An npm package for demonstration purposes using TypeScript to build for both the ECMAScript Module format (i.e. ESM or ES Module) and CommonJS Module format. It can be used in Node.js and browser applications.

An npm package for demonstration purposes using TypeScript to build for both the ECMAScript Module format (i.e. ESM or ES Module) and CommonJS Module format. It can be used in Node.js and browser applications.

Snyk Labs 57 Dec 28, 2022
a cobbled together alternative UI to launchdarkly, allowing read/write access via LD API access token

discount-launchdarkly a cobbled together alternative UI to launchdarkly, allowing read/write access via LD API access token setup make sure you have a

null 9 Oct 19, 2022
🐞 A NodeJS module to access Bugzilla instances through the REST API.

Bugzilla | Typesafe access to Bugzilla's REST API. Very early work in progress, getting info from a bug or searching bugs is the main priority right n

Red Hat - Plumbers - Automation 3 Nov 1, 2022
Userland module that implements the module path mapping that Node.js does with "exports" in package.json

exports-map Userland module that implements the module path mapping that Node.js does with "exports" in package.json npm install exports-map Usage co

Mathias Buus 9 May 31, 2022
Node 18's node:test, as a node module

node-core-test This is a user-land port of node:test, the experimental test runner introduced in Node.js 18. This module makes it available in Node.js

Julian Gruber 62 Dec 15, 2022
🚌 A Node.js API to access public transport information in Lisbon using data provided by Carris Metropolitana

?? Carris Metropolitana API A Node.js REST API built to easily access and search public transport information in Lisbon using data provided by Carris

Márcia Martins 4 Jun 21, 2022
This project is a Web application based on an external API. The API provides data about music (including artists, albums, etc) that users can access on-demand. This project was built with ES6, HTML and CSS and it is a SPA.

Capstone M2: Music App This project is a Web application based on the music API Napster built with ES6, HTML and CSS and it is a SPA. This API provide

Karla Delgado 12 Aug 29, 2022
Fintoc.js ES Module - Use the Fintoc widget as an ES module

Fintoc.js ES Module Use the Fintoc widget as an ES module. Installation Install using npm! (or your favourite package manager) # Using npm npm install

Fintoc 6 May 13, 2022