Mobile Legends

Mobile Legends game kikir dari munton

Required Fields dikirim dalam bentuk query params

Endpoint

GET /mlbb

Required Fields

Example Request

cURL
curl -G -d "uid=800081806" localhost:3000/genshin
HTTP Client (Postman, HTTPie, etc)
http://localhost:3000/mlbb?id=469123581&zone=2418
Fetch API
async function demo(): Promise<any> {
  const hit = await fetch("http://localhost:3000/mlbb?id=469123581&zone=2418");
  const data = await hit.json();

  return data;
}

Example Response

{
  "game": "Mobile Legends: Bang Bang",
  "account": {
    "ign": "Erikaaaa",
    "id": "469123581",
    "zone": "2418"
  }
}

Type

buat kalian yang pakek TypeScript

Query Params

type Query = {
  id: string;
  zone: string;
};

Response

type Response = {
  game: string;
  account: {
    ign: string;
    id: string;
    zone: string;
  };
};

Last updated