Classic APIs
ClassicBadgesApi
badgesForUniverse

badgesForUniverse

Gets badges for a specific universe.

Parameters

NameTypeDescription
universeIdUniverseIdThe ID of the universe to get badges from.
limit?10 | 25 | 50 | 100The number of results per request.
sortOrder?SortOrderThe order the results are sorted in.
cursor?stringThe paging cursor for the previous or next page.

Example

const { data: badges } = await ClassicBadgesApi.badgesForUniverse({ universeId: 1685831367 }); 

Example Data

[
  {
    id: 2124533401,
    name: "Tutorial Done",
    description: "true",
    displayName: "Tutorial Done",
    displayDescription: "true",
    enabled: true,
    iconImageId: 5316501478,
    displayIconImageId: 5316501478,
    created: 2020-05-05T08:20:10.653Z,
    updated: 2024-07-16T22:34:44.021Z,
    statistics: {
      pastDayAwardedCount: 0,
      awardedCount: 394,
      winRatePercentage: 0,
    },
    awardingUniverse: {
      id: 1685831367,
      name: "RoCamping",
      rootPlaceId: 4922741943,
    },
  },
] 

Endpoint

GET /v1/universes/{universeId}/badges