The REST API
The JamComments REST API allows you to access your comments by HTTP request. Currently, only one endpoint is supported. The host for making API requests is https://go.jamcomments.com
.
Retrieving Comments
Use this endpoint to retrieve a paginated list of comments for a page or entire site. Only approved comments will be fetched.
Method & URL
GET /api/comments
Request Headers
Header | Description |
---|---|
Authorization | Bearer 12345-YOUR-API-TOKEN (You can create one for your account in the JamComments admin. |
Query Parameters
Parameter | Required? | Description |
---|---|---|
domain | Yes | The domain of the site. |
path | No | The page path for the comments you’re like to retrieve. If left blank, all comments for the given domain will be fetched. |
per_page | No | The number of top-level comments to be returned per page. The default is 50. |
Response Body
The response body will be a JSON string containing a paginated list of comments, along with information about future pages (if needed).
Example Request
Example Response
Feedback?
If you have any feedback on this feature, or have other related requests, send me an email!