Learn how to interact with our API and get started with the integration process.
All API requests are made to the following base URL:
https://topserver.live/api/
This endpoint allows you to create a new server and will create a user as well. You need to provide the server details such as its name, description, URL, language, and version. The user will receive the details via email. Here's an example:
POST https://topserver.live/api/add-server
{
"name": "Top Server Live",
"description": "Best World of Warcraft Servers Ranking",
"url": "https://topserver.live/",
"language": "en",
"version_name": "Wrath of the Lich King",
"realmlist": "topserver.live",
"realmlist_port": 8085,
"socials": [
{"social": "facebook", "url": "https://facebook.com/example"},
{"social": "twitter", "url": "https://twitter.com/example"}
],
"banner_url": "https://topserver.live/images/banner.png"
}
Example Response:
{
"message": "Server added successfully!",
"server": {
"name": "Top Server Live",
"description": "Best World of Warcraft Servers Ranking",
"url": "https://topserver.live/",
"language": "en",
"version_name": "Wrath of the Lich King",
"realmlist": "topserver.live",
"realmlist_port": 8085,
"socials": [
{"social": "facebook", "url": "http://facebook.com/example"},
{"social": "twitter", "url": "http://twitter.com/example"}
],
"banner_url": "http://example.com/banner.jpg"
}
}