ESPN Developer Center Forums

Getting Started

RSS Feed

Using the 'limit' parameter

    • Moment
    • Topic created 1 year ago

    I'm not having a lot of success using the 'limit' parameter. If I wanted to get a certain subset of games from one baseball team during a particular period, is it possible to use limit like: http://api.espn.com/v1/sports/baseball/mlb/teams/2/events?dates=2010&limit=10 ?

    Thanks.

    Message edited by Moment 1 year ago

  1. Roger Raymond1 year ago

    Hi,

    As the events feeds are currently in beta, not all features have been implemented. The limit parameter is one of them. I'll see about adding that to the feature request bucket so we can track it.

    Also, it's good practice not to hit the full YEAR/SEASON call as it does tend to return a lot of results. If you'd like to limit you can do so by month using ?dates=YYYYMM instead.

    We currently do not support date ranges, but do have a feature request to support last, current and next game for a team/sport in the API.

    Best Regards, Roger

  2. Moment1 year ago

    Thanks for the response, and the tip about filtering by month. Looking forward to more exploration - you guys have developed a pretty amazing tool.

[ Page 1 of 1 ]