API Call Address
{域名地址}/api/tag/list
Description:{域名地址}
Need to replace it with your domain address, such ashttps://en.anqicms.com/api/tag/list
Calling method
GET
Request parameters
Field name |
Type |
Required |
Description |
itemId |
int |
No |
Document ID, read the Tag list of the specified document. If not specified, read all tags. |
letter |
string |
No |
First letter, specifying the first letter can retrieve the specified tag set |
type |
string |
No |
Link format, default list, can be list|page, when type=page, total can be obtained |
page |
int |
No |
Retrieve data for a specified page, only valid 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 |
data result item parameters
Field name |
Type |
Description |
id |
int |
Label ID |
title |
string |
Label name |
seo_title |
string |
Label SEO title |
url_token |
string |
Label URL Alias |
Keywords |
string |
Label Keywords |
Description |
string |
Label Description |
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 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 |
Description |
0 |
OK |
-1 |
Error, the reason is indicated in the msg |
1001 |
Not logged in |
1002 |
Unauthorized |
200 |
API request OK |