> 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  |             |


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://anilist.gitbook.io/anilist-apiv2-docs/docs/reference/object/mediarank.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
