krapio
Library referenceTypes

MapInfo

type MapInfo = {
  category: number;
  created_at: string;
  creator_name: string;
  description: string;
  featured: boolean;
  gameplays: number;
  leaderboard_order: LeaderboardOrder;
  leaderboard_type: LeaderboardType | "";
  map_id: number;
  name: string;
  playtime: number;
  updated_at: string;
  votes: number;
};

GET /api/map/:name

Properties

PropertyTypeDescription
categorynumberMap category ID
created_atstring"YYYY-MM-DD HH:MM:SS", not rfc3339 like the docs say
creator_namestringUsername of the map creator
descriptionstringMap description
featuredbooleanundocumented
gameplaysnumberNumber of times the map has been played
leaderboard_orderLeaderboardOrderSort order for leaderboard (0 = ascending/lower is better, 1 = descending/higher is better)
leaderboard_typeLeaderboardType | """time", "score" or empty when the map has no leaderboard
map_idnumberUnique map identifier
namestringMap name
playtimenumbermilliseconds
updated_atstringWhen the map was last updated
votesnumberTotal upvotes

On this page