Fetching comments via API

Back to Admin back to HN+ home
To fetch comments from your site via API, you will need to make GET request to the following URL.
[YOUR SITE URL]/api/comments
You can include the following list of URL query parameters:
api_key Your site's API key * Required
limit Number of contents you would like to retrieve - default = 20, max = 50 [Optional]
page A page you want to retrieve contents from - default = 1 [Optional]
content_id Content ID [Optional]
comment_id Comment ID [Optional]
Got questions?
Get in touch with us