Retrieve detailed information about a specified user group, including group name, level, price, configuration information, and other related user group data.
Precautions
- This interface uses the GET method
- Provide the user group ID to query the group details.
- Return the basic information and configuration information of the user group
- Configuration information includes settings such as sharing profits, superior profits, discounts, and expiration days
- May require specific permissions to access certain group information
Request address
{域名地址}/api/user/group/detail
Description:{域名地址}Need to replace it with your domain address, such ashttps://en.anqicms.com/api/user/group/detail
Request syntax
GET {域名地址}/api/user/group/detail
Request header
This interface also involves common request headers. For more information, please seeCommon Request Headers (Common Request Headers).
Request Parameters
| Field Name |
Type |
Required |
Description |
| id |
integer |
Yes |
Group ID, specifies the user group to query |
Response Headers
This interface only involves public response headers. More information, please refer toCommon Request Headers (Common Request Headers).
Return parameters
| Field Name |
Type |
Description |
| code |
integer |
Error code |
| message |
string |
Error Description |
| data |
object |
User group detail data |
data Parameter
| Field Name |
Type |
Description |
| id |
integer |
Group ID |
| Title |
string |
Group name |
| Description |
string |
Group introduction |
| level |
integer |
Group Level |
| Price |
integer |
Group Price |
| Setting |
object |
Configuration information |
| status |
integer |
Show Status |
| Favorable Price |
integer |
Discount price, displayed when the user logs in |
Setting configuration information parameters
| Field Name |
Type |
Description |
| Share reward |
integer |
Share profit percentage |
| Parent reward |
integer |
Parent Profit Percentage |
| Discount |
integer |
User Purchase Discount |
| Expire Day |
integer |
Days to Expire |
Example Usage
Request Example
Inquire details of specified group
GET /api/user/group/detail?id=1 HTTP/1.1
Host: www.anqicms.com
Inquire details of VIP user group
GET /api/user/group/detail?id=2 HTTP/1.1
Host: www.anqicms.com
Response Example
Response for ordinary user group details
{
"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
}
}
Response for VIP user group details
{
"code": 0,
"msg": "",
"data": {
"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
}
}
Error Code
| Error code |
Description |
| 0 |
OK |
| -1 |
Error, the reason is indicated in msg |
| 1001 |
Not logged in |
| 1002 |
Unauthorized |
| 200 |
API request OK |