Upload folder using huggingface_hub (part 16)
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- toolbench/toolenv/tools/Gaming/evosis_s_game_database.json +878 -0
- toolbench/toolenv/tools/Gaming/evosis_s_game_database/api.py +113 -0
- toolbench/toolenv/tools/Gaming/fifa_22.json +50 -0
- toolbench/toolenv/tools/Gaming/fifa_22/api.py +33 -0
- toolbench/toolenv/tools/Gaming/fifa_ultimate_team/api.py +467 -0
- toolbench/toolenv/tools/Gaming/find_player_info_lol.json +30 -0
- toolbench/toolenv/tools/Gaming/find_player_info_lol/api.py +29 -0
- toolbench/toolenv/tools/Gaming/fodase.json +30 -0
- toolbench/toolenv/tools/Gaming/fodase/api.py +29 -0
- toolbench/toolenv/tools/Gaming/food_quiz.json +57 -0
- toolbench/toolenv/tools/Gaming/food_quiz/api.py +50 -0
- toolbench/toolenv/tools/Gaming/foony.json +30 -0
- toolbench/toolenv/tools/Gaming/football_manager_api.json +279 -0
- toolbench/toolenv/tools/Gaming/football_manager_api/api.py +191 -0
- toolbench/toolenv/tools/Gaming/fortnite/api.py +547 -0
- toolbench/toolenv/tools/Gaming/fortnite_unofficial.json +102 -0
- toolbench/toolenv/tools/Gaming/fortnite_unofficial/api.py +155 -0
- toolbench/toolenv/tools/Gaming/fortnite_v2/api.py +113 -0
- toolbench/toolenv/tools/Gaming/fortnitecosmetics.json +54 -0
- toolbench/toolenv/tools/Gaming/fortnitecosmetics/api.py +40 -0
- toolbench/toolenv/tools/Gaming/free_epic_games.json +333 -0
- toolbench/toolenv/tools/Gaming/free_epic_games/api.py +29 -0
- toolbench/toolenv/tools/Gaming/free_fire_api.json +107 -0
- toolbench/toolenv/tools/Gaming/free_fire_api/api.py +134 -0
- toolbench/toolenv/tools/Gaming/free_game_info.json +24 -0
- toolbench/toolenv/tools/Gaming/free_game_info/api.py +29 -0
- toolbench/toolenv/tools/Gaming/free_games_aggregator/api.py +97 -0
- toolbench/toolenv/tools/Gaming/free_games_this_month.json +700 -0
- toolbench/toolenv/tools/Gaming/free_games_this_month/api.py +54 -0
- toolbench/toolenv/tools/Gaming/free_to_play_games_database.json +169 -0
- toolbench/toolenv/tools/Gaming/free_to_play_games_database/api.py +163 -0
- toolbench/toolenv/tools/Gaming/free_vbucks_generator_how_to_get_free_vbucks.json +30 -0
- toolbench/toolenv/tools/Gaming/free_vbucks_generator_how_to_get_free_vbucks/api.py +29 -0
- toolbench/toolenv/tools/Gaming/freemcserver.json +50 -0
- toolbench/toolenv/tools/Gaming/freemcserver/api.py +244 -0
- toolbench/toolenv/tools/Gaming/game.json +24 -0
- toolbench/toolenv/tools/Gaming/game/api.py +29 -0
- toolbench/toolenv/tools/Gaming/game_delay_radar.json +172 -0
- toolbench/toolenv/tools/Gaming/game_delay_radar/api.py +53 -0
- toolbench/toolenv/tools/Gaming/game_price/api.py +132 -0
- toolbench/toolenv/tools/Gaming/game_trailers/api.py +29 -0
- toolbench/toolenv/tools/Gaming/gamefinder.json +102 -0
- toolbench/toolenv/tools/Gaming/gamefinder/api.py +96 -0
- toolbench/toolenv/tools/Gaming/gamerpower.json +182 -0
- toolbench/toolenv/tools/Gaming/gamerpower/api.py +186 -0
- toolbench/toolenv/tools/Gaming/games.json +24 -0
- toolbench/toolenv/tools/Gaming/games/api.py +29 -0
- toolbench/toolenv/tools/Gaming/games_details.json +386 -0
- toolbench/toolenv/tools/Gaming/games_details/api.py +310 -0
- toolbench/toolenv/tools/Gaming/gaming_gear.json +56 -0
toolbench/toolenv/tools/Gaming/evosis_s_game_database.json
ADDED
|
@@ -0,0 +1,878 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"product_id": "api_7cb9062e-6d4e-402c-b1ef-5a44dfa715e0",
|
| 3 |
+
"tool_description": "You can access technical and store information of more than 9100+ games. \nPlaystation (PS1:130,PS2:359,PS3:666,PS4:2399,PS5:527)\nPC (windows:6310, MacOS:2161, Linux:1370)\nXbox (Original:252,Xbox360:681,XOne:2080,XSeries521)\nNintendo Games (GameCube:130,Wii:161,WiiU:107,Switch:1908)",
|
| 4 |
+
"home_url": "https://rapidapi.com/ertechgroup/api/evosiss-game-database/",
|
| 5 |
+
"name": "Evosis's Game Database",
|
| 6 |
+
"title": "Evosis's Game Database",
|
| 7 |
+
"pricing": "FREEMIUM",
|
| 8 |
+
"tool_name": "Evosis's Game Database",
|
| 9 |
+
"score": {
|
| 10 |
+
"avgServiceLevel": 100,
|
| 11 |
+
"avgLatency": 828,
|
| 12 |
+
"avgSuccessRate": 100,
|
| 13 |
+
"popularityScore": 8,
|
| 14 |
+
"__typename": "Score"
|
| 15 |
+
},
|
| 16 |
+
"host": "evosiss-game-database.p.rapidapi.com",
|
| 17 |
+
"api_list": [
|
| 18 |
+
{
|
| 19 |
+
"name": "getGameDetailPro",
|
| 20 |
+
"url": "https://evosiss-game-database.p.rapidapi.com/getGameDetailPro/proXap3MPTGYdcbsaEYAIaksajorsc54/1",
|
| 21 |
+
"description": "Returns the game's information as Json.",
|
| 22 |
+
"method": "GET",
|
| 23 |
+
"required_parameters": [
|
| 24 |
+
{
|
| 25 |
+
"name": "id",
|
| 26 |
+
"type": "NUMBER",
|
| 27 |
+
"description": "",
|
| 28 |
+
"default": "1"
|
| 29 |
+
}
|
| 30 |
+
],
|
| 31 |
+
"optional_parameters": [],
|
| 32 |
+
"code": "import requests\n\nurl = \"https://evosiss-game-database.p.rapidapi.com/getGameDetailPro/proXap3MPTGYdcbsaEYAIaksajorsc54/1\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"evosiss-game-database.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n",
|
| 33 |
+
"convert_code": "import requests\n\nurl = \"https://evosiss-game-database.p.rapidapi.com/getGameDetailPro/proXap3MPTGYdcbsaEYAIaksajorsc54/{id}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"evosiss-game-database.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n",
|
| 34 |
+
"test_endpoint": {
|
| 35 |
+
"message": "This endpoint is disabled for your subscription"
|
| 36 |
+
}
|
| 37 |
+
},
|
| 38 |
+
{
|
| 39 |
+
"name": "getGameDetail",
|
| 40 |
+
"url": "https://evosiss-game-database.p.rapidapi.com/getGameDetail/advenceXp3MPTGYdcbsaEYA3gxaOD5b9/{id}",
|
| 41 |
+
"description": "Returns the game's information as Json",
|
| 42 |
+
"method": "GET",
|
| 43 |
+
"required_parameters": [
|
| 44 |
+
{
|
| 45 |
+
"name": "id",
|
| 46 |
+
"type": "NUMBER",
|
| 47 |
+
"description": "",
|
| 48 |
+
"default": ""
|
| 49 |
+
}
|
| 50 |
+
],
|
| 51 |
+
"optional_parameters": [],
|
| 52 |
+
"code": "import requests\n\nurl = \"https://evosiss-game-database.p.rapidapi.com/getGameDetail/advenceXp3MPTGYdcbsaEYA3gxaOD5b9/{id}\"\nquerystring = {\"id\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"evosiss-game-database.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n",
|
| 53 |
+
"convert_code": "import requests\n\nurl = \"https://evosiss-game-database.p.rapidapi.com/getGameDetail/advenceXp3MPTGYdcbsaEYA3gxaOD5b9/{id}\"\nquerystring = {\"id\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"evosiss-game-database.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n",
|
| 54 |
+
"test_endpoint": {
|
| 55 |
+
"message": "This endpoint is disabled for your subscription"
|
| 56 |
+
}
|
| 57 |
+
},
|
| 58 |
+
{
|
| 59 |
+
"name": "getStoreStatusList",
|
| 60 |
+
"url": "https://evosiss-game-database.p.rapidapi.com/getStoreStatusList/ldlap3MPTGYdcbsaEYAI2mgmNQmOD5bK/",
|
| 61 |
+
"description": "Returns as Json of store status list.",
|
| 62 |
+
"method": "GET",
|
| 63 |
+
"required_parameters": [],
|
| 64 |
+
"optional_parameters": [],
|
| 65 |
+
"code": "import requests\n\nurl = \"https://evosiss-game-database.p.rapidapi.com/getStoreStatusList/ldlap3MPTGYdcbsaEYAI2mgmNQmOD5bK/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"evosiss-game-database.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n",
|
| 66 |
+
"convert_code": "import requests\n\nurl = \"https://evosiss-game-database.p.rapidapi.com/getStoreStatusList/ldlap3MPTGYdcbsaEYAI2mgmNQmOD5bK/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"evosiss-game-database.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n",
|
| 67 |
+
"test_endpoint": [
|
| 68 |
+
"on sale",
|
| 69 |
+
"Removed from sale per Publisher request",
|
| 70 |
+
"Removed from sale for undisclosed reason",
|
| 71 |
+
"Not yet sold in this store",
|
| 72 |
+
"Unknown or bundle",
|
| 73 |
+
"Apple Arcade Exclusive"
|
| 74 |
+
]
|
| 75 |
+
},
|
| 76 |
+
{
|
| 77 |
+
"name": "getPlatformList",
|
| 78 |
+
"url": "https://evosiss-game-database.p.rapidapi.com/getPlatformList/ldlap3MPTGYdcbsaEYAI2mgmNQmOD5bK/0",
|
| 79 |
+
"description": "Returns the id and names of the platforms as Json.",
|
| 80 |
+
"method": "GET",
|
| 81 |
+
"required_parameters": [
|
| 82 |
+
{
|
| 83 |
+
"name": "page",
|
| 84 |
+
"type": "NUMBER",
|
| 85 |
+
"description": "",
|
| 86 |
+
"default": "0"
|
| 87 |
+
}
|
| 88 |
+
],
|
| 89 |
+
"optional_parameters": [],
|
| 90 |
+
"code": "import requests\n\nurl = \"https://evosiss-game-database.p.rapidapi.com/getPlatformList/ldlap3MPTGYdcbsaEYAI2mgmNQmOD5bK/0\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"evosiss-game-database.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n",
|
| 91 |
+
"convert_code": "import requests\n\nurl = \"https://evosiss-game-database.p.rapidapi.com/getPlatformList/ldlap3MPTGYdcbsaEYAI2mgmNQmOD5bK/{page}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"evosiss-game-database.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n",
|
| 92 |
+
"test_endpoint": {
|
| 93 |
+
"status": 1,
|
| 94 |
+
"data": [
|
| 95 |
+
{
|
| 96 |
+
"id": 3817,
|
| 97 |
+
"title": "3DO Interactive Multiplayer",
|
| 98 |
+
"serialName": null
|
| 99 |
+
},
|
| 100 |
+
{
|
| 101 |
+
"id": 4315,
|
| 102 |
+
"title": "Luna",
|
| 103 |
+
"serialName": null
|
| 104 |
+
},
|
| 105 |
+
{
|
| 106 |
+
"id": 5921,
|
| 107 |
+
"title": "AmigaOS",
|
| 108 |
+
"serialName": null
|
| 109 |
+
},
|
| 110 |
+
{
|
| 111 |
+
"id": 1446,
|
| 112 |
+
"title": "Android",
|
| 113 |
+
"serialName": null
|
| 114 |
+
},
|
| 115 |
+
{
|
| 116 |
+
"id": 5920,
|
| 117 |
+
"title": "Arcade",
|
| 118 |
+
"serialName": null
|
| 119 |
+
},
|
| 120 |
+
{
|
| 121 |
+
"id": 5865,
|
| 122 |
+
"title": "Atari 2600",
|
| 123 |
+
"serialName": "Atari"
|
| 124 |
+
},
|
| 125 |
+
{
|
| 126 |
+
"id": 10839,
|
| 127 |
+
"title": "EA Play",
|
| 128 |
+
"serialName": null
|
| 129 |
+
},
|
| 130 |
+
{
|
| 131 |
+
"id": 3556,
|
| 132 |
+
"title": "Game Gear",
|
| 133 |
+
"serialName": "Sega"
|
| 134 |
+
},
|
| 135 |
+
{
|
| 136 |
+
"id": 3018,
|
| 137 |
+
"title": "GeForce Now",
|
| 138 |
+
"serialName": null
|
| 139 |
+
},
|
| 140 |
+
{
|
| 141 |
+
"id": 1445,
|
| 142 |
+
"title": "iOS",
|
| 143 |
+
"serialName": null
|
| 144 |
+
},
|
| 145 |
+
{
|
| 146 |
+
"id": 1447,
|
| 147 |
+
"title": "Atari Jaguar",
|
| 148 |
+
"serialName": "Atari"
|
| 149 |
+
},
|
| 150 |
+
{
|
| 151 |
+
"id": 1439,
|
| 152 |
+
"title": "Linux",
|
| 153 |
+
"serialName": "Linux"
|
| 154 |
+
},
|
| 155 |
+
{
|
| 156 |
+
"id": 3555,
|
| 157 |
+
"title": "Nintendo 2DS",
|
| 158 |
+
"serialName": "Nintendo"
|
| 159 |
+
},
|
| 160 |
+
{
|
| 161 |
+
"id": 1444,
|
| 162 |
+
"title": "Nintendo 3DS",
|
| 163 |
+
"serialName": "Nintendo"
|
| 164 |
+
},
|
| 165 |
+
{
|
| 166 |
+
"id": 1278,
|
| 167 |
+
"title": "Nintendo 64",
|
| 168 |
+
"serialName": "Nintendo"
|
| 169 |
+
},
|
| 170 |
+
{
|
| 171 |
+
"id": 1443,
|
| 172 |
+
"title": "Nintendo DS",
|
| 173 |
+
"serialName": "Nintendo"
|
| 174 |
+
},
|
| 175 |
+
{
|
| 176 |
+
"id": 1814,
|
| 177 |
+
"title": "Nintendo Entertainment System",
|
| 178 |
+
"serialName": "Nintendo"
|
| 179 |
+
},
|
| 180 |
+
{
|
| 181 |
+
"id": 1809,
|
| 182 |
+
"title": "Nintendo Game Boy",
|
| 183 |
+
"serialName": "Nintendo"
|
| 184 |
+
},
|
| 185 |
+
{
|
| 186 |
+
"id": 1811,
|
| 187 |
+
"title": "Nintendo Game Boy Advence",
|
| 188 |
+
"serialName": "Nintendo"
|
| 189 |
+
},
|
| 190 |
+
{
|
| 191 |
+
"id": 1810,
|
| 192 |
+
"title": "Nintendo Game Boy Color",
|
| 193 |
+
"serialName": "Nintendo"
|
| 194 |
+
},
|
| 195 |
+
{
|
| 196 |
+
"id": 1279,
|
| 197 |
+
"title": "Nintendo GameCube",
|
| 198 |
+
"serialName": "Nintendo"
|
| 199 |
+
},
|
| 200 |
+
{
|
| 201 |
+
"id": 1812,
|
| 202 |
+
"title": "Nintendo New 3DS",
|
| 203 |
+
"serialName": "Nintendo"
|
| 204 |
+
},
|
| 205 |
+
{
|
| 206 |
+
"id": 2476,
|
| 207 |
+
"title": "Nintendo Switch",
|
| 208 |
+
"serialName": "Nintendo"
|
| 209 |
+
},
|
| 210 |
+
{
|
| 211 |
+
"id": 1280,
|
| 212 |
+
"title": "Nintendo Wii",
|
| 213 |
+
"serialName": "Nintendo"
|
| 214 |
+
},
|
| 215 |
+
{
|
| 216 |
+
"id": 1333,
|
| 217 |
+
"title": "Nintendo Wii U",
|
| 218 |
+
"serialName": "Nintendo"
|
| 219 |
+
},
|
| 220 |
+
{
|
| 221 |
+
"id": 1442,
|
| 222 |
+
"title": "MacOS",
|
| 223 |
+
"serialName": null
|
| 224 |
+
},
|
| 225 |
+
{
|
| 226 |
+
"id": 5389,
|
| 227 |
+
"title": "PC Game Pass",
|
| 228 |
+
"serialName": null
|
| 229 |
+
},
|
| 230 |
+
{
|
| 231 |
+
"id": 1269,
|
| 232 |
+
"title": "PlayStation",
|
| 233 |
+
"serialName": "PlayStation"
|
| 234 |
+
},
|
| 235 |
+
{
|
| 236 |
+
"id": 1270,
|
| 237 |
+
"title": "PlayStation 2",
|
| 238 |
+
"serialName": "PlayStation"
|
| 239 |
+
},
|
| 240 |
+
{
|
| 241 |
+
"id": 1271,
|
| 242 |
+
"title": "PlayStation 3",
|
| 243 |
+
"serialName": "PlayStation"
|
| 244 |
+
},
|
| 245 |
+
{
|
| 246 |
+
"id": 1332,
|
| 247 |
+
"title": "PlayStation 4",
|
| 248 |
+
"serialName": "PlayStation"
|
| 249 |
+
},
|
| 250 |
+
{
|
| 251 |
+
"id": 3109,
|
| 252 |
+
"title": "PlayStation 5",
|
| 253 |
+
"serialName": "PlayStation"
|
| 254 |
+
},
|
| 255 |
+
{
|
| 256 |
+
"id": 6821,
|
| 257 |
+
"title": "PlayStation Plus",
|
| 258 |
+
"serialName": null
|
| 259 |
+
},
|
| 260 |
+
{
|
| 261 |
+
"id": 1276,
|
| 262 |
+
"title": "PlayStation Portable",
|
| 263 |
+
"serialName": "PlayStation"
|
| 264 |
+
},
|
| 265 |
+
{
|
| 266 |
+
"id": 1277,
|
| 267 |
+
"title": "PlayStation Vita",
|
| 268 |
+
"serialName": "PlayStation"
|
| 269 |
+
},
|
| 270 |
+
{
|
| 271 |
+
"id": 1274,
|
| 272 |
+
"title": "Sega Dreamcast",
|
| 273 |
+
"serialName": "Sega"
|
| 274 |
+
},
|
| 275 |
+
{
|
| 276 |
+
"id": 1815,
|
| 277 |
+
"title": "Sega Genesis / Mega Drive",
|
| 278 |
+
"serialName": "Sega"
|
| 279 |
+
},
|
| 280 |
+
{
|
| 281 |
+
"id": 1816,
|
| 282 |
+
"title": "Sega Master System",
|
| 283 |
+
"serialName": "Sega"
|
| 284 |
+
},
|
| 285 |
+
{
|
| 286 |
+
"id": 1275,
|
| 287 |
+
"title": "Sega Saturn",
|
| 288 |
+
"serialName": "Sega"
|
| 289 |
+
},
|
| 290 |
+
{
|
| 291 |
+
"id": 3017,
|
| 292 |
+
"title": "Stadia",
|
| 293 |
+
"serialName": null
|
| 294 |
+
},
|
| 295 |
+
{
|
| 296 |
+
"id": 1813,
|
| 297 |
+
"title": "Super Nintendo Entertainment System",
|
| 298 |
+
"serialName": "Nintendo"
|
| 299 |
+
},
|
| 300 |
+
{
|
| 301 |
+
"id": 10840,
|
| 302 |
+
"title": "Ubisoft+",
|
| 303 |
+
"serialName": null
|
| 304 |
+
},
|
| 305 |
+
{
|
| 306 |
+
"id": 1441,
|
| 307 |
+
"title": "Windows",
|
| 308 |
+
"serialName": null
|
| 309 |
+
},
|
| 310 |
+
{
|
| 311 |
+
"id": 1448,
|
| 312 |
+
"title": "Windows Phone",
|
| 313 |
+
"serialName": null
|
| 314 |
+
},
|
| 315 |
+
{
|
| 316 |
+
"id": 1272,
|
| 317 |
+
"title": "XBOX",
|
| 318 |
+
"serialName": "XBOX"
|
| 319 |
+
},
|
| 320 |
+
{
|
| 321 |
+
"id": 1273,
|
| 322 |
+
"title": "XBOX 360",
|
| 323 |
+
"serialName": "XBOX"
|
| 324 |
+
},
|
| 325 |
+
{
|
| 326 |
+
"id": 5390,
|
| 327 |
+
"title": "Xbox Game Pass",
|
| 328 |
+
"serialName": null
|
| 329 |
+
},
|
| 330 |
+
{
|
| 331 |
+
"id": 1356,
|
| 332 |
+
"title": "XBOX ONE",
|
| 333 |
+
"serialName": "XBOX"
|
| 334 |
+
},
|
| 335 |
+
{
|
| 336 |
+
"id": 3110,
|
| 337 |
+
"title": "Xbox Series X/S",
|
| 338 |
+
"serialName": "XBOX"
|
| 339 |
+
}
|
| 340 |
+
]
|
| 341 |
+
}
|
| 342 |
+
},
|
| 343 |
+
{
|
| 344 |
+
"name": "getGameList",
|
| 345 |
+
"url": "https://evosiss-game-database.p.rapidapi.com/getGameList/ldlap3MPTGYdcbsaEYAI2mgmNQmOD5bK/0",
|
| 346 |
+
"description": "Returns the ID and series names of the games as Json.",
|
| 347 |
+
"method": "GET",
|
| 348 |
+
"required_parameters": [
|
| 349 |
+
{
|
| 350 |
+
"name": "page",
|
| 351 |
+
"type": "NUMBER",
|
| 352 |
+
"description": "",
|
| 353 |
+
"default": "0"
|
| 354 |
+
}
|
| 355 |
+
],
|
| 356 |
+
"optional_parameters": [],
|
| 357 |
+
"code": "import requests\n\nurl = \"https://evosiss-game-database.p.rapidapi.com/getGameList/ldlap3MPTGYdcbsaEYAI2mgmNQmOD5bK/0\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"evosiss-game-database.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n",
|
| 358 |
+
"convert_code": "import requests\n\nurl = \"https://evosiss-game-database.p.rapidapi.com/getGameList/ldlap3MPTGYdcbsaEYAI2mgmNQmOD5bK/{page}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"evosiss-game-database.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n",
|
| 359 |
+
"test_endpoint": {
|
| 360 |
+
"status": 1,
|
| 361 |
+
"data": [
|
| 362 |
+
{
|
| 363 |
+
"id": 1788,
|
| 364 |
+
"title": "0 A.D.",
|
| 365 |
+
"serialName": null
|
| 366 |
+
},
|
| 367 |
+
{
|
| 368 |
+
"id": 5210,
|
| 369 |
+
"title": "007 Legends",
|
| 370 |
+
"serialName": 7
|
| 371 |
+
},
|
| 372 |
+
{
|
| 373 |
+
"id": 155,
|
| 374 |
+
"title": "007: Quantum of Solace",
|
| 375 |
+
"serialName": 7
|
| 376 |
+
},
|
| 377 |
+
{
|
| 378 |
+
"id": 2161,
|
| 379 |
+
"title": "1001 Spikes",
|
| 380 |
+
"serialName": null
|
| 381 |
+
},
|
| 382 |
+
{
|
| 383 |
+
"id": 4989,
|
| 384 |
+
"title": "103 (2018)",
|
| 385 |
+
"serialName": null
|
| 386 |
+
},
|
| 387 |
+
{
|
| 388 |
+
"id": 5893,
|
| 389 |
+
"title": "112 Operator",
|
| 390 |
+
"serialName": "Operator"
|
| 391 |
+
},
|
| 392 |
+
{
|
| 393 |
+
"id": 6327,
|
| 394 |
+
"title": "112th Seed",
|
| 395 |
+
"serialName": null
|
| 396 |
+
},
|
| 397 |
+
{
|
| 398 |
+
"id": 10655,
|
| 399 |
+
"title": "12 orbits",
|
| 400 |
+
"serialName": null
|
| 401 |
+
},
|
| 402 |
+
{
|
| 403 |
+
"id": 8328,
|
| 404 |
+
"title": 140,
|
| 405 |
+
"serialName": null
|
| 406 |
+
},
|
| 407 |
+
{
|
| 408 |
+
"id": 10915,
|
| 409 |
+
"title": "1428: Shadows over Silesia",
|
| 410 |
+
"serialName": null
|
| 411 |
+
},
|
| 412 |
+
{
|
| 413 |
+
"id": 4979,
|
| 414 |
+
"title": "15 Days",
|
| 415 |
+
"serialName": null
|
| 416 |
+
},
|
| 417 |
+
{
|
| 418 |
+
"id": 9925,
|
| 419 |
+
"title": 171,
|
| 420 |
+
"serialName": null
|
| 421 |
+
},
|
| 422 |
+
{
|
| 423 |
+
"id": 42,
|
| 424 |
+
"title": "18 Wheels of Steel: Across America",
|
| 425 |
+
"serialName": "18 Wheels Of Steel"
|
| 426 |
+
},
|
| 427 |
+
{
|
| 428 |
+
"id": 383,
|
| 429 |
+
"title": "18 Wheels of Steel: American long haul",
|
| 430 |
+
"serialName": "18 Wheels Of Steel"
|
| 431 |
+
},
|
| 432 |
+
{
|
| 433 |
+
"id": 41,
|
| 434 |
+
"title": "18 Wheels of Steel: Convoy",
|
| 435 |
+
"serialName": "18 Wheels Of Steel"
|
| 436 |
+
},
|
| 437 |
+
{
|
| 438 |
+
"id": 1591,
|
| 439 |
+
"title": "18 Wheels of Steel: Extreme Trucker",
|
| 440 |
+
"serialName": "18 Wheels of Steel"
|
| 441 |
+
},
|
| 442 |
+
{
|
| 443 |
+
"id": 1592,
|
| 444 |
+
"title": "18 Wheels of Steel: Extreme Trucker 2",
|
| 445 |
+
"serialName": "18 Wheels of Steel"
|
| 446 |
+
},
|
| 447 |
+
{
|
| 448 |
+
"id": 40,
|
| 449 |
+
"title": "18 Wheels Of Steel: Haulin",
|
| 450 |
+
"serialName": "18 Wheels Of Steel"
|
| 451 |
+
},
|
| 452 |
+
{
|
| 453 |
+
"id": 382,
|
| 454 |
+
"title": "18 Wheels of Steel: Pedal To The Metal",
|
| 455 |
+
"serialName": "18 Wheels Of Steel"
|
| 456 |
+
},
|
| 457 |
+
{
|
| 458 |
+
"id": 8643,
|
| 459 |
+
"title": "1849: Gold Edition",
|
| 460 |
+
"serialName": null
|
| 461 |
+
},
|
| 462 |
+
{
|
| 463 |
+
"id": 9276,
|
| 464 |
+
"title": "1942: The Pacific Air War",
|
| 465 |
+
"serialName": "Air War"
|
| 466 |
+
},
|
| 467 |
+
{
|
| 468 |
+
"id": 8656,
|
| 469 |
+
"title": "1954 Alcatraz",
|
| 470 |
+
"serialName": null
|
| 471 |
+
},
|
| 472 |
+
{
|
| 473 |
+
"id": 7556,
|
| 474 |
+
"title": "1971 Project Helios",
|
| 475 |
+
"serialName": null
|
| 476 |
+
},
|
| 477 |
+
{
|
| 478 |
+
"id": 5891,
|
| 479 |
+
"title": "1979 Revolution: Black Friday",
|
| 480 |
+
"serialName": null
|
| 481 |
+
},
|
| 482 |
+
{
|
| 483 |
+
"id": 7850,
|
| 484 |
+
"title": "198X",
|
| 485 |
+
"serialName": null
|
| 486 |
+
},
|
| 487 |
+
{
|
| 488 |
+
"id": 9008,
|
| 489 |
+
"title": "1nsane",
|
| 490 |
+
"serialName": null
|
| 491 |
+
},
|
| 492 |
+
{
|
| 493 |
+
"id": 10664,
|
| 494 |
+
"title": "20 Minutes Till Dawn",
|
| 495 |
+
"serialName": null
|
| 496 |
+
},
|
| 497 |
+
{
|
| 498 |
+
"id": 2218,
|
| 499 |
+
"title": 2048,
|
| 500 |
+
"serialName": null
|
| 501 |
+
},
|
| 502 |
+
{
|
| 503 |
+
"id": 6404,
|
| 504 |
+
"title": "2064: Read Only Memories",
|
| 505 |
+
"serialName": null
|
| 506 |
+
},
|
| 507 |
+
{
|
| 508 |
+
"id": 3581,
|
| 509 |
+
"title": "20XX",
|
| 510 |
+
"serialName": null
|
| 511 |
+
},
|
| 512 |
+
{
|
| 513 |
+
"id": 4663,
|
| 514 |
+
"title": "22 Racing Series | RTS-Racing",
|
| 515 |
+
"serialName": null
|
| 516 |
+
},
|
| 517 |
+
{
|
| 518 |
+
"id": 3720,
|
| 519 |
+
"title": "3 out of 10: Season One",
|
| 520 |
+
"serialName": "3 out of 10"
|
| 521 |
+
},
|
| 522 |
+
{
|
| 523 |
+
"id": 4540,
|
| 524 |
+
"title": "3 out of 10: Season Two",
|
| 525 |
+
"serialName": "3 out of 10"
|
| 526 |
+
},
|
| 527 |
+
{
|
| 528 |
+
"id": 2819,
|
| 529 |
+
"title": "39 Days to Mars",
|
| 530 |
+
"serialName": null
|
| 531 |
+
},
|
| 532 |
+
{
|
| 533 |
+
"id": 10143,
|
| 534 |
+
"title": "40 Winks",
|
| 535 |
+
"serialName": null
|
| 536 |
+
},
|
| 537 |
+
{
|
| 538 |
+
"id": 4610,
|
| 539 |
+
"title": "41 Hours",
|
| 540 |
+
"serialName": null
|
| 541 |
+
},
|
| 542 |
+
{
|
| 543 |
+
"id": 5150,
|
| 544 |
+
"title": "428: Shibuya Scramble",
|
| 545 |
+
"serialName": null
|
| 546 |
+
},
|
| 547 |
+
{
|
| 548 |
+
"id": 9460,
|
| 549 |
+
"title": "4th & Inches",
|
| 550 |
+
"serialName": null
|
| 551 |
+
},
|
| 552 |
+
{
|
| 553 |
+
"id": 5369,
|
| 554 |
+
"title": "50 Cent: Blood on the Sand",
|
| 555 |
+
"serialName": null
|
| 556 |
+
},
|
| 557 |
+
{
|
| 558 |
+
"id": 4986,
|
| 559 |
+
"title": "6 Seasons and a Game",
|
| 560 |
+
"serialName": null
|
| 561 |
+
},
|
| 562 |
+
{
|
| 563 |
+
"id": 8041,
|
| 564 |
+
"title": "60 Parsecs!",
|
| 565 |
+
"serialName": null
|
| 566 |
+
},
|
| 567 |
+
{
|
| 568 |
+
"id": 8302,
|
| 569 |
+
"title": "60 Seconds!",
|
| 570 |
+
"serialName": null
|
| 571 |
+
},
|
| 572 |
+
{
|
| 573 |
+
"id": 10064,
|
| 574 |
+
"title": "60 Seconds! Reatomized",
|
| 575 |
+
"serialName": null
|
| 576 |
+
},
|
| 577 |
+
{
|
| 578 |
+
"id": 9900,
|
| 579 |
+
"title": "688(I) Hunter/Killer",
|
| 580 |
+
"serialName": null
|
| 581 |
+
},
|
| 582 |
+
{
|
| 583 |
+
"id": 6282,
|
| 584 |
+
"title": "7 Billion Humans",
|
| 585 |
+
"serialName": null
|
| 586 |
+
},
|
| 587 |
+
{
|
| 588 |
+
"id": 1489,
|
| 589 |
+
"title": "7 days to Die",
|
| 590 |
+
"serialName": null
|
| 591 |
+
},
|
| 592 |
+
{
|
| 593 |
+
"id": 7983,
|
| 594 |
+
"title": "7 Sins",
|
| 595 |
+
"serialName": null
|
| 596 |
+
},
|
| 597 |
+
{
|
| 598 |
+
"id": 9114,
|
| 599 |
+
"title": "7th Legion",
|
| 600 |
+
"serialName": null
|
| 601 |
+
},
|
| 602 |
+
{
|
| 603 |
+
"id": 7719,
|
| 604 |
+
"title": "8-Bit Adventures 1: The Forgotten Journey Remastered Edition",
|
| 605 |
+
"serialName": null
|
| 606 |
+
},
|
| 607 |
+
{
|
| 608 |
+
"id": 10310,
|
| 609 |
+
"title": "8-Bit Adventures 2",
|
| 610 |
+
"serialName": null
|
| 611 |
+
},
|
| 612 |
+
{
|
| 613 |
+
"id": 8395,
|
| 614 |
+
"title": "8-Bit Armies",
|
| 615 |
+
"serialName": "8-Bit"
|
| 616 |
+
},
|
| 617 |
+
{
|
| 618 |
+
"id": 8377,
|
| 619 |
+
"title": "8-Bit Hordes",
|
| 620 |
+
"serialName": "8-Bit"
|
| 621 |
+
},
|
| 622 |
+
{
|
| 623 |
+
"id": 8345,
|
| 624 |
+
"title": "8-Bit Invaders!",
|
| 625 |
+
"serialName": "8-Bit"
|
| 626 |
+
},
|
| 627 |
+
{
|
| 628 |
+
"id": 11066,
|
| 629 |
+
"title": "8 Eyes",
|
| 630 |
+
"serialName": null
|
| 631 |
+
},
|
| 632 |
+
{
|
| 633 |
+
"id": 8567,
|
| 634 |
+
"title": "80 Days",
|
| 635 |
+
"serialName": null
|
| 636 |
+
},
|
| 637 |
+
{
|
| 638 |
+
"id": 5935,
|
| 639 |
+
"title": "88 Heroes - 98 Heroes Edition",
|
| 640 |
+
"serialName": null
|
| 641 |
+
},
|
| 642 |
+
{
|
| 643 |
+
"id": 6422,
|
| 644 |
+
"title": "8Doors: Arum's Afterlife Adventure",
|
| 645 |
+
"serialName": null
|
| 646 |
+
},
|
| 647 |
+
{
|
| 648 |
+
"id": 4158,
|
| 649 |
+
"title": "9 Monkeys of Shaolin",
|
| 650 |
+
"serialName": null
|
| 651 |
+
},
|
| 652 |
+
{
|
| 653 |
+
"id": 10693,
|
| 654 |
+
"title": "9 Years of Shadows",
|
| 655 |
+
"serialName": null
|
| 656 |
+
},
|
| 657 |
+
{
|
| 658 |
+
"id": 2527,
|
| 659 |
+
"title": "911 Operator",
|
| 660 |
+
"serialName": "Operator"
|
| 661 |
+
},
|
| 662 |
+
{
|
| 663 |
+
"id": 8774,
|
| 664 |
+
"title": "99 Levels To Hell",
|
| 665 |
+
"serialName": null
|
| 666 |
+
},
|
| 667 |
+
{
|
| 668 |
+
"id": 7524,
|
| 669 |
+
"title": "9th Dawn III",
|
| 670 |
+
"serialName": null
|
| 671 |
+
},
|
| 672 |
+
{
|
| 673 |
+
"id": 8609,
|
| 674 |
+
"title": "A Bird Story",
|
| 675 |
+
"serialName": null
|
| 676 |
+
},
|
| 677 |
+
{
|
| 678 |
+
"id": 8434,
|
| 679 |
+
"title": "A Boy and His Blob",
|
| 680 |
+
"serialName": null
|
| 681 |
+
},
|
| 682 |
+
{
|
| 683 |
+
"id": 10445,
|
| 684 |
+
"title": "A Building Full of Cats",
|
| 685 |
+
"serialName": null
|
| 686 |
+
},
|
| 687 |
+
{
|
| 688 |
+
"id": 9882,
|
| 689 |
+
"title": "A Castle Full of Cats",
|
| 690 |
+
"serialName": null
|
| 691 |
+
},
|
| 692 |
+
{
|
| 693 |
+
"id": 11062,
|
| 694 |
+
"title": "A Day Out",
|
| 695 |
+
"serialName": null
|
| 696 |
+
},
|
| 697 |
+
{
|
| 698 |
+
"id": 8504,
|
| 699 |
+
"title": "A Fistful of Gun",
|
| 700 |
+
"serialName": null
|
| 701 |
+
},
|
| 702 |
+
{
|
| 703 |
+
"id": 7270,
|
| 704 |
+
"title": "A Game of Thrones: The Board Game - Digital Edition",
|
| 705 |
+
"serialName": "Game of Thrones"
|
| 706 |
+
},
|
| 707 |
+
{
|
| 708 |
+
"id": 8615,
|
| 709 |
+
"title": "A Golden Wake",
|
| 710 |
+
"serialName": null
|
| 711 |
+
},
|
| 712 |
+
{
|
| 713 |
+
"id": 6240,
|
| 714 |
+
"title": "A Good Snowman Is Hard To Build",
|
| 715 |
+
"serialName": null
|
| 716 |
+
},
|
| 717 |
+
{
|
| 718 |
+
"id": 4858,
|
| 719 |
+
"title": "A Hat in Time",
|
| 720 |
+
"serialName": null
|
| 721 |
+
},
|
| 722 |
+
{
|
| 723 |
+
"id": 9691,
|
| 724 |
+
"title": "A Hero's Rest",
|
| 725 |
+
"serialName": null
|
| 726 |
+
},
|
| 727 |
+
{
|
| 728 |
+
"id": 6263,
|
| 729 |
+
"title": "A Juggler's Tale",
|
| 730 |
+
"serialName": null
|
| 731 |
+
},
|
| 732 |
+
{
|
| 733 |
+
"id": 8182,
|
| 734 |
+
"title": "A Kiss For The Petals - Remembering How We Met",
|
| 735 |
+
"serialName": null
|
| 736 |
+
},
|
| 737 |
+
{
|
| 738 |
+
"id": 6494,
|
| 739 |
+
"title": "A Knight's Quest",
|
| 740 |
+
"serialName": null
|
| 741 |
+
},
|
| 742 |
+
{
|
| 743 |
+
"id": 7623,
|
| 744 |
+
"title": "A Legionary's Life",
|
| 745 |
+
"serialName": null
|
| 746 |
+
},
|
| 747 |
+
{
|
| 748 |
+
"id": 7902,
|
| 749 |
+
"title": "A Light in the Dark",
|
| 750 |
+
"serialName": null
|
| 751 |
+
},
|
| 752 |
+
{
|
| 753 |
+
"id": 7345,
|
| 754 |
+
"title": "A Little Golf Journey",
|
| 755 |
+
"serialName": null
|
| 756 |
+
},
|
| 757 |
+
{
|
| 758 |
+
"id": 9888,
|
| 759 |
+
"title": "A Little to the Left",
|
| 760 |
+
"serialName": null
|
| 761 |
+
},
|
| 762 |
+
{
|
| 763 |
+
"id": 8912,
|
| 764 |
+
"title": "A Memoir Blue",
|
| 765 |
+
"serialName": null
|
| 766 |
+
},
|
| 767 |
+
{
|
| 768 |
+
"id": 6108,
|
| 769 |
+
"title": "A Monster's Expedition",
|
| 770 |
+
"serialName": null
|
| 771 |
+
},
|
| 772 |
+
{
|
| 773 |
+
"id": 6336,
|
| 774 |
+
"title": "A Musical Story",
|
| 775 |
+
"serialName": null
|
| 776 |
+
},
|
| 777 |
+
{
|
| 778 |
+
"id": 8794,
|
| 779 |
+
"title": "A New Beginning - Final Cut",
|
| 780 |
+
"serialName": null
|
| 781 |
+
},
|
| 782 |
+
{
|
| 783 |
+
"id": 7697,
|
| 784 |
+
"title": "A Normal Lost Phone",
|
| 785 |
+
"serialName": null
|
| 786 |
+
},
|
| 787 |
+
{
|
| 788 |
+
"id": 5773,
|
| 789 |
+
"title": "A Place for the Unwilling",
|
| 790 |
+
"serialName": null
|
| 791 |
+
},
|
| 792 |
+
{
|
| 793 |
+
"id": 2985,
|
| 794 |
+
"title": "A Plague Tale: Innocence",
|
| 795 |
+
"serialName": "A Plague Tale"
|
| 796 |
+
},
|
| 797 |
+
{
|
| 798 |
+
"id": 4654,
|
| 799 |
+
"title": "A Plague Tale: Requiem",
|
| 800 |
+
"serialName": "A Plague Tale"
|
| 801 |
+
},
|
| 802 |
+
{
|
| 803 |
+
"id": 8222,
|
| 804 |
+
"title": "A Rat's Quest - The Way Back Home",
|
| 805 |
+
"serialName": null
|
| 806 |
+
},
|
| 807 |
+
{
|
| 808 |
+
"id": 6490,
|
| 809 |
+
"title": "A Short Hike",
|
| 810 |
+
"serialName": null
|
| 811 |
+
},
|
| 812 |
+
{
|
| 813 |
+
"id": 10250,
|
| 814 |
+
"title": "A Space for the Unbound",
|
| 815 |
+
"serialName": null
|
| 816 |
+
},
|
| 817 |
+
{
|
| 818 |
+
"id": 3164,
|
| 819 |
+
"title": "A Story About My Uncle",
|
| 820 |
+
"serialName": null
|
| 821 |
+
},
|
| 822 |
+
{
|
| 823 |
+
"id": 6617,
|
| 824 |
+
"title": "A Street Cat's Tale",
|
| 825 |
+
"serialName": null
|
| 826 |
+
},
|
| 827 |
+
{
|
| 828 |
+
"id": 8431,
|
| 829 |
+
"title": "A Tale of Paper: Refolded",
|
| 830 |
+
"serialName": null
|
| 831 |
+
},
|
| 832 |
+
{
|
| 833 |
+
"id": 5152,
|
| 834 |
+
"title": "A-Train: All Aboard! Tourism",
|
| 835 |
+
"serialName": "A-Train"
|
| 836 |
+
},
|
| 837 |
+
{
|
| 838 |
+
"id": 4547,
|
| 839 |
+
"title": "A-Train PC Classic",
|
| 840 |
+
"serialName": "A-Train"
|
| 841 |
+
},
|
| 842 |
+
{
|
| 843 |
+
"id": 10378,
|
| 844 |
+
"title": "A Trip to Yugoslavia: Director's Cut",
|
| 845 |
+
"serialName": null
|
| 846 |
+
},
|
| 847 |
+
{
|
| 848 |
+
"id": 2803,
|
| 849 |
+
"title": "A Way Out",
|
| 850 |
+
"serialName": null
|
| 851 |
+
},
|
| 852 |
+
{
|
| 853 |
+
"id": 7352,
|
| 854 |
+
"title": "A Year of springs",
|
| 855 |
+
"serialName": null
|
| 856 |
+
},
|
| 857 |
+
{
|
| 858 |
+
"id": 8745,
|
| 859 |
+
"title": "Aarklash: Legacy",
|
| 860 |
+
"serialName": null
|
| 861 |
+
}
|
| 862 |
+
]
|
| 863 |
+
}
|
| 864 |
+
},
|
| 865 |
+
{
|
| 866 |
+
"name": "gameAddRequest",
|
| 867 |
+
"url": "https://evosiss-game-database.p.rapidapi.com/gameAddRequest/advenceXp3MPTGYdcbsaEYA3gxaOD5b9",
|
| 868 |
+
"description": "There is a feature that you want to be added to the game or there is a bug that you want to be fixed, please write to the track.",
|
| 869 |
+
"method": "POST",
|
| 870 |
+
"required_parameters": [],
|
| 871 |
+
"optional_parameters": [],
|
| 872 |
+
"code": "import requests\n\nurl = \"https://evosiss-game-database.p.rapidapi.com/gameAddRequest/advenceXp3MPTGYdcbsaEYA3gxaOD5b9\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"evosiss-game-database.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
|
| 873 |
+
"convert_code": "import requests\n\nurl = \"https://evosiss-game-database.p.rapidapi.com/gameAddRequest/advenceXp3MPTGYdcbsaEYA3gxaOD5b9\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"evosiss-game-database.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
|
| 874 |
+
"test_endpoint": ""
|
| 875 |
+
}
|
| 876 |
+
],
|
| 877 |
+
"standardized_name": "evosis_s_game_database"
|
| 878 |
+
}
|
toolbench/toolenv/tools/Gaming/evosis_s_game_database/api.py
ADDED
|
@@ -0,0 +1,113 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import requests
|
| 2 |
+
import json
|
| 3 |
+
from datetime import date, datetime, timedelta
|
| 4 |
+
import os
|
| 5 |
+
|
| 6 |
+
from typing import Optional, Dict, Union, List
|
| 7 |
+
|
| 8 |
+
|
| 9 |
+
def getgamedetailpro(is_id: int, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 10 |
+
"""
|
| 11 |
+
"Returns the game's information as Json."
|
| 12 |
+
|
| 13 |
+
"""
|
| 14 |
+
url = f"https://evosiss-game-database.p.rapidapi.com/getgamedetailpro/proxap3mptgydcbsaeyaiaksajorsc54/{is_id}"
|
| 15 |
+
querystring = {}
|
| 16 |
+
|
| 17 |
+
headers = {
|
| 18 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 19 |
+
"X-RapidAPI-Host": "evosiss-game-database.p.rapidapi.com"
|
| 20 |
+
}
|
| 21 |
+
|
| 22 |
+
|
| 23 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 24 |
+
try:
|
| 25 |
+
observation = response.json()
|
| 26 |
+
except:
|
| 27 |
+
observation = response.text
|
| 28 |
+
return observation
|
| 29 |
+
|
| 30 |
+
def getgamedetail(is_id: int, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 31 |
+
"""
|
| 32 |
+
"Returns the game's information as Json"
|
| 33 |
+
|
| 34 |
+
"""
|
| 35 |
+
url = f"https://evosiss-game-database.p.rapidapi.com/getgamedetail/advencexp3mptgydcbsaeya3gxaod5b9/{is_id}"
|
| 36 |
+
querystring = {}
|
| 37 |
+
|
| 38 |
+
headers = {
|
| 39 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 40 |
+
"X-RapidAPI-Host": "evosiss-game-database.p.rapidapi.com"
|
| 41 |
+
}
|
| 42 |
+
|
| 43 |
+
|
| 44 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 45 |
+
try:
|
| 46 |
+
observation = response.json()
|
| 47 |
+
except:
|
| 48 |
+
observation = response.text
|
| 49 |
+
return observation
|
| 50 |
+
|
| 51 |
+
def getstorestatuslist(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 52 |
+
"""
|
| 53 |
+
"Returns as Json of store status list."
|
| 54 |
+
|
| 55 |
+
"""
|
| 56 |
+
url = f"https://evosiss-game-database.p.rapidapi.com/getstorestatuslist/ldlap3mptgydcbsaeyai2mgmnqmod5bk/"
|
| 57 |
+
querystring = {}
|
| 58 |
+
|
| 59 |
+
headers = {
|
| 60 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 61 |
+
"X-RapidAPI-Host": "evosiss-game-database.p.rapidapi.com"
|
| 62 |
+
}
|
| 63 |
+
|
| 64 |
+
|
| 65 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 66 |
+
try:
|
| 67 |
+
observation = response.json()
|
| 68 |
+
except:
|
| 69 |
+
observation = response.text
|
| 70 |
+
return observation
|
| 71 |
+
|
| 72 |
+
def getplatformlist(page: int, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 73 |
+
"""
|
| 74 |
+
"Returns the id and names of the platforms as Json."
|
| 75 |
+
|
| 76 |
+
"""
|
| 77 |
+
url = f"https://evosiss-game-database.p.rapidapi.com/getplatformlist/ldlap3mptgydcbsaeyai2mgmnqmod5bk/{page}"
|
| 78 |
+
querystring = {}
|
| 79 |
+
|
| 80 |
+
headers = {
|
| 81 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 82 |
+
"X-RapidAPI-Host": "evosiss-game-database.p.rapidapi.com"
|
| 83 |
+
}
|
| 84 |
+
|
| 85 |
+
|
| 86 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 87 |
+
try:
|
| 88 |
+
observation = response.json()
|
| 89 |
+
except:
|
| 90 |
+
observation = response.text
|
| 91 |
+
return observation
|
| 92 |
+
|
| 93 |
+
def getgamelist(page: int, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 94 |
+
"""
|
| 95 |
+
"Returns the ID and series names of the games as Json."
|
| 96 |
+
|
| 97 |
+
"""
|
| 98 |
+
url = f"https://evosiss-game-database.p.rapidapi.com/getgamelist/ldlap3mptgydcbsaeyai2mgmnqmod5bk/{page}"
|
| 99 |
+
querystring = {}
|
| 100 |
+
|
| 101 |
+
headers = {
|
| 102 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 103 |
+
"X-RapidAPI-Host": "evosiss-game-database.p.rapidapi.com"
|
| 104 |
+
}
|
| 105 |
+
|
| 106 |
+
|
| 107 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 108 |
+
try:
|
| 109 |
+
observation = response.json()
|
| 110 |
+
except:
|
| 111 |
+
observation = response.text
|
| 112 |
+
return observation
|
| 113 |
+
|
toolbench/toolenv/tools/Gaming/fifa_22.json
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"tool_name":"Fifa 22",
|
| 3 |
+
"tool_description":"Fifa 22 Players",
|
| 4 |
+
"title":"Fifa 22",
|
| 5 |
+
"pricing":"FREEMIUM",
|
| 6 |
+
"score":null,
|
| 7 |
+
"home_url":"https://rapidapi.com/gjcn2002/api/fifa-222/",
|
| 8 |
+
"host":"fifa-222.p.rapidapi.com",
|
| 9 |
+
"api_list":[
|
| 10 |
+
{
|
| 11 |
+
"name":"Players",
|
| 12 |
+
"url":"https://fifa-222.p.rapidapi.com/v2/entities/fifa-22-ratings",
|
| 13 |
+
"description":"Players Stats",
|
| 14 |
+
"method":"GET",
|
| 15 |
+
"required_parameters":[
|
| 16 |
+
{
|
| 17 |
+
"name":"limit",
|
| 18 |
+
"type":"NUMBER",
|
| 19 |
+
"description":"",
|
| 20 |
+
"default":40
|
| 21 |
+
},
|
| 22 |
+
{
|
| 23 |
+
"name":"offset",
|
| 24 |
+
"type":"NUMBER",
|
| 25 |
+
"description":"",
|
| 26 |
+
"default":"0"
|
| 27 |
+
}
|
| 28 |
+
],
|
| 29 |
+
"optional_parameters":[
|
| 30 |
+
{
|
| 31 |
+
"name":"filter",
|
| 32 |
+
"type":"STRING",
|
| 33 |
+
"description":"",
|
| 34 |
+
"default":"Ronaldo"
|
| 35 |
+
},
|
| 36 |
+
{
|
| 37 |
+
"name":"sort",
|
| 38 |
+
"type":"STRING",
|
| 39 |
+
"description":"",
|
| 40 |
+
"default":"ranking:ASC"
|
| 41 |
+
}
|
| 42 |
+
],
|
| 43 |
+
"code":"import requests\n\nurl = \"https://fifa-222.p.rapidapi.com/v2/entities/fifa-22-ratings\"\nquerystring = {\"limit\": limit, \"filter\": filter, \"sort\": sort, \"offset\": offset}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"fifa-222.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n",
|
| 44 |
+
"statuscode":200,
|
| 45 |
+
"body":{},
|
| 46 |
+
"headers":{},
|
| 47 |
+
"schema":{}
|
| 48 |
+
}
|
| 49 |
+
]
|
| 50 |
+
}
|
toolbench/toolenv/tools/Gaming/fifa_22/api.py
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import requests
|
| 2 |
+
import json
|
| 3 |
+
from datetime import date, datetime, timedelta
|
| 4 |
+
import os
|
| 5 |
+
|
| 6 |
+
from typing import Optional, Dict, Union, List
|
| 7 |
+
|
| 8 |
+
|
| 9 |
+
def players(limit: int, offset: int, filter: str='Ronaldo', sort: str='ranking:ASC', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 10 |
+
"""
|
| 11 |
+
"Players Stats"
|
| 12 |
+
|
| 13 |
+
"""
|
| 14 |
+
url = f"https://fifa-222.p.rapidapi.com/v2/entities/fifa-22-ratings"
|
| 15 |
+
querystring = {'limit': limit, 'offset': offset, }
|
| 16 |
+
if filter:
|
| 17 |
+
querystring['filter'] = filter
|
| 18 |
+
if sort:
|
| 19 |
+
querystring['sort'] = sort
|
| 20 |
+
|
| 21 |
+
headers = {
|
| 22 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 23 |
+
"X-RapidAPI-Host": "fifa-222.p.rapidapi.com"
|
| 24 |
+
}
|
| 25 |
+
|
| 26 |
+
|
| 27 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 28 |
+
try:
|
| 29 |
+
observation = response.json()
|
| 30 |
+
except:
|
| 31 |
+
observation = response.text
|
| 32 |
+
return observation
|
| 33 |
+
|
toolbench/toolenv/tools/Gaming/fifa_ultimate_team/api.py
ADDED
|
@@ -0,0 +1,467 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import requests
|
| 2 |
+
import json
|
| 3 |
+
from datetime import date, datetime, timedelta
|
| 4 |
+
import os
|
| 5 |
+
|
| 6 |
+
from typing import Optional, Dict, Union, List
|
| 7 |
+
|
| 8 |
+
|
| 9 |
+
def specific_league(league_id: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 10 |
+
"""
|
| 11 |
+
"Access information relating to a specific league."
|
| 12 |
+
|
| 13 |
+
"""
|
| 14 |
+
url = f"https://fifa-ultimate-team.p.rapidapi.com/leagues/{league_id}"
|
| 15 |
+
querystring = {}
|
| 16 |
+
|
| 17 |
+
headers = {
|
| 18 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 19 |
+
"X-RapidAPI-Host": "fifa-ultimate-team.p.rapidapi.com"
|
| 20 |
+
}
|
| 21 |
+
|
| 22 |
+
|
| 23 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 24 |
+
try:
|
| 25 |
+
observation = response.json()
|
| 26 |
+
except:
|
| 27 |
+
observation = response.text
|
| 28 |
+
return observation
|
| 29 |
+
|
| 30 |
+
def all_leagues(limit: int=None, page: int=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 31 |
+
"""
|
| 32 |
+
"Access information about all leagues in the database."
|
| 33 |
+
|
| 34 |
+
"""
|
| 35 |
+
url = f"https://fifa-ultimate-team.p.rapidapi.com/leagues"
|
| 36 |
+
querystring = {}
|
| 37 |
+
if limit:
|
| 38 |
+
querystring['limit'] = limit
|
| 39 |
+
if page:
|
| 40 |
+
querystring['page'] = page
|
| 41 |
+
|
| 42 |
+
headers = {
|
| 43 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 44 |
+
"X-RapidAPI-Host": "fifa-ultimate-team.p.rapidapi.com"
|
| 45 |
+
}
|
| 46 |
+
|
| 47 |
+
|
| 48 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 49 |
+
try:
|
| 50 |
+
observation = response.json()
|
| 51 |
+
except:
|
| 52 |
+
observation = response.text
|
| 53 |
+
return observation
|
| 54 |
+
|
| 55 |
+
def all_clubs(limit: int=None, page: int=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 56 |
+
"""
|
| 57 |
+
"Access information about all clubs in the database."
|
| 58 |
+
|
| 59 |
+
"""
|
| 60 |
+
url = f"https://fifa-ultimate-team.p.rapidapi.com/clubs"
|
| 61 |
+
querystring = {}
|
| 62 |
+
if limit:
|
| 63 |
+
querystring['limit'] = limit
|
| 64 |
+
if page:
|
| 65 |
+
querystring['page'] = page
|
| 66 |
+
|
| 67 |
+
headers = {
|
| 68 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 69 |
+
"X-RapidAPI-Host": "fifa-ultimate-team.p.rapidapi.com"
|
| 70 |
+
}
|
| 71 |
+
|
| 72 |
+
|
| 73 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 74 |
+
try:
|
| 75 |
+
observation = response.json()
|
| 76 |
+
except:
|
| 77 |
+
observation = response.text
|
| 78 |
+
return observation
|
| 79 |
+
|
| 80 |
+
def player_price_by_id(player_id: int, price_update: int=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 81 |
+
"""
|
| 82 |
+
"Access the price of the player queried by ID. Pass price_update as a query parameter to get an a realtime price. price_update will take more time to return a response."
|
| 83 |
+
price_update: **Example**: 0 (false) or 1 (true). Choose if you want to force a price update when querying the price. Having this set to true will update the players price, but may take longer for the request to complete
|
| 84 |
+
|
| 85 |
+
"""
|
| 86 |
+
url = f"https://fifa-ultimate-team.p.rapidapi.com/players/{player_id}/price"
|
| 87 |
+
querystring = {}
|
| 88 |
+
if price_update:
|
| 89 |
+
querystring['price_update'] = price_update
|
| 90 |
+
|
| 91 |
+
headers = {
|
| 92 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 93 |
+
"X-RapidAPI-Host": "fifa-ultimate-team.p.rapidapi.com"
|
| 94 |
+
}
|
| 95 |
+
|
| 96 |
+
|
| 97 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 98 |
+
try:
|
| 99 |
+
observation = response.json()
|
| 100 |
+
except:
|
| 101 |
+
observation = response.text
|
| 102 |
+
return observation
|
| 103 |
+
|
| 104 |
+
def latest_players_by_id(player_id: str, page: int=None, limit: int=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 105 |
+
"""
|
| 106 |
+
"Access information about all players that have been added to the database since the ID you provide."
|
| 107 |
+
|
| 108 |
+
"""
|
| 109 |
+
url = f"https://fifa-ultimate-team.p.rapidapi.com/players/latest/{player_id}"
|
| 110 |
+
querystring = {}
|
| 111 |
+
if page:
|
| 112 |
+
querystring['page'] = page
|
| 113 |
+
if limit:
|
| 114 |
+
querystring['limit'] = limit
|
| 115 |
+
|
| 116 |
+
headers = {
|
| 117 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 118 |
+
"X-RapidAPI-Host": "fifa-ultimate-team.p.rapidapi.com"
|
| 119 |
+
}
|
| 120 |
+
|
| 121 |
+
|
| 122 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 123 |
+
try:
|
| 124 |
+
observation = response.json()
|
| 125 |
+
except:
|
| 126 |
+
observation = response.text
|
| 127 |
+
return observation
|
| 128 |
+
|
| 129 |
+
def player_image_by_id(player_id: int, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 130 |
+
"""
|
| 131 |
+
"Access the image of the player queried by ID"
|
| 132 |
+
|
| 133 |
+
"""
|
| 134 |
+
url = f"https://fifa-ultimate-team.p.rapidapi.com/players/{player_id}/image"
|
| 135 |
+
querystring = {}
|
| 136 |
+
|
| 137 |
+
headers = {
|
| 138 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 139 |
+
"X-RapidAPI-Host": "fifa-ultimate-team.p.rapidapi.com"
|
| 140 |
+
}
|
| 141 |
+
|
| 142 |
+
|
| 143 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 144 |
+
try:
|
| 145 |
+
observation = response.json()
|
| 146 |
+
except:
|
| 147 |
+
observation = response.text
|
| 148 |
+
return observation
|
| 149 |
+
|
| 150 |
+
def player_by_id(player_id: int, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 151 |
+
"""
|
| 152 |
+
"Access information about a specific player in the database."
|
| 153 |
+
|
| 154 |
+
"""
|
| 155 |
+
url = f"https://fifa-ultimate-team.p.rapidapi.com/players/{player_id}"
|
| 156 |
+
querystring = {}
|
| 157 |
+
|
| 158 |
+
headers = {
|
| 159 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 160 |
+
"X-RapidAPI-Host": "fifa-ultimate-team.p.rapidapi.com"
|
| 161 |
+
}
|
| 162 |
+
|
| 163 |
+
|
| 164 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 165 |
+
try:
|
| 166 |
+
observation = response.json()
|
| 167 |
+
except:
|
| 168 |
+
observation = response.text
|
| 169 |
+
return observation
|
| 170 |
+
|
| 171 |
+
def players_by_club(club_id: int, limit: int=None, page: int=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 172 |
+
"""
|
| 173 |
+
"Access information about all players from a specific club in the database."
|
| 174 |
+
|
| 175 |
+
"""
|
| 176 |
+
url = f"https://fifa-ultimate-team.p.rapidapi.com/players/club/{club_id}"
|
| 177 |
+
querystring = {}
|
| 178 |
+
if limit:
|
| 179 |
+
querystring['limit'] = limit
|
| 180 |
+
if page:
|
| 181 |
+
querystring['page'] = page
|
| 182 |
+
|
| 183 |
+
headers = {
|
| 184 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 185 |
+
"X-RapidAPI-Host": "fifa-ultimate-team.p.rapidapi.com"
|
| 186 |
+
}
|
| 187 |
+
|
| 188 |
+
|
| 189 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 190 |
+
try:
|
| 191 |
+
observation = response.json()
|
| 192 |
+
except:
|
| 193 |
+
observation = response.text
|
| 194 |
+
return observation
|
| 195 |
+
|
| 196 |
+
def players_by_league(league_id: str, page: int=None, limit: int=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 197 |
+
"""
|
| 198 |
+
"Access information about all players from a specific league in the database."
|
| 199 |
+
|
| 200 |
+
"""
|
| 201 |
+
url = f"https://fifa-ultimate-team.p.rapidapi.com/players/league/{league_id}"
|
| 202 |
+
querystring = {}
|
| 203 |
+
if page:
|
| 204 |
+
querystring['page'] = page
|
| 205 |
+
if limit:
|
| 206 |
+
querystring['limit'] = limit
|
| 207 |
+
|
| 208 |
+
headers = {
|
| 209 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 210 |
+
"X-RapidAPI-Host": "fifa-ultimate-team.p.rapidapi.com"
|
| 211 |
+
}
|
| 212 |
+
|
| 213 |
+
|
| 214 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 215 |
+
try:
|
| 216 |
+
observation = response.json()
|
| 217 |
+
except:
|
| 218 |
+
observation = response.text
|
| 219 |
+
return observation
|
| 220 |
+
|
| 221 |
+
def players_by_nation(nation_id: str, page: int=None, limit: int=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 222 |
+
"""
|
| 223 |
+
"Access information about all players from a specific nation in the database."
|
| 224 |
+
|
| 225 |
+
"""
|
| 226 |
+
url = f"https://fifa-ultimate-team.p.rapidapi.com/players/nation/{nation_id}"
|
| 227 |
+
querystring = {}
|
| 228 |
+
if page:
|
| 229 |
+
querystring['page'] = page
|
| 230 |
+
if limit:
|
| 231 |
+
querystring['limit'] = limit
|
| 232 |
+
|
| 233 |
+
headers = {
|
| 234 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 235 |
+
"X-RapidAPI-Host": "fifa-ultimate-team.p.rapidapi.com"
|
| 236 |
+
}
|
| 237 |
+
|
| 238 |
+
|
| 239 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 240 |
+
try:
|
| 241 |
+
observation = response.json()
|
| 242 |
+
except:
|
| 243 |
+
observation = response.text
|
| 244 |
+
return observation
|
| 245 |
+
|
| 246 |
+
def all_players(limit: int=None, page: int=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 247 |
+
"""
|
| 248 |
+
"Access information about all players in the database."
|
| 249 |
+
|
| 250 |
+
"""
|
| 251 |
+
url = f"https://fifa-ultimate-team.p.rapidapi.com/players"
|
| 252 |
+
querystring = {}
|
| 253 |
+
if limit:
|
| 254 |
+
querystring['limit'] = limit
|
| 255 |
+
if page:
|
| 256 |
+
querystring['page'] = page
|
| 257 |
+
|
| 258 |
+
headers = {
|
| 259 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 260 |
+
"X-RapidAPI-Host": "fifa-ultimate-team.p.rapidapi.com"
|
| 261 |
+
}
|
| 262 |
+
|
| 263 |
+
|
| 264 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 265 |
+
try:
|
| 266 |
+
observation = response.json()
|
| 267 |
+
except:
|
| 268 |
+
observation = response.text
|
| 269 |
+
return observation
|
| 270 |
+
|
| 271 |
+
def all_cards(limit: int=None, page: int=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 272 |
+
"""
|
| 273 |
+
"Access information about all cards in the database."
|
| 274 |
+
|
| 275 |
+
"""
|
| 276 |
+
url = f"https://fifa-ultimate-team.p.rapidapi.com/cards"
|
| 277 |
+
querystring = {}
|
| 278 |
+
if limit:
|
| 279 |
+
querystring['limit'] = limit
|
| 280 |
+
if page:
|
| 281 |
+
querystring['page'] = page
|
| 282 |
+
|
| 283 |
+
headers = {
|
| 284 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 285 |
+
"X-RapidAPI-Host": "fifa-ultimate-team.p.rapidapi.com"
|
| 286 |
+
}
|
| 287 |
+
|
| 288 |
+
|
| 289 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 290 |
+
try:
|
| 291 |
+
observation = response.json()
|
| 292 |
+
except:
|
| 293 |
+
observation = response.text
|
| 294 |
+
return observation
|
| 295 |
+
|
| 296 |
+
def card_image(card_id: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 297 |
+
"""
|
| 298 |
+
"Get the image of the card matching the ID queried."
|
| 299 |
+
|
| 300 |
+
"""
|
| 301 |
+
url = f"https://fifa-ultimate-team.p.rapidapi.com/cards/{card_id}/image"
|
| 302 |
+
querystring = {}
|
| 303 |
+
|
| 304 |
+
headers = {
|
| 305 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 306 |
+
"X-RapidAPI-Host": "fifa-ultimate-team.p.rapidapi.com"
|
| 307 |
+
}
|
| 308 |
+
|
| 309 |
+
|
| 310 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 311 |
+
try:
|
| 312 |
+
observation = response.json()
|
| 313 |
+
except:
|
| 314 |
+
observation = response.text
|
| 315 |
+
return observation
|
| 316 |
+
|
| 317 |
+
def specific_card(card_id: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 318 |
+
"""
|
| 319 |
+
"Access information relating to a specific card."
|
| 320 |
+
|
| 321 |
+
"""
|
| 322 |
+
url = f"https://fifa-ultimate-team.p.rapidapi.com/cards/{card_id}"
|
| 323 |
+
querystring = {}
|
| 324 |
+
|
| 325 |
+
headers = {
|
| 326 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 327 |
+
"X-RapidAPI-Host": "fifa-ultimate-team.p.rapidapi.com"
|
| 328 |
+
}
|
| 329 |
+
|
| 330 |
+
|
| 331 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 332 |
+
try:
|
| 333 |
+
observation = response.json()
|
| 334 |
+
except:
|
| 335 |
+
observation = response.text
|
| 336 |
+
return observation
|
| 337 |
+
|
| 338 |
+
def specific_nation(nation_id: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 339 |
+
"""
|
| 340 |
+
"Access information relating to a specific nation."
|
| 341 |
+
|
| 342 |
+
"""
|
| 343 |
+
url = f"https://fifa-ultimate-team.p.rapidapi.com/nations/{nation_id}"
|
| 344 |
+
querystring = {}
|
| 345 |
+
|
| 346 |
+
headers = {
|
| 347 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 348 |
+
"X-RapidAPI-Host": "fifa-ultimate-team.p.rapidapi.com"
|
| 349 |
+
}
|
| 350 |
+
|
| 351 |
+
|
| 352 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 353 |
+
try:
|
| 354 |
+
observation = response.json()
|
| 355 |
+
except:
|
| 356 |
+
observation = response.text
|
| 357 |
+
return observation
|
| 358 |
+
|
| 359 |
+
def nation_badge(nation_id: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 360 |
+
"""
|
| 361 |
+
"Get the badge of the nation matching the ID queried."
|
| 362 |
+
|
| 363 |
+
"""
|
| 364 |
+
url = f"https://fifa-ultimate-team.p.rapidapi.com/nations/{nation_id}/image"
|
| 365 |
+
querystring = {}
|
| 366 |
+
|
| 367 |
+
headers = {
|
| 368 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 369 |
+
"X-RapidAPI-Host": "fifa-ultimate-team.p.rapidapi.com"
|
| 370 |
+
}
|
| 371 |
+
|
| 372 |
+
|
| 373 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 374 |
+
try:
|
| 375 |
+
observation = response.json()
|
| 376 |
+
except:
|
| 377 |
+
observation = response.text
|
| 378 |
+
return observation
|
| 379 |
+
|
| 380 |
+
def all_nations(page: int=None, limit: int=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 381 |
+
"""
|
| 382 |
+
"Access information about all nations in the database."
|
| 383 |
+
|
| 384 |
+
"""
|
| 385 |
+
url = f"https://fifa-ultimate-team.p.rapidapi.com/nations"
|
| 386 |
+
querystring = {}
|
| 387 |
+
if page:
|
| 388 |
+
querystring['page'] = page
|
| 389 |
+
if limit:
|
| 390 |
+
querystring['limit'] = limit
|
| 391 |
+
|
| 392 |
+
headers = {
|
| 393 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 394 |
+
"X-RapidAPI-Host": "fifa-ultimate-team.p.rapidapi.com"
|
| 395 |
+
}
|
| 396 |
+
|
| 397 |
+
|
| 398 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 399 |
+
try:
|
| 400 |
+
observation = response.json()
|
| 401 |
+
except:
|
| 402 |
+
observation = response.text
|
| 403 |
+
return observation
|
| 404 |
+
|
| 405 |
+
def league_badge(league_id: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 406 |
+
"""
|
| 407 |
+
"Get the badge of the league matching the ID queried."
|
| 408 |
+
|
| 409 |
+
"""
|
| 410 |
+
url = f"https://fifa-ultimate-team.p.rapidapi.com/leagues/{league_id}/image"
|
| 411 |
+
querystring = {}
|
| 412 |
+
|
| 413 |
+
headers = {
|
| 414 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 415 |
+
"X-RapidAPI-Host": "fifa-ultimate-team.p.rapidapi.com"
|
| 416 |
+
}
|
| 417 |
+
|
| 418 |
+
|
| 419 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 420 |
+
try:
|
| 421 |
+
observation = response.json()
|
| 422 |
+
except:
|
| 423 |
+
observation = response.text
|
| 424 |
+
return observation
|
| 425 |
+
|
| 426 |
+
def club_badge(club_id: int, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 427 |
+
"""
|
| 428 |
+
"Get the badge of the club matching the ID queried."
|
| 429 |
+
|
| 430 |
+
"""
|
| 431 |
+
url = f"https://fifa-ultimate-team.p.rapidapi.com/clubs/{club_id}/image"
|
| 432 |
+
querystring = {}
|
| 433 |
+
|
| 434 |
+
headers = {
|
| 435 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 436 |
+
"X-RapidAPI-Host": "fifa-ultimate-team.p.rapidapi.com"
|
| 437 |
+
}
|
| 438 |
+
|
| 439 |
+
|
| 440 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 441 |
+
try:
|
| 442 |
+
observation = response.json()
|
| 443 |
+
except:
|
| 444 |
+
observation = response.text
|
| 445 |
+
return observation
|
| 446 |
+
|
| 447 |
+
def specific_club(clud_id: int, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 448 |
+
"""
|
| 449 |
+
"Access information relating to a specific club."
|
| 450 |
+
|
| 451 |
+
"""
|
| 452 |
+
url = f"https://fifa-ultimate-team.p.rapidapi.com/clubs/{clud_id}"
|
| 453 |
+
querystring = {}
|
| 454 |
+
|
| 455 |
+
headers = {
|
| 456 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 457 |
+
"X-RapidAPI-Host": "fifa-ultimate-team.p.rapidapi.com"
|
| 458 |
+
}
|
| 459 |
+
|
| 460 |
+
|
| 461 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 462 |
+
try:
|
| 463 |
+
observation = response.json()
|
| 464 |
+
except:
|
| 465 |
+
observation = response.text
|
| 466 |
+
return observation
|
| 467 |
+
|
toolbench/toolenv/tools/Gaming/find_player_info_lol.json
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"tool_name":"Find Player Info LOL",
|
| 3 |
+
"tool_description":"find LoL players/team infomation by thier name",
|
| 4 |
+
"title":"Find Player Info LOL",
|
| 5 |
+
"pricing":"FREEMIUM",
|
| 6 |
+
"score":{
|
| 7 |
+
"avgServiceLevel":0,
|
| 8 |
+
"avgLatency":127177,
|
| 9 |
+
"avgSuccessRate":0,
|
| 10 |
+
"popularityScore":0,
|
| 11 |
+
"__typename":"Score"
|
| 12 |
+
},
|
| 13 |
+
"home_url":"https://rapidapi.com/yaolillian9714/api/find-player-info-lol/",
|
| 14 |
+
"host":"find-player-info-lol.p.rapidapi.com",
|
| 15 |
+
"api_list":[
|
| 16 |
+
{
|
| 17 |
+
"name":"default",
|
| 18 |
+
"url":"https://find-player-info-lol.p.rapidapi.com/",
|
| 19 |
+
"description":"default endpoint",
|
| 20 |
+
"method":"GET",
|
| 21 |
+
"required_parameters":[],
|
| 22 |
+
"optional_parameters":[],
|
| 23 |
+
"code":"import requests\n\nurl = \"https://find-player-info-lol.p.rapidapi.com/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"find-player-info-lol.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n",
|
| 24 |
+
"statuscode":111,
|
| 25 |
+
"body":"",
|
| 26 |
+
"headers":"",
|
| 27 |
+
"schema":""
|
| 28 |
+
}
|
| 29 |
+
]
|
| 30 |
+
}
|
toolbench/toolenv/tools/Gaming/find_player_info_lol/api.py
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import requests
|
| 2 |
+
import json
|
| 3 |
+
from datetime import date, datetime, timedelta
|
| 4 |
+
import os
|
| 5 |
+
|
| 6 |
+
from typing import Optional, Dict, Union, List
|
| 7 |
+
|
| 8 |
+
|
| 9 |
+
def default(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 10 |
+
"""
|
| 11 |
+
"default endpoint"
|
| 12 |
+
|
| 13 |
+
"""
|
| 14 |
+
url = f"https://find-player-info-lol.p.rapidapi.com/"
|
| 15 |
+
querystring = {}
|
| 16 |
+
|
| 17 |
+
headers = {
|
| 18 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 19 |
+
"X-RapidAPI-Host": "find-player-info-lol.p.rapidapi.com"
|
| 20 |
+
}
|
| 21 |
+
|
| 22 |
+
|
| 23 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 24 |
+
try:
|
| 25 |
+
observation = response.json()
|
| 26 |
+
except:
|
| 27 |
+
observation = response.text
|
| 28 |
+
return observation
|
| 29 |
+
|
toolbench/toolenv/tools/Gaming/fodase.json
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"tool_name":"Fodase",
|
| 3 |
+
"tool_description":"Fodase fodase",
|
| 4 |
+
"title":"Fodase",
|
| 5 |
+
"pricing":"FREE",
|
| 6 |
+
"score":{
|
| 7 |
+
"avgServiceLevel":100,
|
| 8 |
+
"avgLatency":417,
|
| 9 |
+
"avgSuccessRate":0,
|
| 10 |
+
"popularityScore":0,
|
| 11 |
+
"__typename":"Score"
|
| 12 |
+
},
|
| 13 |
+
"home_url":"https://rapidapi.com/moaojarco/api/fodase1/",
|
| 14 |
+
"host":"fodase1.p.rapidapi.com",
|
| 15 |
+
"api_list":[
|
| 16 |
+
{
|
| 17 |
+
"name":"Get users",
|
| 18 |
+
"url":"https://fodase1.p.rapidapi.com/users",
|
| 19 |
+
"description":"sdfsdfsdf",
|
| 20 |
+
"method":"GET",
|
| 21 |
+
"required_parameters":[],
|
| 22 |
+
"optional_parameters":[],
|
| 23 |
+
"code":"import requests\n\nurl = \"https://fodase1.p.rapidapi.com/users\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"fodase1.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n",
|
| 24 |
+
"statuscode":111,
|
| 25 |
+
"body":"",
|
| 26 |
+
"headers":"",
|
| 27 |
+
"schema":""
|
| 28 |
+
}
|
| 29 |
+
]
|
| 30 |
+
}
|
toolbench/toolenv/tools/Gaming/fodase/api.py
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import requests
|
| 2 |
+
import json
|
| 3 |
+
from datetime import date, datetime, timedelta
|
| 4 |
+
import os
|
| 5 |
+
|
| 6 |
+
from typing import Optional, Dict, Union, List
|
| 7 |
+
|
| 8 |
+
|
| 9 |
+
def get_users(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 10 |
+
"""
|
| 11 |
+
"sdfsdfsdf"
|
| 12 |
+
|
| 13 |
+
"""
|
| 14 |
+
url = f"https://fodase1.p.rapidapi.com/users"
|
| 15 |
+
querystring = {}
|
| 16 |
+
|
| 17 |
+
headers = {
|
| 18 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 19 |
+
"X-RapidAPI-Host": "fodase1.p.rapidapi.com"
|
| 20 |
+
}
|
| 21 |
+
|
| 22 |
+
|
| 23 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 24 |
+
try:
|
| 25 |
+
observation = response.json()
|
| 26 |
+
except:
|
| 27 |
+
observation = response.text
|
| 28 |
+
return observation
|
| 29 |
+
|
toolbench/toolenv/tools/Gaming/food_quiz.json
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"tool_name":"Food Quiz",
|
| 3 |
+
"tool_description":"A multiple choice quiz game focusing on food with 5 levels and 15 questions each",
|
| 4 |
+
"title":"Food Quiz",
|
| 5 |
+
"pricing":"FREEMIUM",
|
| 6 |
+
"score":{
|
| 7 |
+
"avgServiceLevel":76,
|
| 8 |
+
"avgLatency":403,
|
| 9 |
+
"avgSuccessRate":76,
|
| 10 |
+
"popularityScore":9.4,
|
| 11 |
+
"__typename":"Score"
|
| 12 |
+
},
|
| 13 |
+
"home_url":"https://rapidapi.com/chardma324-3ryX6DlM7c5/api/food-quiz/",
|
| 14 |
+
"host":"food-quiz.p.rapidapi.com",
|
| 15 |
+
"api_list":[
|
| 16 |
+
{
|
| 17 |
+
"name":"levels",
|
| 18 |
+
"url":"https://food-quiz.p.rapidapi.com/questions/{level}",
|
| 19 |
+
"description":"gets questions from a level (1-5). Level must be specified by user.",
|
| 20 |
+
"method":"GET",
|
| 21 |
+
"required_parameters":[
|
| 22 |
+
{
|
| 23 |
+
"name":"level",
|
| 24 |
+
"type":"NUMBER",
|
| 25 |
+
"description":"",
|
| 26 |
+
"default":"1"
|
| 27 |
+
}
|
| 28 |
+
],
|
| 29 |
+
"optional_parameters":[],
|
| 30 |
+
"code":"import requests\n\nurl = \"https://food-quiz.p.rapidapi.com/questions/{level}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"food-quiz.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n",
|
| 31 |
+
"statuscode":111,
|
| 32 |
+
"body":"",
|
| 33 |
+
"headers":"",
|
| 34 |
+
"schema":""
|
| 35 |
+
},
|
| 36 |
+
{
|
| 37 |
+
"name":"all questions",
|
| 38 |
+
"url":"https://food-quiz.p.rapidapi.com/questions",
|
| 39 |
+
"description":"Gets all 75 questions for all 5 levels",
|
| 40 |
+
"method":"GET",
|
| 41 |
+
"required_parameters":[
|
| 42 |
+
{
|
| 43 |
+
"name":"level",
|
| 44 |
+
"type":"NUMBER",
|
| 45 |
+
"description":"",
|
| 46 |
+
"default":"1"
|
| 47 |
+
}
|
| 48 |
+
],
|
| 49 |
+
"optional_parameters":[],
|
| 50 |
+
"code":"import requests\n\nurl = \"https://food-quiz.p.rapidapi.com/questions\"\nquerystring = {\"level\": level}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"food-quiz.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n",
|
| 51 |
+
"statuscode":111,
|
| 52 |
+
"body":"",
|
| 53 |
+
"headers":"",
|
| 54 |
+
"schema":""
|
| 55 |
+
}
|
| 56 |
+
]
|
| 57 |
+
}
|
toolbench/toolenv/tools/Gaming/food_quiz/api.py
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import requests
|
| 2 |
+
import json
|
| 3 |
+
from datetime import date, datetime, timedelta
|
| 4 |
+
import os
|
| 5 |
+
|
| 6 |
+
from typing import Optional, Dict, Union, List
|
| 7 |
+
|
| 8 |
+
|
| 9 |
+
def levels(level: int, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 10 |
+
"""
|
| 11 |
+
"gets questions from a level (1-5). Level must be specified by user."
|
| 12 |
+
|
| 13 |
+
"""
|
| 14 |
+
url = f"https://food-quiz.p.rapidapi.com/questions/{level}"
|
| 15 |
+
querystring = {}
|
| 16 |
+
|
| 17 |
+
headers = {
|
| 18 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 19 |
+
"X-RapidAPI-Host": "food-quiz.p.rapidapi.com"
|
| 20 |
+
}
|
| 21 |
+
|
| 22 |
+
|
| 23 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 24 |
+
try:
|
| 25 |
+
observation = response.json()
|
| 26 |
+
except:
|
| 27 |
+
observation = response.text
|
| 28 |
+
return observation
|
| 29 |
+
|
| 30 |
+
def all_questions(level: int, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 31 |
+
"""
|
| 32 |
+
"Gets all 75 questions for all 5 levels"
|
| 33 |
+
|
| 34 |
+
"""
|
| 35 |
+
url = f"https://food-quiz.p.rapidapi.com/questions"
|
| 36 |
+
querystring = {'level': level, }
|
| 37 |
+
|
| 38 |
+
headers = {
|
| 39 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 40 |
+
"X-RapidAPI-Host": "food-quiz.p.rapidapi.com"
|
| 41 |
+
}
|
| 42 |
+
|
| 43 |
+
|
| 44 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 45 |
+
try:
|
| 46 |
+
observation = response.json()
|
| 47 |
+
except:
|
| 48 |
+
observation = response.text
|
| 49 |
+
return observation
|
| 50 |
+
|
toolbench/toolenv/tools/Gaming/foony.json
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"product_id": "api_354a8317-68a2-497e-8393-cdfca1242877",
|
| 3 |
+
"tool_description": "Create and customize embeddable real-time multiplayer games with chat, hiscores, levels, achievements, and items.",
|
| 4 |
+
"home_url": "https://rapidapi.com/foonycom/api/foony2/",
|
| 5 |
+
"name": "Foony",
|
| 6 |
+
"title": "Foony",
|
| 7 |
+
"pricing": "FREEMIUM",
|
| 8 |
+
"tool_name": "Foony",
|
| 9 |
+
"score": {
|
| 10 |
+
"avgServiceLevel": 94,
|
| 11 |
+
"avgLatency": 262,
|
| 12 |
+
"avgSuccessRate": 31,
|
| 13 |
+
"popularityScore": 8.7,
|
| 14 |
+
"__typename": "Score"
|
| 15 |
+
},
|
| 16 |
+
"host": "foony2.p.rapidapi.com",
|
| 17 |
+
"api_list": [
|
| 18 |
+
{
|
| 19 |
+
"name": "Create Room",
|
| 20 |
+
"url": "https://foony2.p.rapidapi.com/create-room",
|
| 21 |
+
"description": "Creates a room supporting 1-1,000 players. You will have 60 seconds to join the room on at least 1 client.\n\nPlayers will be able to play any of the available Foony games from this room without additional charge so long as the room remains open.\n\nOn success, the result will contain an embeddable room URL that can be included in any iframe. You may add 1 or more additional options below to further customize the look and feel of the embed:\n\n`&chat=false` Enables chat features (default true)\n`&items=false` Shows item acquisition / customization (default true)\n`&xp=false` Shows experience and levels (default true)\n`&lobbyHeader=false` Shows the lobby header allowing players to adjust game settings (default true)\n`&spectate=true` Joins the player as a spectator. Spectators can view other players in the game and chat (if enabled), but can't participate themselves.\n`&hostSecret=16to64CharacterSecret` If provided, the embedded client will join the room and take over as Host and room creator, giving them special permissions such as the ability to start the game and change settings in the room. Only 1 player should have this in their embed. To use this feature, you must include the hostSecret in your room creation request, and you will need to add the hostSecret to the end of the response's embedUrl.\n\nSupported gameIds:\n* [battleships](https://foony.com/games/battleblobs) - BattleBlobs\n* [checkers](https://foony.com/games/checkers) - Checkers Online + Draughts\n* [chess](https://foony.com/games/chess) - Chess\n* [dinomight](https://foony.com/games/dinomight) - Dino-Might (inspired by Bomberman)\n* [foonyflippers](https://foony.com/games/foono) - Foon-o (inspired by Uno Online)\n* [fourinarow](https://foony.com/games/4-in-a-row-connect) - 4 in a Row Connect\n* [paintjob](https://foony.com/games/paintjob) - Paintjob\n* [typeroyale](https://foony.com/games/typeroyale) - TypeRoyale\n* [wordhunt](https://foony.com/games/popaword) - Pop-A-Word\n\nEach game has its own configuration options.\n\nIf you don't understand any of the options, feel free to reach out to us at support@foony.com and we'll be happy to help.",
|
| 22 |
+
"method": "POST",
|
| 23 |
+
"required_parameters": [],
|
| 24 |
+
"optional_parameters": [],
|
| 25 |
+
"code": "import requests\n\nurl = \"https://foony2.p.rapidapi.com/create-room\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"foony2.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
|
| 26 |
+
"convert_code": "import requests\n\nurl = \"https://foony2.p.rapidapi.com/create-room\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"foony2.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
|
| 27 |
+
"test_endpoint": ""
|
| 28 |
+
}
|
| 29 |
+
]
|
| 30 |
+
}
|
toolbench/toolenv/tools/Gaming/football_manager_api.json
ADDED
|
@@ -0,0 +1,279 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"tool_name":"Football Manager API",
|
| 3 |
+
"tool_description":"Extensive API for Football Manager 2023. Allows searching and filtering for every technical, mental, physical and hidden attribute, as well as numerous other stats.",
|
| 4 |
+
"title":"Football Manager API",
|
| 5 |
+
"pricing":"FREEMIUM",
|
| 6 |
+
"score":{
|
| 7 |
+
"avgServiceLevel":100,
|
| 8 |
+
"avgLatency":224,
|
| 9 |
+
"avgSuccessRate":100,
|
| 10 |
+
"popularityScore":9.5,
|
| 11 |
+
"__typename":"Score"
|
| 12 |
+
},
|
| 13 |
+
"home_url":"https://rapidapi.com/VaughnDev/api/football-manager-api/",
|
| 14 |
+
"host":"football-manager-api.p.rapidapi.com",
|
| 15 |
+
"api_list":[
|
| 16 |
+
{
|
| 17 |
+
"name":"Get players of Club",
|
| 18 |
+
"url":"https://football-manager-api.p.rapidapi.com/clubs/{clubname}",
|
| 19 |
+
"description":"Get players that play for a club. Club name is the \"Short Name\" used in game without spaces. Examples: \"Barcelona\", \"ManCity\", \"Liverpool\", \"PSG\"",
|
| 20 |
+
"method":"GET",
|
| 21 |
+
"required_parameters":[
|
| 22 |
+
{
|
| 23 |
+
"name":"clubName",
|
| 24 |
+
"type":"string",
|
| 25 |
+
"description":"",
|
| 26 |
+
"default":"Barcelona"
|
| 27 |
+
}
|
| 28 |
+
],
|
| 29 |
+
"optional_parameters":[
|
| 30 |
+
{
|
| 31 |
+
"name":"length",
|
| 32 |
+
"type":"NUMBER",
|
| 33 |
+
"description":"",
|
| 34 |
+
"default":"20"
|
| 35 |
+
}
|
| 36 |
+
],
|
| 37 |
+
"code":"import requests\n\nurl = \"https://football-manager-api.p.rapidapi.com/clubs/{clubname}\"\nquerystring = {\"length\": length}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"football-manager-api.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n",
|
| 38 |
+
"statuscode":200,
|
| 39 |
+
"body":{
|
| 40 |
+
"key1":"value",
|
| 41 |
+
"key2":"value"
|
| 42 |
+
},
|
| 43 |
+
"headers":{},
|
| 44 |
+
"schema":{}
|
| 45 |
+
},
|
| 46 |
+
{
|
| 47 |
+
"name":"Get similarity of players",
|
| 48 |
+
"url":"https://football-manager-api.p.rapidapi.com/players/similar/{firstplayer}/{secondplayer}",
|
| 49 |
+
"description":"Get the similarity of the two players supplied.",
|
| 50 |
+
"method":"GET",
|
| 51 |
+
"required_parameters":[
|
| 52 |
+
{
|
| 53 |
+
"name":"firstPlayer",
|
| 54 |
+
"type":"string",
|
| 55 |
+
"description":"",
|
| 56 |
+
"default":"messi"
|
| 57 |
+
},
|
| 58 |
+
{
|
| 59 |
+
"name":"secondPlayer",
|
| 60 |
+
"type":"string",
|
| 61 |
+
"description":"",
|
| 62 |
+
"default":"ronaldo"
|
| 63 |
+
}
|
| 64 |
+
],
|
| 65 |
+
"optional_parameters":[],
|
| 66 |
+
"code":"import requests\n\nurl = \"https://football-manager-api.p.rapidapi.com/players/similar/{firstplayer}/{secondplayer}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"football-manager-api.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n",
|
| 67 |
+
"statuscode":111,
|
| 68 |
+
"body":"",
|
| 69 |
+
"headers":"",
|
| 70 |
+
"schema":""
|
| 71 |
+
},
|
| 72 |
+
{
|
| 73 |
+
"name":"Get weighted cosine similar player",
|
| 74 |
+
"url":"https://football-manager-api.p.rapidapi.com/players/similar/cosine/alternative/{name}",
|
| 75 |
+
"description":"Get most similar based on weighted cosine similarity.",
|
| 76 |
+
"method":"GET",
|
| 77 |
+
"required_parameters":[
|
| 78 |
+
{
|
| 79 |
+
"name":"name",
|
| 80 |
+
"type":"string",
|
| 81 |
+
"description":"",
|
| 82 |
+
"default":"messi"
|
| 83 |
+
}
|
| 84 |
+
],
|
| 85 |
+
"optional_parameters":[],
|
| 86 |
+
"code":"import requests\n\nurl = \"https://football-manager-api.p.rapidapi.com/players/similar/cosine/alternative/{name}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"football-manager-api.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n",
|
| 87 |
+
"statuscode":200,
|
| 88 |
+
"body":{
|
| 89 |
+
"key1":"value",
|
| 90 |
+
"key2":"value"
|
| 91 |
+
},
|
| 92 |
+
"headers":{},
|
| 93 |
+
"schema":{}
|
| 94 |
+
},
|
| 95 |
+
{
|
| 96 |
+
"name":"Get cosine similar player",
|
| 97 |
+
"url":"https://football-manager-api.p.rapidapi.com/players/similar/cosine/{name}",
|
| 98 |
+
"description":"Get most similar player by cosine similarity.",
|
| 99 |
+
"method":"GET",
|
| 100 |
+
"required_parameters":[
|
| 101 |
+
{
|
| 102 |
+
"name":"name",
|
| 103 |
+
"type":"string",
|
| 104 |
+
"description":"",
|
| 105 |
+
"default":"messi"
|
| 106 |
+
}
|
| 107 |
+
],
|
| 108 |
+
"optional_parameters":[],
|
| 109 |
+
"code":"import requests\n\nurl = \"https://football-manager-api.p.rapidapi.com/players/similar/cosine/{name}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"football-manager-api.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n",
|
| 110 |
+
"statuscode":200,
|
| 111 |
+
"body":{
|
| 112 |
+
"key1":"value",
|
| 113 |
+
"key2":"value"
|
| 114 |
+
},
|
| 115 |
+
"headers":{},
|
| 116 |
+
"schema":{}
|
| 117 |
+
},
|
| 118 |
+
{
|
| 119 |
+
"name":"Get similar player",
|
| 120 |
+
"url":"https://football-manager-api.p.rapidapi.com/players/similar/{comparisonplayer}",
|
| 121 |
+
"description":"Finds the player that has the most similar attributes to another player submitted in the query.",
|
| 122 |
+
"method":"GET",
|
| 123 |
+
"required_parameters":[
|
| 124 |
+
{
|
| 125 |
+
"name":"comparisonPlayer",
|
| 126 |
+
"type":"string",
|
| 127 |
+
"description":"",
|
| 128 |
+
"default":"kvaratskhelia"
|
| 129 |
+
}
|
| 130 |
+
],
|
| 131 |
+
"optional_parameters":[],
|
| 132 |
+
"code":"import requests\n\nurl = \"https://football-manager-api.p.rapidapi.com/players/similar/{comparisonplayer}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"football-manager-api.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n",
|
| 133 |
+
"statuscode":200,
|
| 134 |
+
"body":{
|
| 135 |
+
"key1":"value",
|
| 136 |
+
"key2":"value"
|
| 137 |
+
},
|
| 138 |
+
"headers":{},
|
| 139 |
+
"schema":{}
|
| 140 |
+
},
|
| 141 |
+
{
|
| 142 |
+
"name":"Players",
|
| 143 |
+
"url":"https://football-manager-api.p.rapidapi.com/players",
|
| 144 |
+
"description":"Filter through the Football Manager players by their age, asking Price, club, minimum CA (Current Ability, 1-200), maximum CA, minimum PA (Potential Ability, 1-200), maximum PA, name, End of Contract year, nationality, position (and secondary positions), and select the length of entries you want to receive. Specify an attribute to sort the results by in this format: \"finishing-desc\", \"InjuryProneness-asc\"\n\nSee Documentation for the filter query attributes dictionary.",
|
| 145 |
+
"method":"GET",
|
| 146 |
+
"required_parameters":[],
|
| 147 |
+
"optional_parameters":[
|
| 148 |
+
{
|
| 149 |
+
"name":"orderBy",
|
| 150 |
+
"type":"STRING",
|
| 151 |
+
"description":"",
|
| 152 |
+
"default":"currentAbility-desc"
|
| 153 |
+
},
|
| 154 |
+
{
|
| 155 |
+
"name":"minAskingPrice",
|
| 156 |
+
"type":"NUMBER",
|
| 157 |
+
"description":"",
|
| 158 |
+
"default":"10"
|
| 159 |
+
},
|
| 160 |
+
{
|
| 161 |
+
"name":"minAge",
|
| 162 |
+
"type":"NUMBER",
|
| 163 |
+
"description":"",
|
| 164 |
+
"default":"16"
|
| 165 |
+
},
|
| 166 |
+
{
|
| 167 |
+
"name":"minCa",
|
| 168 |
+
"type":"NUMBER",
|
| 169 |
+
"description":"",
|
| 170 |
+
"default":"130"
|
| 171 |
+
},
|
| 172 |
+
{
|
| 173 |
+
"name":"maxAskingPrice",
|
| 174 |
+
"type":"NUMBER",
|
| 175 |
+
"description":"",
|
| 176 |
+
"default":"200"
|
| 177 |
+
},
|
| 178 |
+
{
|
| 179 |
+
"name":"name",
|
| 180 |
+
"type":"STRING",
|
| 181 |
+
"description":"",
|
| 182 |
+
"default":"Messi"
|
| 183 |
+
},
|
| 184 |
+
{
|
| 185 |
+
"name":"nationality",
|
| 186 |
+
"type":"STRING",
|
| 187 |
+
"description":"",
|
| 188 |
+
"default":"ARG"
|
| 189 |
+
},
|
| 190 |
+
{
|
| 191 |
+
"name":"position",
|
| 192 |
+
"type":"STRING",
|
| 193 |
+
"description":"",
|
| 194 |
+
"default":"ST (C)"
|
| 195 |
+
},
|
| 196 |
+
{
|
| 197 |
+
"name":"length",
|
| 198 |
+
"type":"NUMBER",
|
| 199 |
+
"description":"",
|
| 200 |
+
"default":"20"
|
| 201 |
+
},
|
| 202 |
+
{
|
| 203 |
+
"name":"club",
|
| 204 |
+
"type":"STRING",
|
| 205 |
+
"description":"",
|
| 206 |
+
"default":"PSG"
|
| 207 |
+
},
|
| 208 |
+
{
|
| 209 |
+
"name":"contractTo",
|
| 210 |
+
"type":"NUMBER",
|
| 211 |
+
"description":"",
|
| 212 |
+
"default":"2025"
|
| 213 |
+
},
|
| 214 |
+
{
|
| 215 |
+
"name":"maxAge",
|
| 216 |
+
"type":"NUMBER",
|
| 217 |
+
"description":"",
|
| 218 |
+
"default":"40"
|
| 219 |
+
},
|
| 220 |
+
{
|
| 221 |
+
"name":"minPa",
|
| 222 |
+
"type":"NUMBER",
|
| 223 |
+
"description":"",
|
| 224 |
+
"default":"170"
|
| 225 |
+
},
|
| 226 |
+
{
|
| 227 |
+
"name":"maxCa",
|
| 228 |
+
"type":"NUMBER",
|
| 229 |
+
"description":"",
|
| 230 |
+
"default":"200"
|
| 231 |
+
},
|
| 232 |
+
{
|
| 233 |
+
"name":"maxPa",
|
| 234 |
+
"type":"NUMBER",
|
| 235 |
+
"description":"",
|
| 236 |
+
"default":"200"
|
| 237 |
+
}
|
| 238 |
+
],
|
| 239 |
+
"code":"import requests\n\nurl = \"https://football-manager-api.p.rapidapi.com/players\"\nquerystring = {\"orderBy\": orderby, \"minAskingPrice\": minaskingprice, \"minAge\": minage, \"minCa\": minca, \"maxAskingPrice\": maxaskingprice, \"name\": name, \"nationality\": nationality, \"position\": position, \"length\": length, \"club\": club, \"contractTo\": contractto, \"maxAge\": maxage, \"minPa\": minpa, \"maxCa\": maxca, \"maxPa\": maxpa}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"football-manager-api.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n",
|
| 240 |
+
"statuscode":200,
|
| 241 |
+
"body":{
|
| 242 |
+
"key1":"value",
|
| 243 |
+
"key2":"value"
|
| 244 |
+
},
|
| 245 |
+
"headers":{},
|
| 246 |
+
"schema":{}
|
| 247 |
+
},
|
| 248 |
+
{
|
| 249 |
+
"name":"Get player by ID",
|
| 250 |
+
"url":"https://football-manager-api.p.rapidapi.com/players/{id}",
|
| 251 |
+
"description":"Get a player by his unique ID.",
|
| 252 |
+
"method":"GET",
|
| 253 |
+
"required_parameters":[
|
| 254 |
+
{
|
| 255 |
+
"name":"id",
|
| 256 |
+
"type":"STRING",
|
| 257 |
+
"description":"",
|
| 258 |
+
"default":"83320135"
|
| 259 |
+
}
|
| 260 |
+
],
|
| 261 |
+
"optional_parameters":[
|
| 262 |
+
{
|
| 263 |
+
"name":"length",
|
| 264 |
+
"type":"NUMBER",
|
| 265 |
+
"description":"",
|
| 266 |
+
"default":"20"
|
| 267 |
+
}
|
| 268 |
+
],
|
| 269 |
+
"code":"import requests\n\nurl = \"https://football-manager-api.p.rapidapi.com/players/{id}\"\nquerystring = {\"length\": length}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"football-manager-api.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n",
|
| 270 |
+
"statuscode":200,
|
| 271 |
+
"body":{
|
| 272 |
+
"key1":"value",
|
| 273 |
+
"key2":"value"
|
| 274 |
+
},
|
| 275 |
+
"headers":{},
|
| 276 |
+
"schema":{}
|
| 277 |
+
}
|
| 278 |
+
]
|
| 279 |
+
}
|
toolbench/toolenv/tools/Gaming/football_manager_api/api.py
ADDED
|
@@ -0,0 +1,191 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import requests
|
| 2 |
+
import json
|
| 3 |
+
from datetime import date, datetime, timedelta
|
| 4 |
+
import os
|
| 5 |
+
|
| 6 |
+
from typing import Optional, Dict, Union, List
|
| 7 |
+
|
| 8 |
+
|
| 9 |
+
def get_players_of_club(clubname: str, length: int=20, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 10 |
+
"""
|
| 11 |
+
"Get players that play for a club. Club name is the "Short Name" used in game without spaces. Examples: "Barcelona", "ManCity", "Liverpool", "PSG""
|
| 12 |
+
|
| 13 |
+
"""
|
| 14 |
+
url = f"https://football-manager-api.p.rapidapi.com/clubs/{clubname}"
|
| 15 |
+
querystring = {}
|
| 16 |
+
if length:
|
| 17 |
+
querystring['length'] = length
|
| 18 |
+
|
| 19 |
+
headers = {
|
| 20 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 21 |
+
"X-RapidAPI-Host": "football-manager-api.p.rapidapi.com"
|
| 22 |
+
}
|
| 23 |
+
|
| 24 |
+
|
| 25 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 26 |
+
try:
|
| 27 |
+
observation = response.json()
|
| 28 |
+
except:
|
| 29 |
+
observation = response.text
|
| 30 |
+
return observation
|
| 31 |
+
|
| 32 |
+
def get_similarity_of_players(firstplayer: str, secondplayer: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 33 |
+
"""
|
| 34 |
+
"Get the similarity of the two players supplied."
|
| 35 |
+
|
| 36 |
+
"""
|
| 37 |
+
url = f"https://football-manager-api.p.rapidapi.com/players/similar/{firstplayer}/{secondplayer}"
|
| 38 |
+
querystring = {}
|
| 39 |
+
|
| 40 |
+
headers = {
|
| 41 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 42 |
+
"X-RapidAPI-Host": "football-manager-api.p.rapidapi.com"
|
| 43 |
+
}
|
| 44 |
+
|
| 45 |
+
|
| 46 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 47 |
+
try:
|
| 48 |
+
observation = response.json()
|
| 49 |
+
except:
|
| 50 |
+
observation = response.text
|
| 51 |
+
return observation
|
| 52 |
+
|
| 53 |
+
def get_weighted_cosine_similar_player(name: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 54 |
+
"""
|
| 55 |
+
"Get most similar based on weighted cosine similarity."
|
| 56 |
+
|
| 57 |
+
"""
|
| 58 |
+
url = f"https://football-manager-api.p.rapidapi.com/players/similar/cosine/alternative/{name}"
|
| 59 |
+
querystring = {}
|
| 60 |
+
|
| 61 |
+
headers = {
|
| 62 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 63 |
+
"X-RapidAPI-Host": "football-manager-api.p.rapidapi.com"
|
| 64 |
+
}
|
| 65 |
+
|
| 66 |
+
|
| 67 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 68 |
+
try:
|
| 69 |
+
observation = response.json()
|
| 70 |
+
except:
|
| 71 |
+
observation = response.text
|
| 72 |
+
return observation
|
| 73 |
+
|
| 74 |
+
def get_cosine_similar_player(name: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 75 |
+
"""
|
| 76 |
+
"Get most similar player by cosine similarity."
|
| 77 |
+
|
| 78 |
+
"""
|
| 79 |
+
url = f"https://football-manager-api.p.rapidapi.com/players/similar/cosine/{name}"
|
| 80 |
+
querystring = {}
|
| 81 |
+
|
| 82 |
+
headers = {
|
| 83 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 84 |
+
"X-RapidAPI-Host": "football-manager-api.p.rapidapi.com"
|
| 85 |
+
}
|
| 86 |
+
|
| 87 |
+
|
| 88 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 89 |
+
try:
|
| 90 |
+
observation = response.json()
|
| 91 |
+
except:
|
| 92 |
+
observation = response.text
|
| 93 |
+
return observation
|
| 94 |
+
|
| 95 |
+
def get_similar_player(comparisonplayer: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 96 |
+
"""
|
| 97 |
+
"Finds the player that has the most similar attributes to another player submitted in the query."
|
| 98 |
+
|
| 99 |
+
"""
|
| 100 |
+
url = f"https://football-manager-api.p.rapidapi.com/players/similar/{comparisonplayer}"
|
| 101 |
+
querystring = {}
|
| 102 |
+
|
| 103 |
+
headers = {
|
| 104 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 105 |
+
"X-RapidAPI-Host": "football-manager-api.p.rapidapi.com"
|
| 106 |
+
}
|
| 107 |
+
|
| 108 |
+
|
| 109 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 110 |
+
try:
|
| 111 |
+
observation = response.json()
|
| 112 |
+
except:
|
| 113 |
+
observation = response.text
|
| 114 |
+
return observation
|
| 115 |
+
|
| 116 |
+
def players(orderby: str='currentAbility-desc', minaskingprice: int=10, minage: int=16, minca: int=130, maxaskingprice: int=200, name: str='Messi', nationality: str='ARG', position: str='ST (C)', length: int=20, club: str='PSG', contractto: int=2025, maxage: int=40, minpa: int=170, maxca: int=200, maxpa: int=200, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 117 |
+
"""
|
| 118 |
+
"Filter through the Football Manager players by their age, asking Price, club, minimum CA (Current Ability, 1-200), maximum CA, minimum PA (Potential Ability, 1-200), maximum PA, name, End of Contract year, nationality, position (and secondary positions), and select the length of entries you want to receive. Specify an attribute to sort the results by in this format: "finishing-desc", "InjuryProneness-asc"
|
| 119 |
+
|
| 120 |
+
See Documentation for the filter query attributes dictionary."
|
| 121 |
+
|
| 122 |
+
"""
|
| 123 |
+
url = f"https://football-manager-api.p.rapidapi.com/players"
|
| 124 |
+
querystring = {}
|
| 125 |
+
if orderby:
|
| 126 |
+
querystring['orderBy'] = orderby
|
| 127 |
+
if minaskingprice:
|
| 128 |
+
querystring['minAskingPrice'] = minaskingprice
|
| 129 |
+
if minage:
|
| 130 |
+
querystring['minAge'] = minage
|
| 131 |
+
if minca:
|
| 132 |
+
querystring['minCa'] = minca
|
| 133 |
+
if maxaskingprice:
|
| 134 |
+
querystring['maxAskingPrice'] = maxaskingprice
|
| 135 |
+
if name:
|
| 136 |
+
querystring['name'] = name
|
| 137 |
+
if nationality:
|
| 138 |
+
querystring['nationality'] = nationality
|
| 139 |
+
if position:
|
| 140 |
+
querystring['position'] = position
|
| 141 |
+
if length:
|
| 142 |
+
querystring['length'] = length
|
| 143 |
+
if club:
|
| 144 |
+
querystring['club'] = club
|
| 145 |
+
if contractto:
|
| 146 |
+
querystring['contractTo'] = contractto
|
| 147 |
+
if maxage:
|
| 148 |
+
querystring['maxAge'] = maxage
|
| 149 |
+
if minpa:
|
| 150 |
+
querystring['minPa'] = minpa
|
| 151 |
+
if maxca:
|
| 152 |
+
querystring['maxCa'] = maxca
|
| 153 |
+
if maxpa:
|
| 154 |
+
querystring['maxPa'] = maxpa
|
| 155 |
+
|
| 156 |
+
headers = {
|
| 157 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 158 |
+
"X-RapidAPI-Host": "football-manager-api.p.rapidapi.com"
|
| 159 |
+
}
|
| 160 |
+
|
| 161 |
+
|
| 162 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 163 |
+
try:
|
| 164 |
+
observation = response.json()
|
| 165 |
+
except:
|
| 166 |
+
observation = response.text
|
| 167 |
+
return observation
|
| 168 |
+
|
| 169 |
+
def get_player_by_id(is_id: str, length: int=20, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 170 |
+
"""
|
| 171 |
+
"Get a player by his unique ID."
|
| 172 |
+
|
| 173 |
+
"""
|
| 174 |
+
url = f"https://football-manager-api.p.rapidapi.com/players/{is_id}"
|
| 175 |
+
querystring = {}
|
| 176 |
+
if length:
|
| 177 |
+
querystring['length'] = length
|
| 178 |
+
|
| 179 |
+
headers = {
|
| 180 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 181 |
+
"X-RapidAPI-Host": "football-manager-api.p.rapidapi.com"
|
| 182 |
+
}
|
| 183 |
+
|
| 184 |
+
|
| 185 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 186 |
+
try:
|
| 187 |
+
observation = response.json()
|
| 188 |
+
except:
|
| 189 |
+
observation = response.text
|
| 190 |
+
return observation
|
| 191 |
+
|
toolbench/toolenv/tools/Gaming/fortnite/api.py
ADDED
|
@@ -0,0 +1,547 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import requests
|
| 2 |
+
import json
|
| 3 |
+
from datetime import date, datetime, timedelta
|
| 4 |
+
import os
|
| 5 |
+
|
| 6 |
+
from typing import Optional, Dict, Union, List
|
| 7 |
+
|
| 8 |
+
|
| 9 |
+
def votinglistget(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 10 |
+
"""
|
| 11 |
+
"Get a list with the items you've voted on. You can look back up to 7 days."
|
| 12 |
+
|
| 13 |
+
"""
|
| 14 |
+
url = f"https://fortnite1.p.rapidapi.com/voting/list"
|
| 15 |
+
querystring = {}
|
| 16 |
+
|
| 17 |
+
headers = {
|
| 18 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 19 |
+
"X-RapidAPI-Host": "fortnite1.p.rapidapi.com"
|
| 20 |
+
}
|
| 21 |
+
|
| 22 |
+
|
| 23 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 24 |
+
try:
|
| 25 |
+
observation = response.json()
|
| 26 |
+
except:
|
| 27 |
+
observation = response.text
|
| 28 |
+
return observation
|
| 29 |
+
|
| 30 |
+
def usersidget(username: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 31 |
+
"""
|
| 32 |
+
"TODO: Add Description"
|
| 33 |
+
|
| 34 |
+
"""
|
| 35 |
+
url = f"https://fortnite1.p.rapidapi.com/users/id"
|
| 36 |
+
querystring = {'username': username, }
|
| 37 |
+
|
| 38 |
+
headers = {
|
| 39 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 40 |
+
"X-RapidAPI-Host": "fortnite1.p.rapidapi.com"
|
| 41 |
+
}
|
| 42 |
+
|
| 43 |
+
|
| 44 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 45 |
+
try:
|
| 46 |
+
observation = response.json()
|
| 47 |
+
except:
|
| 48 |
+
observation = response.text
|
| 49 |
+
return observation
|
| 50 |
+
|
| 51 |
+
def creativegetget(is_id: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 52 |
+
"""
|
| 53 |
+
"Interested in getting a specific island from our database? Use this endpoint."
|
| 54 |
+
id: Island code of the island you want
|
| 55 |
+
|
| 56 |
+
"""
|
| 57 |
+
url = f"https://fortnite1.p.rapidapi.com/creative/get"
|
| 58 |
+
querystring = {'id': is_id, }
|
| 59 |
+
|
| 60 |
+
headers = {
|
| 61 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 62 |
+
"X-RapidAPI-Host": "fortnite1.p.rapidapi.com"
|
| 63 |
+
}
|
| 64 |
+
|
| 65 |
+
|
| 66 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 67 |
+
try:
|
| 68 |
+
observation = response.json()
|
| 69 |
+
except:
|
| 70 |
+
observation = response.text
|
| 71 |
+
return observation
|
| 72 |
+
|
| 73 |
+
def upcominggetget(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 74 |
+
"""
|
| 75 |
+
"Receive the unreleased items in this list. This list is updated every few minutes."
|
| 76 |
+
|
| 77 |
+
"""
|
| 78 |
+
url = f"https://fortnite1.p.rapidapi.com/upcoming/get"
|
| 79 |
+
querystring = {}
|
| 80 |
+
|
| 81 |
+
headers = {
|
| 82 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 83 |
+
"X-RapidAPI-Host": "fortnite1.p.rapidapi.com"
|
| 84 |
+
}
|
| 85 |
+
|
| 86 |
+
|
| 87 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 88 |
+
try:
|
| 89 |
+
observation = response.json()
|
| 90 |
+
except:
|
| 91 |
+
observation = response.text
|
| 92 |
+
return observation
|
| 93 |
+
|
| 94 |
+
def itemgetget(is_id: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 95 |
+
"""
|
| 96 |
+
"With this endpoint you get access to data from a specific item. You can see, among other things, which set it belongs to and when the item was in the shop."
|
| 97 |
+
|
| 98 |
+
"""
|
| 99 |
+
url = f"https://fortnite1.p.rapidapi.com/item/get"
|
| 100 |
+
querystring = {'id': is_id, }
|
| 101 |
+
|
| 102 |
+
headers = {
|
| 103 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 104 |
+
"X-RapidAPI-Host": "fortnite1.p.rapidapi.com"
|
| 105 |
+
}
|
| 106 |
+
|
| 107 |
+
|
| 108 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 109 |
+
try:
|
| 110 |
+
observation = response.json()
|
| 111 |
+
except:
|
| 112 |
+
observation = response.text
|
| 113 |
+
return observation
|
| 114 |
+
|
| 115 |
+
def brmotdgetget(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 116 |
+
"""
|
| 117 |
+
"TODO: Add Description"
|
| 118 |
+
|
| 119 |
+
"""
|
| 120 |
+
url = f"https://fortnite1.p.rapidapi.com/br_motd/get"
|
| 121 |
+
querystring = {}
|
| 122 |
+
|
| 123 |
+
headers = {
|
| 124 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 125 |
+
"X-RapidAPI-Host": "fortnite1.p.rapidapi.com"
|
| 126 |
+
}
|
| 127 |
+
|
| 128 |
+
|
| 129 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 130 |
+
try:
|
| 131 |
+
observation = response.json()
|
| 132 |
+
except:
|
| 133 |
+
observation = response.text
|
| 134 |
+
return observation
|
| 135 |
+
|
| 136 |
+
def itemsrandomget(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 137 |
+
"""
|
| 138 |
+
"Get random items from our item database."
|
| 139 |
+
|
| 140 |
+
"""
|
| 141 |
+
url = f"https://fortnite1.p.rapidapi.com/items/random"
|
| 142 |
+
querystring = {}
|
| 143 |
+
|
| 144 |
+
headers = {
|
| 145 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 146 |
+
"X-RapidAPI-Host": "fortnite1.p.rapidapi.com"
|
| 147 |
+
}
|
| 148 |
+
|
| 149 |
+
|
| 150 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 151 |
+
try:
|
| 152 |
+
observation = response.json()
|
| 153 |
+
except:
|
| 154 |
+
observation = response.text
|
| 155 |
+
return observation
|
| 156 |
+
|
| 157 |
+
def creativeaddget(is_id: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 158 |
+
"""
|
| 159 |
+
"You can add islands using this endpoint. The only thing you need is the code, we'll add the title and description automaticly.
|
| 160 |
+
|
| 161 |
+
Images are possible to upload with a different endpoint, contact our team for the endpoint. All images will be manually approved by us, so abuse is not possible and any 18+ content won't pass our test.
|
| 162 |
+
|
| 163 |
+
We're launching an edit API on Juli 1st, 2019."
|
| 164 |
+
id: Island code to add
|
| 165 |
+
|
| 166 |
+
"""
|
| 167 |
+
url = f"https://fortnite1.p.rapidapi.com/creative/add"
|
| 168 |
+
querystring = {'id': is_id, }
|
| 169 |
+
|
| 170 |
+
headers = {
|
| 171 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 172 |
+
"X-RapidAPI-Host": "fortnite1.p.rapidapi.com"
|
| 173 |
+
}
|
| 174 |
+
|
| 175 |
+
|
| 176 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 177 |
+
try:
|
| 178 |
+
observation = response.json()
|
| 179 |
+
except:
|
| 180 |
+
observation = response.text
|
| 181 |
+
return observation
|
| 182 |
+
|
| 183 |
+
def challengesgetget(season: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 184 |
+
"""
|
| 185 |
+
"TODO: Add Description"
|
| 186 |
+
|
| 187 |
+
"""
|
| 188 |
+
url = f"https://fortnite1.p.rapidapi.com/challenges/get"
|
| 189 |
+
querystring = {'season': season, }
|
| 190 |
+
|
| 191 |
+
headers = {
|
| 192 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 193 |
+
"X-RapidAPI-Host": "fortnite1.p.rapidapi.com"
|
| 194 |
+
}
|
| 195 |
+
|
| 196 |
+
|
| 197 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 198 |
+
try:
|
| 199 |
+
observation = response.json()
|
| 200 |
+
except:
|
| 201 |
+
observation = response.text
|
| 202 |
+
return observation
|
| 203 |
+
|
| 204 |
+
def creativetagsget(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 205 |
+
"""
|
| 206 |
+
"TODO: Add Description"
|
| 207 |
+
|
| 208 |
+
"""
|
| 209 |
+
url = f"https://fortnite1.p.rapidapi.com/creative/tags"
|
| 210 |
+
querystring = {}
|
| 211 |
+
|
| 212 |
+
headers = {
|
| 213 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 214 |
+
"X-RapidAPI-Host": "fortnite1.p.rapidapi.com"
|
| 215 |
+
}
|
| 216 |
+
|
| 217 |
+
|
| 218 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 219 |
+
try:
|
| 220 |
+
observation = response.json()
|
| 221 |
+
except:
|
| 222 |
+
observation = response.text
|
| 223 |
+
return observation
|
| 224 |
+
|
| 225 |
+
def itemspopularget(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 226 |
+
"""
|
| 227 |
+
"Via this API you get the popular items of the day, week and month. This is based on our ratings API."
|
| 228 |
+
|
| 229 |
+
"""
|
| 230 |
+
url = f"https://fortnite1.p.rapidapi.com/items/popular"
|
| 231 |
+
querystring = {}
|
| 232 |
+
|
| 233 |
+
headers = {
|
| 234 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 235 |
+
"X-RapidAPI-Host": "fortnite1.p.rapidapi.com"
|
| 236 |
+
}
|
| 237 |
+
|
| 238 |
+
|
| 239 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 240 |
+
try:
|
| 241 |
+
observation = response.json()
|
| 242 |
+
except:
|
| 243 |
+
observation = response.text
|
| 244 |
+
return observation
|
| 245 |
+
|
| 246 |
+
def prod09userspublicbrstatsget(platform: str, user_id: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 247 |
+
"""
|
| 248 |
+
"V1 of the stats endpoint. This endpoint can deliver stats for PC, PS4 and XBOX. Searching for Nintendo Switch, iOS and Android stats? Use V1."
|
| 249 |
+
|
| 250 |
+
"""
|
| 251 |
+
url = f"https://fortnite1.p.rapidapi.com/prod09/users/public/br_stats"
|
| 252 |
+
querystring = {'platform': platform, 'user_id': user_id, }
|
| 253 |
+
|
| 254 |
+
headers = {
|
| 255 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 256 |
+
"X-RapidAPI-Host": "fortnite1.p.rapidapi.com"
|
| 257 |
+
}
|
| 258 |
+
|
| 259 |
+
|
| 260 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 261 |
+
try:
|
| 262 |
+
observation = response.json()
|
| 263 |
+
except:
|
| 264 |
+
observation = response.text
|
| 265 |
+
return observation
|
| 266 |
+
|
| 267 |
+
def prod09userspublicmatchesv2get(user_id: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 268 |
+
"""
|
| 269 |
+
"TODO: Add Description"
|
| 270 |
+
|
| 271 |
+
"""
|
| 272 |
+
url = f"https://fortnite1.p.rapidapi.com/prod09/users/public/matches_v2"
|
| 273 |
+
querystring = {'user_id': user_id, }
|
| 274 |
+
|
| 275 |
+
headers = {
|
| 276 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 277 |
+
"X-RapidAPI-Host": "fortnite1.p.rapidapi.com"
|
| 278 |
+
}
|
| 279 |
+
|
| 280 |
+
|
| 281 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 282 |
+
try:
|
| 283 |
+
observation = response.json()
|
| 284 |
+
except:
|
| 285 |
+
observation = response.text
|
| 286 |
+
return observation
|
| 287 |
+
|
| 288 |
+
def itemslistget(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 289 |
+
"""
|
| 290 |
+
"Get a long list of all items in Fortnite, from outfits to wraps. Everything is listed."
|
| 291 |
+
|
| 292 |
+
"""
|
| 293 |
+
url = f"https://fortnite1.p.rapidapi.com/items/list"
|
| 294 |
+
querystring = {}
|
| 295 |
+
|
| 296 |
+
headers = {
|
| 297 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 298 |
+
"X-RapidAPI-Host": "fortnite1.p.rapidapi.com"
|
| 299 |
+
}
|
| 300 |
+
|
| 301 |
+
|
| 302 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 303 |
+
try:
|
| 304 |
+
observation = response.json()
|
| 305 |
+
except:
|
| 306 |
+
observation = response.text
|
| 307 |
+
return observation
|
| 308 |
+
|
| 309 |
+
def storegetget(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 310 |
+
"""
|
| 311 |
+
"Get the daily store that automatically updates at 1 am CET.
|
| 312 |
+
|
| 313 |
+
**Example data for V2 (default version)**
|
| 314 |
+
<pre><code>{
|
| 315 |
+
"data": [
|
| 316 |
+
{
|
| 317 |
+
"itemId": "2fad344-834e456-dcf643d-91f9712",
|
| 318 |
+
"lastUpdate": 1553386039,
|
| 319 |
+
"store": {
|
| 320 |
+
"isFeatured": true,
|
| 321 |
+
"isRefundable": true,
|
| 322 |
+
"cost": "1500"
|
| 323 |
+
},
|
| 324 |
+
"item": {
|
| 325 |
+
"name": "Beastmode",
|
| 326 |
+
"description": "Gassed up and ready to roar.",
|
| 327 |
+
"type": "outfit",
|
| 328 |
+
"rarity": "epic",
|
| 329 |
+
"images": {
|
| 330 |
+
"icon": "https://fortnite-public-files.theapinetwork.com/outfit/c567e52c290292c99c7c9b44dd36827c.png",
|
| 331 |
+
"featured": "https://fortnite-public-files.theapinetwork.com/featured/2fad344-834e456-dcf643d-91f9712.png",
|
| 332 |
+
"background": "https://fortnite-public-files.theapinetwork.com/image/2fad344-834e456-dcf643d-91f9712.png",
|
| 333 |
+
"information": "https://fortnite-public-files.theapinetwork.com/image/2fad344-834e456-dcf643d-91f9712/icon.png"
|
| 334 |
+
},
|
| 335 |
+
"obtained_type": "vbucks",
|
| 336 |
+
"ratings": {
|
| 337 |
+
"avgStars": 3.66,
|
| 338 |
+
"totalPoints": 597,
|
| 339 |
+
"numberVotes": 163
|
| 340 |
+
}
|
| 341 |
+
}
|
| 342 |
+
},
|
| 343 |
+
{
|
| 344 |
+
/*/ SAME STRUCTURE AS ABOVE /*/
|
| 345 |
+
}
|
| 346 |
+
]
|
| 347 |
+
}</code></pre>"
|
| 348 |
+
|
| 349 |
+
"""
|
| 350 |
+
url = f"https://fortnite1.p.rapidapi.com/store/get"
|
| 351 |
+
querystring = {}
|
| 352 |
+
|
| 353 |
+
headers = {
|
| 354 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 355 |
+
"X-RapidAPI-Host": "fortnite1.p.rapidapi.com"
|
| 356 |
+
}
|
| 357 |
+
|
| 358 |
+
|
| 359 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 360 |
+
try:
|
| 361 |
+
observation = response.json()
|
| 362 |
+
except:
|
| 363 |
+
observation = response.text
|
| 364 |
+
return observation
|
| 365 |
+
|
| 366 |
+
def creativelistget(order: str, tag: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 367 |
+
"""
|
| 368 |
+
"One big list (max 50 islands) with islands.
|
| 369 |
+
|
| 370 |
+
You can sort using the following texts:
|
| 371 |
+
popular
|
| 372 |
+
views
|
| 373 |
+
newest
|
| 374 |
+
oldest
|
| 375 |
+
rating
|
| 376 |
+
|
| 377 |
+
Sorting on tags (for example prophunt or 1vs1) will be added Juli 1st, 2019."
|
| 378 |
+
order: popular, views, newest, oldest or rating
|
| 379 |
+
tag: (not required) only display islands with a specific tag (like deathrun, remakes or 1vs1)
|
| 380 |
+
|
| 381 |
+
"""
|
| 382 |
+
url = f"https://fortnite1.p.rapidapi.com/creative/list"
|
| 383 |
+
querystring = {'order': order, 'tag': tag, }
|
| 384 |
+
|
| 385 |
+
headers = {
|
| 386 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 387 |
+
"X-RapidAPI-Host": "fortnite1.p.rapidapi.com"
|
| 388 |
+
}
|
| 389 |
+
|
| 390 |
+
|
| 391 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 392 |
+
try:
|
| 393 |
+
observation = response.json()
|
| 394 |
+
except:
|
| 395 |
+
observation = response.text
|
| 396 |
+
return observation
|
| 397 |
+
|
| 398 |
+
def votingvoteget(itemid: str, stars: int, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 399 |
+
"""
|
| 400 |
+
"Vote on a specific item. An user can vote every 7 days on an item.
|
| 401 |
+
|
| 402 |
+
Example return:
|
| 403 |
+
<pre><code>{
|
| 404 |
+
"success": true,
|
| 405 |
+
"msg": "Successfully voted.",
|
| 406 |
+
"metadata": {
|
| 407 |
+
"votingId": "s3f318eec23af9e192ac9eabd0bc1c71",
|
| 408 |
+
"nextVote": 1554125012,
|
| 409 |
+
"ratings": {
|
| 410 |
+
"avgStars": 4.41,
|
| 411 |
+
"totalPoints": 9099,
|
| 412 |
+
"numberVotes": 2065
|
| 413 |
+
}
|
| 414 |
+
}
|
| 415 |
+
}</code></pre>"
|
| 416 |
+
|
| 417 |
+
"""
|
| 418 |
+
url = f"https://fortnite1.p.rapidapi.com/voting/vote"
|
| 419 |
+
querystring = {'itemid': itemid, 'stars': stars, }
|
| 420 |
+
|
| 421 |
+
headers = {
|
| 422 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 423 |
+
"X-RapidAPI-Host": "fortnite1.p.rapidapi.com"
|
| 424 |
+
}
|
| 425 |
+
|
| 426 |
+
|
| 427 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 428 |
+
try:
|
| 429 |
+
observation = response.json()
|
| 430 |
+
except:
|
| 431 |
+
observation = response.text
|
| 432 |
+
return observation
|
| 433 |
+
|
| 434 |
+
def creativefetchget(is_id: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 435 |
+
"""
|
| 436 |
+
"Thinking about adding Island to our system? That's possible, you can prefill your submit page using this endpoint.
|
| 437 |
+
|
| 438 |
+
You'll also need the 'imageUploadId' from the response if you're willing to upload images."
|
| 439 |
+
|
| 440 |
+
"""
|
| 441 |
+
url = f"https://fortnite1.p.rapidapi.com/creative/fetch"
|
| 442 |
+
querystring = {'id': is_id, }
|
| 443 |
+
|
| 444 |
+
headers = {
|
| 445 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 446 |
+
"X-RapidAPI-Host": "fortnite1.p.rapidapi.com"
|
| 447 |
+
}
|
| 448 |
+
|
| 449 |
+
|
| 450 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 451 |
+
try:
|
| 452 |
+
observation = response.json()
|
| 453 |
+
except:
|
| 454 |
+
observation = response.text
|
| 455 |
+
return observation
|
| 456 |
+
|
| 457 |
+
def prod09userspublicbrstatsv2get(user_id: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 458 |
+
"""
|
| 459 |
+
"V2 of the stats endpoint. This endpoint includes stats for PC, PS4, XBOX, Android & iOS and Nintendo Switch stats.
|
| 460 |
+
|
| 461 |
+
CONTROLLER = PS4 + Controller, XBOX + Controller, Switch + Controller or PC + Controller.
|
| 462 |
+
|
| 463 |
+
TOUCHSCREEN = iOS, Android or Switch (WITHOUT CONTROLLER)
|
| 464 |
+
|
| 465 |
+
KEYBOARD&MOUSE = PC with KB, PS4 with KB or XBOX with KB."
|
| 466 |
+
|
| 467 |
+
"""
|
| 468 |
+
url = f"https://fortnite1.p.rapidapi.com/prod09/users/public/br_stats_v2"
|
| 469 |
+
querystring = {'user_id': user_id, }
|
| 470 |
+
|
| 471 |
+
headers = {
|
| 472 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 473 |
+
"X-RapidAPI-Host": "fortnite1.p.rapidapi.com"
|
| 474 |
+
}
|
| 475 |
+
|
| 476 |
+
|
| 477 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 478 |
+
try:
|
| 479 |
+
observation = response.json()
|
| 480 |
+
except:
|
| 481 |
+
observation = response.text
|
| 482 |
+
return observation
|
| 483 |
+
|
| 484 |
+
def weaponsgetget(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 485 |
+
"""
|
| 486 |
+
"TODO: Add Description"
|
| 487 |
+
|
| 488 |
+
"""
|
| 489 |
+
url = f"https://fortnite1.p.rapidapi.com/weapons/get"
|
| 490 |
+
querystring = {}
|
| 491 |
+
|
| 492 |
+
headers = {
|
| 493 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 494 |
+
"X-RapidAPI-Host": "fortnite1.p.rapidapi.com"
|
| 495 |
+
}
|
| 496 |
+
|
| 497 |
+
|
| 498 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 499 |
+
try:
|
| 500 |
+
observation = response.json()
|
| 501 |
+
except:
|
| 502 |
+
observation = response.text
|
| 503 |
+
return observation
|
| 504 |
+
|
| 505 |
+
def stwmotdgetget(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 506 |
+
"""
|
| 507 |
+
"TODO: Add Description"
|
| 508 |
+
|
| 509 |
+
"""
|
| 510 |
+
url = f"https://fortnite1.p.rapidapi.com/stw_motd/get"
|
| 511 |
+
querystring = {}
|
| 512 |
+
|
| 513 |
+
headers = {
|
| 514 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 515 |
+
"X-RapidAPI-Host": "fortnite1.p.rapidapi.com"
|
| 516 |
+
}
|
| 517 |
+
|
| 518 |
+
|
| 519 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 520 |
+
try:
|
| 521 |
+
observation = response.json()
|
| 522 |
+
except:
|
| 523 |
+
observation = response.text
|
| 524 |
+
return observation
|
| 525 |
+
|
| 526 |
+
def creativesearchget(query: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 527 |
+
"""
|
| 528 |
+
"TODO: Add Description"
|
| 529 |
+
query: What are you searching?
|
| 530 |
+
|
| 531 |
+
"""
|
| 532 |
+
url = f"https://fortnite1.p.rapidapi.com/creative/search"
|
| 533 |
+
querystring = {'query': query, }
|
| 534 |
+
|
| 535 |
+
headers = {
|
| 536 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 537 |
+
"X-RapidAPI-Host": "fortnite1.p.rapidapi.com"
|
| 538 |
+
}
|
| 539 |
+
|
| 540 |
+
|
| 541 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 542 |
+
try:
|
| 543 |
+
observation = response.json()
|
| 544 |
+
except:
|
| 545 |
+
observation = response.text
|
| 546 |
+
return observation
|
| 547 |
+
|
toolbench/toolenv/tools/Gaming/fortnite_unofficial.json
ADDED
|
@@ -0,0 +1,102 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"tool_name":"Fortnite unofficial",
|
| 3 |
+
"tool_description":"Get list of weapons, items and more. Try the android app https://play.google.com/store/apps/details?id=com.saffru.colombo.forweapons",
|
| 4 |
+
"title":"Fortnite unofficial",
|
| 5 |
+
"pricing":"FREEMIUM",
|
| 6 |
+
"score":null,
|
| 7 |
+
"home_url":"https://rapidapi.com/saffru/api/fortnite-unofficial/",
|
| 8 |
+
"host":"fortnite-unofficial.p.rapidapi.com",
|
| 9 |
+
"api_list":[
|
| 10 |
+
{
|
| 11 |
+
"name":"Vault",
|
| 12 |
+
"url":"https://fortnite-unofficial.p.rapidapi.com/FortniteScript/vault.php",
|
| 13 |
+
"description":"Vault of items",
|
| 14 |
+
"method":"GET",
|
| 15 |
+
"required_parameters":[],
|
| 16 |
+
"optional_parameters":[],
|
| 17 |
+
"code":"import requests\n\nurl = \"https://fortnite-unofficial.p.rapidapi.com/FortniteScript/vault.php\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"fortnite-unofficial.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n",
|
| 18 |
+
"statuscode":111,
|
| 19 |
+
"body":"",
|
| 20 |
+
"headers":"",
|
| 21 |
+
"schema":""
|
| 22 |
+
},
|
| 23 |
+
{
|
| 24 |
+
"name":"Weapons",
|
| 25 |
+
"url":"https://fortnite-unofficial.p.rapidapi.com/FortniteProva.php",
|
| 26 |
+
"description":"List of weapons",
|
| 27 |
+
"method":"GET",
|
| 28 |
+
"required_parameters":[],
|
| 29 |
+
"optional_parameters":[],
|
| 30 |
+
"code":"import requests\n\nurl = \"https://fortnite-unofficial.p.rapidapi.com/FortniteProva.php\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"fortnite-unofficial.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n",
|
| 31 |
+
"statuscode":111,
|
| 32 |
+
"body":"",
|
| 33 |
+
"headers":"",
|
| 34 |
+
"schema":""
|
| 35 |
+
},
|
| 36 |
+
{
|
| 37 |
+
"name":"Vehicles",
|
| 38 |
+
"url":"https://fortnite-unofficial.p.rapidapi.com/FortniteScript/veicoli.php",
|
| 39 |
+
"description":"List of vehicles",
|
| 40 |
+
"method":"GET",
|
| 41 |
+
"required_parameters":[],
|
| 42 |
+
"optional_parameters":[],
|
| 43 |
+
"code":"import requests\n\nurl = \"https://fortnite-unofficial.p.rapidapi.com/FortniteScript/veicoli.php\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"fortnite-unofficial.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n",
|
| 44 |
+
"statuscode":111,
|
| 45 |
+
"body":"",
|
| 46 |
+
"headers":"",
|
| 47 |
+
"schema":""
|
| 48 |
+
},
|
| 49 |
+
{
|
| 50 |
+
"name":"Traps",
|
| 51 |
+
"url":"https://fortnite-unofficial.p.rapidapi.com/ConsumabiliFortnite/Trappole.php",
|
| 52 |
+
"description":"List of traps",
|
| 53 |
+
"method":"GET",
|
| 54 |
+
"required_parameters":[],
|
| 55 |
+
"optional_parameters":[],
|
| 56 |
+
"code":"import requests\n\nurl = \"https://fortnite-unofficial.p.rapidapi.com/ConsumabiliFortnite/Trappole.php\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"fortnite-unofficial.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n",
|
| 57 |
+
"statuscode":111,
|
| 58 |
+
"body":"",
|
| 59 |
+
"headers":"",
|
| 60 |
+
"schema":""
|
| 61 |
+
},
|
| 62 |
+
{
|
| 63 |
+
"name":"Maps",
|
| 64 |
+
"url":"https://fortnite-unofficial.p.rapidapi.com/FortniteScript/mappe.php",
|
| 65 |
+
"description":"List of all version maps",
|
| 66 |
+
"method":"GET",
|
| 67 |
+
"required_parameters":[],
|
| 68 |
+
"optional_parameters":[],
|
| 69 |
+
"code":"import requests\n\nurl = \"https://fortnite-unofficial.p.rapidapi.com/FortniteScript/mappe.php\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"fortnite-unofficial.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n",
|
| 70 |
+
"statuscode":111,
|
| 71 |
+
"body":"",
|
| 72 |
+
"headers":"",
|
| 73 |
+
"schema":""
|
| 74 |
+
},
|
| 75 |
+
{
|
| 76 |
+
"name":"Foods",
|
| 77 |
+
"url":"https://fortnite-unofficial.p.rapidapi.com/FortniteScript/food.php",
|
| 78 |
+
"description":"List of foods",
|
| 79 |
+
"method":"GET",
|
| 80 |
+
"required_parameters":[],
|
| 81 |
+
"optional_parameters":[],
|
| 82 |
+
"code":"import requests\n\nurl = \"https://fortnite-unofficial.p.rapidapi.com/FortniteScript/food.php\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"fortnite-unofficial.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n",
|
| 83 |
+
"statuscode":111,
|
| 84 |
+
"body":"",
|
| 85 |
+
"headers":"",
|
| 86 |
+
"schema":""
|
| 87 |
+
},
|
| 88 |
+
{
|
| 89 |
+
"name":"Consumables",
|
| 90 |
+
"url":"https://fortnite-unofficial.p.rapidapi.com/ConsumabiliFortnite/Consumabili.php",
|
| 91 |
+
"description":"List of consumables",
|
| 92 |
+
"method":"GET",
|
| 93 |
+
"required_parameters":[],
|
| 94 |
+
"optional_parameters":[],
|
| 95 |
+
"code":"import requests\n\nurl = \"https://fortnite-unofficial.p.rapidapi.com/ConsumabiliFortnite/Consumabili.php\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"fortnite-unofficial.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n",
|
| 96 |
+
"statuscode":111,
|
| 97 |
+
"body":"",
|
| 98 |
+
"headers":"",
|
| 99 |
+
"schema":""
|
| 100 |
+
}
|
| 101 |
+
]
|
| 102 |
+
}
|
toolbench/toolenv/tools/Gaming/fortnite_unofficial/api.py
ADDED
|
@@ -0,0 +1,155 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import requests
|
| 2 |
+
import json
|
| 3 |
+
from datetime import date, datetime, timedelta
|
| 4 |
+
import os
|
| 5 |
+
|
| 6 |
+
from typing import Optional, Dict, Union, List
|
| 7 |
+
|
| 8 |
+
|
| 9 |
+
def vault(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 10 |
+
"""
|
| 11 |
+
"Vault of items"
|
| 12 |
+
|
| 13 |
+
"""
|
| 14 |
+
url = f"https://fortnite-unofficial.p.rapidapi.com/fortnitescript/vault.php"
|
| 15 |
+
querystring = {}
|
| 16 |
+
|
| 17 |
+
headers = {
|
| 18 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 19 |
+
"X-RapidAPI-Host": "fortnite-unofficial.p.rapidapi.com"
|
| 20 |
+
}
|
| 21 |
+
|
| 22 |
+
|
| 23 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 24 |
+
try:
|
| 25 |
+
observation = response.json()
|
| 26 |
+
except:
|
| 27 |
+
observation = response.text
|
| 28 |
+
return observation
|
| 29 |
+
|
| 30 |
+
def weapons(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 31 |
+
"""
|
| 32 |
+
"List of weapons"
|
| 33 |
+
|
| 34 |
+
"""
|
| 35 |
+
url = f"https://fortnite-unofficial.p.rapidapi.com/fortniteprova.php"
|
| 36 |
+
querystring = {}
|
| 37 |
+
|
| 38 |
+
headers = {
|
| 39 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 40 |
+
"X-RapidAPI-Host": "fortnite-unofficial.p.rapidapi.com"
|
| 41 |
+
}
|
| 42 |
+
|
| 43 |
+
|
| 44 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 45 |
+
try:
|
| 46 |
+
observation = response.json()
|
| 47 |
+
except:
|
| 48 |
+
observation = response.text
|
| 49 |
+
return observation
|
| 50 |
+
|
| 51 |
+
def vehicles(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 52 |
+
"""
|
| 53 |
+
"List of vehicles"
|
| 54 |
+
|
| 55 |
+
"""
|
| 56 |
+
url = f"https://fortnite-unofficial.p.rapidapi.com/fortnitescript/veicoli.php"
|
| 57 |
+
querystring = {}
|
| 58 |
+
|
| 59 |
+
headers = {
|
| 60 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 61 |
+
"X-RapidAPI-Host": "fortnite-unofficial.p.rapidapi.com"
|
| 62 |
+
}
|
| 63 |
+
|
| 64 |
+
|
| 65 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 66 |
+
try:
|
| 67 |
+
observation = response.json()
|
| 68 |
+
except:
|
| 69 |
+
observation = response.text
|
| 70 |
+
return observation
|
| 71 |
+
|
| 72 |
+
def traps(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 73 |
+
"""
|
| 74 |
+
"List of traps"
|
| 75 |
+
|
| 76 |
+
"""
|
| 77 |
+
url = f"https://fortnite-unofficial.p.rapidapi.com/consumabilifortnite/trappole.php"
|
| 78 |
+
querystring = {}
|
| 79 |
+
|
| 80 |
+
headers = {
|
| 81 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 82 |
+
"X-RapidAPI-Host": "fortnite-unofficial.p.rapidapi.com"
|
| 83 |
+
}
|
| 84 |
+
|
| 85 |
+
|
| 86 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 87 |
+
try:
|
| 88 |
+
observation = response.json()
|
| 89 |
+
except:
|
| 90 |
+
observation = response.text
|
| 91 |
+
return observation
|
| 92 |
+
|
| 93 |
+
def maps(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 94 |
+
"""
|
| 95 |
+
"List of all version maps"
|
| 96 |
+
|
| 97 |
+
"""
|
| 98 |
+
url = f"https://fortnite-unofficial.p.rapidapi.com/fortnitescript/mappe.php"
|
| 99 |
+
querystring = {}
|
| 100 |
+
|
| 101 |
+
headers = {
|
| 102 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 103 |
+
"X-RapidAPI-Host": "fortnite-unofficial.p.rapidapi.com"
|
| 104 |
+
}
|
| 105 |
+
|
| 106 |
+
|
| 107 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 108 |
+
try:
|
| 109 |
+
observation = response.json()
|
| 110 |
+
except:
|
| 111 |
+
observation = response.text
|
| 112 |
+
return observation
|
| 113 |
+
|
| 114 |
+
def foods(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 115 |
+
"""
|
| 116 |
+
"List of foods"
|
| 117 |
+
|
| 118 |
+
"""
|
| 119 |
+
url = f"https://fortnite-unofficial.p.rapidapi.com/fortnitescript/food.php"
|
| 120 |
+
querystring = {}
|
| 121 |
+
|
| 122 |
+
headers = {
|
| 123 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 124 |
+
"X-RapidAPI-Host": "fortnite-unofficial.p.rapidapi.com"
|
| 125 |
+
}
|
| 126 |
+
|
| 127 |
+
|
| 128 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 129 |
+
try:
|
| 130 |
+
observation = response.json()
|
| 131 |
+
except:
|
| 132 |
+
observation = response.text
|
| 133 |
+
return observation
|
| 134 |
+
|
| 135 |
+
def consumables(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 136 |
+
"""
|
| 137 |
+
"List of consumables"
|
| 138 |
+
|
| 139 |
+
"""
|
| 140 |
+
url = f"https://fortnite-unofficial.p.rapidapi.com/consumabilifortnite/consumabili.php"
|
| 141 |
+
querystring = {}
|
| 142 |
+
|
| 143 |
+
headers = {
|
| 144 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 145 |
+
"X-RapidAPI-Host": "fortnite-unofficial.p.rapidapi.com"
|
| 146 |
+
}
|
| 147 |
+
|
| 148 |
+
|
| 149 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 150 |
+
try:
|
| 151 |
+
observation = response.json()
|
| 152 |
+
except:
|
| 153 |
+
observation = response.text
|
| 154 |
+
return observation
|
| 155 |
+
|
toolbench/toolenv/tools/Gaming/fortnite_v2/api.py
ADDED
|
@@ -0,0 +1,113 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import requests
|
| 2 |
+
import json
|
| 3 |
+
from datetime import date, datetime, timedelta
|
| 4 |
+
import os
|
| 5 |
+
|
| 6 |
+
from typing import Optional, Dict, Union, List
|
| 7 |
+
|
| 8 |
+
|
| 9 |
+
def items_all(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 10 |
+
"""
|
| 11 |
+
"Shows you all Items"
|
| 12 |
+
|
| 13 |
+
"""
|
| 14 |
+
url = f"https://fortnite4.p.rapidapi.com/items/all"
|
| 15 |
+
querystring = {}
|
| 16 |
+
|
| 17 |
+
headers = {
|
| 18 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 19 |
+
"X-RapidAPI-Host": "fortnite4.p.rapidapi.com"
|
| 20 |
+
}
|
| 21 |
+
|
| 22 |
+
|
| 23 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 24 |
+
try:
|
| 25 |
+
observation = response.json()
|
| 26 |
+
except:
|
| 27 |
+
observation = response.text
|
| 28 |
+
return observation
|
| 29 |
+
|
| 30 |
+
def news(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 31 |
+
"""
|
| 32 |
+
"Fortnite News"
|
| 33 |
+
|
| 34 |
+
"""
|
| 35 |
+
url = f"https://fortnite4.p.rapidapi.com/news"
|
| 36 |
+
querystring = {}
|
| 37 |
+
|
| 38 |
+
headers = {
|
| 39 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 40 |
+
"X-RapidAPI-Host": "fortnite4.p.rapidapi.com"
|
| 41 |
+
}
|
| 42 |
+
|
| 43 |
+
|
| 44 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 45 |
+
try:
|
| 46 |
+
observation = response.json()
|
| 47 |
+
except:
|
| 48 |
+
observation = response.text
|
| 49 |
+
return observation
|
| 50 |
+
|
| 51 |
+
def item_rarity(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 52 |
+
"""
|
| 53 |
+
"Shows you the corresponding colors for rarity"
|
| 54 |
+
|
| 55 |
+
"""
|
| 56 |
+
url = f"https://fortnite4.p.rapidapi.com/items/rarities/"
|
| 57 |
+
querystring = {}
|
| 58 |
+
|
| 59 |
+
headers = {
|
| 60 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 61 |
+
"X-RapidAPI-Host": "fortnite4.p.rapidapi.com"
|
| 62 |
+
}
|
| 63 |
+
|
| 64 |
+
|
| 65 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 66 |
+
try:
|
| 67 |
+
observation = response.json()
|
| 68 |
+
except:
|
| 69 |
+
observation = response.text
|
| 70 |
+
return observation
|
| 71 |
+
|
| 72 |
+
def itemshop(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 73 |
+
"""
|
| 74 |
+
"Shows you the current ItemShop"
|
| 75 |
+
|
| 76 |
+
"""
|
| 77 |
+
url = f"https://fortnite4.p.rapidapi.com/shop/"
|
| 78 |
+
querystring = {}
|
| 79 |
+
|
| 80 |
+
headers = {
|
| 81 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 82 |
+
"X-RapidAPI-Host": "fortnite4.p.rapidapi.com"
|
| 83 |
+
}
|
| 84 |
+
|
| 85 |
+
|
| 86 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 87 |
+
try:
|
| 88 |
+
observation = response.json()
|
| 89 |
+
except:
|
| 90 |
+
observation = response.text
|
| 91 |
+
return observation
|
| 92 |
+
|
| 93 |
+
def items_upcoming(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 94 |
+
"""
|
| 95 |
+
"Shows Leaked Items"
|
| 96 |
+
|
| 97 |
+
"""
|
| 98 |
+
url = f"https://fortnite4.p.rapidapi.com/items/upcoming"
|
| 99 |
+
querystring = {}
|
| 100 |
+
|
| 101 |
+
headers = {
|
| 102 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 103 |
+
"X-RapidAPI-Host": "fortnite4.p.rapidapi.com"
|
| 104 |
+
}
|
| 105 |
+
|
| 106 |
+
|
| 107 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 108 |
+
try:
|
| 109 |
+
observation = response.json()
|
| 110 |
+
except:
|
| 111 |
+
observation = response.text
|
| 112 |
+
return observation
|
| 113 |
+
|
toolbench/toolenv/tools/Gaming/fortnitecosmetics.json
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"product_id": "api_ee2720aa-d513-47eb-99c2-fafe432f2d72",
|
| 3 |
+
"tool_description": "A data base of fortnite cosmetices",
|
| 4 |
+
"home_url": "https://rapidapi.com/mewtwo50002/api/fortnitecosmetics/",
|
| 5 |
+
"name": "FortniteCosmetics",
|
| 6 |
+
"title": "FortniteCosmetics",
|
| 7 |
+
"pricing": "FREE",
|
| 8 |
+
"tool_name": "FortniteCosmetics",
|
| 9 |
+
"score": {
|
| 10 |
+
"avgServiceLevel": 100,
|
| 11 |
+
"avgLatency": 543,
|
| 12 |
+
"avgSuccessRate": 100,
|
| 13 |
+
"popularityScore": 7.9,
|
| 14 |
+
"__typename": "Score"
|
| 15 |
+
},
|
| 16 |
+
"host": "fortnitecosmetics.p.rapidapi.com",
|
| 17 |
+
"api_list": [
|
| 18 |
+
{
|
| 19 |
+
"name": "searchInventory",
|
| 20 |
+
"url": "https://fortnitecosmetics.p.rapidapi.com/skins",
|
| 21 |
+
"description": "By passing in the appropriate options, you can search for\navailable inventory in the system\n",
|
| 22 |
+
"method": "GET",
|
| 23 |
+
"required_parameters": [],
|
| 24 |
+
"optional_parameters": [
|
| 25 |
+
{
|
| 26 |
+
"name": "skip",
|
| 27 |
+
"type": "NUMBER",
|
| 28 |
+
"description": "number of records to skip for pagination",
|
| 29 |
+
"default": ""
|
| 30 |
+
},
|
| 31 |
+
{
|
| 32 |
+
"name": "limit",
|
| 33 |
+
"type": "NUMBER",
|
| 34 |
+
"description": "maximum number of records to return",
|
| 35 |
+
"default": ""
|
| 36 |
+
},
|
| 37 |
+
{
|
| 38 |
+
"name": "searchString",
|
| 39 |
+
"type": "STRING",
|
| 40 |
+
"description": "pass an optional search string for looking up inventory",
|
| 41 |
+
"default": ""
|
| 42 |
+
}
|
| 43 |
+
],
|
| 44 |
+
"code": "import requests\n\nurl = \"https://fortnitecosmetics.p.rapidapi.com/skins\"\nquerystring = {\"skip\": \"\", \"limit\": \"\", \"searchString\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"fortnitecosmetics.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n",
|
| 45 |
+
"convert_code": "import requests\n\nurl = \"https://fortnitecosmetics.p.rapidapi.com/skins\"\nquerystring = {\"skip\": \"\", \"limit\": \"\", \"searchString\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"fortnitecosmetics.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n",
|
| 46 |
+
"test_endpoint": [
|
| 47 |
+
"string"
|
| 48 |
+
],
|
| 49 |
+
"statuscode": 1,
|
| 50 |
+
"schema": ""
|
| 51 |
+
}
|
| 52 |
+
],
|
| 53 |
+
"standardized_name": "fortnitecosmetics"
|
| 54 |
+
}
|
toolbench/toolenv/tools/Gaming/fortnitecosmetics/api.py
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import requests
|
| 2 |
+
import json
|
| 3 |
+
from datetime import date, datetime, timedelta
|
| 4 |
+
import os
|
| 5 |
+
|
| 6 |
+
from typing import Optional, Dict, Union, List
|
| 7 |
+
|
| 8 |
+
|
| 9 |
+
def searchinventory(skip: int=None, limit: int=None, searchstring: str=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 10 |
+
"""
|
| 11 |
+
"By passing in the appropriate options, you can search for
|
| 12 |
+
available inventory in the system
|
| 13 |
+
"
|
| 14 |
+
skip: number of records to skip for pagination
|
| 15 |
+
limit: maximum number of records to return
|
| 16 |
+
searchstring: pass an optional search string for looking up inventory
|
| 17 |
+
|
| 18 |
+
"""
|
| 19 |
+
url = f"https://fortnitecosmetics.p.rapidapi.com/skins"
|
| 20 |
+
querystring = {}
|
| 21 |
+
if skip:
|
| 22 |
+
querystring['skip'] = skip
|
| 23 |
+
if limit:
|
| 24 |
+
querystring['limit'] = limit
|
| 25 |
+
if searchstring:
|
| 26 |
+
querystring['searchString'] = searchstring
|
| 27 |
+
|
| 28 |
+
headers = {
|
| 29 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 30 |
+
"X-RapidAPI-Host": "fortnitecosmetics.p.rapidapi.com"
|
| 31 |
+
}
|
| 32 |
+
|
| 33 |
+
|
| 34 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 35 |
+
try:
|
| 36 |
+
observation = response.json()
|
| 37 |
+
except:
|
| 38 |
+
observation = response.text
|
| 39 |
+
return observation
|
| 40 |
+
|
toolbench/toolenv/tools/Gaming/free_epic_games.json
ADDED
|
@@ -0,0 +1,333 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"tool_name":"Free Epic Games",
|
| 3 |
+
"tool_description":"Get a list of free Epic Games for the week",
|
| 4 |
+
"title":"Free Epic Games",
|
| 5 |
+
"pricing":"FREEMIUM",
|
| 6 |
+
"score":{
|
| 7 |
+
"avgServiceLevel":100,
|
| 8 |
+
"avgLatency":888,
|
| 9 |
+
"avgSuccessRate":100,
|
| 10 |
+
"popularityScore":9.7,
|
| 11 |
+
"__typename":"Score"
|
| 12 |
+
},
|
| 13 |
+
"home_url":"https://rapidapi.com/kwik-api-kwik-api-default/api/free-epic-games/",
|
| 14 |
+
"host":"free-epic-games.p.rapidapi.com",
|
| 15 |
+
"api_list":[
|
| 16 |
+
{
|
| 17 |
+
"name":"Free Games",
|
| 18 |
+
"url":"https://free-epic-games.p.rapidapi.com/free",
|
| 19 |
+
"description":"Get the list of free games on Epic Games for the week",
|
| 20 |
+
"method":"GET",
|
| 21 |
+
"required_parameters":[],
|
| 22 |
+
"optional_parameters":[],
|
| 23 |
+
"code":"import requests\n\nurl = \"https://free-epic-games.p.rapidapi.com/free\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"free-epic-games.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n",
|
| 24 |
+
"statuscode":200,
|
| 25 |
+
"body":{
|
| 26 |
+
"freeGames":{
|
| 27 |
+
"current":[
|
| 28 |
+
{
|
| 29 |
+
"title":"Maneater",
|
| 30 |
+
"id":"a22a7af179c54b86a93f3193ace8f7f4",
|
| 31 |
+
"namespace":"d5241c76f178492ea1540fce45616757",
|
| 32 |
+
"description":"Maneater",
|
| 33 |
+
"effectiveDate":"2099-01-01T00:00:00.000Z",
|
| 34 |
+
"offerType":"OTHERS",
|
| 35 |
+
"expiryDate":null,
|
| 36 |
+
"status":"ACTIVE",
|
| 37 |
+
"isCodeRedemptionOnly":true,
|
| 38 |
+
"keyImages":[
|
| 39 |
+
{
|
| 40 |
+
"type":"VaultClosed",
|
| 41 |
+
"url":"https://cdn1.epicgames.com/offer/d5241c76f178492ea1540fce45616757/egs-vault-tease-generic-promo-1920x1080_1920x1080-f7742c265e217510835ed14e04c48b4b"
|
| 42 |
+
},
|
| 43 |
+
{
|
| 44 |
+
"type":"DieselStoreFrontTall",
|
| 45 |
+
"url":"https://cdn1.epicgames.com/offer/d5241c76f178492ea1540fce45616757/egs-vault-tease-generic-promo-1920x1080_1920x1080-f7742c265e217510835ed14e04c48b4b"
|
| 46 |
+
},
|
| 47 |
+
{
|
| 48 |
+
"type":"OfferImageTall",
|
| 49 |
+
"url":"https://cdn1.epicgames.com/offer/d5241c76f178492ea1540fce45616757/egs-vault-carousel-mobile-thumbnail-1200x1600_1200x1600-1f45bf1ceb21c1ca2947f6df5ece5346"
|
| 50 |
+
},
|
| 51 |
+
{
|
| 52 |
+
"type":"VaultOpened",
|
| 53 |
+
"url":"https://cdn1.epicgames.com/offer/d5241c76f178492ea1540fce45616757/egs-vault-w4-1920x1080_1920x1080-2df36fe63c18ff6fcb5febf3dd7ed06e"
|
| 54 |
+
},
|
| 55 |
+
{
|
| 56 |
+
"type":"DieselStoreFrontWide",
|
| 57 |
+
"url":"https://cdn1.epicgames.com/offer/d5241c76f178492ea1540fce45616757/egs-vault-w4-1920x1080_1920x1080-2df36fe63c18ff6fcb5febf3dd7ed06e"
|
| 58 |
+
},
|
| 59 |
+
{
|
| 60 |
+
"type":"OfferImageWide",
|
| 61 |
+
"url":"https://cdn1.epicgames.com/offer/d5241c76f178492ea1540fce45616757/egs-vault-w4-1920x1080_1920x1080-2df36fe63c18ff6fcb5febf3dd7ed06e"
|
| 62 |
+
}
|
| 63 |
+
],
|
| 64 |
+
"seller":{
|
| 65 |
+
"id":"o-ufmrk5furrrxgsp5tdngefzt5rxdcn",
|
| 66 |
+
"name":"Epic Dev Test Account"
|
| 67 |
+
},
|
| 68 |
+
"productSlug":"maneater",
|
| 69 |
+
"urlSlug":"game-4",
|
| 70 |
+
"url":null,
|
| 71 |
+
"items":[
|
| 72 |
+
{
|
| 73 |
+
"id":"8341d7c7e4534db7848cc428aa4cbe5a",
|
| 74 |
+
"namespace":"d5241c76f178492ea1540fce45616757"
|
| 75 |
+
}
|
| 76 |
+
],
|
| 77 |
+
"customAttributes":[
|
| 78 |
+
{
|
| 79 |
+
"key":"com.epicgames.app.freegames.vault.close",
|
| 80 |
+
"value":"[]"
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"key":"com.epicgames.app.freegames.vault.slug",
|
| 84 |
+
"value":"free-games"
|
| 85 |
+
},
|
| 86 |
+
{
|
| 87 |
+
"key":"com.epicgames.app.freegames.vault.open",
|
| 88 |
+
"value":"[]"
|
| 89 |
+
},
|
| 90 |
+
{
|
| 91 |
+
"key":"com.epicgames.app.productSlug",
|
| 92 |
+
"value":"maneater"
|
| 93 |
+
}
|
| 94 |
+
],
|
| 95 |
+
"categories":[
|
| 96 |
+
{
|
| 97 |
+
"path":"freegames/vaulted"
|
| 98 |
+
},
|
| 99 |
+
{
|
| 100 |
+
"path":"freegames"
|
| 101 |
+
},
|
| 102 |
+
{
|
| 103 |
+
"path":"games"
|
| 104 |
+
},
|
| 105 |
+
{
|
| 106 |
+
"path":"applications"
|
| 107 |
+
}
|
| 108 |
+
],
|
| 109 |
+
"tags":[],
|
| 110 |
+
"catalogNs":{
|
| 111 |
+
"mappings":[]
|
| 112 |
+
},
|
| 113 |
+
"offerMappings":[],
|
| 114 |
+
"price":{
|
| 115 |
+
"totalPrice":{
|
| 116 |
+
"discountPrice":0,
|
| 117 |
+
"originalPrice":0,
|
| 118 |
+
"voucherDiscount":0,
|
| 119 |
+
"discount":0,
|
| 120 |
+
"currencyCode":"USD",
|
| 121 |
+
"currencyInfo":{
|
| 122 |
+
"decimals":2
|
| 123 |
+
},
|
| 124 |
+
"fmtPrice":{
|
| 125 |
+
"originalPrice":"0",
|
| 126 |
+
"discountPrice":"0",
|
| 127 |
+
"intermediatePrice":"0"
|
| 128 |
+
}
|
| 129 |
+
},
|
| 130 |
+
"lineOffers":[
|
| 131 |
+
{
|
| 132 |
+
"appliedRules":[]
|
| 133 |
+
}
|
| 134 |
+
]
|
| 135 |
+
},
|
| 136 |
+
"promotions":{
|
| 137 |
+
"promotionalOffers":[
|
| 138 |
+
{
|
| 139 |
+
"promotionalOffers":[
|
| 140 |
+
{
|
| 141 |
+
"startDate":"2022-06-09T15:00:00.000Z",
|
| 142 |
+
"endDate":"2022-06-16T15:00:00.000Z",
|
| 143 |
+
"discountSetting":{
|
| 144 |
+
"discountType":"PERCENTAGE",
|
| 145 |
+
"discountPercentage":0
|
| 146 |
+
}
|
| 147 |
+
}
|
| 148 |
+
]
|
| 149 |
+
}
|
| 150 |
+
],
|
| 151 |
+
"upcomingPromotionalOffers":[]
|
| 152 |
+
}
|
| 153 |
+
}
|
| 154 |
+
],
|
| 155 |
+
"upcoming":[
|
| 156 |
+
{
|
| 157 |
+
"title":"Supraland",
|
| 158 |
+
"id":"1167f711027c484cafb64899f89527ba",
|
| 159 |
+
"namespace":"ae373893881044d2bf26d6f8363a120e",
|
| 160 |
+
"description":"A mix between Portal, Zelda and Metroid. Explore, solve puzzles, beat up monsters, find secret upgrades and new abilities that help you reach new places. Playtime 12-25h.",
|
| 161 |
+
"effectiveDate":"2021-07-02T15:00:00.000Z",
|
| 162 |
+
"offerType":"BASE_GAME",
|
| 163 |
+
"expiryDate":null,
|
| 164 |
+
"status":"ACTIVE",
|
| 165 |
+
"isCodeRedemptionOnly":false,
|
| 166 |
+
"keyImages":[
|
| 167 |
+
{
|
| 168 |
+
"type":"DieselStoreFrontTall",
|
| 169 |
+
"url":"https://cdn1.epicgames.com/salesEvent/salesEvent/EGS_Supraland_SupraGames_S2_1200x1600-a6d4a615d97e0e784f93dbde64daa345"
|
| 170 |
+
},
|
| 171 |
+
{
|
| 172 |
+
"type":"DieselStoreFrontWide",
|
| 173 |
+
"url":"https://cdn1.epicgames.com/salesEvent/salesEvent/EGS_Supraland_SupraGames_S1_2560x1440-9709ca476b82b7482b32dd7401c1bbe1"
|
| 174 |
+
},
|
| 175 |
+
{
|
| 176 |
+
"type":"OfferImageTall",
|
| 177 |
+
"url":"https://cdn1.epicgames.com/salesEvent/salesEvent/EGS_Supraland_SupraGames_S4_1200x1600-a6d4a615d97e0e784f93dbde64daa345"
|
| 178 |
+
},
|
| 179 |
+
{
|
| 180 |
+
"type":"OfferImageWide",
|
| 181 |
+
"url":"https://cdn1.epicgames.com/salesEvent/salesEvent/EGS_Supraland_SupraGames_S5_1920x1080-3d9ef81461113b21916c011f1d131469"
|
| 182 |
+
},
|
| 183 |
+
{
|
| 184 |
+
"type":"Thumbnail",
|
| 185 |
+
"url":"https://cdn1.epicgames.com/salesEvent/salesEvent/EGS_Supraland_SupraGames_S4_1200x1600-a6d4a615d97e0e784f93dbde64daa345"
|
| 186 |
+
},
|
| 187 |
+
{
|
| 188 |
+
"type":"CodeRedemption_340x440",
|
| 189 |
+
"url":"https://cdn1.epicgames.com/salesEvent/salesEvent/EGS_Supraland_SupraGames_S4_1200x1600-a6d4a615d97e0e784f93dbde64daa345"
|
| 190 |
+
}
|
| 191 |
+
],
|
| 192 |
+
"seller":{
|
| 193 |
+
"id":"o-gfmarfnj9jh4jucwvuubpjv4nwb66x",
|
| 194 |
+
"name":"Supra Games"
|
| 195 |
+
},
|
| 196 |
+
"productSlug":"supraland",
|
| 197 |
+
"urlSlug":"curiumgeneralaudience",
|
| 198 |
+
"url":null,
|
| 199 |
+
"items":[
|
| 200 |
+
{
|
| 201 |
+
"id":"35d8efc04f62416b8feb80294f79ee9e",
|
| 202 |
+
"namespace":"ae373893881044d2bf26d6f8363a120e"
|
| 203 |
+
}
|
| 204 |
+
],
|
| 205 |
+
"customAttributes":[
|
| 206 |
+
{
|
| 207 |
+
"key":"com.epicgames.app.blacklist",
|
| 208 |
+
"value":"[]"
|
| 209 |
+
},
|
| 210 |
+
{
|
| 211 |
+
"key":"publisherName",
|
| 212 |
+
"value":"Supra Games"
|
| 213 |
+
},
|
| 214 |
+
{
|
| 215 |
+
"key":"developerName",
|
| 216 |
+
"value":"Supra Games"
|
| 217 |
+
},
|
| 218 |
+
{
|
| 219 |
+
"key":"com.epicgames.app.productSlug",
|
| 220 |
+
"value":"supraland"
|
| 221 |
+
}
|
| 222 |
+
],
|
| 223 |
+
"categories":[
|
| 224 |
+
{
|
| 225 |
+
"path":"freegames"
|
| 226 |
+
},
|
| 227 |
+
{
|
| 228 |
+
"path":"games/edition/base"
|
| 229 |
+
},
|
| 230 |
+
{
|
| 231 |
+
"path":"games/edition"
|
| 232 |
+
},
|
| 233 |
+
{
|
| 234 |
+
"path":"games"
|
| 235 |
+
},
|
| 236 |
+
{
|
| 237 |
+
"path":"applications"
|
| 238 |
+
}
|
| 239 |
+
],
|
| 240 |
+
"tags":[
|
| 241 |
+
{
|
| 242 |
+
"id":"1298"
|
| 243 |
+
},
|
| 244 |
+
{
|
| 245 |
+
"id":"1381"
|
| 246 |
+
},
|
| 247 |
+
{
|
| 248 |
+
"id":"19847"
|
| 249 |
+
},
|
| 250 |
+
{
|
| 251 |
+
"id":"1370"
|
| 252 |
+
},
|
| 253 |
+
{
|
| 254 |
+
"id":"9547"
|
| 255 |
+
},
|
| 256 |
+
{
|
| 257 |
+
"id":"1247"
|
| 258 |
+
}
|
| 259 |
+
],
|
| 260 |
+
"catalogNs":{
|
| 261 |
+
"mappings":[
|
| 262 |
+
{
|
| 263 |
+
"pageSlug":"supraland",
|
| 264 |
+
"pageType":"productHome"
|
| 265 |
+
}
|
| 266 |
+
]
|
| 267 |
+
},
|
| 268 |
+
"offerMappings":[],
|
| 269 |
+
"price":{
|
| 270 |
+
"totalPrice":{
|
| 271 |
+
"discountPrice":1999,
|
| 272 |
+
"originalPrice":1999,
|
| 273 |
+
"voucherDiscount":0,
|
| 274 |
+
"discount":0,
|
| 275 |
+
"currencyCode":"USD",
|
| 276 |
+
"currencyInfo":{
|
| 277 |
+
"decimals":2
|
| 278 |
+
},
|
| 279 |
+
"fmtPrice":{
|
| 280 |
+
"originalPrice":"$19.99",
|
| 281 |
+
"discountPrice":"$19.99",
|
| 282 |
+
"intermediatePrice":"$19.99"
|
| 283 |
+
}
|
| 284 |
+
},
|
| 285 |
+
"lineOffers":[
|
| 286 |
+
{
|
| 287 |
+
"appliedRules":[]
|
| 288 |
+
}
|
| 289 |
+
]
|
| 290 |
+
},
|
| 291 |
+
"promotions":{
|
| 292 |
+
"promotionalOffers":[],
|
| 293 |
+
"upcomingPromotionalOffers":[
|
| 294 |
+
{
|
| 295 |
+
"promotionalOffers":[
|
| 296 |
+
{
|
| 297 |
+
"startDate":"2022-06-16T15:00:00.000Z",
|
| 298 |
+
"endDate":"2022-06-23T15:00:00.000Z",
|
| 299 |
+
"discountSetting":{
|
| 300 |
+
"discountType":"PERCENTAGE",
|
| 301 |
+
"discountPercentage":0
|
| 302 |
+
}
|
| 303 |
+
}
|
| 304 |
+
]
|
| 305 |
+
}
|
| 306 |
+
]
|
| 307 |
+
}
|
| 308 |
+
}
|
| 309 |
+
]
|
| 310 |
+
}
|
| 311 |
+
},
|
| 312 |
+
"headers":{
|
| 313 |
+
"access-control-allow-credentials":"true",
|
| 314 |
+
"access-control-allow-origin":"*",
|
| 315 |
+
"age":"0",
|
| 316 |
+
"cache-control":"public, max-age=0, must-revalidate",
|
| 317 |
+
"connection":"keep-alive",
|
| 318 |
+
"content-length":"5234",
|
| 319 |
+
"content-type":"application/json; charset=utf-8",
|
| 320 |
+
"date":"Sat, 11 Jun 2022 12:21:19 GMT",
|
| 321 |
+
"etag":"\"1472-6aTg4Lv0bVUrAcyibnsmHwKnW7c\"",
|
| 322 |
+
"server":"RapidAPI-1.2.8",
|
| 323 |
+
"strict-transport-security":"max-age=63072000; includeSubDomains; preload",
|
| 324 |
+
"x-matched-path":"/api/epic-games/free",
|
| 325 |
+
"x-rapidapi-region":"AWS - ap-southeast-1",
|
| 326 |
+
"x-rapidapi-version":"1.2.8",
|
| 327 |
+
"x-vercel-cache":"MISS",
|
| 328 |
+
"x-vercel-id":"sin1::iad1::x5q5h-1654950077503-cd997cc58306"
|
| 329 |
+
},
|
| 330 |
+
"schema":{}
|
| 331 |
+
}
|
| 332 |
+
]
|
| 333 |
+
}
|
toolbench/toolenv/tools/Gaming/free_epic_games/api.py
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import requests
|
| 2 |
+
import json
|
| 3 |
+
from datetime import date, datetime, timedelta
|
| 4 |
+
import os
|
| 5 |
+
|
| 6 |
+
from typing import Optional, Dict, Union, List
|
| 7 |
+
|
| 8 |
+
|
| 9 |
+
def free_games(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 10 |
+
"""
|
| 11 |
+
"Get the list of free games on Epic Games for the week"
|
| 12 |
+
|
| 13 |
+
"""
|
| 14 |
+
url = f"https://free-epic-games.p.rapidapi.com/free"
|
| 15 |
+
querystring = {}
|
| 16 |
+
|
| 17 |
+
headers = {
|
| 18 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 19 |
+
"X-RapidAPI-Host": "free-epic-games.p.rapidapi.com"
|
| 20 |
+
}
|
| 21 |
+
|
| 22 |
+
|
| 23 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 24 |
+
try:
|
| 25 |
+
observation = response.json()
|
| 26 |
+
except:
|
| 27 |
+
observation = response.text
|
| 28 |
+
return observation
|
| 29 |
+
|
toolbench/toolenv/tools/Gaming/free_fire_api.json
ADDED
|
@@ -0,0 +1,107 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"tool_name":"Free Fire API",
|
| 3 |
+
"tool_description":"Free Fire Game API, you can access an extensive database of character profiles, including detailed information on their abilities, statistics, and unique skills. Whether it's unlocking a new character or comparing their strengths, this API empowers you to provide in-depth character analysis to your users.",
|
| 4 |
+
"title":"Free Fire API",
|
| 5 |
+
"pricing":"FREEMIUM",
|
| 6 |
+
"score":null,
|
| 7 |
+
"home_url":"https://rapidapi.com/asusalman986/api/free-fire-api/",
|
| 8 |
+
"host":"free-fire-api.p.rapidapi.com",
|
| 9 |
+
"api_list":[
|
| 10 |
+
{
|
| 11 |
+
"name":"news",
|
| 12 |
+
"url":"https://free-fire-api.p.rapidapi.com/news/list",
|
| 13 |
+
"description":"**get all news list !**",
|
| 14 |
+
"method":"GET",
|
| 15 |
+
"required_parameters":[],
|
| 16 |
+
"optional_parameters":[],
|
| 17 |
+
"code":"import requests\n\nurl = \"https://free-fire-api.p.rapidapi.com/news/list\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"free-fire-api.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n",
|
| 18 |
+
"statuscode":200,
|
| 19 |
+
"body":{
|
| 20 |
+
"key1":"value",
|
| 21 |
+
"key2":"value"
|
| 22 |
+
},
|
| 23 |
+
"headers":{},
|
| 24 |
+
"schema":{}
|
| 25 |
+
},
|
| 26 |
+
{
|
| 27 |
+
"name":"wallpapers",
|
| 28 |
+
"url":"https://free-fire-api.p.rapidapi.com/wallpapers/list",
|
| 29 |
+
"description":"**get all wallpapers list !**",
|
| 30 |
+
"method":"GET",
|
| 31 |
+
"required_parameters":[],
|
| 32 |
+
"optional_parameters":[],
|
| 33 |
+
"code":"import requests\n\nurl = \"https://free-fire-api.p.rapidapi.com/wallpapers/list\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"free-fire-api.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n",
|
| 34 |
+
"statuscode":200,
|
| 35 |
+
"body":{
|
| 36 |
+
"key1":"value",
|
| 37 |
+
"key2":"value"
|
| 38 |
+
},
|
| 39 |
+
"headers":{},
|
| 40 |
+
"schema":{}
|
| 41 |
+
},
|
| 42 |
+
{
|
| 43 |
+
"name":"videos",
|
| 44 |
+
"url":"https://free-fire-api.p.rapidapi.com/videos/list",
|
| 45 |
+
"description":"**get all videos list !**",
|
| 46 |
+
"method":"GET",
|
| 47 |
+
"required_parameters":[],
|
| 48 |
+
"optional_parameters":[],
|
| 49 |
+
"code":"import requests\n\nurl = \"https://free-fire-api.p.rapidapi.com/videos/list\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"free-fire-api.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n",
|
| 50 |
+
"statuscode":200,
|
| 51 |
+
"body":{
|
| 52 |
+
"key1":"value",
|
| 53 |
+
"key2":"value"
|
| 54 |
+
},
|
| 55 |
+
"headers":{},
|
| 56 |
+
"schema":{}
|
| 57 |
+
},
|
| 58 |
+
{
|
| 59 |
+
"name":"weapons",
|
| 60 |
+
"url":"https://free-fire-api.p.rapidapi.com/weapons/list",
|
| 61 |
+
"description":"**get all weapons list !**",
|
| 62 |
+
"method":"GET",
|
| 63 |
+
"required_parameters":[],
|
| 64 |
+
"optional_parameters":[],
|
| 65 |
+
"code":"import requests\n\nurl = \"https://free-fire-api.p.rapidapi.com/weapons/list\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"free-fire-api.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n",
|
| 66 |
+
"statuscode":200,
|
| 67 |
+
"body":{
|
| 68 |
+
"key1":"value",
|
| 69 |
+
"key2":"value"
|
| 70 |
+
},
|
| 71 |
+
"headers":{},
|
| 72 |
+
"schema":{}
|
| 73 |
+
},
|
| 74 |
+
{
|
| 75 |
+
"name":"pets",
|
| 76 |
+
"url":"https://free-fire-api.p.rapidapi.com/pets/list",
|
| 77 |
+
"description":"**get all pets !**",
|
| 78 |
+
"method":"GET",
|
| 79 |
+
"required_parameters":[],
|
| 80 |
+
"optional_parameters":[],
|
| 81 |
+
"code":"import requests\n\nurl = \"https://free-fire-api.p.rapidapi.com/pets/list\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"free-fire-api.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n",
|
| 82 |
+
"statuscode":200,
|
| 83 |
+
"body":{
|
| 84 |
+
"key1":"value",
|
| 85 |
+
"key2":"value"
|
| 86 |
+
},
|
| 87 |
+
"headers":{},
|
| 88 |
+
"schema":{}
|
| 89 |
+
},
|
| 90 |
+
{
|
| 91 |
+
"name":"characters",
|
| 92 |
+
"url":"https://free-fire-api.p.rapidapi.com/characters/list",
|
| 93 |
+
"description":"**get **uptodate **all characters !**",
|
| 94 |
+
"method":"GET",
|
| 95 |
+
"required_parameters":[],
|
| 96 |
+
"optional_parameters":[],
|
| 97 |
+
"code":"import requests\n\nurl = \"https://free-fire-api.p.rapidapi.com/characters/list\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"free-fire-api.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n",
|
| 98 |
+
"statuscode":200,
|
| 99 |
+
"body":{
|
| 100 |
+
"key1":"value",
|
| 101 |
+
"key2":"value"
|
| 102 |
+
},
|
| 103 |
+
"headers":{},
|
| 104 |
+
"schema":{}
|
| 105 |
+
}
|
| 106 |
+
]
|
| 107 |
+
}
|
toolbench/toolenv/tools/Gaming/free_fire_api/api.py
ADDED
|
@@ -0,0 +1,134 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import requests
|
| 2 |
+
import json
|
| 3 |
+
from datetime import date, datetime, timedelta
|
| 4 |
+
import os
|
| 5 |
+
|
| 6 |
+
from typing import Optional, Dict, Union, List
|
| 7 |
+
|
| 8 |
+
|
| 9 |
+
def news(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 10 |
+
"""
|
| 11 |
+
"**get all news list !**"
|
| 12 |
+
|
| 13 |
+
"""
|
| 14 |
+
url = f"https://free-fire-api.p.rapidapi.com/news/list"
|
| 15 |
+
querystring = {}
|
| 16 |
+
|
| 17 |
+
headers = {
|
| 18 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 19 |
+
"X-RapidAPI-Host": "free-fire-api.p.rapidapi.com"
|
| 20 |
+
}
|
| 21 |
+
|
| 22 |
+
|
| 23 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 24 |
+
try:
|
| 25 |
+
observation = response.json()
|
| 26 |
+
except:
|
| 27 |
+
observation = response.text
|
| 28 |
+
return observation
|
| 29 |
+
|
| 30 |
+
def wallpapers(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 31 |
+
"""
|
| 32 |
+
"**get all wallpapers list !**"
|
| 33 |
+
|
| 34 |
+
"""
|
| 35 |
+
url = f"https://free-fire-api.p.rapidapi.com/wallpapers/list"
|
| 36 |
+
querystring = {}
|
| 37 |
+
|
| 38 |
+
headers = {
|
| 39 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 40 |
+
"X-RapidAPI-Host": "free-fire-api.p.rapidapi.com"
|
| 41 |
+
}
|
| 42 |
+
|
| 43 |
+
|
| 44 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 45 |
+
try:
|
| 46 |
+
observation = response.json()
|
| 47 |
+
except:
|
| 48 |
+
observation = response.text
|
| 49 |
+
return observation
|
| 50 |
+
|
| 51 |
+
def videos(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 52 |
+
"""
|
| 53 |
+
"**get all videos list !**"
|
| 54 |
+
|
| 55 |
+
"""
|
| 56 |
+
url = f"https://free-fire-api.p.rapidapi.com/videos/list"
|
| 57 |
+
querystring = {}
|
| 58 |
+
|
| 59 |
+
headers = {
|
| 60 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 61 |
+
"X-RapidAPI-Host": "free-fire-api.p.rapidapi.com"
|
| 62 |
+
}
|
| 63 |
+
|
| 64 |
+
|
| 65 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 66 |
+
try:
|
| 67 |
+
observation = response.json()
|
| 68 |
+
except:
|
| 69 |
+
observation = response.text
|
| 70 |
+
return observation
|
| 71 |
+
|
| 72 |
+
def weapons(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 73 |
+
"""
|
| 74 |
+
"**get all weapons list !**"
|
| 75 |
+
|
| 76 |
+
"""
|
| 77 |
+
url = f"https://free-fire-api.p.rapidapi.com/weapons/list"
|
| 78 |
+
querystring = {}
|
| 79 |
+
|
| 80 |
+
headers = {
|
| 81 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 82 |
+
"X-RapidAPI-Host": "free-fire-api.p.rapidapi.com"
|
| 83 |
+
}
|
| 84 |
+
|
| 85 |
+
|
| 86 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 87 |
+
try:
|
| 88 |
+
observation = response.json()
|
| 89 |
+
except:
|
| 90 |
+
observation = response.text
|
| 91 |
+
return observation
|
| 92 |
+
|
| 93 |
+
def pets(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 94 |
+
"""
|
| 95 |
+
"**get all pets !**"
|
| 96 |
+
|
| 97 |
+
"""
|
| 98 |
+
url = f"https://free-fire-api.p.rapidapi.com/pets/list"
|
| 99 |
+
querystring = {}
|
| 100 |
+
|
| 101 |
+
headers = {
|
| 102 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 103 |
+
"X-RapidAPI-Host": "free-fire-api.p.rapidapi.com"
|
| 104 |
+
}
|
| 105 |
+
|
| 106 |
+
|
| 107 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 108 |
+
try:
|
| 109 |
+
observation = response.json()
|
| 110 |
+
except:
|
| 111 |
+
observation = response.text
|
| 112 |
+
return observation
|
| 113 |
+
|
| 114 |
+
def characters(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 115 |
+
"""
|
| 116 |
+
"**get **uptodate **all characters !**"
|
| 117 |
+
|
| 118 |
+
"""
|
| 119 |
+
url = f"https://free-fire-api.p.rapidapi.com/characters/list"
|
| 120 |
+
querystring = {}
|
| 121 |
+
|
| 122 |
+
headers = {
|
| 123 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 124 |
+
"X-RapidAPI-Host": "free-fire-api.p.rapidapi.com"
|
| 125 |
+
}
|
| 126 |
+
|
| 127 |
+
|
| 128 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 129 |
+
try:
|
| 130 |
+
observation = response.json()
|
| 131 |
+
except:
|
| 132 |
+
observation = response.text
|
| 133 |
+
return observation
|
| 134 |
+
|
toolbench/toolenv/tools/Gaming/free_game_info.json
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"tool_name":"Free Game Info",
|
| 3 |
+
"tool_description":"find free to play game info",
|
| 4 |
+
"title":"Free Game Info",
|
| 5 |
+
"pricing":"FREEMIUM",
|
| 6 |
+
"score":null,
|
| 7 |
+
"home_url":"https://rapidapi.com/kerrautumn123/api/free-game-info/",
|
| 8 |
+
"host":"free-game-info.p.rapidapi.com",
|
| 9 |
+
"api_list":[
|
| 10 |
+
{
|
| 11 |
+
"name":"default",
|
| 12 |
+
"url":"https://free-game-info.p.rapidapi.com/",
|
| 13 |
+
"description":"default endpoint",
|
| 14 |
+
"method":"GET",
|
| 15 |
+
"required_parameters":[],
|
| 16 |
+
"optional_parameters":[],
|
| 17 |
+
"code":"import requests\n\nurl = \"https://free-game-info.p.rapidapi.com/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"free-game-info.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n",
|
| 18 |
+
"statuscode":111,
|
| 19 |
+
"body":"",
|
| 20 |
+
"headers":"",
|
| 21 |
+
"schema":""
|
| 22 |
+
}
|
| 23 |
+
]
|
| 24 |
+
}
|
toolbench/toolenv/tools/Gaming/free_game_info/api.py
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import requests
|
| 2 |
+
import json
|
| 3 |
+
from datetime import date, datetime, timedelta
|
| 4 |
+
import os
|
| 5 |
+
|
| 6 |
+
from typing import Optional, Dict, Union, List
|
| 7 |
+
|
| 8 |
+
|
| 9 |
+
def default(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 10 |
+
"""
|
| 11 |
+
"default endpoint"
|
| 12 |
+
|
| 13 |
+
"""
|
| 14 |
+
url = f"https://free-game-info.p.rapidapi.com/"
|
| 15 |
+
querystring = {}
|
| 16 |
+
|
| 17 |
+
headers = {
|
| 18 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 19 |
+
"X-RapidAPI-Host": "free-game-info.p.rapidapi.com"
|
| 20 |
+
}
|
| 21 |
+
|
| 22 |
+
|
| 23 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 24 |
+
try:
|
| 25 |
+
observation = response.json()
|
| 26 |
+
except:
|
| 27 |
+
observation = response.text
|
| 28 |
+
return observation
|
| 29 |
+
|
toolbench/toolenv/tools/Gaming/free_games_aggregator/api.py
ADDED
|
@@ -0,0 +1,97 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import requests
|
| 2 |
+
import json
|
| 3 |
+
from datetime import date, datetime, timedelta
|
| 4 |
+
import os
|
| 5 |
+
|
| 6 |
+
from typing import Optional, Dict, Union, List
|
| 7 |
+
|
| 8 |
+
|
| 9 |
+
def get_all_platforms(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 10 |
+
"""
|
| 11 |
+
"This endpoint will return list of supported platfroms"
|
| 12 |
+
|
| 13 |
+
"""
|
| 14 |
+
url = f"https://free-games-aggregator.p.rapidapi.com/free-games/platforms"
|
| 15 |
+
querystring = {}
|
| 16 |
+
|
| 17 |
+
headers = {
|
| 18 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 19 |
+
"X-RapidAPI-Host": "free-games-aggregator.p.rapidapi.com"
|
| 20 |
+
}
|
| 21 |
+
|
| 22 |
+
|
| 23 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 24 |
+
try:
|
| 25 |
+
observation = response.json()
|
| 26 |
+
except:
|
| 27 |
+
observation = response.text
|
| 28 |
+
return observation
|
| 29 |
+
|
| 30 |
+
def get_game_picture(picurl: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 31 |
+
"""
|
| 32 |
+
"This endpoint returns picture for game.
|
| 33 |
+
Use 'game.image.url' value as parameter for this endpoint"
|
| 34 |
+
|
| 35 |
+
"""
|
| 36 |
+
url = f"https://free-games-aggregator.p.rapidapi.com/{picurl}"
|
| 37 |
+
querystring = {}
|
| 38 |
+
|
| 39 |
+
headers = {
|
| 40 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 41 |
+
"X-RapidAPI-Host": "free-games-aggregator.p.rapidapi.com"
|
| 42 |
+
}
|
| 43 |
+
|
| 44 |
+
|
| 45 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 46 |
+
try:
|
| 47 |
+
observation = response.json()
|
| 48 |
+
except:
|
| 49 |
+
observation = response.text
|
| 50 |
+
return observation
|
| 51 |
+
|
| 52 |
+
def get_all_stores(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 53 |
+
"""
|
| 54 |
+
"This endpoint will return list of supported stores"
|
| 55 |
+
|
| 56 |
+
"""
|
| 57 |
+
url = f"https://free-games-aggregator.p.rapidapi.com/free-games/stores"
|
| 58 |
+
querystring = {}
|
| 59 |
+
|
| 60 |
+
headers = {
|
| 61 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 62 |
+
"X-RapidAPI-Host": "free-games-aggregator.p.rapidapi.com"
|
| 63 |
+
}
|
| 64 |
+
|
| 65 |
+
|
| 66 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 67 |
+
try:
|
| 68 |
+
observation = response.json()
|
| 69 |
+
except:
|
| 70 |
+
observation = response.text
|
| 71 |
+
return observation
|
| 72 |
+
|
| 73 |
+
def get_all_game_offers(platform: str=None, store: str=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 74 |
+
"""
|
| 75 |
+
"This endpoint will return back all game offers for all platforms and for all stores or filtered by query params"
|
| 76 |
+
|
| 77 |
+
"""
|
| 78 |
+
url = f"https://free-games-aggregator.p.rapidapi.com/free-games"
|
| 79 |
+
querystring = {}
|
| 80 |
+
if platform:
|
| 81 |
+
querystring['platform'] = platform
|
| 82 |
+
if store:
|
| 83 |
+
querystring['store'] = store
|
| 84 |
+
|
| 85 |
+
headers = {
|
| 86 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 87 |
+
"X-RapidAPI-Host": "free-games-aggregator.p.rapidapi.com"
|
| 88 |
+
}
|
| 89 |
+
|
| 90 |
+
|
| 91 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 92 |
+
try:
|
| 93 |
+
observation = response.json()
|
| 94 |
+
except:
|
| 95 |
+
observation = response.text
|
| 96 |
+
return observation
|
| 97 |
+
|
toolbench/toolenv/tools/Gaming/free_games_this_month.json
ADDED
|
@@ -0,0 +1,700 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"tool_name":"Free games this month",
|
| 3 |
+
"tool_description":"Gain exclusive access to a handpicked selection of games that leading gaming platforms give away periodically, including PlayStation, Epic Games Store, Xbox, Prime Gaming, and more.",
|
| 4 |
+
"title":"Free games this month",
|
| 5 |
+
"pricing":"FREEMIUM",
|
| 6 |
+
"score":null,
|
| 7 |
+
"home_url":"https://rapidapi.com/davidmaillo90/api/free-games-this-month/",
|
| 8 |
+
"host":"free-games-this-month.p.rapidapi.com",
|
| 9 |
+
"api_list":[
|
| 10 |
+
{
|
| 11 |
+
"name":"Get recent gift games",
|
| 12 |
+
"url":"https://free-games-this-month.p.rapidapi.com/games/gifts/recent",
|
| 13 |
+
"description":"It returns the same of `available` endpoint but it will trim a period date. This is useful, for example, to create alerts and notifications with ONLY recent data.",
|
| 14 |
+
"method":"GET",
|
| 15 |
+
"required_parameters":[],
|
| 16 |
+
"optional_parameters":[
|
| 17 |
+
{
|
| 18 |
+
"name":"period",
|
| 19 |
+
"type":"STRING",
|
| 20 |
+
"description":"\\\\\\\"1d\\\\\\\" | \\\\\\\"3d\\\\\\\" | \\\\\\\"7d\\\\\\\" | \\\\\\\"15d\\\\\\\" | \\\\\\\"30d\\\\\\\"\nDefault: \\\\\\\"7d\\\\\\\"",
|
| 21 |
+
"default":"7d"
|
| 22 |
+
}
|
| 23 |
+
],
|
| 24 |
+
"code":"import requests\n\nurl = \"https://free-games-this-month.p.rapidapi.com/games/gifts/recent\"\nquerystring = {\"period\": period}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"free-games-this-month.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n",
|
| 25 |
+
"statuscode":200,
|
| 26 |
+
"body":{
|
| 27 |
+
"count":9,
|
| 28 |
+
"games":[
|
| 29 |
+
{
|
| 30 |
+
"gid":661,
|
| 31 |
+
"created_at":"2022-08-14T14:18:17.881284+02:00",
|
| 32 |
+
"updated_at":"2022-08-14T14:18:17.881284+02:00",
|
| 33 |
+
"public_id":null,
|
| 34 |
+
"platform":5,
|
| 35 |
+
"name":"Zak McKracken and the Alien Mindbenders",
|
| 36 |
+
"available_now":true,
|
| 37 |
+
"source_link":null,
|
| 38 |
+
"price":0,
|
| 39 |
+
"cover":"https://images.igdb.com/igdb/image/upload/t_original/co2gje.jpg",
|
| 40 |
+
"official_website":null,
|
| 41 |
+
"release_date":null,
|
| 42 |
+
"rating":82,
|
| 43 |
+
"type":"gift",
|
| 44 |
+
"description":null,
|
| 45 |
+
"description_ES":null,
|
| 46 |
+
"igdb":null,
|
| 47 |
+
"need_populate":false,
|
| 48 |
+
"original_name":"Zak McKracken and the Alien Mindbenders",
|
| 49 |
+
"screenshots":null,
|
| 50 |
+
"youtube_video_id":null,
|
| 51 |
+
"platforms":{
|
| 52 |
+
"id":"primeGaming",
|
| 53 |
+
"name":"Amazon Prime Gaming",
|
| 54 |
+
"link":"https://gaming.amazon.com/home"
|
| 55 |
+
}
|
| 56 |
+
},
|
| 57 |
+
{
|
| 58 |
+
"gid":660,
|
| 59 |
+
"created_at":"2022-08-14T14:18:17.881284+02:00",
|
| 60 |
+
"updated_at":"2022-08-14T14:18:17.881284+02:00",
|
| 61 |
+
"public_id":null,
|
| 62 |
+
"platform":5,
|
| 63 |
+
"name":"StarCraft: Remastered",
|
| 64 |
+
"available_now":true,
|
| 65 |
+
"source_link":null,
|
| 66 |
+
"price":0,
|
| 67 |
+
"cover":"https://images.igdb.com/igdb/image/upload/t_original/co3wal.jpg",
|
| 68 |
+
"official_website":null,
|
| 69 |
+
"release_date":null,
|
| 70 |
+
"rating":78,
|
| 71 |
+
"type":"gift",
|
| 72 |
+
"description":null,
|
| 73 |
+
"description_ES":null,
|
| 74 |
+
"igdb":null,
|
| 75 |
+
"need_populate":false,
|
| 76 |
+
"original_name":"StarCraft: Remastered",
|
| 77 |
+
"screenshots":null,
|
| 78 |
+
"youtube_video_id":null,
|
| 79 |
+
"platforms":{
|
| 80 |
+
"id":"primeGaming",
|
| 81 |
+
"name":"Amazon Prime Gaming",
|
| 82 |
+
"link":"https://gaming.amazon.com/home"
|
| 83 |
+
}
|
| 84 |
+
},
|
| 85 |
+
{
|
| 86 |
+
"gid":659,
|
| 87 |
+
"created_at":"2022-08-13T22:12:29.588107+02:00",
|
| 88 |
+
"updated_at":"2022-08-13T22:12:29.588107+02:00",
|
| 89 |
+
"public_id":null,
|
| 90 |
+
"platform":3,
|
| 91 |
+
"name":"Cook, Serve, Delicious! 3?!",
|
| 92 |
+
"available_now":true,
|
| 93 |
+
"source_link":null,
|
| 94 |
+
"price":0,
|
| 95 |
+
"cover":"https://images.igdb.com/igdb/image/upload/t_original/co1wbk.jpg",
|
| 96 |
+
"official_website":null,
|
| 97 |
+
"release_date":null,
|
| 98 |
+
"rating":77,
|
| 99 |
+
"type":"gift",
|
| 100 |
+
"description":null,
|
| 101 |
+
"description_ES":null,
|
| 102 |
+
"igdb":null,
|
| 103 |
+
"need_populate":false,
|
| 104 |
+
"original_name":"Cook, Serve, Delicious! 3?!",
|
| 105 |
+
"screenshots":null,
|
| 106 |
+
"youtube_video_id":null,
|
| 107 |
+
"platforms":{
|
| 108 |
+
"id":"epicStore",
|
| 109 |
+
"name":"Epic Games Store",
|
| 110 |
+
"link":"https://store.epicgames.com/es-ES/"
|
| 111 |
+
}
|
| 112 |
+
},
|
| 113 |
+
{
|
| 114 |
+
"gid":665,
|
| 115 |
+
"created_at":"2022-08-14T14:18:17.881284+02:00",
|
| 116 |
+
"updated_at":"2022-08-14T14:18:17.881284+02:00",
|
| 117 |
+
"public_id":null,
|
| 118 |
+
"platform":5,
|
| 119 |
+
"name":"ScourgeBringer",
|
| 120 |
+
"available_now":true,
|
| 121 |
+
"source_link":null,
|
| 122 |
+
"price":0,
|
| 123 |
+
"cover":"https://images.igdb.com/igdb/image/upload/t_original/co2kce.jpg",
|
| 124 |
+
"official_website":null,
|
| 125 |
+
"release_date":null,
|
| 126 |
+
"rating":71,
|
| 127 |
+
"type":"gift",
|
| 128 |
+
"description":null,
|
| 129 |
+
"description_ES":null,
|
| 130 |
+
"igdb":null,
|
| 131 |
+
"need_populate":false,
|
| 132 |
+
"original_name":"ScourgeBringer",
|
| 133 |
+
"screenshots":null,
|
| 134 |
+
"youtube_video_id":null,
|
| 135 |
+
"platforms":{
|
| 136 |
+
"id":"primeGaming",
|
| 137 |
+
"name":"Amazon Prime Gaming",
|
| 138 |
+
"link":"https://gaming.amazon.com/home"
|
| 139 |
+
}
|
| 140 |
+
},
|
| 141 |
+
{
|
| 142 |
+
"gid":666,
|
| 143 |
+
"created_at":"2022-08-16T14:18:48.500558+02:00",
|
| 144 |
+
"updated_at":"2022-08-16T14:18:48.500558+02:00",
|
| 145 |
+
"public_id":null,
|
| 146 |
+
"platform":2,
|
| 147 |
+
"name":"Scourgebringer",
|
| 148 |
+
"available_now":true,
|
| 149 |
+
"source_link":null,
|
| 150 |
+
"price":0,
|
| 151 |
+
"cover":"https://images.igdb.com/igdb/image/upload/t_original/co2kce.jpg",
|
| 152 |
+
"official_website":null,
|
| 153 |
+
"release_date":null,
|
| 154 |
+
"rating":71,
|
| 155 |
+
"type":"gift",
|
| 156 |
+
"description":null,
|
| 157 |
+
"description_ES":null,
|
| 158 |
+
"igdb":null,
|
| 159 |
+
"need_populate":false,
|
| 160 |
+
"original_name":"Scourgebringer",
|
| 161 |
+
"screenshots":null,
|
| 162 |
+
"youtube_video_id":null,
|
| 163 |
+
"platforms":{
|
| 164 |
+
"id":"xbox",
|
| 165 |
+
"name":"Xbox Live Gold",
|
| 166 |
+
"link":"https://www.xbox.com/es-ES/live/gold#gameswithgold"
|
| 167 |
+
}
|
| 168 |
+
},
|
| 169 |
+
{
|
| 170 |
+
"gid":667,
|
| 171 |
+
"created_at":"2022-08-16T14:18:48.500558+02:00",
|
| 172 |
+
"updated_at":"2022-08-16T14:18:48.500558+02:00",
|
| 173 |
+
"public_id":null,
|
| 174 |
+
"platform":2,
|
| 175 |
+
"name":"Monaco: What's Yours is Mine",
|
| 176 |
+
"available_now":true,
|
| 177 |
+
"source_link":null,
|
| 178 |
+
"price":0,
|
| 179 |
+
"cover":"https://images.igdb.com/igdb/image/upload/t_original/co1tk5.jpg",
|
| 180 |
+
"official_website":null,
|
| 181 |
+
"release_date":null,
|
| 182 |
+
"rating":null,
|
| 183 |
+
"type":"gift",
|
| 184 |
+
"description":null,
|
| 185 |
+
"description_ES":null,
|
| 186 |
+
"igdb":null,
|
| 187 |
+
"need_populate":false,
|
| 188 |
+
"original_name":"Monaco: What's Yours is Mine",
|
| 189 |
+
"screenshots":null,
|
| 190 |
+
"youtube_video_id":null,
|
| 191 |
+
"platforms":{
|
| 192 |
+
"id":"xbox",
|
| 193 |
+
"name":"Xbox Live Gold",
|
| 194 |
+
"link":"https://www.xbox.com/es-ES/live/gold#gameswithgold"
|
| 195 |
+
}
|
| 196 |
+
},
|
| 197 |
+
{
|
| 198 |
+
"gid":662,
|
| 199 |
+
"created_at":"2022-08-14T14:18:17.881284+02:00",
|
| 200 |
+
"updated_at":"2022-08-14T14:18:17.881284+02:00",
|
| 201 |
+
"public_id":null,
|
| 202 |
+
"platform":5,
|
| 203 |
+
"name":"Family Mysteries: Poisonous Promises",
|
| 204 |
+
"available_now":true,
|
| 205 |
+
"source_link":null,
|
| 206 |
+
"price":0,
|
| 207 |
+
"cover":"https://images.igdb.com/igdb/image/upload/t_original/co21r0.jpg",
|
| 208 |
+
"official_website":null,
|
| 209 |
+
"release_date":null,
|
| 210 |
+
"rating":null,
|
| 211 |
+
"type":"gift",
|
| 212 |
+
"description":null,
|
| 213 |
+
"description_ES":null,
|
| 214 |
+
"igdb":null,
|
| 215 |
+
"need_populate":false,
|
| 216 |
+
"original_name":"Family Mysteries: Poisonous Promises",
|
| 217 |
+
"screenshots":null,
|
| 218 |
+
"youtube_video_id":null,
|
| 219 |
+
"platforms":{
|
| 220 |
+
"id":"primeGaming",
|
| 221 |
+
"name":"Amazon Prime Gaming",
|
| 222 |
+
"link":"https://gaming.amazon.com/home"
|
| 223 |
+
}
|
| 224 |
+
},
|
| 225 |
+
{
|
| 226 |
+
"gid":663,
|
| 227 |
+
"created_at":"2022-08-14T14:18:17.881284+02:00",
|
| 228 |
+
"updated_at":"2022-08-14T14:18:17.881284+02:00",
|
| 229 |
+
"public_id":null,
|
| 230 |
+
"platform":5,
|
| 231 |
+
"name":"Beasts of Maravilla Island",
|
| 232 |
+
"available_now":true,
|
| 233 |
+
"source_link":null,
|
| 234 |
+
"price":0,
|
| 235 |
+
"cover":"https://images.igdb.com/igdb/image/upload/t_original/co2mq9.jpg",
|
| 236 |
+
"official_website":null,
|
| 237 |
+
"release_date":null,
|
| 238 |
+
"rating":null,
|
| 239 |
+
"type":"gift",
|
| 240 |
+
"description":null,
|
| 241 |
+
"description_ES":null,
|
| 242 |
+
"igdb":null,
|
| 243 |
+
"need_populate":false,
|
| 244 |
+
"original_name":"Beasts of Maravilla Island",
|
| 245 |
+
"screenshots":null,
|
| 246 |
+
"youtube_video_id":null,
|
| 247 |
+
"platforms":{
|
| 248 |
+
"id":"primeGaming",
|
| 249 |
+
"name":"Amazon Prime Gaming",
|
| 250 |
+
"link":"https://gaming.amazon.com/home"
|
| 251 |
+
}
|
| 252 |
+
},
|
| 253 |
+
{
|
| 254 |
+
"gid":664,
|
| 255 |
+
"created_at":"2022-08-14T14:18:17.881284+02:00",
|
| 256 |
+
"updated_at":"2022-08-14T14:18:17.881284+02:00",
|
| 257 |
+
"public_id":null,
|
| 258 |
+
"platform":5,
|
| 259 |
+
"name":"Recompile",
|
| 260 |
+
"available_now":true,
|
| 261 |
+
"source_link":null,
|
| 262 |
+
"price":0,
|
| 263 |
+
"cover":"https://images.igdb.com/igdb/image/upload/t_original/co1pwf.jpg",
|
| 264 |
+
"official_website":null,
|
| 265 |
+
"release_date":null,
|
| 266 |
+
"rating":null,
|
| 267 |
+
"type":"gift",
|
| 268 |
+
"description":null,
|
| 269 |
+
"description_ES":null,
|
| 270 |
+
"igdb":null,
|
| 271 |
+
"need_populate":false,
|
| 272 |
+
"original_name":"Recompile",
|
| 273 |
+
"screenshots":null,
|
| 274 |
+
"youtube_video_id":null,
|
| 275 |
+
"platforms":{
|
| 276 |
+
"id":"primeGaming",
|
| 277 |
+
"name":"Amazon Prime Gaming",
|
| 278 |
+
"link":"https://gaming.amazon.com/home"
|
| 279 |
+
}
|
| 280 |
+
}
|
| 281 |
+
]
|
| 282 |
+
},
|
| 283 |
+
"headers":{
|
| 284 |
+
"access-control-allow-credentials":"true",
|
| 285 |
+
"access-control-allow-origin":"*",
|
| 286 |
+
"age":"0",
|
| 287 |
+
"cache-control":"public, max-age=0, must-revalidate",
|
| 288 |
+
"content-length":"5701",
|
| 289 |
+
"content-type":"application/json; charset=utf-8",
|
| 290 |
+
"date":"Thu, 18 Aug 2022 12:46:07 GMT",
|
| 291 |
+
"etag":"\"1645-mhrw4SHMej9Z349BCt+he1oNqqE\"",
|
| 292 |
+
"server":"RapidAPI-1.2.8",
|
| 293 |
+
"strict-transport-security":"max-age=63072000; includeSubDomains; preload",
|
| 294 |
+
"x-matched-path":"/api/games/gifts/recent",
|
| 295 |
+
"x-rapidapi-region":"AWS - eu-central-1",
|
| 296 |
+
"x-rapidapi-version":"1.2.8",
|
| 297 |
+
"x-vercel-cache":"MISS",
|
| 298 |
+
"x-vercel-id":"fra1::iad1::xgnq9-1660826767106-3e2d88c88219"
|
| 299 |
+
},
|
| 300 |
+
"schema":{}
|
| 301 |
+
},
|
| 302 |
+
{
|
| 303 |
+
"name":"Get available gift games",
|
| 304 |
+
"url":"https://free-games-this-month.p.rapidapi.com/games/gifts/available",
|
| 305 |
+
"description":"Full list of current available free games.",
|
| 306 |
+
"method":"GET",
|
| 307 |
+
"required_parameters":[],
|
| 308 |
+
"optional_parameters":[],
|
| 309 |
+
"code":"import requests\n\nurl = \"https://free-games-this-month.p.rapidapi.com/games/gifts/available\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"free-games-this-month.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n",
|
| 310 |
+
"statuscode":200,
|
| 311 |
+
"body":{
|
| 312 |
+
"games":[
|
| 313 |
+
{
|
| 314 |
+
"gid":645,
|
| 315 |
+
"created_at":"2022-08-03T14:21:34.1138+02:00",
|
| 316 |
+
"updated_at":"2022-08-03T14:21:34.1138+02:00",
|
| 317 |
+
"public_id":null,
|
| 318 |
+
"platform":1,
|
| 319 |
+
"name":"Tony Hawk's™ Pro Skater™ 1 + 2",
|
| 320 |
+
"available_now":true,
|
| 321 |
+
"source_link":null,
|
| 322 |
+
"price":0,
|
| 323 |
+
"cover":"https://images.igdb.com/igdb/image/upload/t_original/co25u7.jpg",
|
| 324 |
+
"official_website":null,
|
| 325 |
+
"release_date":null,
|
| 326 |
+
"rating":88,
|
| 327 |
+
"type":"gift",
|
| 328 |
+
"description":null,
|
| 329 |
+
"description_ES":null,
|
| 330 |
+
"igdb":null,
|
| 331 |
+
"need_populate":false,
|
| 332 |
+
"original_name":"Tony Hawk's™ Pro Skater™ 1 + 2",
|
| 333 |
+
"screenshots":null,
|
| 334 |
+
"youtube_video_id":null,
|
| 335 |
+
"platforms":{
|
| 336 |
+
"id":"playstation",
|
| 337 |
+
"name":"Playstation Plus",
|
| 338 |
+
"link":"https://www.playstation.com/en-us/ps-plus/whats-new/"
|
| 339 |
+
}
|
| 340 |
+
},
|
| 341 |
+
{
|
| 342 |
+
"gid":661,
|
| 343 |
+
"created_at":"2022-08-14T14:18:17.881284+02:00",
|
| 344 |
+
"updated_at":"2022-08-14T14:18:17.881284+02:00",
|
| 345 |
+
"public_id":null,
|
| 346 |
+
"platform":5,
|
| 347 |
+
"name":"Zak McKracken and the Alien Mindbenders",
|
| 348 |
+
"available_now":true,
|
| 349 |
+
"source_link":null,
|
| 350 |
+
"price":0,
|
| 351 |
+
"cover":"https://images.igdb.com/igdb/image/upload/t_original/co2gje.jpg",
|
| 352 |
+
"official_website":null,
|
| 353 |
+
"release_date":null,
|
| 354 |
+
"rating":82,
|
| 355 |
+
"type":"gift",
|
| 356 |
+
"description":null,
|
| 357 |
+
"description_ES":null,
|
| 358 |
+
"igdb":null,
|
| 359 |
+
"need_populate":false,
|
| 360 |
+
"original_name":"Zak McKracken and the Alien Mindbenders",
|
| 361 |
+
"screenshots":null,
|
| 362 |
+
"youtube_video_id":null,
|
| 363 |
+
"platforms":{
|
| 364 |
+
"id":"primeGaming",
|
| 365 |
+
"name":"Amazon Prime Gaming",
|
| 366 |
+
"link":"https://gaming.amazon.com/home"
|
| 367 |
+
}
|
| 368 |
+
},
|
| 369 |
+
{
|
| 370 |
+
"gid":660,
|
| 371 |
+
"created_at":"2022-08-14T14:18:17.881284+02:00",
|
| 372 |
+
"updated_at":"2022-08-14T14:18:17.881284+02:00",
|
| 373 |
+
"public_id":null,
|
| 374 |
+
"platform":5,
|
| 375 |
+
"name":"StarCraft: Remastered",
|
| 376 |
+
"available_now":true,
|
| 377 |
+
"source_link":null,
|
| 378 |
+
"price":0,
|
| 379 |
+
"cover":"https://images.igdb.com/igdb/image/upload/t_original/co3wal.jpg",
|
| 380 |
+
"official_website":null,
|
| 381 |
+
"release_date":null,
|
| 382 |
+
"rating":78,
|
| 383 |
+
"type":"gift",
|
| 384 |
+
"description":null,
|
| 385 |
+
"description_ES":null,
|
| 386 |
+
"igdb":null,
|
| 387 |
+
"need_populate":false,
|
| 388 |
+
"original_name":"StarCraft: Remastered",
|
| 389 |
+
"screenshots":null,
|
| 390 |
+
"youtube_video_id":null,
|
| 391 |
+
"platforms":{
|
| 392 |
+
"id":"primeGaming",
|
| 393 |
+
"name":"Amazon Prime Gaming",
|
| 394 |
+
"link":"https://gaming.amazon.com/home"
|
| 395 |
+
}
|
| 396 |
+
},
|
| 397 |
+
{
|
| 398 |
+
"gid":659,
|
| 399 |
+
"created_at":"2022-08-13T22:12:29.588107+02:00",
|
| 400 |
+
"updated_at":"2022-08-13T22:12:29.588107+02:00",
|
| 401 |
+
"public_id":null,
|
| 402 |
+
"platform":3,
|
| 403 |
+
"name":"Cook, Serve, Delicious! 3?!",
|
| 404 |
+
"available_now":true,
|
| 405 |
+
"source_link":null,
|
| 406 |
+
"price":0,
|
| 407 |
+
"cover":"https://images.igdb.com/igdb/image/upload/t_original/co1wbk.jpg",
|
| 408 |
+
"official_website":null,
|
| 409 |
+
"release_date":null,
|
| 410 |
+
"rating":77,
|
| 411 |
+
"type":"gift",
|
| 412 |
+
"description":null,
|
| 413 |
+
"description_ES":null,
|
| 414 |
+
"igdb":null,
|
| 415 |
+
"need_populate":false,
|
| 416 |
+
"original_name":"Cook, Serve, Delicious! 3?!",
|
| 417 |
+
"screenshots":null,
|
| 418 |
+
"youtube_video_id":null,
|
| 419 |
+
"platforms":{
|
| 420 |
+
"id":"epicStore",
|
| 421 |
+
"name":"Epic Games Store",
|
| 422 |
+
"link":"https://store.epicgames.com/es-ES/"
|
| 423 |
+
}
|
| 424 |
+
},
|
| 425 |
+
{
|
| 426 |
+
"gid":665,
|
| 427 |
+
"created_at":"2022-08-14T14:18:17.881284+02:00",
|
| 428 |
+
"updated_at":"2022-08-14T14:18:17.881284+02:00",
|
| 429 |
+
"public_id":null,
|
| 430 |
+
"platform":5,
|
| 431 |
+
"name":"ScourgeBringer",
|
| 432 |
+
"available_now":true,
|
| 433 |
+
"source_link":null,
|
| 434 |
+
"price":0,
|
| 435 |
+
"cover":"https://images.igdb.com/igdb/image/upload/t_original/co2kce.jpg",
|
| 436 |
+
"official_website":null,
|
| 437 |
+
"release_date":null,
|
| 438 |
+
"rating":71,
|
| 439 |
+
"type":"gift",
|
| 440 |
+
"description":null,
|
| 441 |
+
"description_ES":null,
|
| 442 |
+
"igdb":null,
|
| 443 |
+
"need_populate":false,
|
| 444 |
+
"original_name":"ScourgeBringer",
|
| 445 |
+
"screenshots":null,
|
| 446 |
+
"youtube_video_id":null,
|
| 447 |
+
"platforms":{
|
| 448 |
+
"id":"primeGaming",
|
| 449 |
+
"name":"Amazon Prime Gaming",
|
| 450 |
+
"link":"https://gaming.amazon.com/home"
|
| 451 |
+
}
|
| 452 |
+
},
|
| 453 |
+
{
|
| 454 |
+
"gid":666,
|
| 455 |
+
"created_at":"2022-08-16T14:18:48.500558+02:00",
|
| 456 |
+
"updated_at":"2022-08-16T14:18:48.500558+02:00",
|
| 457 |
+
"public_id":null,
|
| 458 |
+
"platform":2,
|
| 459 |
+
"name":"Scourgebringer",
|
| 460 |
+
"available_now":true,
|
| 461 |
+
"source_link":null,
|
| 462 |
+
"price":0,
|
| 463 |
+
"cover":"https://images.igdb.com/igdb/image/upload/t_original/co2kce.jpg",
|
| 464 |
+
"official_website":null,
|
| 465 |
+
"release_date":null,
|
| 466 |
+
"rating":71,
|
| 467 |
+
"type":"gift",
|
| 468 |
+
"description":null,
|
| 469 |
+
"description_ES":null,
|
| 470 |
+
"igdb":null,
|
| 471 |
+
"need_populate":false,
|
| 472 |
+
"original_name":"Scourgebringer",
|
| 473 |
+
"screenshots":null,
|
| 474 |
+
"youtube_video_id":null,
|
| 475 |
+
"platforms":{
|
| 476 |
+
"id":"xbox",
|
| 477 |
+
"name":"Xbox Live Gold",
|
| 478 |
+
"link":"https://www.xbox.com/es-ES/live/gold#gameswithgold"
|
| 479 |
+
}
|
| 480 |
+
},
|
| 481 |
+
{
|
| 482 |
+
"gid":647,
|
| 483 |
+
"created_at":"2022-08-03T14:21:34.558816+02:00",
|
| 484 |
+
"updated_at":"2022-08-03T14:21:34.558816+02:00",
|
| 485 |
+
"public_id":null,
|
| 486 |
+
"platform":2,
|
| 487 |
+
"name":"Calico",
|
| 488 |
+
"available_now":true,
|
| 489 |
+
"source_link":null,
|
| 490 |
+
"price":0,
|
| 491 |
+
"cover":"https://images.igdb.com/igdb/image/upload/t_original/co2c9c.jpg",
|
| 492 |
+
"official_website":null,
|
| 493 |
+
"release_date":null,
|
| 494 |
+
"rating":44,
|
| 495 |
+
"type":"gift",
|
| 496 |
+
"description":null,
|
| 497 |
+
"description_ES":null,
|
| 498 |
+
"igdb":null,
|
| 499 |
+
"need_populate":false,
|
| 500 |
+
"original_name":"Calico",
|
| 501 |
+
"screenshots":null,
|
| 502 |
+
"youtube_video_id":null,
|
| 503 |
+
"platforms":{
|
| 504 |
+
"id":"xbox",
|
| 505 |
+
"name":"Xbox Live Gold",
|
| 506 |
+
"link":"https://www.xbox.com/es-ES/live/gold#gameswithgold"
|
| 507 |
+
}
|
| 508 |
+
},
|
| 509 |
+
{
|
| 510 |
+
"gid":667,
|
| 511 |
+
"created_at":"2022-08-16T14:18:48.500558+02:00",
|
| 512 |
+
"updated_at":"2022-08-16T14:18:48.500558+02:00",
|
| 513 |
+
"public_id":null,
|
| 514 |
+
"platform":2,
|
| 515 |
+
"name":"Monaco: What's Yours is Mine",
|
| 516 |
+
"available_now":true,
|
| 517 |
+
"source_link":null,
|
| 518 |
+
"price":0,
|
| 519 |
+
"cover":"https://images.igdb.com/igdb/image/upload/t_original/co1tk5.jpg",
|
| 520 |
+
"official_website":null,
|
| 521 |
+
"release_date":null,
|
| 522 |
+
"rating":null,
|
| 523 |
+
"type":"gift",
|
| 524 |
+
"description":null,
|
| 525 |
+
"description_ES":null,
|
| 526 |
+
"igdb":null,
|
| 527 |
+
"need_populate":false,
|
| 528 |
+
"original_name":"Monaco: What's Yours is Mine",
|
| 529 |
+
"screenshots":null,
|
| 530 |
+
"youtube_video_id":null,
|
| 531 |
+
"platforms":{
|
| 532 |
+
"id":"xbox",
|
| 533 |
+
"name":"Xbox Live Gold",
|
| 534 |
+
"link":"https://www.xbox.com/es-ES/live/gold#gameswithgold"
|
| 535 |
+
}
|
| 536 |
+
},
|
| 537 |
+
{
|
| 538 |
+
"gid":646,
|
| 539 |
+
"created_at":"2022-08-03T14:21:34.1138+02:00",
|
| 540 |
+
"updated_at":"2022-08-03T14:21:34.1138+02:00",
|
| 541 |
+
"public_id":null,
|
| 542 |
+
"platform":1,
|
| 543 |
+
"name":"Little Nightmares",
|
| 544 |
+
"available_now":true,
|
| 545 |
+
"source_link":null,
|
| 546 |
+
"price":0,
|
| 547 |
+
"cover":"https://images.igdb.com/igdb/image/upload/t_original/co4yhk.jpg",
|
| 548 |
+
"official_website":null,
|
| 549 |
+
"release_date":null,
|
| 550 |
+
"rating":null,
|
| 551 |
+
"type":"gift",
|
| 552 |
+
"description":null,
|
| 553 |
+
"description_ES":null,
|
| 554 |
+
"igdb":null,
|
| 555 |
+
"need_populate":false,
|
| 556 |
+
"original_name":"Little Nightmares",
|
| 557 |
+
"screenshots":null,
|
| 558 |
+
"youtube_video_id":null,
|
| 559 |
+
"platforms":{
|
| 560 |
+
"id":"playstation",
|
| 561 |
+
"name":"Playstation Plus",
|
| 562 |
+
"link":"https://www.playstation.com/en-us/ps-plus/whats-new/"
|
| 563 |
+
}
|
| 564 |
+
},
|
| 565 |
+
{
|
| 566 |
+
"gid":662,
|
| 567 |
+
"created_at":"2022-08-14T14:18:17.881284+02:00",
|
| 568 |
+
"updated_at":"2022-08-14T14:18:17.881284+02:00",
|
| 569 |
+
"public_id":null,
|
| 570 |
+
"platform":5,
|
| 571 |
+
"name":"Family Mysteries: Poisonous Promises",
|
| 572 |
+
"available_now":true,
|
| 573 |
+
"source_link":null,
|
| 574 |
+
"price":0,
|
| 575 |
+
"cover":"https://images.igdb.com/igdb/image/upload/t_original/co21r0.jpg",
|
| 576 |
+
"official_website":null,
|
| 577 |
+
"release_date":null,
|
| 578 |
+
"rating":null,
|
| 579 |
+
"type":"gift",
|
| 580 |
+
"description":null,
|
| 581 |
+
"description_ES":null,
|
| 582 |
+
"igdb":null,
|
| 583 |
+
"need_populate":false,
|
| 584 |
+
"original_name":"Family Mysteries: Poisonous Promises",
|
| 585 |
+
"screenshots":null,
|
| 586 |
+
"youtube_video_id":null,
|
| 587 |
+
"platforms":{
|
| 588 |
+
"id":"primeGaming",
|
| 589 |
+
"name":"Amazon Prime Gaming",
|
| 590 |
+
"link":"https://gaming.amazon.com/home"
|
| 591 |
+
}
|
| 592 |
+
},
|
| 593 |
+
{
|
| 594 |
+
"gid":663,
|
| 595 |
+
"created_at":"2022-08-14T14:18:17.881284+02:00",
|
| 596 |
+
"updated_at":"2022-08-14T14:18:17.881284+02:00",
|
| 597 |
+
"public_id":null,
|
| 598 |
+
"platform":5,
|
| 599 |
+
"name":"Beasts of Maravilla Island",
|
| 600 |
+
"available_now":true,
|
| 601 |
+
"source_link":null,
|
| 602 |
+
"price":0,
|
| 603 |
+
"cover":"https://images.igdb.com/igdb/image/upload/t_original/co2mq9.jpg",
|
| 604 |
+
"official_website":null,
|
| 605 |
+
"release_date":null,
|
| 606 |
+
"rating":null,
|
| 607 |
+
"type":"gift",
|
| 608 |
+
"description":null,
|
| 609 |
+
"description_ES":null,
|
| 610 |
+
"igdb":null,
|
| 611 |
+
"need_populate":false,
|
| 612 |
+
"original_name":"Beasts of Maravilla Island",
|
| 613 |
+
"screenshots":null,
|
| 614 |
+
"youtube_video_id":null,
|
| 615 |
+
"platforms":{
|
| 616 |
+
"id":"primeGaming",
|
| 617 |
+
"name":"Amazon Prime Gaming",
|
| 618 |
+
"link":"https://gaming.amazon.com/home"
|
| 619 |
+
}
|
| 620 |
+
},
|
| 621 |
+
{
|
| 622 |
+
"gid":664,
|
| 623 |
+
"created_at":"2022-08-14T14:18:17.881284+02:00",
|
| 624 |
+
"updated_at":"2022-08-14T14:18:17.881284+02:00",
|
| 625 |
+
"public_id":null,
|
| 626 |
+
"platform":5,
|
| 627 |
+
"name":"Recompile",
|
| 628 |
+
"available_now":true,
|
| 629 |
+
"source_link":null,
|
| 630 |
+
"price":0,
|
| 631 |
+
"cover":"https://images.igdb.com/igdb/image/upload/t_original/co1pwf.jpg",
|
| 632 |
+
"official_website":null,
|
| 633 |
+
"release_date":null,
|
| 634 |
+
"rating":null,
|
| 635 |
+
"type":"gift",
|
| 636 |
+
"description":null,
|
| 637 |
+
"description_ES":null,
|
| 638 |
+
"igdb":null,
|
| 639 |
+
"need_populate":false,
|
| 640 |
+
"original_name":"Recompile",
|
| 641 |
+
"screenshots":null,
|
| 642 |
+
"youtube_video_id":null,
|
| 643 |
+
"platforms":{
|
| 644 |
+
"id":"primeGaming",
|
| 645 |
+
"name":"Amazon Prime Gaming",
|
| 646 |
+
"link":"https://gaming.amazon.com/home"
|
| 647 |
+
}
|
| 648 |
+
},
|
| 649 |
+
{
|
| 650 |
+
"gid":644,
|
| 651 |
+
"created_at":"2022-08-03T14:21:34.1138+02:00",
|
| 652 |
+
"updated_at":"2022-08-03T14:21:34.1138+02:00",
|
| 653 |
+
"public_id":null,
|
| 654 |
+
"platform":1,
|
| 655 |
+
"name":"Yakuza: Like a Dragon",
|
| 656 |
+
"available_now":true,
|
| 657 |
+
"source_link":null,
|
| 658 |
+
"price":0,
|
| 659 |
+
"cover":"https://images.igdb.com/igdb/image/upload/t_original/co3k6t.jpg",
|
| 660 |
+
"official_website":null,
|
| 661 |
+
"release_date":null,
|
| 662 |
+
"rating":null,
|
| 663 |
+
"type":"gift",
|
| 664 |
+
"description":null,
|
| 665 |
+
"description_ES":null,
|
| 666 |
+
"igdb":null,
|
| 667 |
+
"need_populate":false,
|
| 668 |
+
"original_name":"Yakuza: Like a Dragon",
|
| 669 |
+
"screenshots":null,
|
| 670 |
+
"youtube_video_id":null,
|
| 671 |
+
"platforms":{
|
| 672 |
+
"id":"playstation",
|
| 673 |
+
"name":"Playstation Plus",
|
| 674 |
+
"link":"https://www.playstation.com/en-us/ps-plus/whats-new/"
|
| 675 |
+
}
|
| 676 |
+
}
|
| 677 |
+
],
|
| 678 |
+
"error":null
|
| 679 |
+
},
|
| 680 |
+
"headers":{
|
| 681 |
+
"access-control-allow-credentials":"true",
|
| 682 |
+
"access-control-allow-origin":"*",
|
| 683 |
+
"age":"0",
|
| 684 |
+
"cache-control":"public, max-age=0, must-revalidate",
|
| 685 |
+
"content-length":"8241",
|
| 686 |
+
"content-type":"application/json; charset=utf-8",
|
| 687 |
+
"date":"Thu, 18 Aug 2022 12:41:16 GMT",
|
| 688 |
+
"etag":"\"2031-5NZfVssA1hwLKdm/p2Y+QQsNFsU\"",
|
| 689 |
+
"server":"RapidAPI-1.2.8",
|
| 690 |
+
"strict-transport-security":"max-age=63072000; includeSubDomains; preload",
|
| 691 |
+
"x-matched-path":"/api/games/gifts/available",
|
| 692 |
+
"x-rapidapi-region":"AWS - eu-central-1",
|
| 693 |
+
"x-rapidapi-version":"1.2.8",
|
| 694 |
+
"x-vercel-cache":"MISS",
|
| 695 |
+
"x-vercel-id":"fra1::iad1::hr7zq-1660826475192-bc947eef7970"
|
| 696 |
+
},
|
| 697 |
+
"schema":{}
|
| 698 |
+
}
|
| 699 |
+
]
|
| 700 |
+
}
|
toolbench/toolenv/tools/Gaming/free_games_this_month/api.py
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import requests
|
| 2 |
+
import json
|
| 3 |
+
from datetime import date, datetime, timedelta
|
| 4 |
+
import os
|
| 5 |
+
|
| 6 |
+
from typing import Optional, Dict, Union, List
|
| 7 |
+
|
| 8 |
+
|
| 9 |
+
def get_recent_gift_games(period: str='7d', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 10 |
+
"""
|
| 11 |
+
"It returns the same of `available` endpoint but it will trim a period date. This is useful, for example, to create alerts and notifications with ONLY recent data."
|
| 12 |
+
period: \\\"1d\\\" | \\\"3d\\\" | \\\"7d\\\" | \\\"15d\\\" | \\\"30d\\\"
|
| 13 |
+
Default: \\\"7d\\\"
|
| 14 |
+
|
| 15 |
+
"""
|
| 16 |
+
url = f"https://free-games-this-month.p.rapidapi.com/games/gifts/recent"
|
| 17 |
+
querystring = {}
|
| 18 |
+
if period:
|
| 19 |
+
querystring['period'] = period
|
| 20 |
+
|
| 21 |
+
headers = {
|
| 22 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 23 |
+
"X-RapidAPI-Host": "free-games-this-month.p.rapidapi.com"
|
| 24 |
+
}
|
| 25 |
+
|
| 26 |
+
|
| 27 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 28 |
+
try:
|
| 29 |
+
observation = response.json()
|
| 30 |
+
except:
|
| 31 |
+
observation = response.text
|
| 32 |
+
return observation
|
| 33 |
+
|
| 34 |
+
def get_available_gift_games(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 35 |
+
"""
|
| 36 |
+
"Full list of current available free games."
|
| 37 |
+
|
| 38 |
+
"""
|
| 39 |
+
url = f"https://free-games-this-month.p.rapidapi.com/games/gifts/available"
|
| 40 |
+
querystring = {}
|
| 41 |
+
|
| 42 |
+
headers = {
|
| 43 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 44 |
+
"X-RapidAPI-Host": "free-games-this-month.p.rapidapi.com"
|
| 45 |
+
}
|
| 46 |
+
|
| 47 |
+
|
| 48 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 49 |
+
try:
|
| 50 |
+
observation = response.json()
|
| 51 |
+
except:
|
| 52 |
+
observation = response.text
|
| 53 |
+
return observation
|
| 54 |
+
|
toolbench/toolenv/tools/Gaming/free_to_play_games_database.json
ADDED
|
@@ -0,0 +1,169 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"tool_name":"Free-to-Play Games Database",
|
| 3 |
+
"tool_description":"Free-to-play games database powered by FreeToGame.com!",
|
| 4 |
+
"title":"Free-to-Play Games Database",
|
| 5 |
+
"pricing":"FREE",
|
| 6 |
+
"score":{
|
| 7 |
+
"avgServiceLevel":99,
|
| 8 |
+
"avgLatency":1147,
|
| 9 |
+
"avgSuccessRate":96,
|
| 10 |
+
"popularityScore":9.9,
|
| 11 |
+
"__typename":"Score"
|
| 12 |
+
},
|
| 13 |
+
"home_url":"https://rapidapi.com/digiwalls/api/free-to-play-games-database/",
|
| 14 |
+
"host":"free-to-play-games-database.p.rapidapi.com",
|
| 15 |
+
"api_list":[
|
| 16 |
+
{
|
| 17 |
+
"name":"Filter games by multiple tags",
|
| 18 |
+
"url":"https://free-to-play-games-database.p.rapidapi.com/api/filter",
|
| 19 |
+
"description":"Filter Games by multiple tags and platform for personalized results. Optionally you can also use the \"platform\" and \"sort\" parameters.",
|
| 20 |
+
"method":"GET",
|
| 21 |
+
"required_parameters":[
|
| 22 |
+
{
|
| 23 |
+
"name":"tag",
|
| 24 |
+
"type":"STRING",
|
| 25 |
+
"description":"",
|
| 26 |
+
"default":"3d.mmorpg.fantasy.pvp"
|
| 27 |
+
}
|
| 28 |
+
],
|
| 29 |
+
"optional_parameters":[
|
| 30 |
+
{
|
| 31 |
+
"name":"platform",
|
| 32 |
+
"type":"STRING",
|
| 33 |
+
"description":"",
|
| 34 |
+
"default":"pc"
|
| 35 |
+
}
|
| 36 |
+
],
|
| 37 |
+
"code":"import requests\n\nurl = \"https://free-to-play-games-database.p.rapidapi.com/api/filter\"\nquerystring = {\"platform\": platform, \"tag\": tag}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"free-to-play-games-database.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n",
|
| 38 |
+
"statuscode":111,
|
| 39 |
+
"body":"",
|
| 40 |
+
"headers":"",
|
| 41 |
+
"schema":""
|
| 42 |
+
},
|
| 43 |
+
{
|
| 44 |
+
"name":"Games by platform",
|
| 45 |
+
"url":"https://free-to-play-games-database.p.rapidapi.com/api/games?",
|
| 46 |
+
"description":"Insert platform, eg: pc, browser.",
|
| 47 |
+
"method":"GET",
|
| 48 |
+
"required_parameters":[
|
| 49 |
+
{
|
| 50 |
+
"name":"platform",
|
| 51 |
+
"type":"STRING",
|
| 52 |
+
"description":"",
|
| 53 |
+
"default":"pc"
|
| 54 |
+
}
|
| 55 |
+
],
|
| 56 |
+
"optional_parameters":[],
|
| 57 |
+
"code":"import requests\n\nurl = \"https://free-to-play-games-database.p.rapidapi.com/api/games?\"\nquerystring = {\"platform\": platform}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"free-to-play-games-database.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n",
|
| 58 |
+
"statuscode":111,
|
| 59 |
+
"body":"",
|
| 60 |
+
"headers":"",
|
| 61 |
+
"schema":""
|
| 62 |
+
},
|
| 63 |
+
{
|
| 64 |
+
"name":"Games by category or tag",
|
| 65 |
+
"url":"https://free-to-play-games-database.p.rapidapi.com/api/games?",
|
| 66 |
+
"description":"Insert game category or tag, eg: mmorpg, shooter, pvp, mmofps and more.",
|
| 67 |
+
"method":"GET",
|
| 68 |
+
"required_parameters":[
|
| 69 |
+
{
|
| 70 |
+
"name":"category",
|
| 71 |
+
"type":"STRING",
|
| 72 |
+
"description":"",
|
| 73 |
+
"default":"shooter"
|
| 74 |
+
}
|
| 75 |
+
],
|
| 76 |
+
"optional_parameters":[],
|
| 77 |
+
"code":"import requests\n\nurl = \"https://free-to-play-games-database.p.rapidapi.com/api/games?\"\nquerystring = {\"category\": category}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"free-to-play-games-database.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n",
|
| 78 |
+
"statuscode":111,
|
| 79 |
+
"body":"",
|
| 80 |
+
"headers":"",
|
| 81 |
+
"schema":""
|
| 82 |
+
},
|
| 83 |
+
{
|
| 84 |
+
"name":"Games by platform & category & sorted",
|
| 85 |
+
"url":"https://free-to-play-games-database.p.rapidapi.com/api/games?",
|
| 86 |
+
"description":"Get games list using multiple parameters",
|
| 87 |
+
"method":"GET",
|
| 88 |
+
"required_parameters":[],
|
| 89 |
+
"optional_parameters":[
|
| 90 |
+
{
|
| 91 |
+
"name":"category",
|
| 92 |
+
"type":"STRING",
|
| 93 |
+
"description":"",
|
| 94 |
+
"default":"mmorpg"
|
| 95 |
+
},
|
| 96 |
+
{
|
| 97 |
+
"name":"platform",
|
| 98 |
+
"type":"STRING",
|
| 99 |
+
"description":"",
|
| 100 |
+
"default":"browser"
|
| 101 |
+
},
|
| 102 |
+
{
|
| 103 |
+
"name":"sort-by",
|
| 104 |
+
"type":"STRING",
|
| 105 |
+
"description":"",
|
| 106 |
+
"default":"release-date"
|
| 107 |
+
}
|
| 108 |
+
],
|
| 109 |
+
"code":"import requests\n\nurl = \"https://free-to-play-games-database.p.rapidapi.com/api/games?\"\nquerystring = {\"category\": category, \"platform\": platform, \"sort-by\": sort_by}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"free-to-play-games-database.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n",
|
| 110 |
+
"statuscode":111,
|
| 111 |
+
"body":"",
|
| 112 |
+
"headers":"",
|
| 113 |
+
"schema":""
|
| 114 |
+
},
|
| 115 |
+
{
|
| 116 |
+
"name":"Return details from a specific game",
|
| 117 |
+
"url":"https://free-to-play-games-database.p.rapidapi.com/api/game",
|
| 118 |
+
"description":"Insert game id",
|
| 119 |
+
"method":"GET",
|
| 120 |
+
"required_parameters":[
|
| 121 |
+
{
|
| 122 |
+
"name":"id",
|
| 123 |
+
"type":"STRING",
|
| 124 |
+
"description":"",
|
| 125 |
+
"default":"452"
|
| 126 |
+
}
|
| 127 |
+
],
|
| 128 |
+
"optional_parameters":[],
|
| 129 |
+
"code":"import requests\n\nurl = \"https://free-to-play-games-database.p.rapidapi.com/api/game\"\nquerystring = {\"id\": id}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"free-to-play-games-database.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n",
|
| 130 |
+
"statuscode":111,
|
| 131 |
+
"body":"",
|
| 132 |
+
"headers":"",
|
| 133 |
+
"schema":""
|
| 134 |
+
},
|
| 135 |
+
{
|
| 136 |
+
"name":"Sort games",
|
| 137 |
+
"url":"https://free-to-play-games-database.p.rapidapi.com/api/games?",
|
| 138 |
+
"description":"Insert sort by, eg: release-date, alphabetical or relevance",
|
| 139 |
+
"method":"GET",
|
| 140 |
+
"required_parameters":[
|
| 141 |
+
{
|
| 142 |
+
"name":"sort-by",
|
| 143 |
+
"type":"STRING",
|
| 144 |
+
"description":"",
|
| 145 |
+
"default":"alphabetical"
|
| 146 |
+
}
|
| 147 |
+
],
|
| 148 |
+
"optional_parameters":[],
|
| 149 |
+
"code":"import requests\n\nurl = \"https://free-to-play-games-database.p.rapidapi.com/api/games?\"\nquerystring = {\"sort-by\": sort_by}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"free-to-play-games-database.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n",
|
| 150 |
+
"statuscode":111,
|
| 151 |
+
"body":"",
|
| 152 |
+
"headers":"",
|
| 153 |
+
"schema":""
|
| 154 |
+
},
|
| 155 |
+
{
|
| 156 |
+
"name":"Games list",
|
| 157 |
+
"url":"https://free-to-play-games-database.p.rapidapi.com/api/games",
|
| 158 |
+
"description":"Get all games!",
|
| 159 |
+
"method":"GET",
|
| 160 |
+
"required_parameters":[],
|
| 161 |
+
"optional_parameters":[],
|
| 162 |
+
"code":"import requests\n\nurl = \"https://free-to-play-games-database.p.rapidapi.com/api/games\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"free-to-play-games-database.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n",
|
| 163 |
+
"statuscode":111,
|
| 164 |
+
"body":"",
|
| 165 |
+
"headers":"",
|
| 166 |
+
"schema":""
|
| 167 |
+
}
|
| 168 |
+
]
|
| 169 |
+
}
|
toolbench/toolenv/tools/Gaming/free_to_play_games_database/api.py
ADDED
|
@@ -0,0 +1,163 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import requests
|
| 2 |
+
import json
|
| 3 |
+
from datetime import date, datetime, timedelta
|
| 4 |
+
import os
|
| 5 |
+
|
| 6 |
+
from typing import Optional, Dict, Union, List
|
| 7 |
+
|
| 8 |
+
|
| 9 |
+
def filter_games_by_multiple_tags(tag: str, platform: str='pc', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 10 |
+
"""
|
| 11 |
+
"Filter Games by multiple tags and platform for personalized results. Optionally you can also use the "platform" and "sort" parameters."
|
| 12 |
+
|
| 13 |
+
"""
|
| 14 |
+
url = f"https://free-to-play-games-database.p.rapidapi.com/api/filter"
|
| 15 |
+
querystring = {'tag': tag, }
|
| 16 |
+
if platform:
|
| 17 |
+
querystring['platform'] = platform
|
| 18 |
+
|
| 19 |
+
headers = {
|
| 20 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 21 |
+
"X-RapidAPI-Host": "free-to-play-games-database.p.rapidapi.com"
|
| 22 |
+
}
|
| 23 |
+
|
| 24 |
+
|
| 25 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 26 |
+
try:
|
| 27 |
+
observation = response.json()
|
| 28 |
+
except:
|
| 29 |
+
observation = response.text
|
| 30 |
+
return observation
|
| 31 |
+
|
| 32 |
+
def games_by_platform(platform: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 33 |
+
"""
|
| 34 |
+
"Insert platform, eg: pc, browser."
|
| 35 |
+
|
| 36 |
+
"""
|
| 37 |
+
url = f"https://free-to-play-games-database.p.rapidapi.com/api/games?"
|
| 38 |
+
querystring = {'platform': platform, }
|
| 39 |
+
|
| 40 |
+
headers = {
|
| 41 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 42 |
+
"X-RapidAPI-Host": "free-to-play-games-database.p.rapidapi.com"
|
| 43 |
+
}
|
| 44 |
+
|
| 45 |
+
|
| 46 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 47 |
+
try:
|
| 48 |
+
observation = response.json()
|
| 49 |
+
except:
|
| 50 |
+
observation = response.text
|
| 51 |
+
return observation
|
| 52 |
+
|
| 53 |
+
def games_by_category_or_tag(category: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 54 |
+
"""
|
| 55 |
+
"Insert game category or tag, eg: mmorpg, shooter, pvp, mmofps and more."
|
| 56 |
+
|
| 57 |
+
"""
|
| 58 |
+
url = f"https://free-to-play-games-database.p.rapidapi.com/api/games?"
|
| 59 |
+
querystring = {'category': category, }
|
| 60 |
+
|
| 61 |
+
headers = {
|
| 62 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 63 |
+
"X-RapidAPI-Host": "free-to-play-games-database.p.rapidapi.com"
|
| 64 |
+
}
|
| 65 |
+
|
| 66 |
+
|
| 67 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 68 |
+
try:
|
| 69 |
+
observation = response.json()
|
| 70 |
+
except:
|
| 71 |
+
observation = response.text
|
| 72 |
+
return observation
|
| 73 |
+
|
| 74 |
+
def games_by_platform_category_sorted(category: str='mmorpg', platform: str='browser', sort_by: str='release-date', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 75 |
+
"""
|
| 76 |
+
"Get games list using multiple parameters"
|
| 77 |
+
|
| 78 |
+
"""
|
| 79 |
+
url = f"https://free-to-play-games-database.p.rapidapi.com/api/games?"
|
| 80 |
+
querystring = {}
|
| 81 |
+
if category:
|
| 82 |
+
querystring['category'] = category
|
| 83 |
+
if platform:
|
| 84 |
+
querystring['platform'] = platform
|
| 85 |
+
if sort_by:
|
| 86 |
+
querystring['sort-by'] = sort_by
|
| 87 |
+
|
| 88 |
+
headers = {
|
| 89 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 90 |
+
"X-RapidAPI-Host": "free-to-play-games-database.p.rapidapi.com"
|
| 91 |
+
}
|
| 92 |
+
|
| 93 |
+
|
| 94 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 95 |
+
try:
|
| 96 |
+
observation = response.json()
|
| 97 |
+
except:
|
| 98 |
+
observation = response.text
|
| 99 |
+
return observation
|
| 100 |
+
|
| 101 |
+
def return_details_from_a_specific_game(is_id: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 102 |
+
"""
|
| 103 |
+
"Insert game id"
|
| 104 |
+
|
| 105 |
+
"""
|
| 106 |
+
url = f"https://free-to-play-games-database.p.rapidapi.com/api/game"
|
| 107 |
+
querystring = {'id': is_id, }
|
| 108 |
+
|
| 109 |
+
headers = {
|
| 110 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 111 |
+
"X-RapidAPI-Host": "free-to-play-games-database.p.rapidapi.com"
|
| 112 |
+
}
|
| 113 |
+
|
| 114 |
+
|
| 115 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 116 |
+
try:
|
| 117 |
+
observation = response.json()
|
| 118 |
+
except:
|
| 119 |
+
observation = response.text
|
| 120 |
+
return observation
|
| 121 |
+
|
| 122 |
+
def sort_games(sort_by: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 123 |
+
"""
|
| 124 |
+
"Insert sort by, eg: release-date, alphabetical or relevance"
|
| 125 |
+
|
| 126 |
+
"""
|
| 127 |
+
url = f"https://free-to-play-games-database.p.rapidapi.com/api/games?"
|
| 128 |
+
querystring = {'sort-by': sort_by, }
|
| 129 |
+
|
| 130 |
+
headers = {
|
| 131 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 132 |
+
"X-RapidAPI-Host": "free-to-play-games-database.p.rapidapi.com"
|
| 133 |
+
}
|
| 134 |
+
|
| 135 |
+
|
| 136 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 137 |
+
try:
|
| 138 |
+
observation = response.json()
|
| 139 |
+
except:
|
| 140 |
+
observation = response.text
|
| 141 |
+
return observation
|
| 142 |
+
|
| 143 |
+
def games_list(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 144 |
+
"""
|
| 145 |
+
"Get all games!"
|
| 146 |
+
|
| 147 |
+
"""
|
| 148 |
+
url = f"https://free-to-play-games-database.p.rapidapi.com/api/games"
|
| 149 |
+
querystring = {}
|
| 150 |
+
|
| 151 |
+
headers = {
|
| 152 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 153 |
+
"X-RapidAPI-Host": "free-to-play-games-database.p.rapidapi.com"
|
| 154 |
+
}
|
| 155 |
+
|
| 156 |
+
|
| 157 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 158 |
+
try:
|
| 159 |
+
observation = response.json()
|
| 160 |
+
except:
|
| 161 |
+
observation = response.text
|
| 162 |
+
return observation
|
| 163 |
+
|
toolbench/toolenv/tools/Gaming/free_vbucks_generator_how_to_get_free_vbucks.json
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"tool_name":"Free Vbucks Generator - How To Get Free vbucks",
|
| 3 |
+
"tool_description":"Free Vbucks Generator is the best way to generate unlimited free fortnite vbucks, It is the oldest and 100% working method for getting free Vbucks. By using this generator you can generate 4000+ free VBUCKS 👉👉👉 https://sptool.xyz/ How to Generate Free Fortnite vbucks 1. Go above the given link 2.type your username.3. Seletect the platform 4. Now select how much Vbucks you want like 400 to 10000+ 3. Now wait for 5 minutes to complete generate prosses and complete and survey free vbucks gener...",
|
| 4 |
+
"title":"Free Vbucks Generator - How To Get Free vbucks",
|
| 5 |
+
"pricing":"FREE",
|
| 6 |
+
"score":{
|
| 7 |
+
"avgServiceLevel":100,
|
| 8 |
+
"avgLatency":329,
|
| 9 |
+
"avgSuccessRate":100,
|
| 10 |
+
"popularityScore":8.7,
|
| 11 |
+
"__typename":"Score"
|
| 12 |
+
},
|
| 13 |
+
"home_url":"https://rapidapi.com/ohmydeal2022/api/free-vbucks-generator-how-to-get-free-vbucks/",
|
| 14 |
+
"host":"free-vbucks-generator-how-to-get-free-vbucks.p.rapidapi.com",
|
| 15 |
+
"api_list":[
|
| 16 |
+
{
|
| 17 |
+
"name":"Free Vbucks Generator - How To Get Free Vbucks",
|
| 18 |
+
"url":"https://free-vbucks-generator-how-to-get-free-vbucks.p.rapidapi.com/",
|
| 19 |
+
"description":"Free Vbucks Generator is the best way to generate unlimited free fortnite vbucks, It is the oldest and 100% working method for getting free Vbucks. By using this generator you can generate 4000+ free VBUCKS 👉👉👉 https://sptool.xyz/ How to Generate Free Fortnite vbucks 1. Go above the given link 2.type your username.3. Seletect the platform 4. Now select how much Vbucks you want like 400 to 10000+ 3. Now wait for 5 minutes to complete generate prosses and complete and survey free vbucks generator free fortnite vbucks hack free vbucks codes free vbucks no human verification free vbucks website free vbucks app free fortnite vbucks for kids free vbucks codes 2022",
|
| 20 |
+
"method":"GET",
|
| 21 |
+
"required_parameters":[],
|
| 22 |
+
"optional_parameters":[],
|
| 23 |
+
"code":"import requests\n\nurl = \"https://free-vbucks-generator-how-to-get-free-vbucks.p.rapidapi.com/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"free-vbucks-generator-how-to-get-free-vbucks.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n",
|
| 24 |
+
"statuscode":111,
|
| 25 |
+
"body":"",
|
| 26 |
+
"headers":"",
|
| 27 |
+
"schema":""
|
| 28 |
+
}
|
| 29 |
+
]
|
| 30 |
+
}
|
toolbench/toolenv/tools/Gaming/free_vbucks_generator_how_to_get_free_vbucks/api.py
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import requests
|
| 2 |
+
import json
|
| 3 |
+
from datetime import date, datetime, timedelta
|
| 4 |
+
import os
|
| 5 |
+
|
| 6 |
+
from typing import Optional, Dict, Union, List
|
| 7 |
+
|
| 8 |
+
|
| 9 |
+
def free_vbucks_generator_how_to_get_free_vbucks(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 10 |
+
"""
|
| 11 |
+
"Free Vbucks Generator is the best way to generate unlimited free fortnite vbucks, It is the oldest and 100% working method for getting free Vbucks. By using this generator you can generate 4000+ free VBUCKS 👉👉👉 https://sptool.xyz/ How to Generate Free Fortnite vbucks 1. Go above the given link 2.type your username.3. Seletect the platform 4. Now select how much Vbucks you want like 400 to 10000+ 3. Now wait for 5 minutes to complete generate prosses and complete and survey free vbucks generator free fortnite vbucks hack free vbucks codes free vbucks no human verification free vbucks website free vbucks app free fortnite vbucks for kids free vbucks codes 2022"
|
| 12 |
+
|
| 13 |
+
"""
|
| 14 |
+
url = f"https://free-vbucks-generator-how-to-get-free-vbucks.p.rapidapi.com/"
|
| 15 |
+
querystring = {}
|
| 16 |
+
|
| 17 |
+
headers = {
|
| 18 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 19 |
+
"X-RapidAPI-Host": "free-vbucks-generator-how-to-get-free-vbucks.p.rapidapi.com"
|
| 20 |
+
}
|
| 21 |
+
|
| 22 |
+
|
| 23 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 24 |
+
try:
|
| 25 |
+
observation = response.json()
|
| 26 |
+
except:
|
| 27 |
+
observation = response.text
|
| 28 |
+
return observation
|
| 29 |
+
|
toolbench/toolenv/tools/Gaming/freemcserver.json
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"product_id": "api_bad09393-8c2c-4ce4-8016-4cc97ae85159",
|
| 3 |
+
"tool_description": "API to interact with FreeMcServer.net",
|
| 4 |
+
"home_url": "https://rapidapi.com/nfacha/api/freemcserver/",
|
| 5 |
+
"name": "FreeMcServer",
|
| 6 |
+
"title": "FreeMcServer",
|
| 7 |
+
"pricing": "FREE",
|
| 8 |
+
"tool_name": "FreeMcServer",
|
| 9 |
+
"score": {
|
| 10 |
+
"avgServiceLevel": 100,
|
| 11 |
+
"avgLatency": 718,
|
| 12 |
+
"avgSuccessRate": 69,
|
| 13 |
+
"popularityScore": 8.7,
|
| 14 |
+
"__typename": "Score"
|
| 15 |
+
},
|
| 16 |
+
"host": "freemcserver.p.rapidapi.com",
|
| 17 |
+
"api_list": [
|
| 18 |
+
{
|
| 19 |
+
"name": "Mark a platform alert as read",
|
| 20 |
+
"url": "https://freemcserver.p.rapidapi.com/v4/alert/0/read",
|
| 21 |
+
"description": "Marks a platform alert as required",
|
| 22 |
+
"method": "POST",
|
| 23 |
+
"required_parameters": [
|
| 24 |
+
{
|
| 25 |
+
"name": "alertId",
|
| 26 |
+
"type": "NUMBER",
|
| 27 |
+
"description": "",
|
| 28 |
+
"default": "0"
|
| 29 |
+
}
|
| 30 |
+
],
|
| 31 |
+
"optional_parameters": [],
|
| 32 |
+
"code": "import requests\n\nurl = \"https://freemcserver.p.rapidapi.com/v4/alert/0/read\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"freemcserver.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
|
| 33 |
+
"convert_code": "import requests\n\nurl = \"https://freemcserver.p.rapidapi.com/v4/alert/{alertid}/read\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"freemcserver.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
|
| 34 |
+
"test_endpoint": ""
|
| 35 |
+
},
|
| 36 |
+
{
|
| 37 |
+
"name": "Login",
|
| 38 |
+
"url": "https://freemcserver.p.rapidapi.com/v4/user/login",
|
| 39 |
+
"description": "Exchanges a user/password combination for an access token for further API usage\n\nIf your account is verified or you are a donator use USER_ELEVATED to have access to more features, if you are neither of them use the USER scope",
|
| 40 |
+
"method": "POST",
|
| 41 |
+
"required_parameters": [],
|
| 42 |
+
"optional_parameters": [],
|
| 43 |
+
"code": "import requests\n\nurl = \"https://freemcserver.p.rapidapi.com/v4/user/login\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"freemcserver.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
|
| 44 |
+
"convert_code": "import requests\n\nurl = \"https://freemcserver.p.rapidapi.com/v4/user/login\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"freemcserver.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
|
| 45 |
+
"test_endpoint": "",
|
| 46 |
+
"statuscode": 200,
|
| 47 |
+
"schema": {}
|
| 48 |
+
}
|
| 49 |
+
]
|
| 50 |
+
}
|
toolbench/toolenv/tools/Gaming/freemcserver/api.py
ADDED
|
@@ -0,0 +1,244 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import requests
|
| 2 |
+
import json
|
| 3 |
+
from datetime import date, datetime, timedelta
|
| 4 |
+
import os
|
| 5 |
+
|
| 6 |
+
from typing import Optional, Dict, Union, List
|
| 7 |
+
|
| 8 |
+
|
| 9 |
+
def server_telemetry_statistics(serverid: str, max: str, min: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 10 |
+
"""
|
| 11 |
+
"Returns assistant telemetry metrics from a server within a specific timeframe.
|
| 12 |
+
|
| 13 |
+
The min and max params must be base64 encoded datetime strings in the following format: 2021-08-01 01:00, the date range cannot be bigger than 7 days
|
| 14 |
+
|
| 15 |
+
**Requires the *USER_ELEVATED* scope to be used when obtaining the key used on this request (thus, you must either be a Donator of a Verified User on the website)**"
|
| 16 |
+
|
| 17 |
+
"""
|
| 18 |
+
url = f"https://freemcserver.p.rapidapi.com/v4/server/{serverid}/stats"
|
| 19 |
+
querystring = {'max': max, 'min': min, }
|
| 20 |
+
|
| 21 |
+
headers = {
|
| 22 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 23 |
+
"X-RapidAPI-Host": "freemcserver.p.rapidapi.com"
|
| 24 |
+
}
|
| 25 |
+
|
| 26 |
+
|
| 27 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 28 |
+
try:
|
| 29 |
+
observation = response.json()
|
| 30 |
+
except:
|
| 31 |
+
observation = response.text
|
| 32 |
+
return observation
|
| 33 |
+
|
| 34 |
+
def availability(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 35 |
+
"""
|
| 36 |
+
"Returns space availability
|
| 37 |
+
**Requires the *USER_ELEVATED* scope to be used when obtaining the key used on this request (thus, you must either be a Donator of a Verified User on the website)**"
|
| 38 |
+
|
| 39 |
+
"""
|
| 40 |
+
url = f"https://freemcserver.p.rapidapi.com/v4/node/availability"
|
| 41 |
+
querystring = {}
|
| 42 |
+
|
| 43 |
+
headers = {
|
| 44 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 45 |
+
"X-RapidAPI-Host": "freemcserver.p.rapidapi.com"
|
| 46 |
+
}
|
| 47 |
+
|
| 48 |
+
|
| 49 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 50 |
+
try:
|
| 51 |
+
observation = response.json()
|
| 52 |
+
except:
|
| 53 |
+
observation = response.text
|
| 54 |
+
return observation
|
| 55 |
+
|
| 56 |
+
def server_ping(serverid: int, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 57 |
+
"""
|
| 58 |
+
"Returns information about online players, MOTD etc, if available"
|
| 59 |
+
|
| 60 |
+
"""
|
| 61 |
+
url = f"https://freemcserver.p.rapidapi.com/v4/server/{serverid}/ping"
|
| 62 |
+
querystring = {}
|
| 63 |
+
|
| 64 |
+
headers = {
|
| 65 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 66 |
+
"X-RapidAPI-Host": "freemcserver.p.rapidapi.com"
|
| 67 |
+
}
|
| 68 |
+
|
| 69 |
+
|
| 70 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 71 |
+
try:
|
| 72 |
+
observation = response.json()
|
| 73 |
+
except:
|
| 74 |
+
observation = response.text
|
| 75 |
+
return observation
|
| 76 |
+
|
| 77 |
+
def list_variant_version_tags(variantid: int, versionid: int, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 78 |
+
"""
|
| 79 |
+
"Lists tags (java versions) for a specific variant version"
|
| 80 |
+
|
| 81 |
+
"""
|
| 82 |
+
url = f"https://freemcserver.p.rapidapi.com/v4/variant/{variantid}/{versionid}"
|
| 83 |
+
querystring = {}
|
| 84 |
+
|
| 85 |
+
headers = {
|
| 86 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 87 |
+
"X-RapidAPI-Host": "freemcserver.p.rapidapi.com"
|
| 88 |
+
}
|
| 89 |
+
|
| 90 |
+
|
| 91 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 92 |
+
try:
|
| 93 |
+
observation = response.json()
|
| 94 |
+
except:
|
| 95 |
+
observation = response.text
|
| 96 |
+
return observation
|
| 97 |
+
|
| 98 |
+
def lists_versions_for_a_specific_variant(variantid: int, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 99 |
+
"""
|
| 100 |
+
"Lists available server variants"
|
| 101 |
+
|
| 102 |
+
"""
|
| 103 |
+
url = f"https://freemcserver.p.rapidapi.com/v4/variant/{variantid}"
|
| 104 |
+
querystring = {}
|
| 105 |
+
|
| 106 |
+
headers = {
|
| 107 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 108 |
+
"X-RapidAPI-Host": "freemcserver.p.rapidapi.com"
|
| 109 |
+
}
|
| 110 |
+
|
| 111 |
+
|
| 112 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 113 |
+
try:
|
| 114 |
+
observation = response.json()
|
| 115 |
+
except:
|
| 116 |
+
observation = response.text
|
| 117 |
+
return observation
|
| 118 |
+
|
| 119 |
+
def list_variants(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 120 |
+
"""
|
| 121 |
+
"Lists available server variants"
|
| 122 |
+
|
| 123 |
+
"""
|
| 124 |
+
url = f"https://freemcserver.p.rapidapi.com/v4/variant"
|
| 125 |
+
querystring = {}
|
| 126 |
+
|
| 127 |
+
headers = {
|
| 128 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 129 |
+
"X-RapidAPI-Host": "freemcserver.p.rapidapi.com"
|
| 130 |
+
}
|
| 131 |
+
|
| 132 |
+
|
| 133 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 134 |
+
try:
|
| 135 |
+
observation = response.json()
|
| 136 |
+
except:
|
| 137 |
+
observation = response.text
|
| 138 |
+
return observation
|
| 139 |
+
|
| 140 |
+
def server_details(serverid: int, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 141 |
+
"""
|
| 142 |
+
"Shows the details of a specified server"
|
| 143 |
+
|
| 144 |
+
"""
|
| 145 |
+
url = f"https://freemcserver.p.rapidapi.com/v4/server/{serverid}"
|
| 146 |
+
querystring = {}
|
| 147 |
+
|
| 148 |
+
headers = {
|
| 149 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 150 |
+
"X-RapidAPI-Host": "freemcserver.p.rapidapi.com"
|
| 151 |
+
}
|
| 152 |
+
|
| 153 |
+
|
| 154 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 155 |
+
try:
|
| 156 |
+
observation = response.json()
|
| 157 |
+
except:
|
| 158 |
+
observation = response.text
|
| 159 |
+
return observation
|
| 160 |
+
|
| 161 |
+
def server_resource_usage(serverid: int, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 162 |
+
"""
|
| 163 |
+
"Returns the current server resource usage"
|
| 164 |
+
|
| 165 |
+
"""
|
| 166 |
+
url = f"https://freemcserver.p.rapidapi.com/v4/server/{serverid}/usage"
|
| 167 |
+
querystring = {}
|
| 168 |
+
|
| 169 |
+
headers = {
|
| 170 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 171 |
+
"X-RapidAPI-Host": "freemcserver.p.rapidapi.com"
|
| 172 |
+
}
|
| 173 |
+
|
| 174 |
+
|
| 175 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 176 |
+
try:
|
| 177 |
+
observation = response.json()
|
| 178 |
+
except:
|
| 179 |
+
observation = response.text
|
| 180 |
+
return observation
|
| 181 |
+
|
| 182 |
+
def list_acessible_servers(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 183 |
+
"""
|
| 184 |
+
"Lists all servers that you have access to"
|
| 185 |
+
|
| 186 |
+
"""
|
| 187 |
+
url = f"https://freemcserver.p.rapidapi.com/v4/server"
|
| 188 |
+
querystring = {}
|
| 189 |
+
|
| 190 |
+
headers = {
|
| 191 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 192 |
+
"X-RapidAPI-Host": "freemcserver.p.rapidapi.com"
|
| 193 |
+
}
|
| 194 |
+
|
| 195 |
+
|
| 196 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 197 |
+
try:
|
| 198 |
+
observation = response.json()
|
| 199 |
+
except:
|
| 200 |
+
observation = response.text
|
| 201 |
+
return observation
|
| 202 |
+
|
| 203 |
+
def list_unread_alerts(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 204 |
+
"""
|
| 205 |
+
"Lists all unread platform alerts"
|
| 206 |
+
|
| 207 |
+
"""
|
| 208 |
+
url = f"https://freemcserver.p.rapidapi.com/v4/alert"
|
| 209 |
+
querystring = {}
|
| 210 |
+
|
| 211 |
+
headers = {
|
| 212 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 213 |
+
"X-RapidAPI-Host": "freemcserver.p.rapidapi.com"
|
| 214 |
+
}
|
| 215 |
+
|
| 216 |
+
|
| 217 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 218 |
+
try:
|
| 219 |
+
observation = response.json()
|
| 220 |
+
except:
|
| 221 |
+
observation = response.text
|
| 222 |
+
return observation
|
| 223 |
+
|
| 224 |
+
def user_details(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 225 |
+
"""
|
| 226 |
+
"Returns information about the current logged-in users"
|
| 227 |
+
|
| 228 |
+
"""
|
| 229 |
+
url = f"https://freemcserver.p.rapidapi.com/v4/user"
|
| 230 |
+
querystring = {}
|
| 231 |
+
|
| 232 |
+
headers = {
|
| 233 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 234 |
+
"X-RapidAPI-Host": "freemcserver.p.rapidapi.com"
|
| 235 |
+
}
|
| 236 |
+
|
| 237 |
+
|
| 238 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 239 |
+
try:
|
| 240 |
+
observation = response.json()
|
| 241 |
+
except:
|
| 242 |
+
observation = response.text
|
| 243 |
+
return observation
|
| 244 |
+
|
toolbench/toolenv/tools/Gaming/game.json
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"tool_name":"game",
|
| 3 |
+
"tool_description":"download this g develop game ",
|
| 4 |
+
"title":"game",
|
| 5 |
+
"pricing":"FREE",
|
| 6 |
+
"score":null,
|
| 7 |
+
"home_url":"https://rapidapi.com/gabmomoh2/api/game3/",
|
| 8 |
+
"host":"game3.p.rapidapi.com",
|
| 9 |
+
"api_list":[
|
| 10 |
+
{
|
| 11 |
+
"name":"game",
|
| 12 |
+
"url":"https://game3.p.rapidapi.comhttp://www.mediafire.com/file/9ezvd76dd9dxgab/game.apk/file",
|
| 13 |
+
"description":"get game",
|
| 14 |
+
"method":"GET",
|
| 15 |
+
"required_parameters":[],
|
| 16 |
+
"optional_parameters":[],
|
| 17 |
+
"code":"import requests\n\nurl = \"https://game3.p.rapidapi.comhttp://www.mediafire.com/file/9ezvd76dd9dxgab/game.apk/file\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"game3.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n",
|
| 18 |
+
"statuscode":111,
|
| 19 |
+
"body":"",
|
| 20 |
+
"headers":"",
|
| 21 |
+
"schema":""
|
| 22 |
+
}
|
| 23 |
+
]
|
| 24 |
+
}
|
toolbench/toolenv/tools/Gaming/game/api.py
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import requests
|
| 2 |
+
import json
|
| 3 |
+
from datetime import date, datetime, timedelta
|
| 4 |
+
import os
|
| 5 |
+
|
| 6 |
+
from typing import Optional, Dict, Union, List
|
| 7 |
+
|
| 8 |
+
|
| 9 |
+
def game(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 10 |
+
"""
|
| 11 |
+
"get game"
|
| 12 |
+
|
| 13 |
+
"""
|
| 14 |
+
url = f"https://game3.p.rapidapi.comhttp://www.mediafire.com/file/9ezvd76dd9dxgab/game.apk/file"
|
| 15 |
+
querystring = {}
|
| 16 |
+
|
| 17 |
+
headers = {
|
| 18 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 19 |
+
"X-RapidAPI-Host": "game3.p.rapidapi.com"
|
| 20 |
+
}
|
| 21 |
+
|
| 22 |
+
|
| 23 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 24 |
+
try:
|
| 25 |
+
observation = response.json()
|
| 26 |
+
except:
|
| 27 |
+
observation = response.text
|
| 28 |
+
return observation
|
| 29 |
+
|
toolbench/toolenv/tools/Gaming/game_delay_radar.json
ADDED
|
@@ -0,0 +1,172 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"tool_name":"Game Delay Radar",
|
| 3 |
+
"tool_description":"An API showing latest articles from several game news sites about games release delay.",
|
| 4 |
+
"title":"Game Delay Radar",
|
| 5 |
+
"pricing":"FREEMIUM",
|
| 6 |
+
"score":null,
|
| 7 |
+
"home_url":"https://rapidapi.com/MichalGul/api/game-delay-radar/",
|
| 8 |
+
"host":"game-delay-radar.p.rapidapi.com",
|
| 9 |
+
"api_list":[
|
| 10 |
+
{
|
| 11 |
+
"name":"Games delay news from website",
|
| 12 |
+
"url":"https://game-delay-radar.p.rapidapi.com/website/{websiteid}",
|
| 13 |
+
"description":"Get games delay news from single website\nAvaliable websites: destructoid, gamesradar, pcgamer",
|
| 14 |
+
"method":"GET",
|
| 15 |
+
"required_parameters":[
|
| 16 |
+
{
|
| 17 |
+
"name":"websiteId",
|
| 18 |
+
"type":"string",
|
| 19 |
+
"description":"",
|
| 20 |
+
"default":"pcgamer"
|
| 21 |
+
}
|
| 22 |
+
],
|
| 23 |
+
"optional_parameters":[],
|
| 24 |
+
"code":"import requests\n\nurl = \"https://game-delay-radar.p.rapidapi.com/website/{websiteid}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"game-delay-radar.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n",
|
| 25 |
+
"statuscode":200,
|
| 26 |
+
"body":[
|
| 27 |
+
{
|
| 28 |
+
"title":"Battlefield 2042 delayed by a monthByAndy Chalk 15 September 2021newsThe pushback comes just over a month before Battlefield 2042 was set to launch.",
|
| 29 |
+
"url":"https://www.pcgamer.com/uk/battlefield-2042-delayed-by-a-month/",
|
| 30 |
+
"source":"pcgamer"
|
| 31 |
+
},
|
| 32 |
+
{
|
| 33 |
+
"title":"Elden Ring has been delayed into FebruaryByNatalie Clayton 18 October 2021newsThe highly-anticipated From Software epic has been pushed back a month.",
|
| 34 |
+
"url":"https://www.pcgamer.com/uk/elden-ring-has-been-delayed-into-february/",
|
| 35 |
+
"source":"pcgamer"
|
| 36 |
+
},
|
| 37 |
+
{
|
| 38 |
+
"title":"Diablo Immortal delayed to 2022ByWes Fenlon 03 August 2021NewsThe mobile Diablo spin-off gets more time for polish after feedback from its technical alpha.",
|
| 39 |
+
"url":"https://www.pcgamer.com/uk/diablo-immortal-delayed-to-2022/",
|
| 40 |
+
"source":"pcgamer"
|
| 41 |
+
},
|
| 42 |
+
{
|
| 43 |
+
"title":"SkateBIRD delayed to SeptemberByMalindy Hetfeld 02 August 2021NewsThe eagle hasn't landed (yet).",
|
| 44 |
+
"url":"https://www.pcgamer.com/uk/skatebird-delayed-to-september/",
|
| 45 |
+
"source":"pcgamer"
|
| 46 |
+
},
|
| 47 |
+
{
|
| 48 |
+
"title":"Total War: Warhammer 3 delayed into 2022ByAndy Chalk 13 September 2021newsTomorrow's reveal of the Grand Cathay faction will take place as scheduled.",
|
| 49 |
+
"url":"https://www.pcgamer.com/uk/total-war-warhammer-3-delayed-into-2022/",
|
| 50 |
+
"source":"pcgamer"
|
| 51 |
+
},
|
| 52 |
+
{
|
| 53 |
+
"title":"Life is Strange remaster delayed to 2022ByJody Macgregor 11 August 2021NewsLife is Strange: True Colors is still on schedule, however.",
|
| 54 |
+
"url":"https://www.pcgamer.com/uk/life-is-strange-remaster-delayed-to-2022/",
|
| 55 |
+
"source":"pcgamer"
|
| 56 |
+
},
|
| 57 |
+
{
|
| 58 |
+
"title":"Green Hell's next chapter has been delayedByJody Macgregor 22 September 2021NewsThe finale of the Amazon rainforest survival experience had to be postponed.",
|
| 59 |
+
"url":"https://www.pcgamer.com/uk/green-hells-next-chapter-has-been-delayed/",
|
| 60 |
+
"source":"pcgamer"
|
| 61 |
+
},
|
| 62 |
+
{
|
| 63 |
+
"title":"Kena: Bridge of Spirits delayed by a month ByShaun Prescott 28 July 2021NewsEmber Lab Team needs another month to polish the game.",
|
| 64 |
+
"url":"https://www.pcgamer.com/uk/kena-bridge-of-spirits-delayed-by-a-month/",
|
| 65 |
+
"source":"pcgamer"
|
| 66 |
+
},
|
| 67 |
+
{
|
| 68 |
+
"title":"Dying Light 2 has been delayed until 2022ByMollie Taylor 14 September 2021News2021 is looking drier and drier.",
|
| 69 |
+
"url":"https://www.pcgamer.com/uk/dying-light-2-has-been-delayed-until-2022/",
|
| 70 |
+
"source":"pcgamer"
|
| 71 |
+
},
|
| 72 |
+
{
|
| 73 |
+
"title":"Survival game Icarus delayed until NovemberByChristopher Livingston 30 July 2021newsSeveral beta weekends are planned for those who preorder.",
|
| 74 |
+
"url":"https://www.pcgamer.com/uk/survival-game-icarus-delayed-until-november/",
|
| 75 |
+
"source":"pcgamer"
|
| 76 |
+
},
|
| 77 |
+
{
|
| 78 |
+
"title":"Guild Wars 2 expansion delayedByJody Macgregor 04 July 2021NewsEnd of Dragons will be out next year.",
|
| 79 |
+
"url":"https://www.pcgamer.com/uk/guild-wars-2-expansion-delayed/",
|
| 80 |
+
"source":"pcgamer"
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"title":"Crimson Desert is being delayed to an unspecified dateByRuth Cassidy 29 July 2021NewsAn updated schedule will be released in the future.",
|
| 84 |
+
"url":"https://www.pcgamer.com/uk/crimson-desert-is-being-delayed-to-an-unspecified-date/",
|
| 85 |
+
"source":"pcgamer"
|
| 86 |
+
},
|
| 87 |
+
{
|
| 88 |
+
"title":"Solar Ash, the follow-up to Hyper Light Drifter, delayed to DecemberByJoseph Knoop 13 October 2021NewsHeart Machine needs more time to polish gameplay and tackle bugs.",
|
| 89 |
+
"url":"https://www.pcgamer.com/uk/solar-ash-release-date-delayed/",
|
| 90 |
+
"source":"pcgamer"
|
| 91 |
+
},
|
| 92 |
+
{
|
| 93 |
+
"title":"The Amazing American Circus delayed to SeptemberByJody Macgregor 14 July 2021NewsRoll up, roll up, at a slightly later date.",
|
| 94 |
+
"url":"https://www.pcgamer.com/uk/the-amazing-american-circus-delayed-to-september/",
|
| 95 |
+
"source":"pcgamer"
|
| 96 |
+
},
|
| 97 |
+
{
|
| 98 |
+
"title":"Ghostwire: Tokyo is delayed into early 2022ByAndy Chalk 13 July 2021newsThe studio said extended production will enable it to create the game it envisioned while \"protecting the health of everyone at Tango.\"",
|
| 99 |
+
"url":"https://www.pcgamer.com/uk/ghostwire-tokyo-is-delayed-into-early-2022/",
|
| 100 |
+
"source":"pcgamer"
|
| 101 |
+
},
|
| 102 |
+
{
|
| 103 |
+
"title":"Apex Legends tap-strafing nerf has been delayedByShaun Prescott 13 September 2021NewsAddressing the movement technique has led to \"unexpected side effects.\"",
|
| 104 |
+
"url":"https://www.pcgamer.com/uk/apex-legends-tap-strafing-nerf-has-been-delayed/",
|
| 105 |
+
"source":"pcgamer"
|
| 106 |
+
},
|
| 107 |
+
{
|
| 108 |
+
"title":"Horizon Forbidden West reportedly delayed into 2022ByAndy Chalk 30 July 2021news2022 is looking to be an even bigger year for gaming. (And it was already huge.)",
|
| 109 |
+
"url":"https://www.pcgamer.com/uk/horizon-forbidden-west-reportedly-delayed-into-2022/",
|
| 110 |
+
"source":"pcgamer"
|
| 111 |
+
},
|
| 112 |
+
{
|
| 113 |
+
"title":"Ghost Recon Frontline beta test delayed one day before it was set to startByAndy Chalk 13 October 2021newsUbisoft didn't say why testing has been pushed back, but strong negative reaction to the game could be a reason.",
|
| 114 |
+
"url":"https://www.pcgamer.com/uk/ghost-recon-frontline-beta-test-delayed-one-day-before-it-was-set-to-start/",
|
| 115 |
+
"source":"pcgamer"
|
| 116 |
+
},
|
| 117 |
+
{
|
| 118 |
+
"title":"New World server transfers delayed due to 'edge cases,' no transfers between regionsByJonathan Bolding 09 October 2021NewsYou get one free transfer to another server in your region.",
|
| 119 |
+
"url":"https://www.pcgamer.com/uk/new-world-server-transfers-delayed-due-to-edge-cases/",
|
| 120 |
+
"source":"pcgamer"
|
| 121 |
+
},
|
| 122 |
+
{
|
| 123 |
+
"title":"Evil Dead: The Game delayed for ‘polish’ and a singleplayer modeByShaun Prescott 06 August 2021NewsSaber Interactive’s take on zombie slaying is now coming in February.",
|
| 124 |
+
"url":"https://www.pcgamer.com/uk/evil-dead-the-game-delayed-for-polish-and-a-singleplayer-mode/",
|
| 125 |
+
"source":"pcgamer"
|
| 126 |
+
}
|
| 127 |
+
],
|
| 128 |
+
"headers":{
|
| 129 |
+
"access-control-allow-credentials":"true",
|
| 130 |
+
"access-control-allow-origin":"*",
|
| 131 |
+
"connection":"keep-alive",
|
| 132 |
+
"content-length":"5247",
|
| 133 |
+
"content-type":"application/json; charset=utf-8",
|
| 134 |
+
"date":"Sat, 23 Oct 2021 18:53:06 GMT",
|
| 135 |
+
"etag":"W/\"147f-cPYFgefEMVw3QanpcvzxUd1sv3A\"",
|
| 136 |
+
"server":"RapidAPI-1.2.8",
|
| 137 |
+
"via":"1.1 vegur",
|
| 138 |
+
"x-powered-by":"Express",
|
| 139 |
+
"x-rapidapi-region":"AWS - eu-central-1",
|
| 140 |
+
"x-rapidapi-version":"1.2.8"
|
| 141 |
+
},
|
| 142 |
+
"schema":{}
|
| 143 |
+
},
|
| 144 |
+
{
|
| 145 |
+
"name":"Get All Avaliable Game Delay news",
|
| 146 |
+
"url":"https://game-delay-radar.p.rapidapi.com/websites/{lang}",
|
| 147 |
+
"description":"This endpoint will return all articles from limited game news website sources about game release delays.",
|
| 148 |
+
"method":"GET",
|
| 149 |
+
"required_parameters":[
|
| 150 |
+
{
|
| 151 |
+
"name":"lang",
|
| 152 |
+
"type":"string",
|
| 153 |
+
"description":"",
|
| 154 |
+
"default":"eng"
|
| 155 |
+
}
|
| 156 |
+
],
|
| 157 |
+
"optional_parameters":[
|
| 158 |
+
{
|
| 159 |
+
"name":"lang",
|
| 160 |
+
"type":"STRING",
|
| 161 |
+
"description":"",
|
| 162 |
+
"default":"eng"
|
| 163 |
+
}
|
| 164 |
+
],
|
| 165 |
+
"code":"import requests\n\nurl = \"https://game-delay-radar.p.rapidapi.com/websites/{lang}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"game-delay-radar.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n",
|
| 166 |
+
"statuscode":111,
|
| 167 |
+
"body":"",
|
| 168 |
+
"headers":"",
|
| 169 |
+
"schema":""
|
| 170 |
+
}
|
| 171 |
+
]
|
| 172 |
+
}
|
toolbench/toolenv/tools/Gaming/game_delay_radar/api.py
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import requests
|
| 2 |
+
import json
|
| 3 |
+
from datetime import date, datetime, timedelta
|
| 4 |
+
import os
|
| 5 |
+
|
| 6 |
+
from typing import Optional, Dict, Union, List
|
| 7 |
+
|
| 8 |
+
|
| 9 |
+
def games_delay_news_from_website(websiteid: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 10 |
+
"""
|
| 11 |
+
"Get games delay news from single website
|
| 12 |
+
Avaliable websites: destructoid, gamesradar, pcgamer"
|
| 13 |
+
|
| 14 |
+
"""
|
| 15 |
+
url = f"https://game-delay-radar.p.rapidapi.com/website/{websiteid}"
|
| 16 |
+
querystring = {}
|
| 17 |
+
|
| 18 |
+
headers = {
|
| 19 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 20 |
+
"X-RapidAPI-Host": "game-delay-radar.p.rapidapi.com"
|
| 21 |
+
}
|
| 22 |
+
|
| 23 |
+
|
| 24 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 25 |
+
try:
|
| 26 |
+
observation = response.json()
|
| 27 |
+
except:
|
| 28 |
+
observation = response.text
|
| 29 |
+
return observation
|
| 30 |
+
|
| 31 |
+
def get_all_avaliable_game_delay_news(lang: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 32 |
+
"""
|
| 33 |
+
"This endpoint will return all articles from limited game news website sources about game release delays."
|
| 34 |
+
|
| 35 |
+
"""
|
| 36 |
+
url = f"https://game-delay-radar.p.rapidapi.com/websites/{lang}"
|
| 37 |
+
querystring = {}
|
| 38 |
+
if lang:
|
| 39 |
+
querystring['lang'] = lang
|
| 40 |
+
|
| 41 |
+
headers = {
|
| 42 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 43 |
+
"X-RapidAPI-Host": "game-delay-radar.p.rapidapi.com"
|
| 44 |
+
}
|
| 45 |
+
|
| 46 |
+
|
| 47 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 48 |
+
try:
|
| 49 |
+
observation = response.json()
|
| 50 |
+
except:
|
| 51 |
+
observation = response.text
|
| 52 |
+
return observation
|
| 53 |
+
|
toolbench/toolenv/tools/Gaming/game_price/api.py
ADDED
|
@@ -0,0 +1,132 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import requests
|
| 2 |
+
import json
|
| 3 |
+
from datetime import date, datetime, timedelta
|
| 4 |
+
import os
|
| 5 |
+
|
| 6 |
+
from typing import Optional, Dict, Union, List
|
| 7 |
+
|
| 8 |
+
|
| 9 |
+
def game_price_and_details_by_country(cc: str, is_id: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 10 |
+
"""
|
| 11 |
+
"Get more info about a game such as:
|
| 12 |
+
- description
|
| 13 |
+
- price overview
|
| 14 |
+
- package groups with names and prices
|
| 15 |
+
- platform
|
| 16 |
+
- categories
|
| 17 |
+
- metacritic score
|
| 18 |
+
- achievements"
|
| 19 |
+
cc: Country code in lowercase. [List here](https://en.wikipedia.org/wiki/List_of_ISO_3166_country_codes)
|
| 20 |
+
id: To get the id you should use GET /search
|
| 21 |
+
|
| 22 |
+
"""
|
| 23 |
+
url = f"https://game-price.p.rapidapi.com/v1/appdetailsbycountry"
|
| 24 |
+
querystring = {'cc': cc, 'id': is_id, }
|
| 25 |
+
|
| 26 |
+
headers = {
|
| 27 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 28 |
+
"X-RapidAPI-Host": "game-price.p.rapidapi.com"
|
| 29 |
+
}
|
| 30 |
+
|
| 31 |
+
|
| 32 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 33 |
+
try:
|
| 34 |
+
observation = response.json()
|
| 35 |
+
except:
|
| 36 |
+
observation = response.text
|
| 37 |
+
return observation
|
| 38 |
+
|
| 39 |
+
def game_price_and_details(is_id: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 40 |
+
"""
|
| 41 |
+
"Get more info about a game such as:
|
| 42 |
+
- description
|
| 43 |
+
- price overview
|
| 44 |
+
- package groups with names and prices
|
| 45 |
+
- platform
|
| 46 |
+
- categories
|
| 47 |
+
- metacritic score
|
| 48 |
+
- achievements"
|
| 49 |
+
id: To get the id you should use GET /search
|
| 50 |
+
|
| 51 |
+
"""
|
| 52 |
+
url = f"https://game-price.p.rapidapi.com/v1/appdetails"
|
| 53 |
+
querystring = {'id': is_id, }
|
| 54 |
+
|
| 55 |
+
headers = {
|
| 56 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 57 |
+
"X-RapidAPI-Host": "game-price.p.rapidapi.com"
|
| 58 |
+
}
|
| 59 |
+
|
| 60 |
+
|
| 61 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 62 |
+
try:
|
| 63 |
+
observation = response.json()
|
| 64 |
+
except:
|
| 65 |
+
observation = response.text
|
| 66 |
+
return observation
|
| 67 |
+
|
| 68 |
+
def game_price_by_country(cc: str, is_id: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 69 |
+
"""
|
| 70 |
+
"Get game price from different countries"
|
| 71 |
+
cc: Country code in lowercase. [List here](https://en.wikipedia.org/wiki/List_of_ISO_3166_country_codes)
|
| 72 |
+
|
| 73 |
+
"""
|
| 74 |
+
url = f"https://game-price.p.rapidapi.com/v1/pricebycountry"
|
| 75 |
+
querystring = {'cc': cc, 'id': is_id, }
|
| 76 |
+
|
| 77 |
+
headers = {
|
| 78 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 79 |
+
"X-RapidAPI-Host": "game-price.p.rapidapi.com"
|
| 80 |
+
}
|
| 81 |
+
|
| 82 |
+
|
| 83 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 84 |
+
try:
|
| 85 |
+
observation = response.json()
|
| 86 |
+
except:
|
| 87 |
+
observation = response.text
|
| 88 |
+
return observation
|
| 89 |
+
|
| 90 |
+
def game_price(is_id: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 91 |
+
"""
|
| 92 |
+
"Get the current price and discount"
|
| 93 |
+
id: To get the id you should use GET /search
|
| 94 |
+
|
| 95 |
+
"""
|
| 96 |
+
url = f"https://game-price.p.rapidapi.com/v1/price"
|
| 97 |
+
querystring = {'id': is_id, }
|
| 98 |
+
|
| 99 |
+
headers = {
|
| 100 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 101 |
+
"X-RapidAPI-Host": "game-price.p.rapidapi.com"
|
| 102 |
+
}
|
| 103 |
+
|
| 104 |
+
|
| 105 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 106 |
+
try:
|
| 107 |
+
observation = response.json()
|
| 108 |
+
except:
|
| 109 |
+
observation = response.text
|
| 110 |
+
return observation
|
| 111 |
+
|
| 112 |
+
def search(term: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 113 |
+
"""
|
| 114 |
+
"Search for games in steam and get basic information about them"
|
| 115 |
+
|
| 116 |
+
"""
|
| 117 |
+
url = f"https://game-price.p.rapidapi.com/v1/search"
|
| 118 |
+
querystring = {'term': term, }
|
| 119 |
+
|
| 120 |
+
headers = {
|
| 121 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 122 |
+
"X-RapidAPI-Host": "game-price.p.rapidapi.com"
|
| 123 |
+
}
|
| 124 |
+
|
| 125 |
+
|
| 126 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 127 |
+
try:
|
| 128 |
+
observation = response.json()
|
| 129 |
+
except:
|
| 130 |
+
observation = response.text
|
| 131 |
+
return observation
|
| 132 |
+
|
toolbench/toolenv/tools/Gaming/game_trailers/api.py
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import requests
|
| 2 |
+
import json
|
| 3 |
+
from datetime import date, datetime, timedelta
|
| 4 |
+
import os
|
| 5 |
+
|
| 6 |
+
from typing import Optional, Dict, Union, List
|
| 7 |
+
|
| 8 |
+
|
| 9 |
+
def get_all_game_trailers(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 10 |
+
"""
|
| 11 |
+
"This endpoint will return back all game trailers for all gaming platforms"
|
| 12 |
+
|
| 13 |
+
"""
|
| 14 |
+
url = f"https://game-trailers.p.rapidapi.com/trailers"
|
| 15 |
+
querystring = {}
|
| 16 |
+
|
| 17 |
+
headers = {
|
| 18 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 19 |
+
"X-RapidAPI-Host": "game-trailers.p.rapidapi.com"
|
| 20 |
+
}
|
| 21 |
+
|
| 22 |
+
|
| 23 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 24 |
+
try:
|
| 25 |
+
observation = response.json()
|
| 26 |
+
except:
|
| 27 |
+
observation = response.text
|
| 28 |
+
return observation
|
| 29 |
+
|
toolbench/toolenv/tools/Gaming/gamefinder.json
ADDED
|
@@ -0,0 +1,102 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"tool_name":"GameFinder",
|
| 3 |
+
"tool_description":"Find game servers for any of the supported games",
|
| 4 |
+
"title":"GameFinder",
|
| 5 |
+
"pricing":"FREEMIUM",
|
| 6 |
+
"score":null,
|
| 7 |
+
"home_url":"https://rapidapi.com/elixr-solutions-elixr-solutions-default/api/gamefinder/",
|
| 8 |
+
"host":"gamefinder.p.rapidapi.com",
|
| 9 |
+
"api_list":[
|
| 10 |
+
{
|
| 11 |
+
"name":"Server Info_copy",
|
| 12 |
+
"url":"https://gamefinder.p.rapidapi.com/rust/serverinfo",
|
| 13 |
+
"description":"Retrieve eco server information",
|
| 14 |
+
"method":"GET",
|
| 15 |
+
"required_parameters":[
|
| 16 |
+
{
|
| 17 |
+
"name":"ip",
|
| 18 |
+
"type":"STRING",
|
| 19 |
+
"description":"IP Address or URL of an eco server",
|
| 20 |
+
"default":"join.rust4life.com"
|
| 21 |
+
},
|
| 22 |
+
{
|
| 23 |
+
"name":"port",
|
| 24 |
+
"type":"NUMBER",
|
| 25 |
+
"description":"Web Port of the specified server.",
|
| 26 |
+
"default":"28015"
|
| 27 |
+
}
|
| 28 |
+
],
|
| 29 |
+
"optional_parameters":[],
|
| 30 |
+
"code":"import requests\n\nurl = \"https://gamefinder.p.rapidapi.com/rust/serverinfo\"\nquerystring = {\"ip\": ip, \"port\": port}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"gamefinder.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n",
|
| 31 |
+
"statuscode":200,
|
| 32 |
+
"body":{},
|
| 33 |
+
"headers":{},
|
| 34 |
+
"schema":{}
|
| 35 |
+
},
|
| 36 |
+
{
|
| 37 |
+
"name":"Server Info",
|
| 38 |
+
"url":"https://gamefinder.p.rapidapi.com/eco/serverinfo",
|
| 39 |
+
"description":"Retrieve eco server information",
|
| 40 |
+
"method":"GET",
|
| 41 |
+
"required_parameters":[
|
| 42 |
+
{
|
| 43 |
+
"name":"ip",
|
| 44 |
+
"type":"STRING",
|
| 45 |
+
"description":"IP Address or URL of an eco server",
|
| 46 |
+
"default":"gs1.play.eco"
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"name":"webport",
|
| 50 |
+
"type":"NUMBER",
|
| 51 |
+
"description":"Web Port of the specified server.",
|
| 52 |
+
"default":"3031"
|
| 53 |
+
}
|
| 54 |
+
],
|
| 55 |
+
"optional_parameters":[],
|
| 56 |
+
"code":"import requests\n\nurl = \"https://gamefinder.p.rapidapi.com/eco/serverinfo\"\nquerystring = {\"ip\": ip, \"webport\": webport}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"gamefinder.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n",
|
| 57 |
+
"statuscode":200,
|
| 58 |
+
"body":{},
|
| 59 |
+
"headers":{},
|
| 60 |
+
"schema":{}
|
| 61 |
+
},
|
| 62 |
+
{
|
| 63 |
+
"name":"Factorio - Servers Online",
|
| 64 |
+
"url":"https://gamefinder.p.rapidapi.com/factorio/games",
|
| 65 |
+
"description":"Get a list of all online factorio servers.",
|
| 66 |
+
"method":"GET",
|
| 67 |
+
"required_parameters":[],
|
| 68 |
+
"optional_parameters":[],
|
| 69 |
+
"code":"import requests\n\nurl = \"https://gamefinder.p.rapidapi.com/factorio/games\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"gamefinder.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n",
|
| 70 |
+
"statuscode":200,
|
| 71 |
+
"body":{
|
| 72 |
+
"key1":"value",
|
| 73 |
+
"key2":"value"
|
| 74 |
+
},
|
| 75 |
+
"headers":{},
|
| 76 |
+
"schema":{}
|
| 77 |
+
},
|
| 78 |
+
{
|
| 79 |
+
"name":"Factorio - Server Details",
|
| 80 |
+
"url":"https://gamefinder.p.rapidapi.com/factorio/gamedetails",
|
| 81 |
+
"description":"Get details about a specific server.",
|
| 82 |
+
"method":"GET",
|
| 83 |
+
"required_parameters":[
|
| 84 |
+
{
|
| 85 |
+
"name":"gameid",
|
| 86 |
+
"type":"NUMBER",
|
| 87 |
+
"description":"",
|
| 88 |
+
"default":"12345678"
|
| 89 |
+
}
|
| 90 |
+
],
|
| 91 |
+
"optional_parameters":[],
|
| 92 |
+
"code":"import requests\n\nurl = \"https://gamefinder.p.rapidapi.com/factorio/gamedetails\"\nquerystring = {\"gameid\": gameid}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"gamefinder.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n",
|
| 93 |
+
"statuscode":200,
|
| 94 |
+
"body":{
|
| 95 |
+
"key1":"value",
|
| 96 |
+
"key2":"value"
|
| 97 |
+
},
|
| 98 |
+
"headers":{},
|
| 99 |
+
"schema":{}
|
| 100 |
+
}
|
| 101 |
+
]
|
| 102 |
+
}
|
toolbench/toolenv/tools/Gaming/gamefinder/api.py
ADDED
|
@@ -0,0 +1,96 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import requests
|
| 2 |
+
import json
|
| 3 |
+
from datetime import date, datetime, timedelta
|
| 4 |
+
import os
|
| 5 |
+
|
| 6 |
+
from typing import Optional, Dict, Union, List
|
| 7 |
+
|
| 8 |
+
|
| 9 |
+
def server_info_copy(ip: str, port: int, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 10 |
+
"""
|
| 11 |
+
"Retrieve eco server information"
|
| 12 |
+
ip: IP Address or URL of an eco server
|
| 13 |
+
port: Web Port of the specified server.
|
| 14 |
+
|
| 15 |
+
"""
|
| 16 |
+
url = f"https://gamefinder.p.rapidapi.com/rust/serverinfo"
|
| 17 |
+
querystring = {'ip': ip, 'port': port, }
|
| 18 |
+
|
| 19 |
+
headers = {
|
| 20 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 21 |
+
"X-RapidAPI-Host": "gamefinder.p.rapidapi.com"
|
| 22 |
+
}
|
| 23 |
+
|
| 24 |
+
|
| 25 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 26 |
+
try:
|
| 27 |
+
observation = response.json()
|
| 28 |
+
except:
|
| 29 |
+
observation = response.text
|
| 30 |
+
return observation
|
| 31 |
+
|
| 32 |
+
def server_info(ip: str, webport: int, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 33 |
+
"""
|
| 34 |
+
"Retrieve eco server information"
|
| 35 |
+
ip: IP Address or URL of an eco server
|
| 36 |
+
webport: Web Port of the specified server.
|
| 37 |
+
|
| 38 |
+
"""
|
| 39 |
+
url = f"https://gamefinder.p.rapidapi.com/eco/serverinfo"
|
| 40 |
+
querystring = {'ip': ip, 'webport': webport, }
|
| 41 |
+
|
| 42 |
+
headers = {
|
| 43 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 44 |
+
"X-RapidAPI-Host": "gamefinder.p.rapidapi.com"
|
| 45 |
+
}
|
| 46 |
+
|
| 47 |
+
|
| 48 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 49 |
+
try:
|
| 50 |
+
observation = response.json()
|
| 51 |
+
except:
|
| 52 |
+
observation = response.text
|
| 53 |
+
return observation
|
| 54 |
+
|
| 55 |
+
def factorio_servers_online(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 56 |
+
"""
|
| 57 |
+
"Get a list of all online factorio servers."
|
| 58 |
+
|
| 59 |
+
"""
|
| 60 |
+
url = f"https://gamefinder.p.rapidapi.com/factorio/games"
|
| 61 |
+
querystring = {}
|
| 62 |
+
|
| 63 |
+
headers = {
|
| 64 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 65 |
+
"X-RapidAPI-Host": "gamefinder.p.rapidapi.com"
|
| 66 |
+
}
|
| 67 |
+
|
| 68 |
+
|
| 69 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 70 |
+
try:
|
| 71 |
+
observation = response.json()
|
| 72 |
+
except:
|
| 73 |
+
observation = response.text
|
| 74 |
+
return observation
|
| 75 |
+
|
| 76 |
+
def factorio_server_details(gameid: int, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 77 |
+
"""
|
| 78 |
+
"Get details about a specific server."
|
| 79 |
+
|
| 80 |
+
"""
|
| 81 |
+
url = f"https://gamefinder.p.rapidapi.com/factorio/gamedetails"
|
| 82 |
+
querystring = {'gameid': gameid, }
|
| 83 |
+
|
| 84 |
+
headers = {
|
| 85 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 86 |
+
"X-RapidAPI-Host": "gamefinder.p.rapidapi.com"
|
| 87 |
+
}
|
| 88 |
+
|
| 89 |
+
|
| 90 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 91 |
+
try:
|
| 92 |
+
observation = response.json()
|
| 93 |
+
except:
|
| 94 |
+
observation = response.text
|
| 95 |
+
return observation
|
| 96 |
+
|
toolbench/toolenv/tools/Gaming/gamerpower.json
ADDED
|
@@ -0,0 +1,182 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"tool_name":"GamerPower",
|
| 3 |
+
"tool_description":"Find all free games, loot and giveaways with this giveaway tracker API powered by GamerPower.com! Access programmatically the best giveaways in gaming!",
|
| 4 |
+
"title":"GamerPower",
|
| 5 |
+
"pricing":"FREE",
|
| 6 |
+
"score":{
|
| 7 |
+
"avgServiceLevel":100,
|
| 8 |
+
"avgLatency":94,
|
| 9 |
+
"avgSuccessRate":100,
|
| 10 |
+
"popularityScore":9.8,
|
| 11 |
+
"__typename":"Score"
|
| 12 |
+
},
|
| 13 |
+
"home_url":"https://rapidapi.com/digiwalls/api/gamerpower/",
|
| 14 |
+
"host":"gamerpower.p.rapidapi.com",
|
| 15 |
+
"api_list":[
|
| 16 |
+
{
|
| 17 |
+
"name":"Filter & Group Giveaways",
|
| 18 |
+
"url":"https://gamerpower.p.rapidapi.com/api/filter",
|
| 19 |
+
"description":"Filter and group platforms and giveaway types to get personalized results.",
|
| 20 |
+
"method":"GET",
|
| 21 |
+
"required_parameters":[
|
| 22 |
+
{
|
| 23 |
+
"name":"platform",
|
| 24 |
+
"type":"STRING",
|
| 25 |
+
"description":"",
|
| 26 |
+
"default":"epic-games-store.steam.android"
|
| 27 |
+
}
|
| 28 |
+
],
|
| 29 |
+
"optional_parameters":[
|
| 30 |
+
{
|
| 31 |
+
"name":"type",
|
| 32 |
+
"type":"STRING",
|
| 33 |
+
"description":"",
|
| 34 |
+
"default":"game.loot"
|
| 35 |
+
}
|
| 36 |
+
],
|
| 37 |
+
"code":"import requests\n\nurl = \"https://gamerpower.p.rapidapi.com/api/filter\"\nquerystring = {\"platform\": platform, \"type\": type}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"gamerpower.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n",
|
| 38 |
+
"statuscode":111,
|
| 39 |
+
"body":"",
|
| 40 |
+
"headers":"",
|
| 41 |
+
"schema":""
|
| 42 |
+
},
|
| 43 |
+
{
|
| 44 |
+
"name":"Specific giveaway details",
|
| 45 |
+
"url":"https://gamerpower.p.rapidapi.com/api/giveaway",
|
| 46 |
+
"description":"Get details from a specific giveaway (insert giveaway id).",
|
| 47 |
+
"method":"GET",
|
| 48 |
+
"required_parameters":[
|
| 49 |
+
{
|
| 50 |
+
"name":"id",
|
| 51 |
+
"type":"STRING",
|
| 52 |
+
"description":"",
|
| 53 |
+
"default":"525"
|
| 54 |
+
}
|
| 55 |
+
],
|
| 56 |
+
"optional_parameters":[],
|
| 57 |
+
"code":"import requests\n\nurl = \"https://gamerpower.p.rapidapi.com/api/giveaway\"\nquerystring = {\"id\": id}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"gamerpower.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n",
|
| 58 |
+
"statuscode":111,
|
| 59 |
+
"body":"",
|
| 60 |
+
"headers":"",
|
| 61 |
+
"schema":""
|
| 62 |
+
},
|
| 63 |
+
{
|
| 64 |
+
"name":"Live giveaways by platform",
|
| 65 |
+
"url":"https://gamerpower.p.rapidapi.com/api/giveaways?",
|
| 66 |
+
"description":"Insert platform eg: pc, steam, epic-games-store, uplay, gog, icthio, ps4, xbox-one, switch, android, ios, vr, battlenet",
|
| 67 |
+
"method":"GET",
|
| 68 |
+
"required_parameters":[
|
| 69 |
+
{
|
| 70 |
+
"name":"platform",
|
| 71 |
+
"type":"STRING",
|
| 72 |
+
"description":"",
|
| 73 |
+
"default":"pc"
|
| 74 |
+
}
|
| 75 |
+
],
|
| 76 |
+
"optional_parameters":[],
|
| 77 |
+
"code":"import requests\n\nurl = \"https://gamerpower.p.rapidapi.com/api/giveaways?\"\nquerystring = {\"platform\": platform}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"gamerpower.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n",
|
| 78 |
+
"statuscode":111,
|
| 79 |
+
"body":"",
|
| 80 |
+
"headers":"",
|
| 81 |
+
"schema":""
|
| 82 |
+
},
|
| 83 |
+
{
|
| 84 |
+
"name":"Live giveaways by type",
|
| 85 |
+
"url":"https://gamerpower.p.rapidapi.com/api/giveaways?",
|
| 86 |
+
"description":"Get live giveaways by type, eg: game, loot, beta",
|
| 87 |
+
"method":"GET",
|
| 88 |
+
"required_parameters":[
|
| 89 |
+
{
|
| 90 |
+
"name":"type",
|
| 91 |
+
"type":"STRING",
|
| 92 |
+
"description":"",
|
| 93 |
+
"default":"game"
|
| 94 |
+
}
|
| 95 |
+
],
|
| 96 |
+
"optional_parameters":[],
|
| 97 |
+
"code":"import requests\n\nurl = \"https://gamerpower.p.rapidapi.com/api/giveaways?\"\nquerystring = {\"type\": type}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"gamerpower.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n",
|
| 98 |
+
"statuscode":111,
|
| 99 |
+
"body":"",
|
| 100 |
+
"headers":"",
|
| 101 |
+
"schema":""
|
| 102 |
+
},
|
| 103 |
+
{
|
| 104 |
+
"name":"Sort live giveaways",
|
| 105 |
+
"url":"https://gamerpower.p.rapidapi.com/api/giveaways?",
|
| 106 |
+
"description":"Insert sort by, eg: date, value, popularity",
|
| 107 |
+
"method":"GET",
|
| 108 |
+
"required_parameters":[],
|
| 109 |
+
"optional_parameters":[
|
| 110 |
+
{
|
| 111 |
+
"name":"sort-by",
|
| 112 |
+
"type":"STRING",
|
| 113 |
+
"description":"",
|
| 114 |
+
"default":"value"
|
| 115 |
+
}
|
| 116 |
+
],
|
| 117 |
+
"code":"import requests\n\nurl = \"https://gamerpower.p.rapidapi.com/api/giveaways?\"\nquerystring = {\"sort-by\": sort_by}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"gamerpower.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n",
|
| 118 |
+
"statuscode":111,
|
| 119 |
+
"body":"",
|
| 120 |
+
"headers":"",
|
| 121 |
+
"schema":""
|
| 122 |
+
},
|
| 123 |
+
{
|
| 124 |
+
"name":"Live giveaways by platform & type & sorted",
|
| 125 |
+
"url":"https://gamerpower.p.rapidapi.com/api/giveaways?",
|
| 126 |
+
"description":"Get all live giveaways by platform and type and sorted.",
|
| 127 |
+
"method":"GET",
|
| 128 |
+
"required_parameters":[],
|
| 129 |
+
"optional_parameters":[
|
| 130 |
+
{
|
| 131 |
+
"name":"platform",
|
| 132 |
+
"type":"STRING",
|
| 133 |
+
"description":"",
|
| 134 |
+
"default":"steam"
|
| 135 |
+
},
|
| 136 |
+
{
|
| 137 |
+
"name":"sort-by",
|
| 138 |
+
"type":"STRING",
|
| 139 |
+
"description":"",
|
| 140 |
+
"default":"popularity"
|
| 141 |
+
},
|
| 142 |
+
{
|
| 143 |
+
"name":"type",
|
| 144 |
+
"type":"STRING",
|
| 145 |
+
"description":"",
|
| 146 |
+
"default":"loot"
|
| 147 |
+
}
|
| 148 |
+
],
|
| 149 |
+
"code":"import requests\n\nurl = \"https://gamerpower.p.rapidapi.com/api/giveaways?\"\nquerystring = {\"platform\": platform, \"sort-by\": sort_by, \"type\": type}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"gamerpower.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n",
|
| 150 |
+
"statuscode":111,
|
| 151 |
+
"body":"",
|
| 152 |
+
"headers":"",
|
| 153 |
+
"schema":""
|
| 154 |
+
},
|
| 155 |
+
{
|
| 156 |
+
"name":"Total live giveaways & worth estimation in dollars",
|
| 157 |
+
"url":"https://gamerpower.p.rapidapi.com/api/worth",
|
| 158 |
+
"description":"You can also use the \"platform\" and \"type\" parameters to get more specific results, eg: /api/worth?platform=steam?type=game",
|
| 159 |
+
"method":"GET",
|
| 160 |
+
"required_parameters":[],
|
| 161 |
+
"optional_parameters":[],
|
| 162 |
+
"code":"import requests\n\nurl = \"https://gamerpower.p.rapidapi.com/api/worth\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"gamerpower.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n",
|
| 163 |
+
"statuscode":111,
|
| 164 |
+
"body":"",
|
| 165 |
+
"headers":"",
|
| 166 |
+
"schema":""
|
| 167 |
+
},
|
| 168 |
+
{
|
| 169 |
+
"name":"All live giveaways",
|
| 170 |
+
"url":"https://gamerpower.p.rapidapi.com/api/giveaways",
|
| 171 |
+
"description":"Get all live giveaways.",
|
| 172 |
+
"method":"GET",
|
| 173 |
+
"required_parameters":[],
|
| 174 |
+
"optional_parameters":[],
|
| 175 |
+
"code":"import requests\n\nurl = \"https://gamerpower.p.rapidapi.com/api/giveaways\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"gamerpower.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n",
|
| 176 |
+
"statuscode":111,
|
| 177 |
+
"body":"",
|
| 178 |
+
"headers":"",
|
| 179 |
+
"schema":""
|
| 180 |
+
}
|
| 181 |
+
]
|
| 182 |
+
}
|
toolbench/toolenv/tools/Gaming/gamerpower/api.py
ADDED
|
@@ -0,0 +1,186 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import requests
|
| 2 |
+
import json
|
| 3 |
+
from datetime import date, datetime, timedelta
|
| 4 |
+
import os
|
| 5 |
+
|
| 6 |
+
from typing import Optional, Dict, Union, List
|
| 7 |
+
|
| 8 |
+
|
| 9 |
+
def filter_group_giveaways(platform: str, type: str='game.loot', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 10 |
+
"""
|
| 11 |
+
"Filter and group platforms and giveaway types to get personalized results."
|
| 12 |
+
|
| 13 |
+
"""
|
| 14 |
+
url = f"https://gamerpower.p.rapidapi.com/api/filter"
|
| 15 |
+
querystring = {'platform': platform, }
|
| 16 |
+
if type:
|
| 17 |
+
querystring['type'] = type
|
| 18 |
+
|
| 19 |
+
headers = {
|
| 20 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 21 |
+
"X-RapidAPI-Host": "gamerpower.p.rapidapi.com"
|
| 22 |
+
}
|
| 23 |
+
|
| 24 |
+
|
| 25 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 26 |
+
try:
|
| 27 |
+
observation = response.json()
|
| 28 |
+
except:
|
| 29 |
+
observation = response.text
|
| 30 |
+
return observation
|
| 31 |
+
|
| 32 |
+
def specific_giveaway_details(is_id: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 33 |
+
"""
|
| 34 |
+
"Get details from a specific giveaway (insert giveaway id)."
|
| 35 |
+
|
| 36 |
+
"""
|
| 37 |
+
url = f"https://gamerpower.p.rapidapi.com/api/giveaway"
|
| 38 |
+
querystring = {'id': is_id, }
|
| 39 |
+
|
| 40 |
+
headers = {
|
| 41 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 42 |
+
"X-RapidAPI-Host": "gamerpower.p.rapidapi.com"
|
| 43 |
+
}
|
| 44 |
+
|
| 45 |
+
|
| 46 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 47 |
+
try:
|
| 48 |
+
observation = response.json()
|
| 49 |
+
except:
|
| 50 |
+
observation = response.text
|
| 51 |
+
return observation
|
| 52 |
+
|
| 53 |
+
def live_giveaways_by_platform(platform: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 54 |
+
"""
|
| 55 |
+
"Insert platform eg: pc, steam, epic-games-store, uplay, gog, icthio, ps4, xbox-one, switch, android, ios, vr, battlenet"
|
| 56 |
+
|
| 57 |
+
"""
|
| 58 |
+
url = f"https://gamerpower.p.rapidapi.com/api/giveaways?"
|
| 59 |
+
querystring = {'platform': platform, }
|
| 60 |
+
|
| 61 |
+
headers = {
|
| 62 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 63 |
+
"X-RapidAPI-Host": "gamerpower.p.rapidapi.com"
|
| 64 |
+
}
|
| 65 |
+
|
| 66 |
+
|
| 67 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 68 |
+
try:
|
| 69 |
+
observation = response.json()
|
| 70 |
+
except:
|
| 71 |
+
observation = response.text
|
| 72 |
+
return observation
|
| 73 |
+
|
| 74 |
+
def live_giveaways_by_type(type: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 75 |
+
"""
|
| 76 |
+
"Get live giveaways by type, eg: game, loot, beta"
|
| 77 |
+
|
| 78 |
+
"""
|
| 79 |
+
url = f"https://gamerpower.p.rapidapi.com/api/giveaways?"
|
| 80 |
+
querystring = {'type': type, }
|
| 81 |
+
|
| 82 |
+
headers = {
|
| 83 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 84 |
+
"X-RapidAPI-Host": "gamerpower.p.rapidapi.com"
|
| 85 |
+
}
|
| 86 |
+
|
| 87 |
+
|
| 88 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 89 |
+
try:
|
| 90 |
+
observation = response.json()
|
| 91 |
+
except:
|
| 92 |
+
observation = response.text
|
| 93 |
+
return observation
|
| 94 |
+
|
| 95 |
+
def sort_live_giveaways(sort_by: str='value', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 96 |
+
"""
|
| 97 |
+
"Insert sort by, eg: date, value, popularity"
|
| 98 |
+
|
| 99 |
+
"""
|
| 100 |
+
url = f"https://gamerpower.p.rapidapi.com/api/giveaways?"
|
| 101 |
+
querystring = {}
|
| 102 |
+
if sort_by:
|
| 103 |
+
querystring['sort-by'] = sort_by
|
| 104 |
+
|
| 105 |
+
headers = {
|
| 106 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 107 |
+
"X-RapidAPI-Host": "gamerpower.p.rapidapi.com"
|
| 108 |
+
}
|
| 109 |
+
|
| 110 |
+
|
| 111 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 112 |
+
try:
|
| 113 |
+
observation = response.json()
|
| 114 |
+
except:
|
| 115 |
+
observation = response.text
|
| 116 |
+
return observation
|
| 117 |
+
|
| 118 |
+
def live_giveaways_by_platform_type_sorted(platform: str='steam', sort_by: str='popularity', type: str='loot', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 119 |
+
"""
|
| 120 |
+
"Get all live giveaways by platform and type and sorted."
|
| 121 |
+
|
| 122 |
+
"""
|
| 123 |
+
url = f"https://gamerpower.p.rapidapi.com/api/giveaways?"
|
| 124 |
+
querystring = {}
|
| 125 |
+
if platform:
|
| 126 |
+
querystring['platform'] = platform
|
| 127 |
+
if sort_by:
|
| 128 |
+
querystring['sort-by'] = sort_by
|
| 129 |
+
if type:
|
| 130 |
+
querystring['type'] = type
|
| 131 |
+
|
| 132 |
+
headers = {
|
| 133 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 134 |
+
"X-RapidAPI-Host": "gamerpower.p.rapidapi.com"
|
| 135 |
+
}
|
| 136 |
+
|
| 137 |
+
|
| 138 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 139 |
+
try:
|
| 140 |
+
observation = response.json()
|
| 141 |
+
except:
|
| 142 |
+
observation = response.text
|
| 143 |
+
return observation
|
| 144 |
+
|
| 145 |
+
def total_live_giveaways_worth_estimation_in_dollars(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 146 |
+
"""
|
| 147 |
+
"You can also use the "platform" and "type" parameters to get more specific results, eg: /api/worth?platform=steam?type=game"
|
| 148 |
+
|
| 149 |
+
"""
|
| 150 |
+
url = f"https://gamerpower.p.rapidapi.com/api/worth"
|
| 151 |
+
querystring = {}
|
| 152 |
+
|
| 153 |
+
headers = {
|
| 154 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 155 |
+
"X-RapidAPI-Host": "gamerpower.p.rapidapi.com"
|
| 156 |
+
}
|
| 157 |
+
|
| 158 |
+
|
| 159 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 160 |
+
try:
|
| 161 |
+
observation = response.json()
|
| 162 |
+
except:
|
| 163 |
+
observation = response.text
|
| 164 |
+
return observation
|
| 165 |
+
|
| 166 |
+
def all_live_giveaways(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 167 |
+
"""
|
| 168 |
+
"Get all live giveaways."
|
| 169 |
+
|
| 170 |
+
"""
|
| 171 |
+
url = f"https://gamerpower.p.rapidapi.com/api/giveaways"
|
| 172 |
+
querystring = {}
|
| 173 |
+
|
| 174 |
+
headers = {
|
| 175 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 176 |
+
"X-RapidAPI-Host": "gamerpower.p.rapidapi.com"
|
| 177 |
+
}
|
| 178 |
+
|
| 179 |
+
|
| 180 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 181 |
+
try:
|
| 182 |
+
observation = response.json()
|
| 183 |
+
except:
|
| 184 |
+
observation = response.text
|
| 185 |
+
return observation
|
| 186 |
+
|
toolbench/toolenv/tools/Gaming/games.json
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"tool_name":"games",
|
| 3 |
+
"tool_description":"games",
|
| 4 |
+
"title":"games",
|
| 5 |
+
"pricing":"FREE",
|
| 6 |
+
"score":null,
|
| 7 |
+
"home_url":"https://rapidapi.com/mubasheerhussain4/api/games34/",
|
| 8 |
+
"host":"games34.p.rapidapi.com",
|
| 9 |
+
"api_list":[
|
| 10 |
+
{
|
| 11 |
+
"name":"games",
|
| 12 |
+
"url":"https://games34.p.rapidapi.com/games",
|
| 13 |
+
"description":"none",
|
| 14 |
+
"method":"GET",
|
| 15 |
+
"required_parameters":[],
|
| 16 |
+
"optional_parameters":[],
|
| 17 |
+
"code":"import requests\n\nurl = \"https://games34.p.rapidapi.com/games\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"games34.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n",
|
| 18 |
+
"statuscode":111,
|
| 19 |
+
"body":"",
|
| 20 |
+
"headers":"",
|
| 21 |
+
"schema":""
|
| 22 |
+
}
|
| 23 |
+
]
|
| 24 |
+
}
|
toolbench/toolenv/tools/Gaming/games/api.py
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import requests
|
| 2 |
+
import json
|
| 3 |
+
from datetime import date, datetime, timedelta
|
| 4 |
+
import os
|
| 5 |
+
|
| 6 |
+
from typing import Optional, Dict, Union, List
|
| 7 |
+
|
| 8 |
+
|
| 9 |
+
def games(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 10 |
+
"""
|
| 11 |
+
"none"
|
| 12 |
+
|
| 13 |
+
"""
|
| 14 |
+
url = f"https://games34.p.rapidapi.com/games"
|
| 15 |
+
querystring = {}
|
| 16 |
+
|
| 17 |
+
headers = {
|
| 18 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 19 |
+
"X-RapidAPI-Host": "games34.p.rapidapi.com"
|
| 20 |
+
}
|
| 21 |
+
|
| 22 |
+
|
| 23 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 24 |
+
try:
|
| 25 |
+
observation = response.json()
|
| 26 |
+
except:
|
| 27 |
+
observation = response.text
|
| 28 |
+
return observation
|
| 29 |
+
|
toolbench/toolenv/tools/Gaming/games_details.json
ADDED
|
@@ -0,0 +1,386 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"tool_name":"Games Details",
|
| 3 |
+
"tool_description":"get steam platform games details including(system requirement for all operating system ( window, linux and macos ), supported language, developer details include(developer name, publisher , franchise)),reviews,news,screenshots and many more of all games present in steam platform.",
|
| 4 |
+
"title":"Games Details",
|
| 5 |
+
"pricing":"FREEMIUM",
|
| 6 |
+
"score":{
|
| 7 |
+
"avgServiceLevel":100,
|
| 8 |
+
"avgLatency":452,
|
| 9 |
+
"avgSuccessRate":100,
|
| 10 |
+
"popularityScore":9.3,
|
| 11 |
+
"__typename":"Score"
|
| 12 |
+
},
|
| 13 |
+
"home_url":"https://rapidapi.com/asusalman986/api/games-details/",
|
| 14 |
+
"host":"games-details.p.rapidapi.com",
|
| 15 |
+
"api_list":[
|
| 16 |
+
{
|
| 17 |
+
"name":"screenshots",
|
| 18 |
+
"url":"https://games-details.p.rapidapi.com/{id}/screenshots/{limit}",
|
| 19 |
+
"description":"**get gameplay screenshots**",
|
| 20 |
+
"method":"GET",
|
| 21 |
+
"required_parameters":[
|
| 22 |
+
{
|
| 23 |
+
"name":"id",
|
| 24 |
+
"type":"string",
|
| 25 |
+
"description":"",
|
| 26 |
+
"default":"730"
|
| 27 |
+
}
|
| 28 |
+
],
|
| 29 |
+
"optional_parameters":[
|
| 30 |
+
{
|
| 31 |
+
"name":"limit",
|
| 32 |
+
"type":"string",
|
| 33 |
+
"description":"**limit of 100 !**",
|
| 34 |
+
"default":"20"
|
| 35 |
+
}
|
| 36 |
+
],
|
| 37 |
+
"code":"import requests\n\nurl = \"https://games-details.p.rapidapi.com/{id}/screenshots/{limit}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"games-details.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n",
|
| 38 |
+
"statuscode":200,
|
| 39 |
+
"body":{
|
| 40 |
+
"key1":"value",
|
| 41 |
+
"key2":"value"
|
| 42 |
+
},
|
| 43 |
+
"headers":{},
|
| 44 |
+
"schema":{}
|
| 45 |
+
},
|
| 46 |
+
{
|
| 47 |
+
"name":"Official Announcement",
|
| 48 |
+
"url":"https://games-details.p.rapidapi.com/{id}/news/announcements/{limit}",
|
| 49 |
+
"description":"**get official announcement news**",
|
| 50 |
+
"method":"GET",
|
| 51 |
+
"required_parameters":[
|
| 52 |
+
{
|
| 53 |
+
"name":"id",
|
| 54 |
+
"type":"string",
|
| 55 |
+
"description":"",
|
| 56 |
+
"default":"730"
|
| 57 |
+
}
|
| 58 |
+
],
|
| 59 |
+
"optional_parameters":[
|
| 60 |
+
{
|
| 61 |
+
"name":"limit",
|
| 62 |
+
"type":"string",
|
| 63 |
+
"description":"**limit of 100 !**",
|
| 64 |
+
"default":"10"
|
| 65 |
+
}
|
| 66 |
+
],
|
| 67 |
+
"code":"import requests\n\nurl = \"https://games-details.p.rapidapi.com/{id}/news/announcements/{limit}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"games-details.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n",
|
| 68 |
+
"statuscode":200,
|
| 69 |
+
"body":{
|
| 70 |
+
"key1":"value",
|
| 71 |
+
"key2":"value"
|
| 72 |
+
},
|
| 73 |
+
"headers":{},
|
| 74 |
+
"schema":{}
|
| 75 |
+
},
|
| 76 |
+
{
|
| 77 |
+
"name":"Allnews",
|
| 78 |
+
"url":"https://games-details.p.rapidapi.com/{id}/news/allnews/{limit}",
|
| 79 |
+
"description":"**get allnews**",
|
| 80 |
+
"method":"GET",
|
| 81 |
+
"required_parameters":[
|
| 82 |
+
{
|
| 83 |
+
"name":"id",
|
| 84 |
+
"type":"string",
|
| 85 |
+
"description":"",
|
| 86 |
+
"default":"730"
|
| 87 |
+
}
|
| 88 |
+
],
|
| 89 |
+
"optional_parameters":[
|
| 90 |
+
{
|
| 91 |
+
"name":"limit",
|
| 92 |
+
"type":"string",
|
| 93 |
+
"description":"**limit of 100 !**",
|
| 94 |
+
"default":"30"
|
| 95 |
+
}
|
| 96 |
+
],
|
| 97 |
+
"code":"import requests\n\nurl = \"https://games-details.p.rapidapi.com/{id}/news/allnews/{limit}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"games-details.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n",
|
| 98 |
+
"statuscode":200,
|
| 99 |
+
"body":{
|
| 100 |
+
"key1":"value",
|
| 101 |
+
"key2":"value"
|
| 102 |
+
},
|
| 103 |
+
"headers":{},
|
| 104 |
+
"schema":{}
|
| 105 |
+
},
|
| 106 |
+
{
|
| 107 |
+
"name":"Trendday reviews",
|
| 108 |
+
"url":"https://games-details.p.rapidapi.com/{id}/reviews/trendday/{limit}",
|
| 109 |
+
"description":"Trendday reviews with limit of 100",
|
| 110 |
+
"method":"GET",
|
| 111 |
+
"required_parameters":[
|
| 112 |
+
{
|
| 113 |
+
"name":"id",
|
| 114 |
+
"type":"string",
|
| 115 |
+
"description":"",
|
| 116 |
+
"default":"730"
|
| 117 |
+
}
|
| 118 |
+
],
|
| 119 |
+
"optional_parameters":[
|
| 120 |
+
{
|
| 121 |
+
"name":"limit",
|
| 122 |
+
"type":"string",
|
| 123 |
+
"description":"**limit of 100 !**",
|
| 124 |
+
"default":"30"
|
| 125 |
+
}
|
| 126 |
+
],
|
| 127 |
+
"code":"import requests\n\nurl = \"https://games-details.p.rapidapi.com/{id}/reviews/trendday/{limit}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"games-details.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n",
|
| 128 |
+
"statuscode":200,
|
| 129 |
+
"body":{
|
| 130 |
+
"key1":"value",
|
| 131 |
+
"key2":"value"
|
| 132 |
+
},
|
| 133 |
+
"headers":{},
|
| 134 |
+
"schema":{}
|
| 135 |
+
},
|
| 136 |
+
{
|
| 137 |
+
"name":"Funny reviews",
|
| 138 |
+
"url":"https://games-details.p.rapidapi.com/{id}/reviews/funny/{limit}",
|
| 139 |
+
"description":"**get funny reviews**",
|
| 140 |
+
"method":"GET",
|
| 141 |
+
"required_parameters":[
|
| 142 |
+
{
|
| 143 |
+
"name":"id",
|
| 144 |
+
"type":"string",
|
| 145 |
+
"description":"",
|
| 146 |
+
"default":"730"
|
| 147 |
+
}
|
| 148 |
+
],
|
| 149 |
+
"optional_parameters":[
|
| 150 |
+
{
|
| 151 |
+
"name":"limit",
|
| 152 |
+
"type":"string",
|
| 153 |
+
"description":"**limit of 100 !**",
|
| 154 |
+
"default":"30"
|
| 155 |
+
}
|
| 156 |
+
],
|
| 157 |
+
"code":"import requests\n\nurl = \"https://games-details.p.rapidapi.com/{id}/reviews/funny/{limit}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"games-details.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n",
|
| 158 |
+
"statuscode":200,
|
| 159 |
+
"body":{
|
| 160 |
+
"key1":"value",
|
| 161 |
+
"key2":"value"
|
| 162 |
+
},
|
| 163 |
+
"headers":{},
|
| 164 |
+
"schema":{}
|
| 165 |
+
},
|
| 166 |
+
{
|
| 167 |
+
"name":"MostRecent reviews",
|
| 168 |
+
"url":"https://games-details.p.rapidapi.com/{id}/reviews/mostrecent/{limit}",
|
| 169 |
+
"description":"**get mostrecent reviews**",
|
| 170 |
+
"method":"GET",
|
| 171 |
+
"required_parameters":[
|
| 172 |
+
{
|
| 173 |
+
"name":"id",
|
| 174 |
+
"type":"string",
|
| 175 |
+
"description":"",
|
| 176 |
+
"default":"730"
|
| 177 |
+
}
|
| 178 |
+
],
|
| 179 |
+
"optional_parameters":[
|
| 180 |
+
{
|
| 181 |
+
"name":"limit",
|
| 182 |
+
"type":"string",
|
| 183 |
+
"description":"**In some cases reviews **officially** is less than the given limit and max limit is100 !**",
|
| 184 |
+
"default":"10"
|
| 185 |
+
}
|
| 186 |
+
],
|
| 187 |
+
"code":"import requests\n\nurl = \"https://games-details.p.rapidapi.com/{id}/reviews/mostrecent/{limit}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"games-details.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n",
|
| 188 |
+
"statuscode":200,
|
| 189 |
+
"body":{
|
| 190 |
+
"key1":"value",
|
| 191 |
+
"key2":"value"
|
| 192 |
+
},
|
| 193 |
+
"headers":{},
|
| 194 |
+
"schema":{}
|
| 195 |
+
},
|
| 196 |
+
{
|
| 197 |
+
"name":"Trendyear reviews",
|
| 198 |
+
"url":"https://games-details.p.rapidapi.com/{id}/reviews/trendyear/{limit}",
|
| 199 |
+
"description":"**get trendyear reviews !**",
|
| 200 |
+
"method":"GET",
|
| 201 |
+
"required_parameters":[
|
| 202 |
+
{
|
| 203 |
+
"name":"id",
|
| 204 |
+
"type":"string",
|
| 205 |
+
"description":"",
|
| 206 |
+
"default":"730"
|
| 207 |
+
}
|
| 208 |
+
],
|
| 209 |
+
"optional_parameters":[
|
| 210 |
+
{
|
| 211 |
+
"name":"limit",
|
| 212 |
+
"type":"string",
|
| 213 |
+
"description":"**limit of 100 !**",
|
| 214 |
+
"default":"30"
|
| 215 |
+
}
|
| 216 |
+
],
|
| 217 |
+
"code":"import requests\n\nurl = \"https://games-details.p.rapidapi.com/{id}/reviews/trendyear/{limit}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"games-details.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n",
|
| 218 |
+
"statuscode":200,
|
| 219 |
+
"body":{
|
| 220 |
+
"key1":"value",
|
| 221 |
+
"key2":"value"
|
| 222 |
+
},
|
| 223 |
+
"headers":{},
|
| 224 |
+
"schema":{}
|
| 225 |
+
},
|
| 226 |
+
{
|
| 227 |
+
"name":"Trendmonth reviews",
|
| 228 |
+
"url":"https://games-details.p.rapidapi.com/{id}/reviews/trendmonth/{limit}",
|
| 229 |
+
"description":"**get Trendmonth reviews !**",
|
| 230 |
+
"method":"GET",
|
| 231 |
+
"required_parameters":[
|
| 232 |
+
{
|
| 233 |
+
"name":"id",
|
| 234 |
+
"type":"string",
|
| 235 |
+
"description":"",
|
| 236 |
+
"default":"730"
|
| 237 |
+
}
|
| 238 |
+
],
|
| 239 |
+
"optional_parameters":[
|
| 240 |
+
{
|
| 241 |
+
"name":"limit",
|
| 242 |
+
"type":"string",
|
| 243 |
+
"description":"**limit of 100 !**",
|
| 244 |
+
"default":"30"
|
| 245 |
+
}
|
| 246 |
+
],
|
| 247 |
+
"code":"import requests\n\nurl = \"https://games-details.p.rapidapi.com/{id}/reviews/trendmonth/{limit}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"games-details.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n",
|
| 248 |
+
"statuscode":200,
|
| 249 |
+
"body":{
|
| 250 |
+
"key1":"value",
|
| 251 |
+
"key2":"value"
|
| 252 |
+
},
|
| 253 |
+
"headers":{},
|
| 254 |
+
"schema":{}
|
| 255 |
+
},
|
| 256 |
+
{
|
| 257 |
+
"name":"Trendweek reviews",
|
| 258 |
+
"url":"https://games-details.p.rapidapi.com/{id}/reviews/trendweek/{limit}",
|
| 259 |
+
"description":"trendweek reviews with limit of 100.",
|
| 260 |
+
"method":"GET",
|
| 261 |
+
"required_parameters":[
|
| 262 |
+
{
|
| 263 |
+
"name":"id",
|
| 264 |
+
"type":"string",
|
| 265 |
+
"description":"",
|
| 266 |
+
"default":"730"
|
| 267 |
+
}
|
| 268 |
+
],
|
| 269 |
+
"optional_parameters":[
|
| 270 |
+
{
|
| 271 |
+
"name":"limit",
|
| 272 |
+
"type":"string",
|
| 273 |
+
"description":"**limit of 100 !**",
|
| 274 |
+
"default":"30"
|
| 275 |
+
}
|
| 276 |
+
],
|
| 277 |
+
"code":"import requests\n\nurl = \"https://games-details.p.rapidapi.com/{id}/reviews/trendweek/{limit}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"games-details.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n",
|
| 278 |
+
"statuscode":200,
|
| 279 |
+
"body":{
|
| 280 |
+
"key1":"value",
|
| 281 |
+
"key2":"value"
|
| 282 |
+
},
|
| 283 |
+
"headers":{},
|
| 284 |
+
"schema":{}
|
| 285 |
+
},
|
| 286 |
+
{
|
| 287 |
+
"name":"TopRated reviews",
|
| 288 |
+
"url":"https://games-details.p.rapidapi.com/{id}/reviews/toprated/{limit}",
|
| 289 |
+
"description":"Get **TopRated** Reviews with **limit of 100** .It also suggest the review is Recommended or not Recommended in title.",
|
| 290 |
+
"method":"GET",
|
| 291 |
+
"required_parameters":[
|
| 292 |
+
{
|
| 293 |
+
"name":"id",
|
| 294 |
+
"type":"string",
|
| 295 |
+
"description":"",
|
| 296 |
+
"default":"730"
|
| 297 |
+
}
|
| 298 |
+
],
|
| 299 |
+
"optional_parameters":[
|
| 300 |
+
{
|
| 301 |
+
"name":"limit",
|
| 302 |
+
"type":"string",
|
| 303 |
+
"description":"",
|
| 304 |
+
"default":"30"
|
| 305 |
+
}
|
| 306 |
+
],
|
| 307 |
+
"code":"import requests\n\nurl = \"https://games-details.p.rapidapi.com/{id}/reviews/toprated/{limit}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"games-details.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n",
|
| 308 |
+
"statuscode":200,
|
| 309 |
+
"body":{
|
| 310 |
+
"key1":"value",
|
| 311 |
+
"key2":"value"
|
| 312 |
+
},
|
| 313 |
+
"headers":{},
|
| 314 |
+
"schema":{}
|
| 315 |
+
},
|
| 316 |
+
{
|
| 317 |
+
"name":"Search Game",
|
| 318 |
+
"url":"https://games-details.p.rapidapi.com/search/{sugg}",
|
| 319 |
+
"description":"**THIS ENDPOINT WILL RETURN ALL GAMES WHICH RELATED TO PARAMETER**",
|
| 320 |
+
"method":"GET",
|
| 321 |
+
"required_parameters":[
|
| 322 |
+
{
|
| 323 |
+
"name":"sugg",
|
| 324 |
+
"type":"string",
|
| 325 |
+
"description":"",
|
| 326 |
+
"default":"cs"
|
| 327 |
+
}
|
| 328 |
+
],
|
| 329 |
+
"optional_parameters":[],
|
| 330 |
+
"code":"import requests\n\nurl = \"https://games-details.p.rapidapi.com/search/{sugg}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"games-details.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n",
|
| 331 |
+
"statuscode":200,
|
| 332 |
+
"body":{
|
| 333 |
+
"key1":"value",
|
| 334 |
+
"key2":"value"
|
| 335 |
+
},
|
| 336 |
+
"headers":{},
|
| 337 |
+
"schema":{}
|
| 338 |
+
},
|
| 339 |
+
{
|
| 340 |
+
"name":"Single Game",
|
| 341 |
+
"url":"https://games-details.p.rapidapi.com/single_game/{id}",
|
| 342 |
+
"description":"**GET FULL DETAILS OF SINGLE GAME BY *ID* WITH SYSTEM REQUIREMENT**",
|
| 343 |
+
"method":"GET",
|
| 344 |
+
"required_parameters":[
|
| 345 |
+
{
|
| 346 |
+
"name":"id",
|
| 347 |
+
"type":"string",
|
| 348 |
+
"description":"",
|
| 349 |
+
"default":"730"
|
| 350 |
+
}
|
| 351 |
+
],
|
| 352 |
+
"optional_parameters":[],
|
| 353 |
+
"code":"import requests\n\nurl = \"https://games-details.p.rapidapi.com/single_game/{id}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"games-details.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n",
|
| 354 |
+
"statuscode":200,
|
| 355 |
+
"body":{
|
| 356 |
+
"key1":"value",
|
| 357 |
+
"key2":"value"
|
| 358 |
+
},
|
| 359 |
+
"headers":{},
|
| 360 |
+
"schema":{}
|
| 361 |
+
},
|
| 362 |
+
{
|
| 363 |
+
"name":"Page Number",
|
| 364 |
+
"url":"https://games-details.p.rapidapi.com/page/{page_no}",
|
| 365 |
+
"description":"**THERE ARE AROUND 5538 PAGES AND SINGLE PAGE CONTAIN 25 GAMES**",
|
| 366 |
+
"method":"GET",
|
| 367 |
+
"required_parameters":[
|
| 368 |
+
{
|
| 369 |
+
"name":"page_no",
|
| 370 |
+
"type":"string",
|
| 371 |
+
"description":"",
|
| 372 |
+
"default":"1"
|
| 373 |
+
}
|
| 374 |
+
],
|
| 375 |
+
"optional_parameters":[],
|
| 376 |
+
"code":"import requests\n\nurl = \"https://games-details.p.rapidapi.com/page/{page_no}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"games-details.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n",
|
| 377 |
+
"statuscode":200,
|
| 378 |
+
"body":{
|
| 379 |
+
"key1":"value",
|
| 380 |
+
"key2":"value"
|
| 381 |
+
},
|
| 382 |
+
"headers":{},
|
| 383 |
+
"schema":{}
|
| 384 |
+
}
|
| 385 |
+
]
|
| 386 |
+
}
|
toolbench/toolenv/tools/Gaming/games_details/api.py
ADDED
|
@@ -0,0 +1,310 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import requests
|
| 2 |
+
import json
|
| 3 |
+
from datetime import date, datetime, timedelta
|
| 4 |
+
import os
|
| 5 |
+
|
| 6 |
+
from typing import Optional, Dict, Union, List
|
| 7 |
+
|
| 8 |
+
|
| 9 |
+
def screenshots(is_id: str, limit: str='20', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 10 |
+
"""
|
| 11 |
+
"**get gameplay screenshots**"
|
| 12 |
+
limit: **limit of 100 !**
|
| 13 |
+
|
| 14 |
+
"""
|
| 15 |
+
url = f"https://games-details.p.rapidapi.com/{is_id}/screenshots/{limit}"
|
| 16 |
+
querystring = {}
|
| 17 |
+
if limit:
|
| 18 |
+
querystring['limit'] = limit
|
| 19 |
+
|
| 20 |
+
headers = {
|
| 21 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 22 |
+
"X-RapidAPI-Host": "games-details.p.rapidapi.com"
|
| 23 |
+
}
|
| 24 |
+
|
| 25 |
+
|
| 26 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 27 |
+
try:
|
| 28 |
+
observation = response.json()
|
| 29 |
+
except:
|
| 30 |
+
observation = response.text
|
| 31 |
+
return observation
|
| 32 |
+
|
| 33 |
+
def official_announcement(is_id: str, limit: str='10', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 34 |
+
"""
|
| 35 |
+
"**get official announcement news**"
|
| 36 |
+
limit: **limit of 100 !**
|
| 37 |
+
|
| 38 |
+
"""
|
| 39 |
+
url = f"https://games-details.p.rapidapi.com/{is_id}/news/announcements/{limit}"
|
| 40 |
+
querystring = {}
|
| 41 |
+
if limit:
|
| 42 |
+
querystring['limit'] = limit
|
| 43 |
+
|
| 44 |
+
headers = {
|
| 45 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 46 |
+
"X-RapidAPI-Host": "games-details.p.rapidapi.com"
|
| 47 |
+
}
|
| 48 |
+
|
| 49 |
+
|
| 50 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 51 |
+
try:
|
| 52 |
+
observation = response.json()
|
| 53 |
+
except:
|
| 54 |
+
observation = response.text
|
| 55 |
+
return observation
|
| 56 |
+
|
| 57 |
+
def allnews(is_id: str, limit: str='30', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 58 |
+
"""
|
| 59 |
+
"**get allnews**"
|
| 60 |
+
limit: **limit of 100 !**
|
| 61 |
+
|
| 62 |
+
"""
|
| 63 |
+
url = f"https://games-details.p.rapidapi.com/{is_id}/news/allnews/{limit}"
|
| 64 |
+
querystring = {}
|
| 65 |
+
if limit:
|
| 66 |
+
querystring['limit'] = limit
|
| 67 |
+
|
| 68 |
+
headers = {
|
| 69 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 70 |
+
"X-RapidAPI-Host": "games-details.p.rapidapi.com"
|
| 71 |
+
}
|
| 72 |
+
|
| 73 |
+
|
| 74 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 75 |
+
try:
|
| 76 |
+
observation = response.json()
|
| 77 |
+
except:
|
| 78 |
+
observation = response.text
|
| 79 |
+
return observation
|
| 80 |
+
|
| 81 |
+
def trendday_reviews(is_id: str, limit: str='30', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 82 |
+
"""
|
| 83 |
+
"Trendday reviews with limit of 100"
|
| 84 |
+
limit: **limit of 100 !**
|
| 85 |
+
|
| 86 |
+
"""
|
| 87 |
+
url = f"https://games-details.p.rapidapi.com/{is_id}/reviews/trendday/{limit}"
|
| 88 |
+
querystring = {}
|
| 89 |
+
if limit:
|
| 90 |
+
querystring['limit'] = limit
|
| 91 |
+
|
| 92 |
+
headers = {
|
| 93 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 94 |
+
"X-RapidAPI-Host": "games-details.p.rapidapi.com"
|
| 95 |
+
}
|
| 96 |
+
|
| 97 |
+
|
| 98 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 99 |
+
try:
|
| 100 |
+
observation = response.json()
|
| 101 |
+
except:
|
| 102 |
+
observation = response.text
|
| 103 |
+
return observation
|
| 104 |
+
|
| 105 |
+
def funny_reviews(is_id: str, limit: str='30', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 106 |
+
"""
|
| 107 |
+
"**get funny reviews**"
|
| 108 |
+
limit: **limit of 100 !**
|
| 109 |
+
|
| 110 |
+
"""
|
| 111 |
+
url = f"https://games-details.p.rapidapi.com/{is_id}/reviews/funny/{limit}"
|
| 112 |
+
querystring = {}
|
| 113 |
+
if limit:
|
| 114 |
+
querystring['limit'] = limit
|
| 115 |
+
|
| 116 |
+
headers = {
|
| 117 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 118 |
+
"X-RapidAPI-Host": "games-details.p.rapidapi.com"
|
| 119 |
+
}
|
| 120 |
+
|
| 121 |
+
|
| 122 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 123 |
+
try:
|
| 124 |
+
observation = response.json()
|
| 125 |
+
except:
|
| 126 |
+
observation = response.text
|
| 127 |
+
return observation
|
| 128 |
+
|
| 129 |
+
def mostrecent_reviews(is_id: str, limit: str='10', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 130 |
+
"""
|
| 131 |
+
"**get mostrecent reviews**"
|
| 132 |
+
limit: **In some cases reviews **officially** is less than the given limit and max limit is100 !**
|
| 133 |
+
|
| 134 |
+
"""
|
| 135 |
+
url = f"https://games-details.p.rapidapi.com/{is_id}/reviews/mostrecent/{limit}"
|
| 136 |
+
querystring = {}
|
| 137 |
+
if limit:
|
| 138 |
+
querystring['limit'] = limit
|
| 139 |
+
|
| 140 |
+
headers = {
|
| 141 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 142 |
+
"X-RapidAPI-Host": "games-details.p.rapidapi.com"
|
| 143 |
+
}
|
| 144 |
+
|
| 145 |
+
|
| 146 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 147 |
+
try:
|
| 148 |
+
observation = response.json()
|
| 149 |
+
except:
|
| 150 |
+
observation = response.text
|
| 151 |
+
return observation
|
| 152 |
+
|
| 153 |
+
def trendyear_reviews(is_id: str, limit: str='30', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 154 |
+
"""
|
| 155 |
+
"**get trendyear reviews !**"
|
| 156 |
+
limit: **limit of 100 !**
|
| 157 |
+
|
| 158 |
+
"""
|
| 159 |
+
url = f"https://games-details.p.rapidapi.com/{is_id}/reviews/trendyear/{limit}"
|
| 160 |
+
querystring = {}
|
| 161 |
+
if limit:
|
| 162 |
+
querystring['limit'] = limit
|
| 163 |
+
|
| 164 |
+
headers = {
|
| 165 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 166 |
+
"X-RapidAPI-Host": "games-details.p.rapidapi.com"
|
| 167 |
+
}
|
| 168 |
+
|
| 169 |
+
|
| 170 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 171 |
+
try:
|
| 172 |
+
observation = response.json()
|
| 173 |
+
except:
|
| 174 |
+
observation = response.text
|
| 175 |
+
return observation
|
| 176 |
+
|
| 177 |
+
def trendmonth_reviews(is_id: str, limit: str='30', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 178 |
+
"""
|
| 179 |
+
"**get Trendmonth reviews !**"
|
| 180 |
+
limit: **limit of 100 !**
|
| 181 |
+
|
| 182 |
+
"""
|
| 183 |
+
url = f"https://games-details.p.rapidapi.com/{is_id}/reviews/trendmonth/{limit}"
|
| 184 |
+
querystring = {}
|
| 185 |
+
if limit:
|
| 186 |
+
querystring['limit'] = limit
|
| 187 |
+
|
| 188 |
+
headers = {
|
| 189 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 190 |
+
"X-RapidAPI-Host": "games-details.p.rapidapi.com"
|
| 191 |
+
}
|
| 192 |
+
|
| 193 |
+
|
| 194 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 195 |
+
try:
|
| 196 |
+
observation = response.json()
|
| 197 |
+
except:
|
| 198 |
+
observation = response.text
|
| 199 |
+
return observation
|
| 200 |
+
|
| 201 |
+
def trendweek_reviews(is_id: str, limit: str='30', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 202 |
+
"""
|
| 203 |
+
"trendweek reviews with limit of 100."
|
| 204 |
+
limit: **limit of 100 !**
|
| 205 |
+
|
| 206 |
+
"""
|
| 207 |
+
url = f"https://games-details.p.rapidapi.com/{is_id}/reviews/trendweek/{limit}"
|
| 208 |
+
querystring = {}
|
| 209 |
+
if limit:
|
| 210 |
+
querystring['limit'] = limit
|
| 211 |
+
|
| 212 |
+
headers = {
|
| 213 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 214 |
+
"X-RapidAPI-Host": "games-details.p.rapidapi.com"
|
| 215 |
+
}
|
| 216 |
+
|
| 217 |
+
|
| 218 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 219 |
+
try:
|
| 220 |
+
observation = response.json()
|
| 221 |
+
except:
|
| 222 |
+
observation = response.text
|
| 223 |
+
return observation
|
| 224 |
+
|
| 225 |
+
def toprated_reviews(is_id: str, limit: str='30', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 226 |
+
"""
|
| 227 |
+
"Get **TopRated** Reviews with **limit of 100** .It also suggest the review is Recommended or not Recommended in title."
|
| 228 |
+
|
| 229 |
+
"""
|
| 230 |
+
url = f"https://games-details.p.rapidapi.com/{is_id}/reviews/toprated/{limit}"
|
| 231 |
+
querystring = {}
|
| 232 |
+
if limit:
|
| 233 |
+
querystring['limit'] = limit
|
| 234 |
+
|
| 235 |
+
headers = {
|
| 236 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 237 |
+
"X-RapidAPI-Host": "games-details.p.rapidapi.com"
|
| 238 |
+
}
|
| 239 |
+
|
| 240 |
+
|
| 241 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 242 |
+
try:
|
| 243 |
+
observation = response.json()
|
| 244 |
+
except:
|
| 245 |
+
observation = response.text
|
| 246 |
+
return observation
|
| 247 |
+
|
| 248 |
+
def search_game(sugg: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 249 |
+
"""
|
| 250 |
+
"**THIS ENDPOINT WILL RETURN ALL GAMES WHICH RELATED TO PARAMETER**"
|
| 251 |
+
|
| 252 |
+
"""
|
| 253 |
+
url = f"https://games-details.p.rapidapi.com/search/{sugg}"
|
| 254 |
+
querystring = {}
|
| 255 |
+
|
| 256 |
+
headers = {
|
| 257 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 258 |
+
"X-RapidAPI-Host": "games-details.p.rapidapi.com"
|
| 259 |
+
}
|
| 260 |
+
|
| 261 |
+
|
| 262 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 263 |
+
try:
|
| 264 |
+
observation = response.json()
|
| 265 |
+
except:
|
| 266 |
+
observation = response.text
|
| 267 |
+
return observation
|
| 268 |
+
|
| 269 |
+
def single_game(is_id: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 270 |
+
"""
|
| 271 |
+
"**GET FULL DETAILS OF SINGLE GAME BY *ID* WITH SYSTEM REQUIREMENT**"
|
| 272 |
+
|
| 273 |
+
"""
|
| 274 |
+
url = f"https://games-details.p.rapidapi.com/single_game/{is_id}"
|
| 275 |
+
querystring = {}
|
| 276 |
+
|
| 277 |
+
headers = {
|
| 278 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 279 |
+
"X-RapidAPI-Host": "games-details.p.rapidapi.com"
|
| 280 |
+
}
|
| 281 |
+
|
| 282 |
+
|
| 283 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 284 |
+
try:
|
| 285 |
+
observation = response.json()
|
| 286 |
+
except:
|
| 287 |
+
observation = response.text
|
| 288 |
+
return observation
|
| 289 |
+
|
| 290 |
+
def page_number(page_no: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 291 |
+
"""
|
| 292 |
+
"**THERE ARE AROUND 5538 PAGES AND SINGLE PAGE CONTAIN 25 GAMES**"
|
| 293 |
+
|
| 294 |
+
"""
|
| 295 |
+
url = f"https://games-details.p.rapidapi.com/page/{page_no}"
|
| 296 |
+
querystring = {}
|
| 297 |
+
|
| 298 |
+
headers = {
|
| 299 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 300 |
+
"X-RapidAPI-Host": "games-details.p.rapidapi.com"
|
| 301 |
+
}
|
| 302 |
+
|
| 303 |
+
|
| 304 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 305 |
+
try:
|
| 306 |
+
observation = response.json()
|
| 307 |
+
except:
|
| 308 |
+
observation = response.text
|
| 309 |
+
return observation
|
| 310 |
+
|
toolbench/toolenv/tools/Gaming/gaming_gear.json
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"tool_name":"Gaming Gear",
|
| 3 |
+
"tool_description":"Fetching the best gaming gears, keyboards, mice and headsets according to several websites such as Pc Gamer and Tom's Guide.",
|
| 4 |
+
"title":"Gaming Gear",
|
| 5 |
+
"pricing":"FREEMIUM",
|
| 6 |
+
"score":{
|
| 7 |
+
"avgServiceLevel":0,
|
| 8 |
+
"avgLatency":352,
|
| 9 |
+
"avgSuccessRate":0,
|
| 10 |
+
"popularityScore":0,
|
| 11 |
+
"__typename":"Score"
|
| 12 |
+
},
|
| 13 |
+
"home_url":"https://rapidapi.com/Axent/api/gaming-gear/",
|
| 14 |
+
"host":"gaming-gear.p.rapidapi.com",
|
| 15 |
+
"api_list":[
|
| 16 |
+
{
|
| 17 |
+
"name":"Get all the best headphones",
|
| 18 |
+
"url":"https://gaming-gear.p.rapidapi.com/headphones",
|
| 19 |
+
"description":"Get all the best headphones from various websites",
|
| 20 |
+
"method":"GET",
|
| 21 |
+
"required_parameters":[],
|
| 22 |
+
"optional_parameters":[],
|
| 23 |
+
"code":"import requests\n\nurl = \"https://gaming-gear.p.rapidapi.com/headphones\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"gaming-gear.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n",
|
| 24 |
+
"statuscode":111,
|
| 25 |
+
"body":"",
|
| 26 |
+
"headers":"",
|
| 27 |
+
"schema":""
|
| 28 |
+
},
|
| 29 |
+
{
|
| 30 |
+
"name":"Get all the best keyboards",
|
| 31 |
+
"url":"https://gaming-gear.p.rapidapi.com/keyboard",
|
| 32 |
+
"description":"Get all the best keyboards from various websites",
|
| 33 |
+
"method":"GET",
|
| 34 |
+
"required_parameters":[],
|
| 35 |
+
"optional_parameters":[],
|
| 36 |
+
"code":"import requests\n\nurl = \"https://gaming-gear.p.rapidapi.com/keyboard\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"gaming-gear.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n",
|
| 37 |
+
"statuscode":111,
|
| 38 |
+
"body":"",
|
| 39 |
+
"headers":"",
|
| 40 |
+
"schema":""
|
| 41 |
+
},
|
| 42 |
+
{
|
| 43 |
+
"name":"Get all the best mice in the market",
|
| 44 |
+
"url":"https://gaming-gear.p.rapidapi.com/mouse",
|
| 45 |
+
"description":"This will give you the best mice from all the websites such as PC Gamer and Tom's guide",
|
| 46 |
+
"method":"GET",
|
| 47 |
+
"required_parameters":[],
|
| 48 |
+
"optional_parameters":[],
|
| 49 |
+
"code":"import requests\n\nurl = \"https://gaming-gear.p.rapidapi.com/mouse\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"gaming-gear.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n",
|
| 50 |
+
"statuscode":111,
|
| 51 |
+
"body":"",
|
| 52 |
+
"headers":"",
|
| 53 |
+
"schema":""
|
| 54 |
+
}
|
| 55 |
+
]
|
| 56 |
+
}
|