Turf API Documentation
  1. Posts
Turf API Documentation
  • Users
    • Create Community Member
      POST
    • Update Community Member's Profile
      PUT
    • Get Community Members
      GET
    • Block Community Member
      PUT
    • Get Community Member's Details
      GET
    • Get Member's Created Posts
      GET
    • Get Member's Saved Posts
      GET
    • Get Member's Comments
      GET
  • Channels
    • Get Community Channels
      GET
  • Posts
    • Create Discussion Post
      POST
    • Update Discussion Post
      PUT
    • Create Article Post
      POST
    • Update Article Post
      PUT
    • Create Comment On Post
      POST
    • Update Comment On Post
      PUT
    • Delete Existing Comment
      DELETE
    • Top Community Posts
      GET
    • Get Channel's Posts
      GET
    • Get Discussion Post Details
      GET
    • Get Article Post Details
      GET
    • Create comment on comment
      POST
  • Courses
    • Top Community Courses
      GET
  • Segments
    • Get Community Segments
      GET
    • Add Member To Segment
      POST
    • Remove Member From Segment
      DELETE
  • Gamification
    • Get Community Badges
    • Award Badge To Member
    • Remove Badge From Member
  1. Posts

Top Community Posts

GET
https://2e0a7m2i9j.execute-api.eu-central-1.amazonaws.com/prod/community/v1/posts/trending
The Get Top Community Posts API retrieves a list of the top 10 discussion posts across your community, ranked by the number of likes/votes received. The API returns post details including post ID, contents, and like/vote count.

Request

Header Params

Responses

🟢200OK
application/json
Body

🟠400Bad Request
🟠401Unauthorized
🔴500Server Error
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://2e0a7m2i9j.execute-api.eu-central-1.amazonaws.com/prod/community/v1/posts/trending' \
--header 'x-api-key: api_key'
Response Response Example
200 - Example 1
{
    "message": "string",
    "data": [
        {
            "post_id": "string",
            "post_title": "string",
            "json_post": 0,
            "post_description": "string",
            "option_one": "string",
            "option_two": "string",
            "option_three": "string",
            "option_four": "string",
            "posts_type": 0,
            "created_at": "string",
            "translations": null,
            "comment_count": 0,
            "channel_name": "string",
            "community_title": "string",
            "option_one_votes": 0,
            "option_two_votes": 0,
            "option_three_votes": 0,
            "option_four_votes": 0,
            "total_votes_on_poll": 0,
            "total_number_of_likes": "string",
            "total_number_of_dislikes": "string",
            "total_reaction_on_post": "string",
            "post_comments": [
                {
                    "name": "string",
                    "pinned": 0,
                    "comment": "string",
                    "post_id": 0,
                    "job_title": "string",
                    "parent_id": 0,
                    "comment_id": 0,
                    "created_at": "string",
                    "best_answer": 0,
                    "profile_pic": "string",
                    "commented_by": 0,
                    "comment_reaction": 0
                }
            ],
            "post_attachements": [
                {
                    "type": "string",
                    "media": "string"
                }
            ],
            "created_by_user": {
                "id": 0,
                "profile_pic": "string",
                "name": "string",
                "job_title": "string",
                "user_slug": "string"
            },
            "survey_question": [
                "string"
            ]
        }
    ]
}
Modified at 2025-09-03 12:20:55
Previous
Delete Existing Comment
Next
Get Channel's Posts
Built with