{"id":15009811,"url":"https://github.com/pandaxcentric/game_apis","last_synced_at":"2025-10-28T18:38:38.488Z","repository":{"id":45820742,"uuid":"156219352","full_name":"PandaXcentric/game_apis","owner":"PandaXcentric","description":"This repository is for integrating with different apis to allow you to pull player or game data","archived":false,"fork":false,"pushed_at":"2019-01-10T02:22:25.000Z","size":80,"stargazers_count":28,"open_issues_count":0,"forks_count":2,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-23T19:51:32.077Z","etag":null,"topics":["dota2","dota2api","fortnite","fortnite-api","fortnite-stats","fortnite-tracker-api","fortnitetracker","league-api","league-of-legends","leagueoflegends","pubg","pubg-api","pubgapi","python","python-3","python3","rainbow-six-siege","rainbow6","rainbow6statsfinder","riot"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/PandaXcentric.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-11-05T13:07:27.000Z","updated_at":"2023-11-12T23:55:25.000Z","dependencies_parsed_at":"2022-08-27T19:23:59.927Z","dependency_job_id":null,"html_url":"https://github.com/PandaXcentric/game_apis","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PandaXcentric%2Fgame_apis","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PandaXcentric%2Fgame_apis/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PandaXcentric%2Fgame_apis/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PandaXcentric%2Fgame_apis/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PandaXcentric","download_url":"https://codeload.github.com/PandaXcentric/game_apis/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248083216,"owners_count":21045057,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dota2","dota2api","fortnite","fortnite-api","fortnite-stats","fortnite-tracker-api","fortnitetracker","league-api","league-of-legends","leagueoflegends","pubg","pubg-api","pubgapi","python","python-3","python3","rainbow-six-siege","rainbow6","rainbow6statsfinder","riot"],"created_at":"2024-09-24T19:28:44.752Z","updated_at":"2025-10-28T18:38:38.385Z","avatar_url":"https://github.com/PandaXcentric.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# game_apis\nThis repository is for integrating with different apis to allow you to pull player or game data\n\n# Install\nYou can install the api via pip via the command: \u003cbr /\u003e\n```sudo python3 -m pip install game-apis```\u003cbr /\u003e\u003cbr /\u003e\nor if you are on windows: \u003cbr /\u003e\n```pip install game-apis```\u003cbr /\u003e\u003cbr /\u003e\nOnce it's installed you can do\u003cbr /\u003e\n```from game_apis.rest import Rest```\n\n# Config\nThere are 2 ways to do the config.  The preferred way is to read from a config.yaml file as described below. Another way to do it is to pass a json to the Rest class with the same structure as the config.yaml file described below.  Here's a simple example:\u003cbr /\u003e\n```\nconfig_json = {'riot': {'key_id': '\u003chand enter key before running\u003e'}}\nriot = Rest(config_json).Riot\n```\n\nTo use some of the REST Apis you need your keys in a config file (e.g. a file called config.yaml). You have the option of importing the config file locally with the local_config=True flag when instantiating an api, otherwise the path is relative to the directory where the api is installed. \u003cbr /\u003e\nHere's an example of the Rest Config:\u003cbr /\u003e\n```\nopendota:\n  key_id: null\nriot:\n  key_id: null\npubg:\n  key_id: null\negb:\n  key_id: null\n  key_secret: null\nriotesports:\n  key_id: null\nfortnitetracker:\n  key_id: null\n```\n\u003cbr /\u003e\n And an example of calling the api with a config file in the same directory as your project:\u003cbr /\u003e\n \n```\nriot = Rest('config.yaml', local_config=True).Riot\n```\n\n  A good way to see what should be in the config is by looking at the base class that loads the config file and seeing what keys it expects. Normally it'll look for the ID of the child class, which is a field on that child class, and then have the parameters that class needs as children of it in the confg. \u003cbr /\u003e\n\n  The same thing is true for data_flow. You have the ID of the class lowercased (ID = 'AZUREBLOB_CREDS') and then as children of that in the config the fields it uses, for example self.config['account_name']. In this case you'd want:\n```\n  azureblob_creds:\n    account_name: null\n ```\n \u003cbr /\u003e\n\n# Run tests\nTo run all unit tests in a file do:\u003cbr /\u003e\n```python3 -m unittest test.rest.test_open_dota```\n\nTo run a specific unit test do:\u003cbr /\u003e\n```python3 -m unittest test.rest.test_open_dota.TestOpenDota.test_get_lane_roles```\n\n# Using API\nInitialize the rest class with\u003cbr /\u003e\n```api = Rest('\u003cpath to config.yaml\u003e')```\n\nYou can find the implemented apis with\u003cbr /\u003e\n```api.lookup```\n\nAn example usage of this repo is\n```\nfrom game_apis.rest import Rest\n\nriot = Rest('config.yaml').Riot\nhello = riot.hello_world()\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpandaxcentric%2Fgame_apis","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpandaxcentric%2Fgame_apis","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpandaxcentric%2Fgame_apis/lists"}