Description
The /players/{player_id}/summary endpoint incorrectly returns an endorsement level of 0 for players who have a valid endorsement level.
While the integer value fields show 0, the API successfully scrapes and populates the endorsement.frame URL field. The frame asset string explicitly references the correct endorsement level numerical identifier within its SVG anchor fragment.
Steps to Reproduce
Execute a GET request against the player summary endpoint:
GET https://overfast-api.tekrop.fr/players/de6b82ab1492d6ffbea82f%7Cae0b1af145bdc82c4868b7023aa4e0c0/summary
Snippet of the Current API response payload:
{
"endorsement": {
"level": 0,
"frame": "https://static.playoverwatch.com/images/pages/career/icons/endorsement/5.47a76a6a547ef91d729ae62c21aa0d0ba5487aed.svg#icon"
}
}
Expected Behavior
The endorsement.level property should accurately match the scraped level from the Blizzard profile page. Given the example above, the level value should be parsed as 5 instead of defaulting to 0.
Actual Behavior
The level integer is returned as 0, failing to map properly during page html parsing, despite the asset frame identifier verifying a level 5 placement status on the live profile page.
Description
The
/players/{player_id}/summaryendpoint incorrectly returns an endorsement level of0for players who have a valid endorsement level.While the integer value fields show
0, the API successfully scrapes and populates theendorsement.frameURL field. The frame asset string explicitly references the correct endorsement level numerical identifier within its SVG anchor fragment.Steps to Reproduce
Execute a
GETrequest against the player summary endpoint:Snippet of the Current API response payload:
{ "endorsement": { "level": 0, "frame": "https://static.playoverwatch.com/images/pages/career/icons/endorsement/5.47a76a6a547ef91d729ae62c21aa0d0ba5487aed.svg#icon" } }Expected Behavior
The
endorsement.levelproperty should accurately match the scraped level from the Blizzard profile page. Given the example above, the level value should be parsed as5instead of defaulting to0.Actual Behavior
The
levelinteger is returned as0, failing to map properly during page html parsing, despite the asset frame identifier verifying a level 5 placement status on the live profile page.