【问题标题】:Does ESPN's API return imagesESPN 的 API 是否返回图像
【发布时间】:2013-10-08 20:51:53
【问题描述】:

ESPN API 是否会返回指向任何运动的球员图像的链接?我需要显示播放器图像以及我能够成功检索的其他数据。如果没有,还有其他推荐的方法来检索这些图像吗?

【问题讨论】:

  • 您可能想用“Web 服务”、“REST”、“JSON”等内容来标记这个问题。
  • 感谢您帮助新手。完成!

标签: json api rest espn


【解决方案1】:

我实际上不知道 ESPN 有一个 API。太棒了。

documentation 看来,您可以通过响应中的 headshots 属性(如果可用)找到图像:

headshots   Collection of athlete headshots as specified below, each containing href, width, and height attributes. Soccer, recruiting, and WNBA not currently supported. Note: clients apps must be responsible for handling missing headshots as not every athlete has one.               
full 600x436 athlete headshot               
xlarge 350x254 athlete headshot             
large 65x90 athlete headshot                
medium 43x60 athlete headshot               
small 34x48 athlete headshot                
xsmall 28x38 athlete headshot               
fantasy 200x145 athlete headshot

还有一个视频API,但看起来不像是针对运动员的。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2012-09-10
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多