How to retrieve comments of a page using APIs (v2 - deprecated)
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 found here.
Note
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.
To return a maximum of 100 results per call, use this initial call
To use pagination in your calls if a page contains more than 100 comments, you can use this subsequent calls
If you don't know the page ID, you can retrieve it using this endpoint, by using the encoded page path instead of the page ID.
Updated about 1 year ago