Skip to content

Ability to retrieve comments for a paper returned from /api/papers #3560

@tleyden

Description

@tleyden

Is your feature request related to a problem? Please describe.

The get daily papers api returns a list of papers, but I don't see an easy way to fetch the comments for that paper.

One of the returned values is a discussionId, however I'm not sure how to use that to fetch comments.

Describe the solution you'd like
Either some documentation that explains how to use the discussionId to fetch the comments, or a separate API endpoint like /api/daily_papers/comments that returned the discussion comments for the paper.

Describe alternatives you've considered
Web scraping, but it's a lot of extra work, and wasteful in terms of compute and bandwidth on both sides.

Additional context
I'm open to submitting a PR if someone will sign up to review it. Let me know the PR guidelines.

I'm building a mobile app with a feature to navigate the Hugging Face Top Papers.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions