Forum Discussion

Parvez_AL's avatar
Parvez_AL
Advisor
4 years ago

Get total topics and posts using restapi

Is there a REST API call to get total number of topics and posts in a Category? Can anyone help with the command

 

  • MattYap's avatar
    MattYap
    Khoros Alumni (Retired)

    SELECT count(*) FROM messages WHERE category.id = 'categoryName'
     

    • Parvez_AL's avatar
      Parvez_AL
      Advisor

      Hi Matt,

      Sorry i am not aware how to use that...is there any command that i can use in the browser to get the total topics and posts similar to the following command that can be used for specific boards:

      https://community.com/restapi/vc/boards/id/[id]/topics/count