API call address
{域名地址}/api/tag/list
illustrate:{域名地址}
You need to replace it with your domain address, such ashttps://en.anqicms.com/api/tag/list
Calling methods
GET
Request parameters
Field name |
type |
Required |
illustrate |
itemId |
int |
no |
Document ID, read the tag list of the specified document. If not specified, read all tags |
letter |
string |
no |
First letter, specify the initial letter to get the specified tag collection |
type |
string |
no |
Link format, default list, can be list|page, when type=page, total can be retrieved |
page |
int |
no |
Retrieve specified pagination data, valid only when type=page |
limit |
int |
no |
Display quantity, 'limit' can specify the display quantity, and it pages by how many quantities, for example, if 'limit' is set to '10', only 10 items will be displayed. When 'limit' is not used in a pagination list, it supports the 'offset' mode, which is also known as comma-separated mode. If you want to start from the second item and retrieve 10 items, it can be set to 'limit'='2,10'. |
Return parameters
Field name |
type |
illustrate |
code |
int |
Error code |
msg |
string |
Error Cause Description |
data |
object[] |
Results content |
data result item parameter
Field name |
type |
illustrate |
id |
int |
Tag ID |
title |
string |
Tag name |
seo_title |
string |
Tag SEO Title |
url_token |
string |
Tag URL Alias |
keywords |
string |
Tag keywords |
Description |
string |
Label introduction |
first_letter |
string |
First letter |
link |
string |
Link |
created_time |
int |
Tag publish timestamp |
updated_time |
int |
Tag update timestamp |
status |
int |
Tag display status |
Request data example
Return to the data example
{
"code": 0,
"data": [
{
"id": 2,
"created_time": 1662733318,
"updated_time": 1662733318,
"title": "安企CMS",
"seo_title": "",
"keywords": "",
"url_token": "an-qi-cms",
"description": "",
"first_letter": "A",
"status": 1,
"link": "https://en.anqicms.com/tag/2/"
},
{
"id": 1,
"created_time": 1662733318,
"updated_time": 1662733318,
"title": "AnqiCMS",
"seo_title": "",
"keywords": "",
"url_token": "anqicms",
"description": "",
"first_letter": "A",
"status": 1,
"link": "https://en.anqicms.com/tag/1/"
}
],
"msg": "",
"total": 2
}
Error code
Error code |
illustrate |
0 |
OK |
-1 |
Error, the error reason is indicated in msg |
1001 |
Not logged in |
1002 |
Unauthorized |
200 |
API Request OK |