Z-Craft API Reference ๐
Welcome to the comprehensive API documentation for Z-Craft, the premier Java Edition Lifesteal PvP Minecraft server. Our REST API provides programmatic access to player statistics, server data, lifesteal mechanics, and administrative functions.API Overview
The Z-Craft API is a RESTful service that enables developers, server administrators, and third-party applications to interact with our server infrastructure. Built with security, performance, and reliability in mind.Base URL
Key Features
Rate Limiting: 1000 requests per hour per API key
Response Format: JSON (application/json)
Authentication: Bearer token required
HTTPS Only: All requests must use HTTPS
Authentication
All API requests require authentication using Bearer tokens. You can obtain an API key through our developer portal or by contacting staff.Authentication Methods
Bearer Token Authentication:API Key Scopes
| Scope | Description | Endpoints |
|---|---|---|
read:players | Read player data and statistics | /players/* (GET only) |
read:server | Access server status and metrics | /server/* (GET only) |
write:players | Modify player data | /players/* (POST/PUT/PATCH) |
admin | Full administrative access | All endpoints |
Response Format
All API responses follow a consistent JSON structure:Error Responses
Rate Limiting
API requests are rate-limited to prevent abuse and ensure fair usage.Rate Limit Headers
Rate Limit Exceeded Response
SDKs & Libraries
Official SDKs
JavaScript SDK
Official JavaScript/TypeScript SDK for Node.js and browsers
Python SDK
Official Python SDK with async support
Java SDK
Official Java SDK for Minecraft plugins and applications
Community Libraries
- C# SDK (by community)
- Go SDK (by community)
- PHP SDK (by community)
Quick Start
1. Get Your API Key
Visit our developer portal to register and obtain your API key.2. Make Your First Request
3. Handle the Response
API Endpoints Overview
Player Endpoints
Player API
Access player statistics, hearts, rankings, and profile data
Server Endpoints
Server API
Server status, metrics, and administrative functions
Administrative Endpoints
Admin API
Staff-only endpoints for server management and moderation
Webhooks
Z-Craft supports webhooks for real-time event notifications. Configure webhook URLs in your developer dashboard.Supported Events
player.join- Player joins the serverplayer.leave- Player leaves the serverplayer.death- Player dies (includes lifesteal data)player.achievement- Player unlocks achievementserver.restart- Server restart notificationsadmin.action- Administrative actions taken
Webhook Payload Example
Support & Community
Getting Help
- Check the Documentation - Review endpoint specifications and examples
- API Status Page - Check status.z-craft.xyz for outages
- Developer Discord - Join our developer community
- Contact Support - Use modmail for urgent issues
Changelog
Stay updated with API changes by following our API changelog. Recent Updates:- v1.2.0 (Dec 2024): Added bulk player data endpoints
- v1.1.5 (Nov 2024): Enhanced rate limiting with burst allowances
- v1.1.0 (Oct 2024): Added webhook support for real-time events
Ready to build with Z-Craftโs API? Start with our quick start guide or dive into the endpoint documentation. ๐ง
API Version: v1.2.0 | Last updated: December 2024
