UserRating

From TheGamesDB Wiki
Jump to: navigation, search

The UserRating API call allows you get and set a user rating on a game.

To get a users rating for a particular game supply only the 'accountid' and 'itemid' parameters.

To set a users rating supply the 'accountid', 'itemid' and 'rating' parameters with a 'rating' parameter value of between 1 - 10 inclusive.

To unrate/delete a users rating supply a 0 using the 'rating' parameter.


Parameters:

accountid (int) (required): users unique account api id.

itemid (int) (required): unique game id

rating (int 0-10) (optional): user rating.


Example Request:

http://thegamesdb.net/api/User_Rating.php?accountid=58536D31278176DA&itemid=2


Example Result:

<?xml version="1.0" encoding="UTF-8" ?>
<Data>
    <game>
    <Rating>4.0</Rating>
    </game>
</Data>
Personal tools
Namespaces

Variants
Actions
Navigation
Contents
Toolbox