espn

ESPN API, results of College Football teams not showing all teams


A question for the ESPN API team...

I'm using the ESPN API, and when I use the Teams API to pull a list of College Football teams:

Is there a reason only some Teams show up? And for the teams that DO show up, what is the rhyme or reason to them being the ones that have been selected to show up?

Thanks for the help! I can add additional info or screenshots if needed at all-


Solution

  • The teams API uses pagination based on the resultLimit, resultOffset and resultCount nodes in the API response. You can use the offset and limit GET parameters to get a larger, smaller result set as well as use them to make multiple requests in order to get all the teams in multiple requests.

    For example: try setting limit to something larger than the default of 50.