ESPN Developer Center Forums

Help!

RSS Feed

Headlines by team, conflicting availability

    • Erik
    • Topic created 1 year ago

    The Headlines API (http://developer.espn.com/docs/headlines#parameters) lists team-specific headlines as available with the 'public' role. When executing the related method (http://api.espn.com/v1/sports/basketball/mens-college-basketball/teams), however, it rejects it based on account level.

    I see the Teams API isn't available to the public role, but the Headlines API implies that team-specific headlines are available. There seems to be some conflicts in the documentation.

    Message edited by Erik 11 months ago

  1. Mark1 year ago

    Experienced this as well... Can we get some clarification on whether team specific Headlines are available to the public?

  2. mukulj1 year ago

    You should be able to retrieve news content by team. The documentation highlights a few options:

    /teams/:teamId/news Retrieves stories about a particular team.
    ie. the latest Tampa Bay Rays content: http://api.espn.com/v1/sports/baseball/mlb/teams/30/news?apikey=<yourkey>

    /teams/:teamId/news/dates/:yyyymmdd Retrieves stories about a particular team, for a particular date. ie. Lakers content from March 2: http://api.espn.com/v1/sports/basketball/nba/teams/13/news/dates/20120302?apikey=<yourkey>

    The /teams feed itself is not accessible to the public however either of the above options would offer means for retrieval of team content by the news feed.

    -MJ

  3. JGWitkowski1 year ago

    I ran into the same problem with trying to figure out team IDs. It happens to be in the webpage source code for each team on espn.com

    Example: For the the Red Sox team ID, go to their page on ESPN - http://espn.go.com/mlb/team/_/name/bos/boston-red-sox

    Then look at the source code and search for "teamid:".

  4. Chris Jason11 months ago

    Hi folks,

    As announced in today's blog post (http://developer.espn.com/blog/read/20120625_enhancements ), this bug is now fixed. All access tiers can now retrieve athlete and team IDs, and furthermore use those to fetch news by a given player or team.

    For example, this API call will get you a list of all MLB teams (and their corresponding IDs): GET api.espn.com/v1/sports/baseball/mlb/teams?apikey=yourkey

    And this API call (as an example) will get you most recent news about the New York Yankees: GET api.espn.com/v1/sports/baseball/mlb/teams/10/news?apikey=yourkey

[ Page 1 of 1 ]