v1

Documentation for Rift API v1

Note: The data below is made up. Note 2: All enum values (such as continent, color, war_policy, alliance_position and domestic_policy will eventually be replaced by their string equivalents for ease of use, please refer to the v2 nations documentation for the converted values.

Alliances

GET https://riftapi.mrvillage.dev/v1/alliances

Provides basic information on all alliances in the game. (Updated every two minutes)

{
    "success": true,
    "data": [
        {
            "id": 1,
            "found_date": "2021-08-26 22:38:05",
            "name": "I am an alliance",
            "acronym": "IAAM",
            "color": "olive",
            "rank": 1,
            "members": 10,
            "score": 10000.1,
            "leader_ids": [1, 2, 3],
            "officer_ids": [4, 5, 6],
            "heir_ids": [7, 8, 9],
            "avg_score": 1000.1
            "flag_url": "https://...",
            "forum_url": "https://...",
            "ircchan": "https://..."
        },
        ...
    ]
}

GET https://riftapi.mrvillage.dev/v1/link

Check for a link between a nation and Discord user.

Query Parameters

Name
Type
Description

id

string

The nation or Discord ID to search for.

Nations

GET https://riftapi.mrvillage.dev/v1/nations

Get basic information on all nations. (Updated every four minutes)

Prices

GET https://riftapi.mrvillage.dev/v1/prices

Get information on all resource prices. (Updated every five minutes)

Spies

GET https://riftapi.mrvillage.dev/v1/spies

Calculate the spy count for a nation.

Query Parameters

Name
Type
Description

id

integer

The nation ID to calculate spies for.

Treaties

GET https://riftapi.mrvillage.dev/v1/treaties

Query Parameters

Name
Type
Description

id

integer

The alliance ID to get treaties for.

Last updated