GET /api/forum/comments
Supported formats: json
Returns a list comments on BGA forum posts. If the post_id
parameter is used, ALL comments for that post will be returned. Also, comments returned in this scenario will have an additional parameter called level
and be in tree structure order. Use the level to indicate indentation of threads which is based on the order of the array. Otherwise if the post_id
parameter isn't used, the amount returned will be based on the limit
parameter and wont contain the level
parameter.
Example
This is an example of recent comments
GEThttps://api.boardgameatlas.com/api/forum/comments?client_id=
Parameters
These are all the posible parameters to add to the request to filter or change the results based on how each function.
Parameter | Type | Example | Details |
---|---|---|---|
username | String | trentellingsen | This will only show posts made by the username |
post_id | String | Vm2DHDd1Ou | The the comments linked to the specified post_id. This will add a level parameter which is used to show threads. |
include_post | Boolean | true | This will include the post object if set to true. |
limit | Int | 100 | The limit of results (Default 30) |
skip | Int | 30 | The amount of results to skip (Typically used for paging) |
count | Boolean | true | Gives the number of comments based on all the other parameters. |