# 读取扩展数据接口目录

查找已发布的扩展操作、报价、平台分组、参数详情和文档。

GET `/v1/catalog`

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

## 请求参数

此操作无需提交参数。

## 请求示例

**cURL**

```bash
curl -i -X GET 'https://social2api.com/v1/catalog'
```

**Python**

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

request = Request(
    "https://social2api.com/v1/catalog",
    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("/v1/catalog", {
  method: "GET",
});
console.log(response.status, await response.text());
```

## 响应

**200 · 示例响应**

```json
{
  "schemaVersion": 2,
  "source": "dataxapi",
  "count": 197,
  "baseUrl": "https://social2api.com",
  "priceBook": {
    "version": "22",
    "effectiveAt": "2026-11-25T13:46:46.822Z",
    "sourceUrl": "https://dataxapi.com/prices.json",
    "sourceRevision": "0051cce45e9530b9",
    "openApiSourceUrl": "https://dataxapi.com/openapi.json"
  },
  "currency": "USD",
  "platformCount": 21,
  "platforms": [
    {
      "id": "bilibili",
      "operationCount": 10
    },
    {
      "id": "douyin",
      "operationCount": 27
    },
    {
      "id": "facebook",
      "operationCount": 4
    },
    {
      "id": "google",
      "operationCount": 3
    },
    {
      "id": "instagram",
      "operationCount": 8
    },
    {
      "id": "kuaishou",
      "operationCount": 9
    },
    {
      "id": "linkedin",
      "operationCount": 5
    },
    {
      "id": "meta",
      "operationCount": 1
    },
    {
      "id": "pinterest",
      "operationCount": 2
    },
    {
      "id": "reddit",
      "operationCount": 9
    },
    {
      "id": "telegram",
      "operationCount": 3
    },
    {
      "id": "threads",
      "operationCount": 4
    },
    {
      "id": "tiktok",
      "operationCount": 10
    },
    {
      "id": "wechat_channels",
      "operationCount": 14
    },
    {
      "id": "wechat_mp",
      "operationCount": 7
    },
    {
      "id": "wechat",
      "operationCount": 3
    },
    {
      "id": "weibo",
      "operationCount": 12
    },
    {
      "id": "x",
      "operationCount": 21
    },
    {
      "id": "xiaohongshu",
      "operationCount": 19
    },
    {
      "id": "youtube",
      "operationCount": 10
    },
    {
      "id": "zhihu",
      "operationCount": 16
    }
  ],
  "links": {
    "openapi": "https://social2api.com/openapi.json",
    "catalog": "https://social2api.com/v1/catalog",
    "prices": "https://social2api.com/prices.json",
    "catalogPricing": "https://social2api.com/pricing-catalog.json",
    "status": "https://social2api.com/api/status",
    "apiCatalog": "https://social2api.com/.well-known/api-catalog",
    "oauth": "https://social2api.com/.well-known/oauth-protected-resource",
    "docs": "https://social2api.com/docs/",
    "agents": "https://social2api.com/agents.md",
    "mcp": "https://social2api.com/mcp",
    "mcpDiscovery": "https://social2api.com/mcp/discovery",
    "evaluation": "https://social2api.com/agent-capabilities.json",
    "trial": "https://social2api.com/api/trial",
    "weeklyReport": "https://social2api.com/api/workflows/chinese-social-weekly-report"
  },
  "chargeAccount": "caller_dataxapi_account",
  "social2apiCreditsPerCall": 0,
  "operations": [
    {
      "providers": [
        "dataxapi",
        "socialtoai"
      ],
      "id": "bilibili.backup.users.videos.list",
      "platform": "bilibili",
      "method": "GET",
      "path": "/v1/bilibili/backup/users/videos/list",
      "pricingUnit": "call",
      "unitPrice": "0.03",
      "maxPrice": "0.03",
      "chargeWhenEmpty": "0.03",
      "chargeWhenNotFound": "0",
      "page": {
        "typical": 30,
        "max": 30,
        "cursorTtlSeconds": 3600
      },
      "documentation": "/docs/api/catalog-bilibili-backup-users-videos-list/",
      "priceProvider": "DataXAPI",
      "documentationUrl": "https://social2api.com/docs/api/catalog-bilibili-backup-users-videos-list/",
      "detailsUrl": "https://social2api.com/v1/catalog/capabilities/bilibili.backup.users.videos.list"
    }
  ]
}
```

**错误示例**

```json
{
  "error": "此端点不接受该 HTTP 方法。",
  "code": "method_not_allowed",
  "requestCount": 0
}
```

| 字段 | 类型 | 说明 |
| --- | --- | --- |
| `source` | string | 目录对应的数据源。 |
| `count` | integer | 当前发布的扩展数据操作数。 |
| `revision` | string | 当前接口目录和报价的内容版本。 |
| `priceBook` | object | 报价来源和版本。 |
| `operations[].id` | string | 操作标识。 |
| `operations[].method` | GET \| POST | 请求方法。 |
| `operations[].path` | string | Social2api 请求路径。 |
| `operations[].platform` | string | 平台 ID。 |
| `operations[].providers` | string\[\] | 已适配的供应商，按查询优先级排列。具体参数会影响可用供应商。 |
| `operations[].maxPrice` | string | 每次调用的上游价格保护上限，单位 USD。 |
| `operations[].pricingUnit` | call \| item \| minute | 上游报价的计价单位。 |
| `operations[].unitPrice` | string | 上游报价，十进制美元字符串。 |
| `operations[].documentationUrl` | URL | 操作文档的绝对 URL。 |
| `operations[].detailsUrl` | URL | 按操作读取参数和响应结构的公开 JSON。 |

## 错误状态

| HTTP | 原因与处理 |
| --- | --- |
| `405` | 目录使用 GET。 |

## 使用细节

-   响应示例展示第一项。接口返回完整目录。

## 同组接口

-   [GET 读取单个扩展操作的契约](<https://social2api.com/docs/api/catalog-capability/>)

规范页面：<https://social2api.com/docs/api/catalog-index/>
