跳转到内容
开发者文档 / 资源分类接口

获取标签分页

分页获取平台标签,可按资源类型筛选。

GET/api/class_type/tags

鉴权方式 请求头 Api-Key、Api-Secret

查询参数

参数类型必填默认值说明
resourceTypeIdinteger否-资源类型 ID
pageinteger否1页码,最小为 1
perinteger否10每页数量,范围 10–200
bash
curl 'https://resource-api.xyeidc.com/api/class_type/tags?resourceTypeId=4&page=1&per=10' \
  -H 'Api-Key: YOUR_API_KEY' \
  -H 'Api-Secret: YOUR_API_SECRET'

响应示例

json
{
  "code": 200,
  "msg": "Success!",
  "data": {
    "data": [{"id": 16, "resourceTypeId": 4, "name": "冒险", "iconUrl": null}],
    "perPage": 10,
    "currentPage": 1,
    "totalPages": 1,
    "count": 1
  }
}