New Lineage 2 Private Servers 2021 | L2 Servers | l2 top | Vote API
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.
Learn more...
Vote API
Information link for statistics or auto reward system:
https://l2jtop.com/api/{API-KEY}/info/
Example of response data:
{"error":0,"result":{"total_votes":0,"monthly_votes":0}}
Individual vote link (IP check). Used to create vote reward using php or java:
https://l2jtop.com/api/{API-KEY}/ip/{IP-ADDRESS}/
Individual vote link (player name check). Used to create vote reward using php or java:
https://l2jtop.com/api/{API-KEY}/name/{PLAYER-NAME}/
To use player name check, you need to generate individual vote link for each player:
https://l2jtop.com/server/{SERVER-ID}/vote/{PLAYER-NAME}/
Example of response data:
{"error":0,"result":{"is_voted":true,"vote_time":1561411321,"server_time":1561411372}}
{"error":0,"result":{"is_voted":false,"vote_time":-1,"server_time":1561411372}}
Example of error response:
{"error":3,"description":"Request address is not valid IP address!"}