ESPN API - How can I retrieve college basketball conferences using the Teams API?

Posted by nomad on Stack Overflow See other posts from Stack Overflow or by nomad
Published on 2013-10-29T21:50:57Z Indexed on 2013/10/29 21:53 UTC
Read the original article Hit count: 164

Filed under:

The support forums on ESPN.com recommend using Stack Overflow with the ESPN tag. That's why I'm here.

I'm trying to obtain a list of all NCAA college basketball teams using ESPN's Teams API. I started with this GET request:

http://api.espn.com/v1/sports/basketball/mens-college-basketball/teams?apikey=MY_API_KEY

That gave me a list of teams, but many of them are missing. For example, there is no Nebraska. So then I thought that maybe I need to get a list of teams by conference. So I read this in the documentation:

GROUPS: Allows for filtering by "group" or division, e.g. AL East, NFC South, etc. For group IDs and their corresponding values, make a request to http://developer.espn.com/v1/{resource}/leagues. Not applicable to golf and tennis.

So then I try to make a request to `http://developer.espn.com/v1/basketball/mens-college-basketball/leagues?apikey=MY_API_KEY' and it says the page does not exist.

Is this a bug or user error?

© Stack Overflow or respective owner

Related posts about espn