# Retrieve ratings for artists, albums and tracks

**URL:** https://community.metabrainz.org/t/retrieve-ratings-for-artists-albums-and-tracks/576190
**Category:** Development
**Tags:** ratings, api
**Created:** [March 11, 2022, 8:15am UTC](https://community.metabrainz.org/t/retrieve-ratings-for-artists-albums-and-tracks/576190 "2022-03-11T08:15:05Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![ulswk](https://community.metabrainz.org/letter_avatar_proxy/v4/letter/u/67e7ee/32.png) [@ulswk](https://community.metabrainz.org/u/ulswk)
#### Post date: [March 11, 2022, 8:15am UTC](https://community.metabrainz.org/t/retrieve-ratings-for-artists-albums-and-tracks/576190/1 "2022-03-11T08:15:06Z")

</div>

Hi there,  
I’m new to MusicBrainz and the api structure, so, if the question is stupid simple, I’m sorry, but I wasn’t able to find the solution. So, perhaps someone can help.

I try to retrieve rating information for given artists, there albums and the individual tracks of the album.  
I managed to retrieve all information except for the rating.

Can somebody help me with examples for api calls to retrieve rating information for  
the artist  
his/her albums  
and the tracks of the album?

Thank’s in advance!

---

<div class="post-metadata">

### Author: ![jesus2099](https://community.metabrainz.org/user_avatar/community.metabrainz.org/jesus2099/32/36_2.png) [@jesus2099](https://community.metabrainz.org/u/jesus2099)
#### Post date: [March 11, 2022, 8:37am UTC](https://community.metabrainz.org/t/retrieve-ratings-for-artists-albums-and-tracks/576190/2 "2022-03-11T08:37:29Z")

</div>

I never tested it but did you try `inc=ratings` ?

> **[Misc inc= arguments - MusicBrainz API - MusicBrainz Wiki](https://wiki.musicbrainz.org/MusicBrainz_API#Misc_inc.3D_arguments)**
>
> Requests with user-tags, user-genres and user-ratings require authentication.

There is also `inc=user-ratings` if it’s the ratings from a specific user, that you want, and not the average global ratings.

---

<div class="post-metadata">

### Author: ![ulswk](https://community.metabrainz.org/letter_avatar_proxy/v4/letter/u/67e7ee/32.png) [@ulswk](https://community.metabrainz.org/u/ulswk)
#### Post date: [March 11, 2022, 8:50am UTC](https://community.metabrainz.org/t/retrieve-ratings-for-artists-albums-and-tracks/576190/3 "2022-03-11T08:50:27Z")

</div>

Hi there,  
yes, I think " `inc=ratings" is the key.  
I’ll try to change my code using this.

Thank you for the quick replies!
