Skip to content

Returns every comment on a post in chronological order, with each author profile attached and the current user liked state flagged.

Comments are not paginated — the whole thread is returned in one response. Pending comments are only visible to moderators when content moderation is enabled. A post the caller cannot reach, or an unpublished post they cannot edit, returns a 404 rather than an empty list.

Endpoint

  • Method: GET

  • Path: /feeds/{feed_id}/comments

  • Edition: Core

  • Controller: CommentsController@getComments

  • Route source: fluent-community/app/Http/Routes/api.php:52

  • Controller source: fluent-community/app/Http/Controllers/CommentsController.php

  • Comments from deactivated or blocked profiles are excluded.

Live sample

The request and response below were recorded against a running FluentCommunity install and then anonymised — member names, emails, avatars and post content are fictional, and long collections are trimmed to a few entries.

GET List Feed Comments

GET
/feeds/{feed_id}/comments

Returns every comment on a post in chronological order, with each author profile attached and the current user liked state flagged.

Controller: CommentsController@getComments
Route source: fluent-community/app/Http/Routes/api.php:52

Authorizations

ApplicationPasswords

WordPress Application Passwords — use Basic auth with username:application_password.

Type
API Key (header: Authorization)

Parameters

Path Parameters

feed_id*

Feed ID extracted from the URL path.

Type
integer
Required

Responses

Successful response

application/json
JSON
{
  
"comments": [
  
  
{
  
  
  
"content_type": "string",
  
  
  
"created_at": "string",
  
  
  
"id": 0,
  
  
  
"is_sticky": 0,
  
  
  
"message": "string",
  
  
  
"message_rendered": "string",
  
  
  
"meta": [
  
  
  
  
{
  
  
  
  
  
"additionalProperties": "string"
  
  
  
  
}
  
  
  
],
  
  
  
"parent_id": "string",
  
  
  
"post_id": "string",
  
  
  
"reactions_count": "string",
  
  
  
"status": "string",
  
  
  
"type": "string",
  
  
  
"updated_at": "string",
  
  
  
"user_id": "string",
  
  
  
"xprofile": {
  
  
  
  
"avatar": "string",
  
  
  
  
"badge": "string",
  
  
  
  
"created_at": "string",
  
  
  
  
"display_name": "string",
  
  
  
  
"is_verified": 0,
  
  
  
  
"last_activity": "string",
  
  
  
  
"meta": {
  
  
  
  
  
"badge_slug": "string",
  
  
  
  
  
"cover_photo": "string",
  
  
  
  
  
"social_links": {
  
  
  
  
  
  
"fb": "string",
  
  
  
  
  
  
"instagram": "string",
  
  
  
  
  
  
"linkedin": "string",
  
  
  
  
  
  
"twitter": "string",
  
  
  
  
  
  
"youtube": "string"
  
  
  
  
  
},
  
  
  
  
  
"website": "string"
  
  
  
  
},
  
  
  
  
"permalink": "string",
  
  
  
  
"short_description": "string",
  
  
  
  
"status": "string",
  
  
  
  
"total_points": 0,
  
  
  
  
"user_id": 0,
  
  
  
  
"username": "string"
  
  
  
}
  
  
}
  
]
}

Playground

Authorization
Variables
Key
Value

Samples

Powered by VitePress OpenAPI

FluentCommunity developer documentation