Get friend link list interface

Retrieve the website's friend link list, return all configured friend link information, including link title, URL, whether to add the nofollow attribute, and other detailed information.

Points to note

  • This interface uses the GET method and no request parameters are required
  • Return all reviewed and approved friend link information
  • Include basic information and status of the link
  • Support nofollow setting, which can control SEO effect
  • The returned link information can be used for front-end display

Request address

{域名地址}/api/friendlink/list

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

Request Syntax

GET {域名地址}/api/friendlink/list

Request Headers

This interface involves only public 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[] Friend link list data

Parameters of data array elements

Field name Type Description
id int Friend link record ID
created_time int Timestamp of creation
updated_time int update timestamp
Title string Opposite keyword/link title
link string Opposite link URL
back_link string The other link page
my_title string My keywords
my_link string My Link URL
contact string contact information
remark string Note information
nofollow int Add nofollow, 0: Do not add, 1: Add
sort int Sort Value
status int Status
checked_time int Review Timestamp

Usage Example

Request example

GET /api/friendlink/list HTTP/1.1
Host: www.anqicms.com

Response Example

{
  "code": 0,
  "msg": "",
  "data": [
    {
      "id": 1,
      "created_time": 1626076270,
      "updated_time": 1652067973,
      "title": "AnqiCMS",
      "link": "https://en.anqicms.com",
      "back_link": "",
      "my_title": "",
      "my_link": "",
      "contact": "",
      "remark": "",
      "nofollow": 0,
      "sort": 1,
      "status": 4,
      "checked_time": 1652067973
    },
    {
      "id": 2,
      "created_time": 1626076270,
      "updated_time": 1652067973,
      "title": "免费取名网",
      "link": "https://www.888name.cn",
      "back_link": "",
      "my_title": "",
      "my_link": "",
      "contact": "",
      "remark": "",
      "nofollow": 0,
      "sort": 1,
      "status": 4,
      "checked_time": 1652067973
    }
  ]
}

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