Average rating GET resource

GET /statistics/network/rating
Parameter Type Default Required Description
tag string average rating for a specific tag
user_id Int average rating for a specific user

Returns the average rating of all solutions in the network if the tag and user_id query parameters are not given. If the tag query parameter is given, it returns the average rating of solutions to questions with that tag. If the user_id query parameter is given, it returns the average rating of solutions by the given user. tag and user_id can be combined. A value of null is returned in case there are no ratings.

Note: The network average is computed over all ratings given by users (i.e., it is not the average of all average solution ratings).

Response

{
    "rating": 4.5
}

Response if there are no ratings:

{
    "rating": null
}