When searching for news for a specific player, the API doesn’t appear to be filtering by a single player properly.
Example for Trae Young (28978646789):
{“playerID”: “28978646789”, “maxItems”: “1”}
response:
[{‘lastUpdated’: 2023120618055708, ‘image’: ‘https://a.espncdn.com/photo/2023/1206/r1262575_1296x518_5-2.jpg’, ‘playerID’: ‘28978646789’, ‘link’: ‘https://www.espn.com/nba/story/_/id/39058113’, ‘title’: ‘Source: Lakers told no black uniforms for Vegas’}]
ディスカッションに参加しましょう-以下にコメントを追加してください:
Hi Dan,
We’ve fixed this error. playerID now will only return news for that specific player.
Hi Dan,
Yes unfortunately there is a bug that just popped up recently (a few weeks now) that’s been frustrating me in connecting playerID’s with news articles. The code here is a little complicated and it seems to be connecting almost every player with every article, making the playerID search more or less useless. This will take some time to work through but I’ll let you know as soon as that’s fixed.