> For the complete documentation index, see [llms.txt](https://anilist.gitbook.io/anilist-apiv2-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://anilist.gitbook.io/anilist-apiv2-docs/docs/reference/object/mediarank.md).

# MediaRank

The ranking of a media in a particular time span and format compared to other media

| Field       |                                                                                                           Argument | Type                                                         | Description |
| ----------- | -----------------------------------------------------------------------------------------------------------------: | ------------------------------------------------------------ | ----------- |
| **id**      |                   [Int](https://github.com/AniList/ApiV2-GraphQL-Docs/blob/master/reference/scalar/int/README.md)! | The id of the rank                                           |             |
| **rank**    |                   [Int](https://github.com/AniList/ApiV2-GraphQL-Docs/blob/master/reference/scalar/int/README.md)! | The numerical rank of the media                              |             |
| **type**    | [MediaRankType](https://github.com/AniList/ApiV2-GraphQL-Docs/blob/master/reference/enum/mediaranktype/README.md)! | The type of ranking                                          |             |
| **format**  |     [MediaFormat](https://github.com/AniList/ApiV2-GraphQL-Docs/blob/master/reference/enum/mediaformat/README.md)! | The format the media is ranked within                        |             |
| **year**    |                    [Int](https://github.com/AniList/ApiV2-GraphQL-Docs/blob/master/reference/scalar/int/README.md) | The year the media is ranked within                          |             |
| **season**  |      [MediaSeason](https://github.com/AniList/ApiV2-GraphQL-Docs/blob/master/reference/enum/mediaseason/README.md) | The season the media is ranked within                        |             |
| **allTime** |            [Boolean](https://github.com/AniList/ApiV2-GraphQL-Docs/blob/master/reference/scalar/boolean/README.md) | If the ranking is based on all time instead of a season/year |             |
| **context** |             [String](https://github.com/AniList/ApiV2-GraphQL-Docs/blob/master/reference/scalar/string/README.md)! | String that gives context to the ranking type and time span  |             |
