Skip to main content

AppInfo

ClassDataClassSource

AppInfo(
type: str,
name: str,
steam_appid: int,
required_age: int = 0,
is_free: bool,
controller_support: str | None = None,
dlc: list[int] = [],
detailed_description: str = "",
about_the_game: str = "",
short_description: str = "",
supported_languages: str = "",
reviews: str = "",
header_image: str | None = None,
capsule_image: str | None = None,
capsule_imagev5: str | None = None,
website: str | None = None,
legal_notice: str | None = None,
developers: list[str] = [],
publishers: list[str] = [],
price_overview: AppPrice | None = None,
platforms: PlatformInfo | None = None,
metacritic: MetacriticInfo | None = None,
categories: list[AppCategory] = [],
genres: list[AppCategory] = [],
screenshots: list[AppScreenShot] = [],
movies: list[AppMovie] = [],
release_date: AppDate | None = None,
support_info: AppSupportInfo | None = None,
background: str | None = None,
background_raw: str | None = None
)

The basic information of an app, provided by querying the ID.

Fields​

NameTypeRequired
Description
typestrThe type of the app. It should be "game" for most cases.
namestrThe app name.
steam_appidintThe app ID.
required_ageintThe required age of the game.
is_freeboolWhether the game is free or not.
controller_supportstr | NoneHow does it support the controller.
dlclist[int]A list of DLCs' app IDs.
detailed_descriptionstrA long game description formatted by HTML.
about_the_gamestrA long game description displayed in the store page. It is ususally the same as "detailed_description". Formatted by HTML.
short_descriptionstrA short game description displayed in the game title bar.
supported_languagesstrThe names of supported languages. It is formatted by HTML.
reviewsstrThe media reviews. It is formatted by HTML.
header_imagestr | NoneThe URL of the header image. This is usually big.
capsule_imagestr | NoneThe URL of the capsule image. This is usally smaller than header_image.
capsule_imagev5str | NoneThe URL of the capsule v5 image. This is usally smaller than capsule_image.
websitestr | NoneThe official website of the game.
legal_noticestr | NoneThe legal notice of the game.
developerslist[str]The list of developer names.
publisherslist[str]The list of publishers names.
price_overviewAppPrice | NoneThe price of the app.
platformsPlatformInfo | NoneThe supported platform.
metacriticMetacriticInfo | NoneThe metacritic information of the game.
categorieslist[AppCategory]The related categories of the game. This list is displayed as tags on the store page.
genreslist[AppCategory]The related categories of the game. This list is displayed as game type.
screenshotslist[AppScreenShot]The list of screenshots.
movieslist[AppMovie]The list of moviews.
release_dateAppDate | NoneThe release date of the app.
support_infoAppSupportInfo | NoneThe support information of the app.
backgroundstr | NoneThe background image of the store page.
background_rawstr | NoneThe background image (raw version) of the store page.

Methods​

get_background_image​

v_1: Image | None = self.get_background_image(raw: bool = False)

Download the header image by its url.

Requires​

NameTypeRequired
Description
rawboolWhether to get the raw version of the image.

Returns​

NameType
Description
v_1Image | NoneThe downloaded image. If no image can be downloaded, return None.

get_header_image​

v_1: Image | None = self.get_header_image(level: Literal["full", "capsule", "capsulev5"] = "full")

Download the header image by its url.

Requires​

NameTypeRequired
Description
levelLiteral["full", "capsule", "capsulev5"]

The level of the header image. The sizes are sorted as:

full > capsule > capsulev5

Returns​

NameType
Description
v_1Image | NoneThe downloaded image. If no image can be downloaded, return None.