Package: rawg
rawgAPI wrapper for RAWG.ioThis Python package isgeneratedby theOpenAPI Generatorproject.Latest update: November 2022Installation & Usagepip installInstall via PyPI:pipinstallrawgGetting StartedExampleimportasyncioimportrawgasyncdefrequests():asyncwithrawg.ApiClient(rawg.Configuration(api_key={'key':'YOUR_API_KEY'}))asapi_client:# Create an instance of the API classapi=rawg.GamesApi(api_client)# Making requestscoros=[api.games_read(id=name)fornamein['grand-theft-auto-v','minecraft']]# Waiting for requestsforcoroinasyncio.as_completed(coros):game:rawg.GameSingle=awaitcoroprint('——————————————————————————————————————————————')print('        Name |',game.name)print('    Released |',game.released)print('      Rating |',game.rating)print('Achievements |',game.achievements_count)print('     Website |',game.website)print('  Metacritic |',game.metacritic)print('——————————————————————————————————————————————')print()if__name__=='__main__':asyncio.get_event_loop().run_until_complete(requests())Output——————————————————————————————————————————————
        Name | Grand Theft Auto V
    Released | 2013-09-17
      Rating | 4.47
Achievements | 539
     Website | http://www.rockstargames.com/V/
  Metacritic | 91
——————————————————————————————————————————————
        Name | Minecraft
    Released | 2009-05-10
      Rating | 4.42
Achievements | 744
     Website | https://classic.minecraft.net/
  Metacritic | 83
——————————————————————————————————————————————API Docs and API KeyLink:https://rawg.io/apidocsAnother librariesR: rabiibouhestine/RawgPython: laundmo/rawgpyNode.js: orels1/rawgerContactGenerated README belowThe largest open video games database.Why build on RAWGMore than 350,000 games for 50 platforms including mobiles.Rich metadata: tags, genres, developers, publishers, individual creators, official websites, release dates,
Metacritic ratings.Where to buy: links to digital distribution servicesSimilar games based on visual similarity.Player activity data: Steam average playtime and RAWG player counts and ratings.Actively developing and constantly getting better by user contribution and our algorithms.Terms of UseFree for personal use as long as you attribute RAWG as the source of the data and/or images and add an active
hyperlink from every page where the data of RAWG is used.Free for commercial use for startups and hobby projects with not more than 100,000 monthly active users or 500,000
page views per month. If your project is larger than that, email us atapi@rawg.iofor
commercial terms.No cloning. It would not be cool if you used our API to launch a clone of RAWG. We know it is not always easy
to say what is a duplicate and what isn't. Drop us a line atapi@rawg.ioif you are in doubt,
and we will talk it through.You must include an API key with every request. The key can be obtained athttps://rawg.io/apidocs.
If you don’t provide it, we may ban your requests.Read more.This Python package is automatically generated by theOpenAPI Generatorproject:API version: v1.0Package version: 1.2.0Build package: org.openapitools.codegen.languages.PythonLegacyClientCodegenRequirements.Python 2.7 and 3.4+Installation & Usagepip installIf the python package is hosted on a repository, you can install directly using:pipinstallgit+https://github.com/uburuntu/rawg.git(you may need to runpipwith root permission:sudo pip install git+https://github.com/uburuntu/rawg.git)Then import the package:importrawgSetuptoolsInstall viaSetuptools.pythonsetup.pyinstall--user(orsudo python setup.py installto install the package for all users)Then import the package:importrawgGetting StartedPlease follow theinstallation procedureand then run the following:from__future__importprint_functionimporttimeimportrawgfromrawg.restimportApiExceptionfrompprintimportpprint# Defining the host is optional and defaults to https://api.rawg.io/api# See configuration.py for a list of all supported configuration parameters.configuration=rawg.Configuration(host="https://api.rawg.io/api")# Enter a context with an instance of the API clientwithrawg.ApiClient(configuration)asapi_client:# Create an instance of the API classapi_instance=rawg.CreatorRolesApi(api_client)page=56# int | A page number within the paginated result set. (optional)page_size=56# int | Number of results to return per page. (optional)try:# Get a list of creator positions (jobs).api_response=api_instance.creator_roles_list(page=page,page_size=page_size)pprint(api_response)exceptApiExceptionase:print("Exception when calling CreatorRolesApi->creator_roles_list:%s\n"%e)Documentation for API EndpointsAll URIs are relative tohttps://api.rawg.io/apiClassMethodHTTP requestDescriptionCreatorRolesApicreator_roles_listGET/creator-rolesGet a list of creator positions (jobs).CreatorsApicreators_listGET/creatorsGet a list of game creators.CreatorsApicreators_readGET/creators/{id}Get details of the creator.DevelopersApidevelopers_listGET/developersGet a list of game developers.DevelopersApidevelopers_readGET/developers/{id}Get details of the developer.GamesApigames_achievements_readGET/games/{id}/achievementsGet a list of game achievements.GamesApigames_additions_listGET/games/{game_pk}/additionsGet a list of DLC's for the game, GOTY and other editions, companion apps, etc.GamesApigames_development_team_listGET/games/{game_pk}/development-teamGet a list of individual creators that were part of the development team.GamesApigames_game_series_listGET/games/{game_pk}/game-seriesGet a list of games that are part of the same series.GamesApigames_listGET/gamesGet a list of games.GamesApigames_movies_readGET/games/{id}/moviesGet a list of game trailers.GamesApigames_parent_games_listGET/games/{game_pk}/parent-gamesGet a list of parent games for DLC's and editions.GamesApigames_readGET/games/{id}Get details of the game.GamesApigames_reddit_readGET/games/{id}/redditGet a list of most recent posts from the game's subreddit.GamesApigames_screenshots_listGET/games/{game_pk}/screenshotsGet screenshots for the game.GamesApigames_stores_listGET/games/{game_pk}/storesGet links to the stores that sell the game.GamesApigames_suggested_readGET/games/{id}/suggestedGet a list of visually similar games, available only for business and enterprise API users.GamesApigames_twitch_readGET/games/{id}/twitchGet streams on Twitch associated with the game, available only for business and enterprise API users.GamesApigames_youtube_readGET/games/{id}/youtubeGet videos from YouTube associated with the game, available only for business and enterprise API users.GenresApigenres_listGET/genresGet a list of video game genres.GenresApigenres_readGET/genres/{id}Get details of the genre.PlatformsApiplatforms_listGET/platformsGet a list of video game platforms.PlatformsApiplatforms_lists_parents_listGET/platforms/lists/parentsGet a list of parent platforms.PlatformsApiplatforms_readGET/platforms/{id}Get details of the platform.PublishersApipublishers_listGET/publishersGet a list of video game publishers.PublishersApipublishers_readGET/publishers/{id}Get details of the publisher.StoresApistores_listGET/storesGet a list of video game storefronts.StoresApistores_readGET/stores/{id}Get details of the store.TagsApitags_listGET/tagsGet a list of tags.TagsApitags_readGET/tags/{id}Get details of the tag.Documentation For ModelsCreatorRolesList200ResponseCreatorsList200ResponseDeveloperDeveloperSingleDevelopersList200ResponseGameGameEsrbRatingGamePersonListGamePlatformMetacriticGamePlatformsInnerGamePlatformsInnerPlatformGamePlatformsInnerRequirementsGameSingleGameStoreFullGamesDevelopmentTeamList200ResponseGamesList200ResponseGamesScreenshotsList200ResponseGamesStoresList200ResponseGenreGenreSingleGenresList200ResponseMovieParentAchievementPersonPersonSinglePlatformPlatformParentSinglePlatformSinglePlatformsList200ResponsePlatformsListsParentsList200ResponsePositionPublisherPublisherSinglePublishersList200ResponseRedditScreenShotStoreStoreSingleStoresList200ResponseTagTagSingleTagsList200ResponseTwitchYoutube