Skip to content

RubikaTV API reference

Rubika TV/VOD: media discovery, playback, lists and reactions.

Generated from the checkout source by scripts/generate_docs_assets.py. Every signature below is real; do not hand-edit this file.

28 public methods.

Method index

tv

add_wish_media

add_wish_media(self: 'darkob.RubikaTV', media_id: str, track_id: Optional[str]=None)

Add a media to the wishlist.

Parameters: media_id (str): Identifier of the media. track_id (str, optional): Optional tracking identifier.

Returns: The API output.

dislike_media

dislike_media(self: 'darkob.RubikaTV', media_id: str, track_id: Optional[str]=None)

Dislike a media.

Parameters: media_id (str): Identifier of the media. track_id (str, optional): Optional tracking identifier.

Returns: The API output.

follow_media

follow_media(self: 'darkob.RubikaTV', media_id: str, track_id: Optional[str]=None)

Follow a media.

Parameters: media_id (str): Identifier of the media. track_id (str, optional): Optional tracking identifier.

Returns: The API output.

get_cast_details

get_cast_details(self: 'darkob.RubikaTV', cast_id: str)

Retrieve details of a cast member.

Parameters: cast_id (str): Identifier of the cast member.

Returns: The API output.

get_cast_medias

get_cast_medias(self: 'darkob.RubikaTV', cast_id: str, start_id: Optional[str]=None)

Retrieve media associated with a cast member.

Parameters: cast_id (str): Identifier of the cast member. start_id (str, optional): Optional starting item ID for pagination.

Returns: The API output.

get_custom_menu_items

get_custom_menu_items(self: 'darkob.RubikaTV')

Retrieve custom menu items.

Returns: The API output.

get_list_items

get_list_items(self: 'darkob.RubikaTV', list_id: str, type: Literal['Media', 'LinkItem', 'Cast']='Media', is_channel: Optional[bool]=None, start_id: Optional[str]=None)

Retrieve items from a VOD list.

Parameters: list_id (str): Identifier of the list. type (str): Type of items: "Media", "LinkItem", or "Cast". Case-insensitive. is_channel (bool, optional): Optional channel filter. start_id (str, optional): Starting item ID for pagination.

Returns: The API output.

get_listing

get_listing(self: 'darkob.RubikaTV', listing_id: str='home')

Retrieve a listing (e.g., home page sections).

Parameters: listing_id (str): Identifier of the listing (default: "home").

Returns: The API output.

get_me

get_me(self: 'darkob.RubikaTV')

Retrieve the current VOD account information.

Returns: The API output.

get_media

get_media(self: 'darkob.RubikaTV', media_id: str, track_id: Optional[str]=None)

Retrieve media details by its ID.

Parameters: media_id (str): Identifier of the media. track_id (str, optional): Optional tracking identifier (session hash string).

Returns: The API output.

get_media_by_link(self: 'darkob.RubikaTV', link: str, track_id: Optional[str]=None)

Retrieve media details by its share link.

Parameters: link (str): Share link (e.g., "https://rubika.ir/vod/294119"). track_id (str, optional): Optional tracking identifier (session hash string).

Returns: The API output.

get_media_related(self: 'darkob.RubikaTV', media_id: str, section_type: Optional[Literal['PageRelated', 'EndOfStream']]=None, start_id: Optional[str]=None)

Retrieve media related to a specific media.

Parameters: media_id (str): Identifier of the media. section_type (str, optional): Optional section type. One of: "PageRelated", "EndOfStream". start_id (str, optional): Optional starting item ID for pagination.

Returns: The API output.

get_next_episode

get_next_episode(self: 'darkob.RubikaTV', episode_id: str)

Retrieve the next episode after the given episode.

Parameters: episode_id (str): Identifier of the current episode.

Returns: The API output.

get_next_media_info

get_next_media_info(self: 'darkob.RubikaTV', media_id: str, track_id: Optional[str]=None)

Retrieve the next media info after the given media.

Parameters: media_id (str): Identifier of the media. track_id (str, optional): Optional tracking identifier (session hash string).

Returns: The API output.

get_play_info

get_play_info(self: 'darkob.RubikaTV', media_id: str, type: Literal['Main', 'Trailer']='Trailer', version: int=1, track_id: Optional[str]=None)

Retrieve playback information for a specific media.

Parameters: media_id (str): Identifier of the media. type (str): Type of content ("Main" or "Trailer"). Case-insensitive. version (int): Version number. track_id (str, optional): Optional tracking identifier (session hash string).

Returns: The API output.

get_play_suggested_episode

get_play_suggested_episode(self: 'darkob.RubikaTV', series_id: str, track_id: Optional[str]=None)

Retrieve the suggested next episode for a series.

Parameters: series_id (str): Identifier of the series. track_id (str, optional): Optional tracking identifier (session hash string).

Returns: The API output.

get_property_types

get_property_types(self: 'darkob.RubikaTV')

Retrieve available property types.

Returns: The API output.

get_season_episodes

get_season_episodes(self: 'darkob.RubikaTV', season_id: str, series_id: str, section_type: Optional[Literal['MediaInfo', 'Player']]=None, track_id: Optional[str]=None)

Retrieve episodes of a season.

Parameters: season_id (str): Identifier of the season. series_id (str): Identifier of the series. section_type (str, optional): Optional section type: "MediaInfo" or "Player". Case-insensitive. track_id (str, optional): Optional tracking identifier.

Returns: The API output.

get_wish_list

get_wish_list(self: 'darkob.RubikaTV', start_id: Optional[str]=None)

Retrieve the wishlist items.

Parameters: start_id (str, optional): Optional starting item ID for pagination.

Returns: The API output.

like_media

like_media(self: 'darkob.RubikaTV', media_id: str, track_id: Optional[str]=None)

Like a media.

Parameters: media_id (str): Identifier of the media. track_id (str, optional): Optional tracking identifier.

Returns: The API output.

remove_wish_list_media

remove_wish_list_media(self: 'darkob.RubikaTV', media_id: str, track_id: Optional[str]=None)

Remove a media from the wishlist.

Parameters: media_id (str): Identifier of the media. track_id (str, optional): Optional tracking identifier.

Returns: The API output.

request

request(self: 'darkob.RubikaTV', method: str, input: Optional[Dict[str, Any]]=None)

Send a normal HTTP request to the Rubika VOD/TV API.

Parameters: method (str): Remote API method name. input (dict): Method-specific input parameters.

Returns: The API output (wrapped in Data by default).

search_movie

search_movie(self: 'darkob.RubikaTV', search_text: str, start_id: Optional[str]=None)

Search for movies by text.

Parameters: search_text (str): Search text. start_id (str, optional): Optional starting item ID for pagination.

Returns: The API output.

set_current_play_time

set_current_play_time(self: 'darkob.RubikaTV', media_id: str, play_time: int)

Set the current play time for a media.

Parameters: media_id (str): Identifier of the media. play_time (int): Current play time in seconds

Returns: The API output.

set_session_play_duration

set_session_play_duration(self: 'darkob.RubikaTV', session_id: str, play_duration: int=0)

Set the total play duration for a session.

Parameters: session_id (str): Identifier of the session. play_duration (int): Total play duration in seconds.

Returns: The API output.

undo_like_or_dislike_media

undo_like_or_dislike_media(self: 'darkob.RubikaTV', media_id: str, track_id: Optional[str]=None)

Undo like or dislike on a media.

Parameters: media_id (str): Identifier of the media. track_id (str, optional): Optional tracking identifier.

Returns: The API output.

unfollow_media

unfollow_media(self: 'darkob.RubikaTV', media_id: str, track_id: Optional[str]=None)

Unfollow a media.

Parameters: media_id (str): Identifier of the media. track_id (str, optional): Optional tracking identifier.

Returns: The API output.

view_commercial

view_commercial(self: 'darkob.RubikaTV', view_type: Literal['Full', 'Half', 'Skip']='Full')

Register a commercial view event.

Parameters: view_type (str): Type of view ("Full", "Half", or "Skip"). Case-insensitive.

Returns: The API output.