Skip to content

ImageIcon in API_GetUserAwards does not take earned Award Tier into account #4373

@Amp0

Description

@Amp0

Describe the bug
Tiers are not taken into account for the ImageIcon value when calling the API_GetUserAwards endpoint.
Currently, the ImageIcon seems to return the event Icon

To Reproduce
Steps to reproduce the behavior:

  1. Query the API_GetUserAwards using : https://retroachievements.org/API/API_GetUserAwards.php?y={{apiKey}}&u=Ampo
  2. Check ImageIcon for the Achievement of the Week 2025 or for the RA-TALITY event
{
      "AwardedAt": "2025-10-18T16:19:49+00:00",
      "AwardType": "Event",
      "AwardData": 1,
      "AwardDataExtra": 3,
      "DisplayOrder": 24,
      "Title": "Achievement of the Week 2025",
      "ConsoleID": 101,
      "ConsoleName": "Events",
      "Flags": null,
      "ImageIcon": "/Images/106174.png"
    }

Expected behavior
The ImageIcon should return the image asset of the user's earned award tier and not the event image asset.

  {
      "AwardedAt": "2025-10-18T16:19:49+00:00",
      "AwardType": "Event",
      "AwardData": 1,
      "AwardDataExtra": 3,
      "DisplayOrder": 24,
      "Title": "Achievement of the Week 2025",
      "ConsoleID": 101,
      "ConsoleName": "Events",
      "Flags": null,
      "ImageIcon": "/Images/106726.png"
    }

Screenshots
Event awards on the website's profile :
Image

Event awards displayed using the API's data :
Image

Achievement of the Week 2025 tiers for reference :

Image

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions