Overview
Rise of Kings Online provides a REST API for interacting with the game. This is a rather advanced topic, as it requires moderate understanding of programming. The API allows you to get information about the game using an http request, and process it with your own program. Data available through the API is exempt from the game rules restricting scripts, programs and bots.
Accessing the API
You can reach the API by sending a GET
request to the Rise of Kings Online API url. All urls will start with:
https://riseofkingsonline.com/api/
Each endpoint will also have some content after the /api/ part of the request. You can read about individual API endpoint parameters on their respective pages.
Processing API data
The API will return a JSON response that can then be processed by most programming languages and some sheets/excel plugins. The standard response is:
{ "success" : true, // individual data here }
Bad or invalid requests will return:
{ "success" : false, "message" : "error message" }
The error message will try to help you resolve the issue with your request