home / skills / openclaw / skills / the-sports-db
This skill helps you fetch and monitor sports data from TheSportsDB, including team lookups and recent or upcoming events.
npx playbooks add skill openclaw/skills --skill the-sports-dbReview the files below or copy the command above to add this skill to your agents.
---
name: the-sports-db
description: Access sports data via TheSportsDB (teams, events, scores).
metadata: {"clawdbot":{"emoji":"🏟️","requires":{"env":["THE_SPORTS_DB_KEY"]}}}
---
# TheSportsDB
Free sports database.
## Configuration
Ensure `THE_SPORTS_DB_KEY` is set in `~/.clawdbot/.env`. (Default test key is often `123` or `3`).
## Usage
### Search Team
```bash
curl -s "https://www.thesportsdb.com/api/v1/json/$THE_SPORTS_DB_KEY/searchteams.php?t=Palmeiras"
```
### Last Events (Scores)
Get last 5 events for a team ID:
```bash
curl -s "https://www.thesportsdb.com/api/v1/json/$THE_SPORTS_DB_KEY/eventslast.php?id=134465"
```
### Next Events (Fixtures)
Get next 5 events for a team ID:
```bash
curl -s "https://www.thesportsdb.com/api/v1/json/$THE_SPORTS_DB_KEY/eventsnext.php?id=134465"
```
**Note:** Rate limit is 30 requests/minute.
This skill provides programmatic access to TheSportsDB to fetch teams, events, and scores. It connects to the public API and exposes endpoints for searching teams, retrieving recent match results, and pulling upcoming fixtures. Configure an API key to use in automated scripts or integrations.
The skill queries TheSportsDB HTTP API using an API key stored in a local environment file. It supports team search, last events (recent scores) and next events (upcoming fixtures) by team ID, returning JSON responses you can parse or forward. Rate limiting is enforced by TheSportsDB, so clients should throttle requests accordingly.
Where do I set the API key?
Set THE_SPORTS_DB_KEY in ~/.clawdbot/.env so scripts can read it at runtime.
Is there a rate limit?
Yes. TheSportsDB enforces about 30 requests per minute, so throttle or cache requests.
Can I use the default test key in production?
No. Default test keys are for development only; obtain a proper key for production use.