Get comment counts
curl --request GET \
--url https://api.unitedmarket.ai/comments/countsconst options = {method: 'GET'};
fetch('https://api.unitedmarket.ai/comments/counts', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.unitedmarket.ai/comments/counts"
response = requests.get(url)
print(response.text){}Social
Get comment counts
Returns comment counts for every market as { [marketId]: count }. Query parameters are ignored; omitting them still returns 200 with the full map.
GET
https://api.unitedmarket.ai
/
comments
/
counts
Get comment counts
curl --request GET \
--url https://api.unitedmarket.ai/comments/countsconst options = {method: 'GET'};
fetch('https://api.unitedmarket.ai/comments/counts', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.unitedmarket.ai/comments/counts"
response = requests.get(url)
print(response.text){}Response
200 - application/json
Counts returned.
Map of market id to comment count.
