The Viafoura Documentation Hub

Welcome to the Viafoura documentation hub. You'll find comprehensive guides and documentation to help you start working with Viafoura as quickly as possible, as well as support if you get stuck. Let's jump right in!

Get Started    API Reference

How to retrieve comments of a page using APIs

How to retrieve comments of a page using APIs (for sites running Viafoura V2)

To retrieve the comments of a specific page, you can use the API endpoint Note that if you want to retrieve the comments that are visible to users, you can call the endpoint directly; but if you also want to retrieve the comments that have been rejected/disabled by moderators, you need to be logged in as a moderator or administrator when you make the call.

This endpoint returns a maximum of 100 results per call. If the page contains more than 100 comments, you can use pagination in your calls to retrieve subsequent comments:

  1. Initial call:[siteid]/pages/[pageid]/comments?show=recent&limit=100
  2. Subsequent calls:[siteid]/pages/[pageid]/comments?show=recent&limit=100&after_id=[last-comment-id-in-previous-page]

If you don't know the page ID, you can retrieve it using the endpoint, but using the encoded page path instead of the page ID.

Updated 11 months ago

How to retrieve comments of a page using APIs

Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.