Total Requests: Live Request Counter
Loading...

MWAPI Usage Guide

Welcome to our API! This guide will help you get started with making requests and utilizing our API effectively.

Authentication

To use the API, you'll need an API key. Include your API key in each request using the key query parameter.

You can also pass x-api-key in the headers if you prefer to use this method.

For example:

https://mwapi.xyz/api/{endpoint}?key=YOUR_API_KEY

Endpoints

Our API provides the following endpoints:

Rate Limiting

Our API enforces rate limiting to ensure fair usage. You are allowed 1,000 requests per day.

If you exceed this limit, you will receive the 429 Rate limit exceeded error code response.

If you require a higher rate limit, please do get in touch with us — we are happy to increase your limit if required, free of charge.

Example Request

To make a request, you can use tools like cURL, Postman, Restman, or through code.

Here is an example using cURL:

curl -X GET "https://mwapi.xyz/api/{endpoint}?key=YOUR_API_KEY"

Response Format

Responses from our API are in JSON format. Here is an example of a successful response:

{"status": "", "data": {...}}

Handling Errors

If there is an error with your request, you will receive an error code and message like the example below:

{"status": "error", "message": "Invalid API key"}

Support

If you encounter any issues or have questions, please contact us in the Discord server.