I can definitely answer this part of your question:
Is something available in CD Web Service when you install UGC?
Yes. When you install UGC, your CD Web Service will get new collections for these UGC item types:
- Comments
- ItemStats
- Ratings
- Users
You can get the most popular items like this:
.../odata.svc/ItemStats?$orderby=AverageRating desc
If you filter it first and then limit the number of results it'll probably result in a slightly faster query:
.../odata.svc/ItemStats?$orderby=AverageRating desc&$filter=AverageRating gt 0.0&$top=5
I expect that ItemStats
are probably also available through the Java and .NET APIs.