Skip to Content
Mika Scraper 1.1.1 is released ๐ŸŽ‰
๐Ÿƒ MIKA FUNCTIONFunction: MinecraftStalk()

Function: MinecraftStalk()

MinecraftStalk(username): Promise<MinecraftStalkResult>

Defined in: src/minecraft/minecraft.ts:46

Fetches a Minecraft player profile from both PlayerDB and Mojang APIs.

Parameters

username

string

The Minecraft username to fetch, which is case-insensitive.

Returns

Promise<MinecraftStalkResult>

A Promise that resolves to either a Minecraft player profile or a descriptive error object indicating the reason for failure.

Example

import { MinecraftStalk } from 'your-module'; MinecraftStalk('exampleUsername') .then(result => { console.log(result); }) .catch(error => { console.error('Error fetching Minecraft profile:', error); });

Diagram: Mika Scraper

Last updated on