Server Info API: Live Minecraft Server Data via HTTP

Server Info API exposes live Minecraft server stats through an HTTP endpoint, so you can power websites and Discord bots for Minecraft.

Download server info api for Minecraft 1.21.5

Original name: server info api

Minecraft: 1.21.5

Loaders: Fabric

FileVersionLoaderSize
server-info-api-1.0.0-rc1.jar1.21.5Fabric1.1 МБDownload

Server Info API

Every server owner eventually hits the same wall: players want live stats on a website, a Discord bot needs to know who is online, and other mods have data worth sharing. The Server Info API add-on solves that problem by exposing server information through a clean, extendable HTTP API. Instead of hacking together fragile scripts, you get a dedicated endpoint that answers real-time requests with structured JSON.

What the Mod Actually Does

At its core, this is a bridge between your Minecraft server and the outside world. Once installed, it spins up a lightweight HTTP server (port 8080 by default, changeable through config/Server Info API/settings.json) and serves predefined routes that cover the essentials:

  • /status returns disk usage, CPU load, RAM consumption, and current player counts in one response.
  • /players shows the total number of players who have ever joined plus a list of everyone currently online.
  • /player/:criteria pulls detailed data for a single player by name or UUID, including dimension, coordinates, and current chunk position.

That last route is genuinely useful for moderation dashboards or map tools. A response tells you whether the player is online, which dimension they are in, and exactly where they stand, all without touching the console.

Why Server Owners Love It

The appeal is simple: monitoring without overhead. Want a live player counter on your landing page? A fetch call to /players does it. Building a Discord bot that announces server load during peak hours? Point it at /status and parse the JSON. Because the mod runs inside the server process, the data is always current, not cached from five minutes ago.

For anyone grabbing Server Info API for Minecraft, setup is refreshingly short. Drop the jar into your mods folder, start the server once to generate the config, adjust the port if 8080 clashes with something else, and you are live. There is no database, no external service, and no account to create.

Version and Loader Support

The add-on is built for the Fabric loader and targets modern Minecraft releases, so it fits naturally into Fabric-based modpacks. If you run a mixed setup, check the project page for the exact supported Minecraft versions before installing, since API-facing mods tend to update alongside major game releases. Keeping your loader and game version aligned avoids the classic "route not found" confusion after an update.

If you would rather skip manual jar management entirely, the foxygame.net launcher handles the whole routine for you, offering one-click installation of Server Info API and automatic updates whenever a new build ships. That means fewer version mismatches and more time actually running your community.

For Developers: Extend the API Your Way

Registering Custom Routes

This is where the mod earns its "API" name. Any mod developer can expose their own data by implementing the APIRoute interface and registering it through ServerInfoAPI.registerRoute(). The @RouteSettings annotation lets you define the path and decide whether the route requires a fully loaded MinecraftServer instance. If you set requireMinecraftServer = true, requests arriving before the server is ready automatically receive an HTTP 500 instead of a null pointer crash.

Dynamic Paths and Overloads

Dynamic segments like /my-data/:item_id are supported out of the box, with values accessible via request.routeParams(). Multiple registerRoute overloads give you control over path, override behavior, and server requirements, so you can register routes at any point in your mod's lifecycle, not just during initialization.

How to Install

  • Download Server Info API from the official project page and confirm it matches your Minecraft version.
  • Place the jar in your server's mods folder alongside Fabric API.
  • Start the server, then edit settings.json if you need a different port.
  • Test with a browser request to http://your-server-ip:8080/status.

If you plan to expose the endpoint publicly, put it behind a reverse proxy and restrict access where possible, since the API reveals player positions and hardware details.

Final Thoughts

Server Info API fills a gap most server tools ignore: a simple, standardized way to pull live data out of Minecraft and into whatever interface you prefer. Whether you are a owner wanting a status page or a developer wiring mod data into a unified endpoint, this add-on delivers without unnecessary complexity. Download Server Info API, point a request at it, and watch your server's data become genuinely useful.