TopRank Skills

Home / Claw Skills / 搜索 / api-sports
Official OpenClaw rules 36%

api-sports

API Sports integration. Manage Sports. Use when the user wants to interact with API Sports data.

Stars

0

Installs

0

Status

ACTIVE

Visibility

PUBLIC

安装方式

直接复制以下提示词,发送给你的 AI 助手即可完成安装。

请先检查是否已安装 SkillHub 商店,若未安装,请根据 https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/skillhub.md 安装 SkillHub 商店,然后安装 api-sports 技能。 若已安装,则直接安装 api-sports 技能。

Overview

Skill Key
gora050/api-sports
Author
gora050
Source Repo
openclaw/skills
Version
-
Source Path
skills/gora050/api-sports
Latest Commit SHA
4056a99aae4e672f92e1a44d1571c4283693283b

Extracted Content

SKILL.md excerpt

# API Sports

API Sports provides real-time sports data and statistics. It's used by sports websites, mobile apps, and fantasy sports platforms to provide up-to-date information to their users.

Official docs: https://www.api-sports.io/documentation/

## API Sports Overview

- **Leagues**
- **Seasons**
- **Teams**
- **Players**
- **Venues**

## Working with API Sports

This skill uses the Membrane CLI to interact with API Sports. Membrane handles authentication and credentials refresh automatically — so you can focus on the integration logic rather than auth plumbing.

### Install the CLI

Install the Membrane CLI so you can run `membrane` from the terminal:

```bash
npm install -g @membranehq/cli
```

### First-time setup

```bash
membrane login --tenant
```

A browser window opens for authentication.

**Headless environments:** Run the command, copy the printed URL for the user to open in a browser, then complete with `membrane login complete <code>`.

### Connecting to API Sports

1. **Create a new connection:**
   ```bash
   membrane search api-sports --elementType=connector --json
   ```
   Take the connector ID from `output.items[0].element?.id`, then:
   ```bash
   membrane connect --connectorId=CONNECTOR_ID --json
   ```
   The user completes authentication in the browser. The output contains the new connection id.

### Getting list of existing connections
When you are not sure if connection already exists:
1. **Check existing connections:**
   ```bash
   membrane connection list --json
   ```
   If a API Sports connection exists, note its `connectionId`


### Searching for actions

When you know what you want to do but not the exact action ID:

```bash
membrane action list --intent=QUERY --connectionId=CONNECTION_ID --json
```
This will return action objects with id and inputSchema in it, so you will know how to run it.


## Popular actions

| Name | Key | Description |
|---|---|---|
| Get Leagues | get-leagues | Get the list of available leagues and cups....

Related Claw Skills