سؤال

I am looking for an existing API or a method to obtain NCAA Men's Basketball player and team stats. I have failed to finding anything that is easy to use or up-to-date. Any suggestions out there?

هل كانت مفيدة؟

المحلول

I was unable to find a API to provide NCAA Mens Basketball data. I have hacked together the following service that parses data from http://stats.ncaa.org/.

Examples at: http://ncaa-data-api.appspot.com/

The following services are available.

  1. Get all the Division 1 teams in JSON format
  2. Get all the players on team in JSON format
  3. Get statistics for a specified player in JSON format
  4. Get schedule for a team in JSON format

نصائح أخرى

I found two interfaces to data.ncaa.com that appear to be more accurate and reliable than ncaa-data-api.appspot.com, and contain more data. Below are two examples. Replace basketball with your desired sport as well as change the date, game info, and "callback" name...which is really just a label for the data feed.

Individual game detail: http://data.ncaa.com/jsonp/game/basketball-men/d1/2015/04/06/wisconsin-duke/boxscore.json?callback=ncaaGameTabs.drawTab

Daily list of games, including scheduled, in-progress, and complete: http://data.ncaa.com/jsonp/scoreboard/basketball-men/d1/2016/01/23/scoreboard.html

In attempting to use ncaa-data-api.appspot.com, I ran into issues of missing teams, away flag being used on both teams if the site was neutral, creating a problem with duplicate data needing to be filtered, and duplicate data in a single feed on multiple calls to the same api function. Every call resulted in the data feed adding another set of data.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top