2.2.0 • Published 7 months ago

api-mlbb v2.2.0

Weekly downloads
-
License
ISC
Repository
-
Last release
7 months ago

ML API

Un-official Mobile Legends: Bang Bang API This package allows you to fetch hero and item information from Mobile Legends: Bang Bang.

Features

  • Fetch hero information by hero name
  • Fetch item information by item name
  • Easy-to-use API interface for Mobile Legends: Bang Bang data

Installation

To install the package, run the following command:

npm install api-mlbb

What we Need

const { 
  fetchItem, 
  fetchHero,
  fetchPatch, 
  fetchProPlayer 
} = require('api-mlbb');

Fetching item by Name

// Test fetch item
fetchItem('Blade of Despair').then(data => {
  console.log('Item Data:', data);
}).catch(error => {
  console.error('Error:', error);
});

Fetching hero by Name

// Test fetch hero
fetchHero('Layla').then(data => {
  console.log('Hero Data:', data);
}).catch(error => {
  console.error('Error:', error);
});

Fetching Pro Player by Name

// Test fetch proPlayer
fetchProPlayer('Kairi').then(data => {
  console.log('Pro Data:', data);
}).catch(error => {
  console.error('Error:', error);
});

Fetching patch Info

// Test fetch patch
fetchPatch().then(data => {
  console.log('Patch:', data);
}).catch(error => {
  console.error('Error:', error);
});

Quick Run

// Simple one
console.log(fetchProPlayer('Kairi'));
// Basically all fetch function returning a JSON Data.

Its collected from Liqupedia.

2.2.0

7 months ago

2.1.0

7 months ago

2.0.0

7 months ago

1.0.0

7 months ago