The following code is to get Disqus counts of comments for multiple pages.
var DISQUSWIDGETS;
if (typeof DISQUSWIDGETS != 'undefined') {
DISQUSWIDGETS.displayCount({
"showReactions":true,
"text":{
"and":"and",
"reactions":{
"zero":"0 Reactions",
"multiple":"{num} Reactions",
"one":"1 Reaction"},
"comments":{
"zero":"0 Comments",
"multiple":"{num} Comments",
"one":"1 Comment"
}
},
"counts":[
{"reactions":0,"uid":1,"comments":2},
{"reactions":0,"uid":2,"comments":5},
{"reactions":0,"uid":3,"comments":9}
]
});
}
I want to get just the number of comments example from here:
{"reactions":0,"uid":1,"comments":2}
the number of comments should be 2.
Is there any javascript code which will get just the comments?