Skip to content

Latest commit

 

History

History
28 lines (20 loc) · 585 Bytes

README.md

File metadata and controls

28 lines (20 loc) · 585 Bytes

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