Skip to content

Search Posts

  • Endpoint Path: /api/fresns/v1/search/posts
  • Method: GET
  • Request: Query

Headers Optional Parameter

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

Query Params

KeyTypeRequiredDescription
searchKeyStringrequiredSearch Keywords
followUsersBooleanoptionalSpecified range: Published by users I follow
followGroupsBooleanoptionalSpecified range: In the groups I follow
followHashtagsBooleanoptionalSpecified range: In the hashtags I follow
followGeotagsBooleanoptionalSpecified range: In the geotags I follow
followPostsBooleanoptionalSpecified range: In the posts I follow
...optionalOptional post 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 -> Post Info
            }
        ]
    }
}

Released under the Apache-2.0 License