> Documentation index: https://metorial.com/llms.txt. Every page is available as Markdown by adding .md to its URL.

# Set up API Sports in Metorial for Claude, ChatGPT and Cursor
URL: https://metorial.com/docs/integrations/api-sports
Last updated: 2026-11-24

Share API Sports with your team in Claude, ChatGPT and Cursor through Metorial: API key sign-in, 23 tools, all read-only.

---

To give your team API Sports in Claude, ChatGPT, Cursor and other AI clients, an admin shares the API Sports integration in a Metorial portal, and each person connects with an API key. Agents can retrieve real-time and historical sports data across 12 sports including football, basketball, NBA, NFL, baseball, hockey, Formula 1, MMA, rugby, handball, volleyball, and AFL. The integration has 23 tools, all read-only, plus 3 triggers.

**What you will learn**

- How an admin shares API Sports in a portal and how each person connects
- What API Sports asks for when you connect, and where to find it
- How to check the connection with `metorial call`

**Before you start**

- A [portal](https://metorial.com/docs/platform/workforce/portals) with at least one access group
- An API key from API Sports for each person, or one for a shared connection
- For the CLI steps: the [Metorial CLI](https://metorial.com/docs/platform/cli), signed in to your portal

## Sign-in method

| Method | Type | What a person provides |
| --- | --- | --- |
| **API Key** | API token | `token` |

### API Key

To connect, a person enters:

- `token`: Your API-Sports API key from the dashboard

### Setup settings

Setup also asks for:

- `sport` (optional): The sport API to use as the default for requests

## Admin: share API Sports in a portal

### In the dashboard

1. **Open Shared Resources**

   Open **Workforce**, choose the portal, and select **Shared Resources** under **Access**.

2. **Share a new integration**

   Select **Share a Resource**, then **New Integration**, and choose API Sports. For how members connect, choose **Each person connects** so everyone enters their own API key, or **Shared connection** to enter one API key for everyone.

3. **Choose who gets it**

   Add the access groups that should see API Sports. When a person asks for access from the portal, the request appears under **Access Requests**.

### With the CLI

The CLI cannot create the per-user API Sports integration. Once it exists, check which groups have it:

```bash
metorial-admin portals access list <portal-id> --type provider_template --search "api sports"
```

## Employee: connect API Sports

### In the portal

1. **Open API Sports in the catalog**

   Sign in to your portal and open API Sports. The status reads **Available**.

2. **Authenticate**

   Under **Quick setup**, select **Authenticate**. In the setup window, enter your API key (token).

3. **Confirm**

   The status changes to **Configured**. If it later reads **Needs reconnect**, select **Reconnect** and sign in again.

### With the CLI

```bash
metorial catalog search "api sports"
metorial setup <catalog-item-id>
```

`catalog search` prints the catalog item ID. 

### Add it to your AI client

`metorial install` adds your API Sports connection to a local MCP client such as Claude Code, Cursor or Codex. `metorial list` prints the integration ID and `metorial client list` the client identifiers.

```bash
metorial list "api sports"
metorial client list
metorial install <client-identifier> <integration-id>
```

For a client that takes a server URL, such as ChatGPT, `metorial install custom <integration-id>` creates an installation token and shows the endpoint details.

## Make it read-only

Every API Sports tool only reads, so the connection is read-only as it is.

## Check it worked

```bash
metorial list "api sports"
metorial tools <integration-id>
metorial call <integration-id> get_odds -d '{}'
```

`metorial tools` lists the 23 tools, minus any you rejected. `get_odds` takes no input. It retrieves pre-match betting odds from multiple bookmakers for supported sports.

To see every input a tool takes, run `metorial schema <integration-id> <tool-key>`.

## Tools

### Read-only tools (23)

- `get_standings`: Retrieve league standings and tables for a given competition and season. Needs `league` and `season`.
- `get_odds`: Retrieve pre-match betting odds from multiple bookmakers for supported sports.
- `get_countries`: Retrieve available countries and their codes for use as filters in other tools.
- `get_fixtures`: Retrieve match fixtures, results, and schedules.
- `search_teams`: Search for teams across any supported sport.
- `get_transfers`: Retrieve football transfer history for a player or team.
- `get_injuries`: Retrieve player injury and suspension data for football.
- `get_coaches`: Retrieve football coach information including career history, photos, and biographical data.
- `get_predictions`: Retrieve AI-generated match predictions for a football fixture. Needs `fixtureId`.
- `get_team_statistics`: Retrieve aggregated season statistics for a specific team in a given league. Needs `league`, `season` and `team`.
- `get_player_stats`: Retrieve football player profiles and season statistics, or player profiles for Basketball, NBA, NFL, Formula 1 drivers and MMA fighters.
- `search_leagues`: Search for leagues and competitions available in API-Sports.
- `get_match_details`: Retrieve comprehensive details for a specific football fixture including in-game events (goals, cards, substitutions, VAR decisions), lineups with formations, and match statistics (possession, shots, corners, etc.). Needs `fixtureId`.
- `get_nba_player_statistics`: Retrieve original NBA player game statistics by player, game, team or season, including points, minutes, shooting, rebounds and assists.
- `get_nba_standings`: Retrieve NBA conference and division standings, wins, losses, percentages and streaks for a named league and season.
- `get_mma_fighter_statistics`: Retrieve original fighter statistics from an MMA fight, including strikes, takedowns and submission metrics when available.
- `get_seasons`: Discover the exact season identifiers accepted by a sport API.
- `get_mma_fight_results`: Retrieve the finish method, round, time and scorecards for an MMA fight when available.
- `get_nba_leagues`: Discover NBA league variant names, such as the main competition and summer leagues.
- `get_nba_team_statistics`: Retrieve NBA team season totals for scoring, shooting, rebounds, assists and other available metrics.
- `get_football_top_scorers`: Retrieve the football top scorers for a league and season, including original player profiles and statistics.
- `get_football_squads`: Retrieve a football team’s current squad, or the teams associated with a player.
- `get_account_status`: Retrieve the authenticated account identity, subscription and request usage for a sport API.

## Triggers

API Sports has 3 triggers, which fire on events in API Sports:

- `fixture_results`: Triggers when new fixture results become available for a configured league and season.
- `inbound_webhook`
- `fixture_status_change`: Triggers when a fixture starts, finishes, or changes status (e.g., halftime, extra time).

## Next steps

- [Claude Code](https://metorial.com/docs/platform/clients/claude-code), [Cursor](https://metorial.com/docs/platform/clients/cursor), [Codex](https://metorial.com/docs/platform/clients/codex) and [ChatGPT](https://metorial.com/docs/platform/clients/chatgpt): connect each client to your portal and use API Sports there
- [Tool permissions](https://metorial.com/docs/platform/guides/tool-permissions): tool filters and what employees see
- [API Sports on metorial.com](https://metorial.com/integrations/api-sports): the integration overview