I can't find it if it exists. Besides manually counting them, is there an easier way to count the number of nodes we have? Our structure is complex and we have archives and manually counting them would be quite a job. I know we have over 1000 nodes, but I need to find out just how many we have.
Solved! Go to Solution.
You can use this API to get count of total number of nodes in your community.
https://[community.yourcommunity.com]/restapi/vc/nodes/count
Well that looks like it should work, but it says I only have 13 nodes. Probably the nodes immediately under the community root page. Can it count all nodes?
<response status="success">
<link type="text/css" id="dark-mode" rel="stylesheet" href=""/>
<value type="int">13</value>
</response>
@Parshant your suggestion got me looking and I found this which seems to work, but only for sub nodes as you have to put in a node ID:
http://community.lithium.com/community-name/restapi/vc/categories/id/support/nodes/nested/count
Is there a way to do it from the community level to get all nodes?
@kgroneman, For all nested level, You can simply use it like
http://community.lithium.com/community-name/restapi/vc/nodes/nested/count
This will give you count of all the child level nodes from root.
Thank you!
Welcome to the Technology board!
Curious about our platform? Looking to connect on social technology? You've come to the right place!