theoddsapi_scores
Fetch live and recently-completed scores for a sport competition. Provide a sport key to get team scores and status, with optional daysFrom to include past games.
Instructions
Live and recently-completed scores for a competition.
Returns: [{id, sport_key, commence_time, completed, home_team, away_team, scores:[{name, score}], last_update}] — scores is null until the game starts; score values are STRINGS
NOTE: this shape is from the vendor's documentation and has NOT been verified against a live response (we hold no key for this provider). Treat it as approximate — inspect the actual payload before relying on a field name.
Example: Recent EPL scores {"sport": "soccer_epl", "daysFrom": 1}
Auth: needs your own key in THE_ODDS_API_KEY.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sport | Yes | sport_key. Required — part of the URL path. | |
| daysFrom | No | Include completed games from this many days ago (1-3). Omitting it returns live/upcoming only. | |
| dateFormat | No | Timestamp format. One of: iso, unix. | iso |