Forum Discussion
you can use this V1 API and pass board id to it.
https://community.lithium.com/restapi/vc/boards/id/[id]/topiclist https://community.lithium.com/restapi/vc/boards/id/[id]/topics/count
by default this will return 25 topics, to get maximum you need to pass pageSize parameter to get the more records.
Returns a list of topics (thread root messages) in this board. The number of topics returned is specified by pageSize, and if the number of topics is greater than the page size, the start of the list is specified by pageNumber
You can also use V2 API:
SELECT count(*) FROM messages where board.id='[your_board_id]' AND depth=0 SELECT * FROM messages where board.id='[your_board_id]' AND depth=0
This will also give the same results, and you can pass limit at the end of query to get more records you need to show.
SELECT * FROM messages where board.id = '[your_board_id]' AND AND depth = 0 LIMIT 10
- srujanayeruvakaChampion
Hi Parvez_AL ,
If you are looking for count of topics, you can try this - /restapi/vc/boards/id/[id] /messages/count.
If you would like to use V2 API, you can try this sample:
SELECT id, topics.count(*) FROM boards WHERE topics.count(*) > 1
Refer https://devdocportal.lithium.com/t5/Community-API-v2-Reference/bd-p/restv2docs?section=commv2&collection=boards for further details.
Thanks,
Srujana. - Parvez_ALAdvisor
Hi Parshant & srujanayeruvaka ,
I used this https://community.lithium.com/restapi/vc/boards/id/[id]/topics/count
and got a number. Now i see a significant difference in the number from the number that i get from Community Admin Advanced metrics. So not sure which number to trust . There is a difference of about 500 topics. Any suggestions which one i should got for
- srujanayeruvakaChampion
Parvez_AL - Which metric in Community Admin did you choose - Forum Topics or Net Forum Topics within that board?
Related Content
- 10 years ago
- 7 years ago
- 3 years ago