get_leaderboard
Retrieve the top studiers for a category and country on a given date, with daily or weekly rankings, pagination, and member study times.
Instructions
Return the category leaderboard (top studiers) for a date.
:param category_id: Category ID, as returned by ``get_profile``.
:type category_id: int
:param country_id: Country ID, as returned by ``get_profile``.
:type country_id: int
:param date: Leaderboard date in YYYY-MM-DD format.
:type date: str
:param page: Page number, 20 entries per page. Default ``1``.
:type page: int
:param rank_type: Ranking period, ``"day"`` or ``"week"``. Default
``"day"``.
:type rank_type: str
:param limit: Maximum number of members to return. Default ``20``.
:type limit: int
:returns: Mapping with ``total_count`` and the ``members`` list of
``{nickname, user_id, study_ms, study_hours, studicon_id}``.
:rtype: dict[str, Any]
:raises RuntimeError: If YPT credentials are not configured.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | Yes | ||
| page | No | ||
| limit | No | ||
| rank_type | No | day | |
| country_id | Yes | ||
| category_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||