Get Tag Document List Interface

API Call Address

{域名地址}/api/tag/data/list

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

Calling method

GET

Request parameters

Field name Type Required Description
id int Yes Label ID, if filename is provided, ID is not required
filename string No Label URL alias, either Label ID or filename
order string No Sorting method, such as:id descThe supported fields include:id/views/category_id/created_time/updated_timeetc
type int No Supports sorting bypage/list/relatedmethod. The default value islistWhen type=“list”, only the specified limit number will be displayed. If type=“page”, the total number of documents can be obtained.
page int No Specify the page content to be retrieved, only effective when type=‘page’
limit int No Display quantity, 'limit' can specify the display quantity, paginated by how many items, for example, 'limit="10"' will only display 10 items. When 'limit' is not used in a pagination list, it supports the 'offset' mode, which is the comma-separated mode. If you want to start from the second item and get 10 items, you can set it to 'limit="2,10"'.

Return parameters

Field name Type Description
code int error code
msg string error reason description
data object[] result content
Total int Number of documents, returned only when type=page

data result item parameters

Field name Type Description
id int Document ID
title string Document Title
seo_title string Document SEO Title
url_token string Document URL Alias
Keywords string Document Keywords
Description string Document Summary
module_id int Document Model ID
category_id int Document Category ID
Views int Document Views
Comment Count int Document comments count
images string[] Document group image
Logo string Document Logo
Thumb string Document thumbnail
flag string Document recommendation attributes, headline [h] recommended [c] featured [f] special [a] scrolling [s] bold [h] image [p] jump [j]
canonical_url string canonical url
fixed_link string document fixed link
Created Time int document publish timestamp
updated_time int Document update timestamp
status int Document display status
user_id int User ID
price int Price, unit in cents
stock int Inventory quantity
user_id int User ID

request data example

Parameter Value
id 1
type page

Return Data Example

{
  "code": 0,
  "data": [
    {
      "id": 1,
      "created_time": 1607308159,
      "updated_time": 1662717106,
      "title": "关于AnqiCMS",
      "seo_title": "",
      "url_token": "design",
      "keywords": "",
      "description": "安企内容管理系统(AnqiCMS),是一款使用 GoLang 开发的企业站内容管理系统,它部署简单,软件安全,界面优雅,小巧,执行速度飞快,使用 AnqiCMS 搭建的网站可以防止众多安全问题发生。",
      "module_id": 1,
      "category_id": 1,
      "views": 1338,
      "comment_count": 0,
      "images": null,
      "template": "",
      "status": 1,
      "canonical_url": "",
      "fixed_link": "",
      "flag": "",
      "user_id": 0,
      "price": 0,
      "stock": 9999999,
      "has_pseudo": 0,
      "keyword_id": 0,
      "origin_url": "",
      "origin_title": "",
      "category": null,
      "module_name": "",
      "data": null,
      "logo": "https://en.anqicms.com/uploads/202012/7/bd36c37ef742c7be.webp",
      "thumb": "https://en.anqicms.com/uploads/202012/7/thumb_bd36c37ef742c7be.webp",
      "extra": {
        "author": {
          "name": "作者",
          "value": "AnqiCMS",
          "default": null
        },
        "certificate": {
          "name": "学历",
          "value": null,
          "default": null
        },
        "city": {
          "name": "城市",
          "value": null,
          "default": null
        }
      },
      "link": "https://en.anqicms.com/design"
    },
    {
      "id": 2,
      "created_time": 1607308247,
      "updated_time": 1611373941,
      "title": "AnqiCMS使用帮助",
      "seo_title": "",
      "url_token": "help",
      "keywords": "",
      "description": "anqicms常见问题汇总",
      "module_id": 1,
      "category_id": 1,
      "views": 1655,
      "comment_count": 0,
      "images": null,
      "template": "",
      "status": 1,
      "canonical_url": "",
      "fixed_link": "",
      "flag": "",
      "user_id": 0,
      "price": 0,
      "stock": 9999999,
      "has_pseudo": 0,
      "keyword_id": 0,
      "origin_url": "",
      "origin_title": "",
      "category": null,
      "module_name": "",
      "data": null,
      "logo": "https://en.anqicms.com/uploads/202012/7/bd36c37ef742c7be.webp",
      "thumb": "https://en.anqicms.com/uploads/202012/7/thumb_bd36c37ef742c7be.webp",
      "extra": null,
      "link": "https://en.anqicms.com/help"
    }
  ],
  "msg": "",
  "total": 2
}

Error Code

error code Description
0 OK
-1 Error, the reason is indicated in the msg
1001 Not logged in
1002 Unauthorized
200 API request OK