0

API to download a particular category post's number of Likes, Views, Replies

Hi Team, 

Looking for help
I would like to know if there's an API to get a report on a  particular category post's number of Likes, Views, Replies, Number of Follows

Categories include Get help and Product Announcement

2 replies

null
    • Forumbee
    • 9 mths ago
    • Reported - view

    Hi  ,

    Yes, you can retrieve the metrics you need using the API. Here's how:

    API Endpoint:

    • api/2/metrics/categories

    Request Format:

    https://{domain}/api/2/metrics/categories?fields=period,categoryLink,categoryName,topic_views,all_views,topic_likes,reply_likes,all_likes,reply_posts&period=30d&category={category-link}&output=csv

     

    Notes:

    • {domain}: Replace with your actual community domain.
    • {category-link}: Replace with the specific category link (e.g., "get-help" or "product-announcement")
    • period=30d: This specifies a 30-day data range. Adjust the number of days (e.g., '14d', '60d') as needed.

    Data Fields:

    The provided API request will give you the following data in a CSV format:

    • period: The time range the data covers.
    • categoryLink: The link of the category.
    • categoryName: The name of the category.
    • topic_views: The number of views across all topics in the category.
    • all_views: The number of topic views as well as category page views.
    • topic_likes: The number of likes on topics within the category.
    • reply_likes: The number of likes on replies in the category.
    • all_likes: The combined total of topic and reply likes.
    • reply_posts: The number of replies within the category.
    • Nandini_D
    • 9 mths ago
    • Reported - view

    Thank you, Team

Content aside

  • Status Answered
  • 9 mths agoLast active
  • 2Replies
  • 59Views
  • 2 Following