Get User Group List Interface

Get the list of all user groups in the system, including detailed information such as the name, level, price, configuration, etc. of each group.

Precautions

  • This interface uses the GET method
  • Access to this interface does not require login.
  • Return all available user group information in the system
  • Contains basic information and configuration information of the group
  • Configuration information includes settings such as sharing profits, superior profits, discounts, and expiration days

Request address

{域名地址}/api/user/groups

Description:{域名地址}Need to replace it with your domain address, such ashttps://en.anqicms.com/api/user/groups

Request syntax

GET {域名地址}/api/user/groups

Request header

This interface also involves common request headers. For more information, please seeCommon Request Headers (Common Request Headers).

Request Parameters

None

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 list data

Data item 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
created_time integer Creation Timestamp
updated_time integer update timestamp
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

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 Unauthorized
200 API request OK