Skip to content

Search Comments

  • Endpoint Path: /api/v2/search/comments
  • Method: GET
  • Request: Query

Headers Optional Parameter

Parameter NamePublic Mode (Required)Private Mode (Required)
X-Fresns-Aidoptionalrequired
X-Fresns-Aid-Tokenoptionalrequired
X-Fresns-Uidoptionalrequired
X-Fresns-Uid-Tokenoptionalrequired

Query Params

Parameter NameTypeRequiredDescription
searchKeyStringrequiredSearch Keywords
followUsersBooleanoptionalSpecified range: Published by users I follow
followGroupsBooleanoptionalSpecified range: In the groups I follow
followHashtagsBooleanoptionalSpecified range: In the topics I follow
followCommentsBooleanoptionalSpecified range: In the comments I follow
...optionalOptional comment list api all parameters

Return

json
{
    "code": 0,
    "message": "ok",
    "data": {
        "pagination": {
            "total": "Number / How much data in total",
            "pageSize": "Number / How much data on each page",
            "currentPage": "Number / Current page number",
            "lastPage": "Number / Last page number"
        },
        "list": [
            {
                // Common Data Structure -> Comment Info
            }
        ]
    }
}

Released under the Apache-2.0 License