API reference
Sports
The sports you can optimize, and the key to send as each pick’s
sport. Free: never counted and never limited.GET/v1/sports
Sports join the list as their season opens and leave it when it ends, so read this list rather than hard-coding it. A key that is not on it gets 400 VALIDATION_ERROR from optimize, naming the pick.
Example
curl https://api.kellyiq.com/v1/sports \
-H "Authorization: Bearer $KELLYIQ_API_KEY"{
"sports": [
{
"key": "baseball_mlb",
"name": "MLB"
},
{
"key": "basketball_nba",
"name": "NBA"
},
{
"key": "basketball_ncaab",
"name": "NCAAB"
},
{
"key": "americanfootball_ncaaf",
"name": "NCAAF"
},
{
"key": "americanfootball_nfl",
"name": "NFL"
},
{
"key": "icehockey_nhl",
"name": "NHL"
}
]
}Response
sports has one entry per sport, by name:
| Field | Type | Required | Meaning |
|---|---|---|---|
key | string | no | Send this as picks[].sport. |
name | string | no | The sport's name, for display. |