# 检查数据源配置

查看服务端配置的供应商、各平台是否具备实时数据源，以及参数上限。

GET `/api/status`

- **认证** 公开，无需登录。
- **成功状态** `200`

## 请求参数

此操作无需提交参数。

## 请求示例

**cURL**

```bash
curl -i -X GET 'https://social2api.com/api/status'
```

**Python**

```python
from urllib.error import HTTPError
from urllib.request import Request, urlopen

request = Request(
    "https://social2api.com/api/status",
    method="GET",
)
send = urlopen
try:
    with send(request) as response:
        print(response.status, response.read().decode("utf-8"))
except HTTPError as error:
    print(error.code, error.read().decode("utf-8"))
```

**JavaScript**

```javascript
const response = await fetch("/api/status", {
  method: "GET",
});
console.log(response.status, await response.text());
```

## 响应

**200 · 示例响应**

```json
{
  "providers": {
    "tikhub": false,
    "dataxapi": false,
    "socialtoai": false
  },
  "available": {
    "rednote": false,
    "douyin": false,
    "channels": false
  },
  "accountRequired": true,
  "limits": {
    "rednote": 100,
    "channels": 20,
    "commentsPerVideo": 50,
    "keywords": 20
  }
}
```

**错误示例**

```json
{
  "error": "找不到这个接口。"
}
```

| 字段 | 类型 | 说明 |
| --- | --- | --- |
| `statusBasis` | string | 报告依据是当前部署的配置。 |
| `observedAt` | ISO 8601 date-time | 生成配置快照的时间。 |
| `extended.catalogRevision` | string | 扩展接口目录的版本。 |
| `extended.realtimeAvailability` | null | 扩展接口的实时可用性尚未测量。 |
| `providers` | Record&lt;string, boolean&gt; | 供应商 ID 与是否具备 API Key 和至少一个启用任务的映射。 |
| `available` | Record&lt;string, boolean&gt; | 平台任务是否至少配置一个适用供应商。 |
| `accountRequired` | boolean | 部署是否通过账户服务验证实时用户。 |
| `limits.rednote` | integer | 小红书笔记的最大条数。 |
| `limits.channels` | integer | 微信视频号作品的最大条数。 |
| `limits.commentsPerVideo` | integer | 每个视频的最大评论数。 |
| `limits.keywords` | integer | 抖音关键词的最大数量。 |

## 错误状态

| HTTP | 原因与处理 |
| --- | --- |
| `404` | 此路径仅定义 GET。其他方法返回 404。 |

## 使用细节

-   此接口反映配置状态。实时健康或冷却信息可在控制台故障切换设置查看。

## 同组接口

-   [POST 运行取数任务](<https://social2api.com/docs/api/run/>)
-   [POST 调用 MCP 服务](<https://social2api.com/docs/api/mcp/>)
-   [GET 读取 OAuth 授权服务元数据](<https://social2api.com/docs/api/oauth-server-metadata/>)
-   [GET 读取 OAuth 受保护资源元数据](<https://social2api.com/docs/api/oauth-resource-metadata/>)
-   [GET 读取 MCP 资源的 OAuth 元数据](<https://social2api.com/docs/api/oauth-mcp-metadata/>)
-   [POST 注册 MCP OAuth 客户端](<https://social2api.com/docs/api/oauth-register/>)
-   [GET 启动 MCP OAuth 授权](<https://social2api.com/docs/api/oauth-authorize-start/>)
-   [POST 提交 MCP OAuth 授权决定](<https://social2api.com/docs/api/oauth-authorize-consent/>)
-   [POST 兑换或刷新 MCP OAuth 令牌](<https://social2api.com/docs/api/oauth-token/>)

规范页面：<https://social2api.com/docs/api/status/>
