I try to get comment data for my posts via API from my Lemmy instance, but whatever I try on using the GetComments endpoint it delivers an empty array.

For example … GET https://programming.dev/api/v3/comment/list?post_id=20878811 leads to:

{
  "comments": []
}

I want to ask here, before creating an issue. Has someone a hint?

  • Kovukono@pawb.social
    link
    fedilink
    English
    arrow-up
    2
    ·
    2 months ago

    Yeah, you’re right. I didn’t read enough of the docs. The new field is only for posts, not for comments. It looks like post_id should still be valid.