Retrieve the list information of all user groups in the system, including detailed information such as names, levels, prices, configurations, etc.
Points to note
- This interface uses the GET method
- Access this interface without logging in.
- Return information about all available user groups in the system
- Include basic group information and configuration information
- Configuration information includes sharing benefits, superior benefits, discounts, and expiration days, etc.
Request address
{域名地址}/api/user/groups
Description:{域名地址}Replace it with your domain name, such ashttps://en.anqicms.com/api/user/groups
Request Syntax
GET {域名地址}/api/user/groups
Request Headers
This interface also involves common request headers. For more information, please refer toCommon Request Headers (Common Request Headers).
Request parameters
None
Response header
This interface only involves public response headers. For more information, please refer toCommon Request Headers (Common Request Headers).
Return parameters
| Field name | Type | Description |
|---|---|---|
| code | int | Error code |
| msg | string | Error description |
| data | object[] | User group list data |
parameter of data item
| Field name | Type | Description |
|---|---|---|
| id | int | Group ID |
| Title | string | Group name |
| description | string | Group Introduction |
| Level | int | Group Level |
| price | int | Group price |
| Setting | object | Configuration information |
| status | int | Display Status |
| Favorable price | int | Discount price, displayed when the user logs in |
| created_time | int | Timestamp of creation |
| updated_time | int | update timestamp |
Setting configuration information parameters
| Field name | Type | Description |
|---|---|---|
| share_reward | int | Share earnings percentage |
| parent_reward | int | Superior earnings percentage |
| discount | int | User purchase discount |
| expire_day | int | Expiry Days |
Usage Example
Request example
GET /api/user/groups HTTP/1.1
Host: www.anqicms.com
Response Example
Successful response
{
"code": 0,
"msg": "",
"data": [
{
"id": 1,
"title": "普通用户",
"description": "<ul> <li>有效期不限制</li> <li>最多管理2个站点</li> <li>最多2个/1万关键词导出任务</li> <li>最多2个采集文章任务</li> <li>最多2个文章组合任务</li> <li>最多2个文章监控任务</li> <li>整站采集/下载不可用</li> <li>累计AI写作额度 10 篇<div class=\"extra\">超出数量 10 积分一篇</div> </li> </ul>",
"level": 0,
"price": 0,
"setting": {
"share_reward": 20,
"parent_reward": 0,
"discount": 95,
"expire_day": 0
},
"status": 1,
"favorable_price": 0,
"created_time": 0,
"updated_time": 1696919880
},
{
"id": 2,
"title": "VIP用户",
"description": "<ul> <li>一年有效期</li> <li>不限制管理站点数量</li> <li>不限制关键词任务</li> <li>不限制采集文章任务</li> <li>不限制文章组合任务</li> <li>不限制文章监控任务</li> <li>可用整站采集/下载</li> <li>每天AI写作额度 100 篇<div class=\"extra\">超出数量 10 积分一篇</div> </ul>",
"level": 1,
"price": 68800,
"setting": {
"share_reward": 30,
"parent_reward": 0,
"discount": 95,
"expire_day": 365
},
"status": 1,
"favorable_price": 0,
"created_time": 0,
"updated_time": 1696919899
}
]
}
Empty List Response
{
"code": 0,
"msg": "",
"data": []
}
error code
| Error code | Description |
|---|---|
| 0 | OK |
| -1 | Error, the reason is indicated in msg |
| 1001 | Not logged in |
| 1002 | Not authorized |
| 200 | API request OK |