API.getCountryRanking

interface Country {
    cursor: {
        page: null | number;
    };
    ranking: {
        active_users: number;
        code: string;
        country: {
            code: string;
            name: string;
        };
        performance: number;
        play_count: number;
        ranked_score: number;
    }[];
    total: number;
}

Hierarchy

  • Ranking
    • Country

Properties

Properties

cursor: {
    page: null | number;
}

Type declaration

  • page: null | number

    The number of the next page, is null if no more results are available

ranking: {
    active_users: number;
    code: string;
    country: {
        code: string;
        name: string;
    };
    performance: number;
    play_count: number;
    ranked_score: number;
}[]

Type declaration

  • active_users: number
  • code: string

    Same as country.code

  • country: {
        code: string;
        name: string;
    }
    • code: string

      The country's ISO 3166-1 alpha-2 code! (France would be FR, United States US)

    • name: string
  • performance: number
  • play_count: number
  • ranked_score: number
total: number

Total amount of elements available across all pages, not on this specific page! Maximum of 10000