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.
POST https://topserver.live/api/add-server
{
    "name": "Top Server Live",
    "description": "Best World of Warcraft Servers Ranking",
    "url": "https://topserver.live/",
    "owner_email": "support@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"
    }
}
                                    This endpoint allows you to update an existing server. You need to provide the server ID and the fields you want to update.
                PUT https://topserver.live/api/update-server/{serverId}
                Accept: application/json
                Authorization: Bearer YOUR_API_TOKEN
                {
                    "enable": true,
                    "tags": "PvP, No Custom, Active Staff"
                }
                                    Example Response:
                {
                    "message": "Server updated 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": "https://facebook.com/example"},
                            {"social": "twitter", "url": "https://twitter.com/example"}
                        ],
                        "banner_url": "https://topserver.live/images/banner.png",
                        "enable": true,
                        "tags": ["PvP", "No Custom", "Active Staff"]
                    }
                }
                                    This endpoint allows you to delete an existing server. You need to provide the server ID.
DELETE https://topserver.live/api/delete-server/{serverId}
Accept: application/json
Authorization: Bearer YOUR_API_TOKEN
                                    Example Response:
{
    "message": "Server deleted successfully!"
}
                                    This endpoint allows you to check if a server name, URL, or email is already registered. You will receive a response if there is a conflict.
GET https://topserver.live/api/check?url=https://topserver.live/&email=owner@example.com&name=Top%20Server%20Live
                    Example Response:
{
    "message": "No conflicts found."
}
                Example Error Response:
{
    "errors": {
        "url": "The URL is already in use.",
        "email": "The email is already in use.",
        "name": "The server name is already in use."
    }
}