Public
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How many nodes do I have?

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.  

--
Community manager in the Micro Focus Community. My computer always used to beat me at chess, but it is no match for me now I changed the competition to kick boxing.
5 Replies 5
Boss

@kgroneman 

You can use this API to get count of total number of nodes in your community.

https://[community.yourcommunity.com]/restapi/vc/nodes/count

https://devdocportal.lithium.com/t5/Community-API-v1-Reference/bd-p/restv1docs?section=commv1&leaf-i...

.......
Expecting your Kudos and Accepted Solution to my replies.

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>

 

--
Community manager in the Micro Focus Community. My computer always used to beat me at chess, but it is no match for me now I changed the competition to kick boxing.

@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? 

--
Community manager in the Micro Focus Community. My computer always used to beat me at chess, but it is no match for me now I changed the competition to kick boxing.

@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.

.......
Expecting your Kudos and Accepted Solution to my replies.

Thank you!

--
Community manager in the Micro Focus Community. My computer always used to beat me at chess, but it is no match for me now I changed the competition to kick boxing.

Welcome to the Technology board!

Curious about our platform? Looking to connect on social technology? You've come to the right place!

Are you a Khoros customer? For direct assistance from our Support team, please visit the Support Forum.