Skip to content

Instantly share code, notes, and snippets.

@chrisjason
Created November 21, 2012 17:07
Show Gist options
  • Save chrisjason/4126094 to your computer and use it in GitHub Desktop.
Save chrisjason/4126094 to your computer and use it in GitHub Desktop.
ESPN Teams API Sample XML Output - Public Key
<?xml version="1.0"?>
<response>
<sports>
<sportsItem>
<name>basketball</name>
<id>40</id>
<leagues>
<leaguesItem>
<name>National Basketball Assoc.</name>
<abbreviation>nba</abbreviation>
<id>46</id>
<groupId>7</groupId>
<shortName>NBA</shortName>
<teams>
<teamsItem>
<id>2</id>
<location>Boston</location>
<name>Celtics</name>
<abbreviation>BOS</abbreviation>
<color>006532</color>
<links>
<api>
<teams>
<href>http://api.espn.com/v1/sports/basketball/nba/teams/2</href>
</teams>
<news>
<href>http://api.espn.com/v1/sports/basketball/nba/teams/2/news</href>
</news>
<notes>
<href>http://api.espn.com/v1/sports/basketball/nba/teams/2/news/notes</href>
</notes>
</api>
<web>
<teams>
<href>http://espn.go.com/nba/team/_/name/bos/boston-celtics?ex_cid=espnapi_public</href>
</teams>
</web>
<mobile>
<teams>
<href>http://m.espn.go.com/nba/clubhouse?teamId=2&amp;ex_cid=espnapi_public</href>
</teams>
</mobile>
</links>
</teamsItem>
</teams>
</leaguesItem>
</leagues>
</sportsItem>
</sports>
<resultsOffset>0</resultsOffset>
<resultsLimit>50</resultsLimit>
<resultsCount>1</resultsCount>
<timestamp>2012-11-21T17:06:53Z</timestamp>
<status>success</status>
</response>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment