Loka API

Welcome to the official docs for the Loka API! If you're here, it's because you want to make something awesome with access to publicly available data about Loka! Read on to get started.

Generally speaking, the API will provide information that is publicly available or knowable through in-game commands. The API is not meant to provide hidden information about players, towns, etc.

Getting started

To get started, simply point your app to https://api.lokamc.com. You will receive a default response from the server that lists all available endpoints.

Rate Limiting

In order to ensure appropriate use of the API, you may hit rate limits when making requests to the API. When rate-limited, you should receive a response indicating information about when your request tokens will refresh.

Endpoints

Players

Fetch data about the players of Loka.

Towns

Fetch data about the Towns of Loka.

Alliances

Fetch data about the Alliances of Loka.

Territories

Fetch data about all the Conquest Territories of Loka including recently fought battles.

Market

Fetch current and historical Market Data.