List Comments - API v2.4 - CoastSnap - SPOTTERON

List comments

Endpoint: https://www.spotteron.com/api/v2.4/comments
Authentication: Bearer token
Method: GET
Return format: JSON
Parameter:
Name Required Type Info
filter[id__gt] INT Get comments with id greater than given value
filter[id__lt] INT Get comments with id lower than given value
filter[topic_id] true INT Filter by topic id, 37 for CoastSnap
filter[target_type] INT Get comments for a specific content type:
  • 1 for User
  • 3 for Spot
filter[target_id] INT Get comments for a specific content id. Use in conjunction with target_type.
filter[root_id] INT Filter by root comment id. (Get replies to a comment)
filter[created_at__gt] STRING Get comments created after a given date, Format: "YYYY-MM-DD hh:mm"
filter[created_at__lt] STRING Get comments created before a given date, Format: "YYYY-MM-DD hh:mm"
filter[created_by] INT Get comments created by given user id
filter[is_root] INT Get only root comments
filter[is_reply] INT Get only replies to root comments
order[] STRING e.g. "id DESC"
limit INT API is limited to max. 100 comments per request/page
page INT
Example:
Get the latest 10 comments
https://www.spotteron.com/api/v2.4/comments?filter[topic_id]=37&limit=10&page=1&order[]=id+desc