---
title: "MLBB API Stats Documentation"
url: "https://ridwaanhall.com/projects/mlbb-api-stats-docs"
markdown: "https://ridwaanhall.com/projects/mlbb-api-stats-docs.md"
summary: "A documentation site for the Mobile Legends statistics API, on Next.js with MDX."
---

# MLBB API Stats Documentation

> A documentation site for the Mobile Legends statistics API, on Next.js with MDX.

- Category: Web App
- Status: Completed
- Started: January 1, 2025
- Built with: Next.js, React, MDX, Radix UI, Vercel
- Source: https://github.com/ridwaanhall/mlbb-api-docs

## About

### The problem

An API is only as useful as its documentation, and the hero and statistics endpoints needed a home with examples.

### The approach

I built the docs as a Next.js site that renders MDX with next-mdx-remote, with Radix UI primitives for the collapsible sections, dialogs and menus, and next-themes for light and dark.

- Pages for the statistics, heroes and related endpoints.
- Collapsible sections, a scroll area and a theme switch.

### The result

The docs served the early Mobile Legends API before it moved to Rone Arena. The hosted site is no longer online.

## Features

- **MDX Pages**: Documentation written in MDX.
- **Accessible Components**: Radix UI collapsibles, dialogs and menus.
- **Light and Dark**: A theme switch with next-themes.

## Tags

MLBB, Mlbb Api, Api Docs

## Elsewhere

- This page for people: https://ridwaanhall.com/projects/mlbb-api-stats-docs
- Index of every page as Markdown: [llms.txt](https://ridwaanhall.com/llms.txt)
