i would like to rate items via rest API. and i would like get user specific ratings. so if the user rated an item with 5 stars i want to see 5 stars somewhere in XML from rest API. By default i receive a XML including RatingCount and AverageRating. (if there is at least one Rating) But how to get my own rating to display in a UI And how to rate if there is no Value to change? I searched for hours, but can t find any real hint. is there even a way to do this via rest? I am using C#.

1 Answer 1


Here is JSOM solution for your reference(get rated users and the score):

<script type="text/javascript">
    SP.SOD.executeOrDelayUntilScriptLoaded(CustomJS, 'sp.js');
    function CustomJS() {
        var ctx = SP.ClientContext.get_current();
        var web = ctx.get_web();
        var list = web.get_lists().getByTitle("Documents");
        var item = list.getItemById(1);
        ctx.executeQueryAsync(function (sender, args) {
            var _RatedBy = item.get_item('RatedBy');
            var _Ratings=item.get_item('Ratings')

For rating, you cold check the similar thread below.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.