Interface to Get Home Page TDK

Retrieve the SEO information of the website homepage, including title (Title), keywords (Keywords), and description (Description) among other TDK configuration information.

Points to note

  • This interface uses the GET method
  • Access this interface without logging in.
  • Return the home page SEO configuration information set by the website administrator in the background
  • TDK information is used for SEO optimization, including the title, keywords, and description of the home page
  • This information is usually used for browser tab titles and search engine display

Request address

{域名地址}/api/setting/index

Description:{域名地址}Replace it with your domain name, such ashttps://en.anqicms.com/api/setting/index

Request Syntax

GET {域名地址}/api/setting/index

Request Headers

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

Request parameters

None

Response header

This interface only involves public response headers. For more information, please refer toCommon Request Headers (Common Request Headers).

Return parameters

Field name Type Description
code int Error code
msg string Error description
data object Home TDK Data

data parameter

Field name Type Description
SeoTitle string Home SEO Title
SeoKeywords string Home SEO keywords
SeoDescription string Home SEO description

Usage Example

Request example

GET /api/setting/index HTTP/1.1
Host: www.anqicms.com

Response Example

{
  "code": 0,
  "msg": "",
  "data": {
    "SeoTitle": "安企内容管理系统(AnqiCMS):一款使用 GoLang 开发的企业站内容管理系统",
    "SeoKeywords": "企业建站系统,内容管理系统,网站安全,安企CMS,anqicms",
    "SeoDescription": "AnqiCMS 除了适合做企业站,也适合做营销型网站、企业官网、商品展示站点、政府网站、门户网站、个人博客等等各种类型的网站。AnqiCMS 是什么,AnqiCMS 是一个可以自由使用并开放源码的内容管理系统,你可以拿 AnqiCMS 来搭建各种不违法的网站。"
  }
}

error code

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