Skip to content

alanescarcha/api-mojang

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

API MOJANG

Created to obtain the most important data of a user from Mojang APIs. All in one.

Dependencies

Usage

const axios = require('axios');

async function getData(username) {
    try {
        const response = await axios.get(`https://api.mctools.pro/mojang/v1/${username}`);
        console.log(response);
    } catch (error) {
        console.error(error);
    }
}

getData('YourUsername');

License

MIT