Septzzz commited on
Commit
1075fa7
·
verified ·
1 Parent(s): 90ae246

Upload folder using huggingface_hub (part 14)

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. .gitattributes +4 -0
  2. toolbench/toolenv/tools/Entertainment/youtube_data.json +0 -0
  3. toolbench/toolenv/tools/Entertainment/youtube_downloader.json +43 -0
  4. toolbench/toolenv/tools/Entertainment/youtube_downloader/api.py +32 -0
  5. toolbench/toolenv/tools/Entertainment/youtube_search_and_download.json +310 -0
  6. toolbench/toolenv/tools/Entertainment/youtube_search_and_download/api.py +289 -0
  7. toolbench/toolenv/tools/Entertainment/youtube_search_helpers.json +37 -0
  8. toolbench/toolenv/tools/Entertainment/youtube_search_helpers/api.py +29 -0
  9. toolbench/toolenv/tools/Entertainment/youtube_subscribers_count.json +24 -0
  10. toolbench/toolenv/tools/Entertainment/youtube_subscribers_count/api.py +29 -0
  11. toolbench/toolenv/tools/Entertainment/youtube_to_mp4.json +77 -0
  12. toolbench/toolenv/tools/Entertainment/youtube_to_mp4/api.py +31 -0
  13. toolbench/toolenv/tools/Entertainment/youtube_video_downloader.json +31 -0
  14. toolbench/toolenv/tools/Entertainment/youtube_video_downloader/api.py +29 -0
  15. toolbench/toolenv/tools/Entertainment/ytgrabber/api.py +30 -0
  16. toolbench/toolenv/tools/Entertainment/yurna.json +24 -0
  17. toolbench/toolenv/tools/Entertainment/yurna/api.py +29 -0
  18. toolbench/toolenv/tools/Entertainment/zodiac_info.json +37 -0
  19. toolbench/toolenv/tools/Entertainment/zodiac_info/api.py +29 -0
  20. toolbench/toolenv/tools/Events/10times_scraper/api.py +68 -0
  21. toolbench/toolenv/tools/Events/art_openings_italy.json +184 -0
  22. toolbench/toolenv/tools/Events/art_openings_italy/api.py +140 -0
  23. toolbench/toolenv/tools/Events/bid.json +37 -0
  24. toolbench/toolenv/tools/Events/bid/api.py +29 -0
  25. toolbench/toolenv/tools/Events/birthday_cake_with_name_generator.json +24 -0
  26. toolbench/toolenv/tools/Events/birthday_cake_with_name_generator/api.py +29 -0
  27. toolbench/toolenv/tools/Events/calendarific.json +43 -0
  28. toolbench/toolenv/tools/Events/calendarific/api.py +31 -0
  29. toolbench/toolenv/tools/Events/calendars.json +83 -0
  30. toolbench/toolenv/tools/Events/calendars/api.py +31 -0
  31. toolbench/toolenv/tools/Events/canada_holidays/api.py +163 -0
  32. toolbench/toolenv/tools/Events/checkiday.json +136 -0
  33. toolbench/toolenv/tools/Events/checkiday/api.py +114 -0
  34. toolbench/toolenv/tools/Events/contests.json +85 -0
  35. toolbench/toolenv/tools/Events/contests/api.py +50 -0
  36. toolbench/toolenv/tools/Events/crypto_events_calendar.json +43 -0
  37. toolbench/toolenv/tools/Events/crypto_events_calendar/api.py +31 -0
  38. toolbench/toolenv/tools/Events/demo_project.json +0 -0
  39. toolbench/toolenv/tools/Events/demo_project/api.py +155 -0
  40. toolbench/toolenv/tools/Events/enoch_calendar.json +418 -0
  41. toolbench/toolenv/tools/Events/enoch_calendar/api.py +198 -0
  42. toolbench/toolenv/tools/Events/eventful.json +0 -0
  43. toolbench/toolenv/tools/Events/events_happened_in_world.json +357 -0
  44. toolbench/toolenv/tools/Events/events_happened_in_world/api.py +121 -0
  45. toolbench/toolenv/tools/Events/ewaiverpro.json +24 -0
  46. toolbench/toolenv/tools/Events/ewaiverpro/api.py +29 -0
  47. toolbench/toolenv/tools/Events/feriados_brasileiros.json +75 -0
  48. toolbench/toolenv/tools/Events/feriados_brasileiros/api.py +50 -0
  49. toolbench/toolenv/tools/Events/fight_events.json +24 -0
  50. toolbench/toolenv/tools/Events/fisrt.json +30 -0
.gitattributes CHANGED
@@ -64,3 +64,7 @@ tau2/domains/telecom/tasks_full.json filter=lfs diff=lfs merge=lfs -text
64
  tau2/domains/telecom/tasks_voice.json filter=lfs diff=lfs merge=lfs -text
65
  toolbench/toolenv/tools/Business/ziff.json filter=lfs diff=lfs merge=lfs -text
66
  toolbench/toolenv/tools/Data/twitter_data.json filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
64
  tau2/domains/telecom/tasks_voice.json filter=lfs diff=lfs merge=lfs -text
65
  toolbench/toolenv/tools/Business/ziff.json filter=lfs diff=lfs merge=lfs -text
66
  toolbench/toolenv/tools/Data/twitter_data.json filter=lfs diff=lfs merge=lfs -text
67
+ toolbench/toolenv/tools/Finance/changenow_crypto_exchange.json filter=lfs diff=lfs merge=lfs -text
68
+ toolbench/toolenv/tools/Finance/defi_data.json filter=lfs diff=lfs merge=lfs -text
69
+ toolbench/toolenv/tools/Finance/prague_stock_exchange.json filter=lfs diff=lfs merge=lfs -text
70
+ toolbench/toolenv/tools/Finance/sec_edgar.json filter=lfs diff=lfs merge=lfs -text
toolbench/toolenv/tools/Entertainment/youtube_data.json ADDED
The diff for this file is too large to render. See raw diff
 
toolbench/toolenv/tools/Entertainment/youtube_downloader.json ADDED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "tool_name":"youtube-downloader",
3
+ "tool_description":"download youtube videos for free",
4
+ "title":"youtube-downloader",
5
+ "pricing":"FREEMIUM",
6
+ "score":{
7
+ "avgServiceLevel":100,
8
+ "avgLatency":564,
9
+ "avgSuccessRate":0,
10
+ "popularityScore":0,
11
+ "__typename":"Score"
12
+ },
13
+ "home_url":"https://rapidapi.com/vanquisher2000/api/youtube-downloader9/",
14
+ "host":"youtube-downloader9.p.rapidapi.com",
15
+ "api_list":[
16
+ {
17
+ "name":"request video formats",
18
+ "url":"https://youtube-downloader9.p.rapidapi.com/{videoid}/{filter}",
19
+ "description":"filter can be : \naudioonly\nvideoonly\nvideoandaudio",
20
+ "method":"GET",
21
+ "required_parameters":[
22
+ {
23
+ "name":"filter",
24
+ "type":"string",
25
+ "description":"",
26
+ "default":"videoandaudio"
27
+ },
28
+ {
29
+ "name":"videoid",
30
+ "type":"string",
31
+ "description":"",
32
+ "default":"CiGnubZC5cs"
33
+ }
34
+ ],
35
+ "optional_parameters":[],
36
+ "code":"import requests\n\nurl = \"https://youtube-downloader9.p.rapidapi.com/{videoid}/{filter}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"youtube-downloader9.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
+ }
toolbench/toolenv/tools/Entertainment/youtube_downloader/api.py ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 request_video_formats(filter: str, videoid: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
10
+ """
11
+ "filter can be :
12
+ audioonly
13
+ videoonly
14
+ videoandaudio"
15
+
16
+ """
17
+ url = f"https://youtube-downloader9.p.rapidapi.com/{videoid}/{filter}"
18
+ querystring = {}
19
+
20
+ headers = {
21
+ "X-RapidAPI-Key": toolbench_rapidapi_key,
22
+ "X-RapidAPI-Host": "youtube-downloader9.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
+
toolbench/toolenv/tools/Entertainment/youtube_search_and_download.json ADDED
@@ -0,0 +1,310 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "tool_name":"Youtube Search and Download",
3
+ "tool_description":"Get info about channel, playlist, video, get trendings or search everything you want in YouTube",
4
+ "title":"Youtube Search and Download",
5
+ "pricing":"FREEMIUM",
6
+ "score":{
7
+ "avgServiceLevel":100,
8
+ "avgLatency":473,
9
+ "avgSuccessRate":100,
10
+ "popularityScore":9.9,
11
+ "__typename":"Score"
12
+ },
13
+ "home_url":"https://rapidapi.com/h0p3rwe/api/youtube-search-and-download/",
14
+ "host":"youtube-search-and-download.p.rapidapi.com",
15
+ "api_list":[
16
+ {
17
+ "name":"About channel",
18
+ "url":"https://youtube-search-and-download.p.rapidapi.com/channel/about",
19
+ "description":"Return more info about channel",
20
+ "method":"GET",
21
+ "required_parameters":[
22
+ {
23
+ "name":"id",
24
+ "type":"STRING",
25
+ "description":"Channel id",
26
+ "default":"UCE_M8A5yxnLfW0KghEeajjw"
27
+ }
28
+ ],
29
+ "optional_parameters":[],
30
+ "code":"import requests\n\nurl = \"https://youtube-search-and-download.p.rapidapi.com/channel/about\"\nquerystring = {\"id\": id}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"youtube-search-and-download.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n",
31
+ "statuscode":200,
32
+ "body":{
33
+ "key1":"value",
34
+ "key2":"value"
35
+ },
36
+ "headers":{},
37
+ "schema":{}
38
+ },
39
+ {
40
+ "name":"Channel",
41
+ "url":"https://youtube-search-and-download.p.rapidapi.com/channel",
42
+ "description":"Channel videos",
43
+ "method":"GET",
44
+ "required_parameters":[],
45
+ "optional_parameters":[
46
+ {
47
+ "name":"next",
48
+ "type":"STRING",
49
+ "description":"Pagination(continuation) parameter to get next channel video, no need any other parameters if 'next' present.\nCan be obtained from inside channel request result.",
50
+ "default":"4qmFsgKFARIYVUNpVEdLQTlXMEcwVEw4SG03VWZfdTlBGjpFZ1oyYVdSbGIzTVlBeUFBTUFFNEFlb0RGa05uUVZORFoycHdNazVFTkRWT2VVcHNhMmR2VFdjJTNEmgIsYnJvd3NlLWZlZWRVQ2lUR0tBOVcwRzBUTDhIbTdVZl91OUF2aWRlb3MxMDI%3D"
51
+ },
52
+ {
53
+ "name":"filter",
54
+ "type":"STRING",
55
+ "description":"Filter for live streams. Available options:\nl - live now;\np - past live streams;",
56
+ "default":""
57
+ },
58
+ {
59
+ "name":"id",
60
+ "type":"STRING",
61
+ "description":"Channel id.",
62
+ "default":"UCiTGKA9W0G0TL8Hm7Uf_u9A"
63
+ },
64
+ {
65
+ "name":"sort",
66
+ "type":"STRING",
67
+ "description":"Sort parameter. Available options:\nn - newest;\no - oldest;\np - popular",
68
+ "default":"n"
69
+ }
70
+ ],
71
+ "code":"import requests\n\nurl = \"https://youtube-search-and-download.p.rapidapi.com/channel\"\nquerystring = {\"next\": next, \"id\": id, \"sort\": sort}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"youtube-search-and-download.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n",
72
+ "statuscode":200,
73
+ "body":{
74
+ "key1":"value",
75
+ "key2":"value"
76
+ },
77
+ "headers":{},
78
+ "schema":{}
79
+ },
80
+ {
81
+ "name":"Video related",
82
+ "url":"https://youtube-search-and-download.p.rapidapi.com/video/related",
83
+ "description":"Get related videos",
84
+ "method":"GET",
85
+ "required_parameters":[
86
+ {
87
+ "name":"id",
88
+ "type":"STRING",
89
+ "description":"Video id",
90
+ "default":"YQHsXMglC9A"
91
+ }
92
+ ],
93
+ "optional_parameters":[
94
+ {
95
+ "name":"next",
96
+ "type":"STRING",
97
+ "description":"Pagination(continuation) parameter to get more related videos, no need any other parameters if 'next' present.\nCan be obtained from first response.",
98
+ "default":"CBQSDRILWVFIc1hNZ2xDOUEYACreAQjQr43tubfzi64BCNi24eOapu-n7AEIgejpz9fcuPajAQjwqMe8v7SEuJ0BCI3CwqDWu4nahAEItNrrwNnAzuQ1CK6-ooCH-Jj5JAik8O-ahq3L1sYBCMb965f10YS4UwiNkaXwtL_gzi4I1vOMu5f7r4HeAQjEuYHvqNfimgwIzvHK75mt1Z27AQjw_7n5yaLZ3_UBCJOq5eCOo-XS_QEIocGSnpeajIsXCN2F2tj65L_4zwEI4KbhwtjP98duCI_C_IbhttbzTAi2gO-y3KbjuZgBCNbN7-m31YCKVmoPd2F0Y2gtbmV4dC1mZWVk"
99
+ },
100
+ {
101
+ "name":"hl",
102
+ "type":"STRING",
103
+ "description":"Locale/language for request",
104
+ "default":"en"
105
+ },
106
+ {
107
+ "name":"gl",
108
+ "type":"STRING",
109
+ "description":"Country code like US(default), UK, BE, etc...",
110
+ "default":"US"
111
+ }
112
+ ],
113
+ "code":"import requests\n\nurl = \"https://youtube-search-and-download.p.rapidapi.com/video/related\"\nquerystring = {\"id\": id, \"next\": next, \"hl\": hl, \"gl\": gl}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"youtube-search-and-download.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n",
114
+ "statuscode":200,
115
+ "body":{
116
+ "key1":"value",
117
+ "key2":"value"
118
+ },
119
+ "headers":{},
120
+ "schema":{}
121
+ },
122
+ {
123
+ "name":"Video comments",
124
+ "url":"https://youtube-search-and-download.p.rapidapi.com/video/comments",
125
+ "description":"Get video comments list.\nIf you need sorting then use \"sortTopNext\" or \"sortNewestNext\" fields from first response and pass it to \"next\" parameter.",
126
+ "method":"GET",
127
+ "required_parameters":[],
128
+ "optional_parameters":[
129
+ {
130
+ "name":"next",
131
+ "type":"STRING",
132
+ "description":"Pagination(continuation) parameter to get more comments , no need any other parameters if 'next' present. Could be used for sorting, just pass \\\"sortNewestNext\\\" or \\\"sortTopNext\\\" field values for newest or top sorting.\nCan be obtained from response with \\\"id\\\" parameter in request",
133
+ "default":"Eg0SC1lRSHNYTWdsQzlBGAYyJSIRIgtZUUhzWE1nbEM5QTAAeAJCEGNvbW1lbnRzLXNlY3Rpb24%3D"
134
+ },
135
+ {
136
+ "name":"id",
137
+ "type":"STRING",
138
+ "description":"Video id to get first part of comments.\n",
139
+ "default":"YQHsXMglC9A"
140
+ }
141
+ ],
142
+ "code":"import requests\n\nurl = \"https://youtube-search-and-download.p.rapidapi.com/video/comments\"\nquerystring = {\"next\": next, \"id\": id}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"youtube-search-and-download.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n",
143
+ "statuscode":200,
144
+ "body":{
145
+ "key1":"value",
146
+ "key2":"value"
147
+ },
148
+ "headers":{},
149
+ "schema":{}
150
+ },
151
+ {
152
+ "name":"Trending",
153
+ "url":"https://youtube-search-and-download.p.rapidapi.com/trending",
154
+ "description":"Get list of trending videos",
155
+ "method":"GET",
156
+ "required_parameters":[],
157
+ "optional_parameters":[
158
+ {
159
+ "name":"hl",
160
+ "type":"STRING",
161
+ "description":"Locale/language for request",
162
+ "default":"en"
163
+ },
164
+ {
165
+ "name":"gl",
166
+ "type":"STRING",
167
+ "description":"Country from you want get trendings like US(default), UK, BE, etc...",
168
+ "default":"US"
169
+ },
170
+ {
171
+ "name":"type",
172
+ "type":"STRING",
173
+ "description":"Type of trending videos:\nn - now (default)\nmu - music\nmo - movies\ng - gaming",
174
+ "default":"mu"
175
+ }
176
+ ],
177
+ "code":"import requests\n\nurl = \"https://youtube-search-and-download.p.rapidapi.com/trending\"\nquerystring = {\"hl\": hl, \"gl\": gl, \"type\": type}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"youtube-search-and-download.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n",
178
+ "statuscode":200,
179
+ "body":{
180
+ "key1":"value",
181
+ "key2":"value"
182
+ },
183
+ "headers":{},
184
+ "schema":{}
185
+ },
186
+ {
187
+ "name":"Video info",
188
+ "url":"https://youtube-search-and-download.p.rapidapi.com/video",
189
+ "description":"Get video info by id",
190
+ "method":"GET",
191
+ "required_parameters":[
192
+ {
193
+ "name":"id",
194
+ "type":"STRING",
195
+ "description":"Video id from YouTube",
196
+ "default":"dQw4w9WgXcQ"
197
+ }
198
+ ],
199
+ "optional_parameters":[],
200
+ "code":"import requests\n\nurl = \"https://youtube-search-and-download.p.rapidapi.com/video\"\nquerystring = {\"id\": id}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"youtube-search-and-download.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n",
201
+ "statuscode":200,
202
+ "body":{
203
+ "key1":"value",
204
+ "key2":"value"
205
+ },
206
+ "headers":{},
207
+ "schema":{}
208
+ },
209
+ {
210
+ "name":"Playlist",
211
+ "url":"https://youtube-search-and-download.p.rapidapi.com/playlist",
212
+ "description":"Playlist videos",
213
+ "method":"GET",
214
+ "required_parameters":[],
215
+ "optional_parameters":[
216
+ {
217
+ "name":"next",
218
+ "type":"STRING",
219
+ "description":"Pagination(continuation) parameter to get more playlist items, no need any other parameters if 'next' present.\nCan be obtained from inside playlist request result.",
220
+ "default":"4qmFsgJhEiRWTFBMV3dBeXBBY0ZSZ0tBSUlGcUJyOW95LVpZWm5peGFfRmoaFENBRjZCbEJVT2tOSFZRJTNEJTNEmgIiUExXd0F5cEFjRlJnS0FJSUZxQnI5b3ktWllabml4YV9Gag%3D%3D"
221
+ },
222
+ {
223
+ "name":"id",
224
+ "type":"STRING",
225
+ "description":"Playlist id",
226
+ "default":"PL2UMfhpwklNNI9ALzCFI-cObgnO4nQ2fu"
227
+ }
228
+ ],
229
+ "code":"import requests\n\nurl = \"https://youtube-search-and-download.p.rapidapi.com/playlist\"\nquerystring = {\"next\": next, \"id\": id}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"youtube-search-and-download.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n",
230
+ "statuscode":200,
231
+ "body":{
232
+ "key1":"value",
233
+ "key2":"value"
234
+ },
235
+ "headers":{},
236
+ "schema":{}
237
+ },
238
+ {
239
+ "name":"Search videos/channels/playlists",
240
+ "url":"https://youtube-search-and-download.p.rapidapi.com/search",
241
+ "description":"Search any youtube content with all available filters",
242
+ "method":"GET",
243
+ "required_parameters":[],
244
+ "optional_parameters":[
245
+ {
246
+ "name":"upload_date",
247
+ "type":"STRING",
248
+ "description":"Upload date filter.\nAvailable options:\nl - last hour;\nt - today;\nw - weak ago;\nm - month ago;\ny - year ago;",
249
+ "default":"t"
250
+ },
251
+ {
252
+ "name":"sort",
253
+ "type":"STRING",
254
+ "description":"Result sort. Available options:\nr - relevance;\nra - rating;\nu - upload date;\nv - view count;",
255
+ "default":"v"
256
+ },
257
+ {
258
+ "name":"features",
259
+ "type":"STRING",
260
+ "description":"Video features. Available options(could be joined by ';'):\nh - hdr;\nhd - hd;\ns - subtitles;\nc - cc;\n3d - 3d;\n3 - 360;\nli - live;\nlo - location;\n4 - 4k;\n",
261
+ "default":"li;hd"
262
+ },
263
+ {
264
+ "name":"next",
265
+ "type":"STRING",
266
+ "description":"Pagination(continuation) parameter to get next result for same search query, no need any other parameters if 'next' present.\nCan be obtained from inside search result.",
267
+ "default":"EogDEgVoZWxsbxr-AlNCU0NBUXRaVVVoeldFMW5iRU01UVlJQkMyMUlUMDVPWTFwaWQwUlpnZ0VMWW1VeE1rSkROWEJSVEVXQ0FRdFZNMEZUYWpGTU5sOXpXWUlCQzJaaGVrMVRRMXBuTFcxM2dnRUxaV3hrWldGSlFYWmZkMFdDQVExU1JGbFJTSE5ZVFdkc1F6bEJnZ0VMT0hwRVUybHJRMmc1Tm1PQ0FRc3pOMFU1VjNORWJVUmxaNElCQzJGaFNXcHpPRXN6YjFsdmdnRUxaMmRvUkZKS1ZuaEdlRldDQVF0clN6UXlURnB4VHpCM1FZSUJDME42VHpOaFNXVXdVbkJ6Z2dFTFNVNHdUMk5WZGtkaU5qQ0NBUXRSYTJWbGFGRTRSRjlXVFlJQkMyWk9NVU41Y2pCYVN6bE5nZ0VMZEZac1kwdHdNMkpYU0RpQ0FRdGZSQzFGT1Rsa01XSk1TWUlCQzJoQlUwNVRSSFZOY2pGUmdnRUxkREEzTVZkdE5EVnhWMDAlM0QYgeDoGCILc2VhcmNoLWZlZWQ%3D"
268
+ },
269
+ {
270
+ "name":"hl",
271
+ "type":"STRING",
272
+ "description":"Search language",
273
+ "default":"en"
274
+ },
275
+ {
276
+ "name":"duration",
277
+ "type":"STRING",
278
+ "description":"Video duration. Available options:\ns - short;\nl - long;",
279
+ "default":"s"
280
+ },
281
+ {
282
+ "name":"gl",
283
+ "type":"STRING",
284
+ "description":"Search location",
285
+ "default":"US"
286
+ },
287
+ {
288
+ "name":"type",
289
+ "type":"STRING",
290
+ "description":"Search type. Available options:\nv - video;\nc - channel;\np - playlist;",
291
+ "default":"v"
292
+ },
293
+ {
294
+ "name":"query",
295
+ "type":"STRING",
296
+ "description":"Search query you want to search",
297
+ "default":"rick roll"
298
+ }
299
+ ],
300
+ "code":"import requests\n\nurl = \"https://youtube-search-and-download.p.rapidapi.com/search\"\nquerystring = {\"upload_date\": upload_date, \"sort\": sort, \"features\": features, \"next\": next, \"hl\": hl, \"duration\": duration, \"gl\": gl, \"type\": type, \"query\": query}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"youtube-search-and-download.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n",
301
+ "statuscode":200,
302
+ "body":{
303
+ "key1":"value",
304
+ "key2":"value"
305
+ },
306
+ "headers":{},
307
+ "schema":{}
308
+ }
309
+ ]
310
+ }
toolbench/toolenv/tools/Entertainment/youtube_search_and_download/api.py ADDED
@@ -0,0 +1,289 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 about_channel(is_id: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
10
+ """
11
+ "Return more info about channel"
12
+ id: Channel id
13
+
14
+ """
15
+ url = f"https://youtube-search-and-download.p.rapidapi.com/channel/about"
16
+ querystring = {'id': is_id, }
17
+
18
+ headers = {
19
+ "X-RapidAPI-Key": toolbench_rapidapi_key,
20
+ "X-RapidAPI-Host": "youtube-search-and-download.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 channel(next: str='4qmFsgKFARIYVUNpVEdLQTlXMEcwVEw4SG03VWZfdTlBGjpFZ1oyYVdSbGIzTVlBeUFBTUFFNEFlb0RGa05uUVZORFoycHdNazVFTkRWT2VVcHNhMmR2VFdjJTNEmgIsYnJvd3NlLWZlZWRVQ2lUR0tBOVcwRzBUTDhIbTdVZl91OUF2aWRlb3MxMDI%3D', filter: str=None, is_id: str='UCiTGKA9W0G0TL8Hm7Uf_u9A', sort: str='n', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
32
+ """
33
+ "Channel videos"
34
+ next: Pagination(continuation) parameter to get next channel video, no need any other parameters if 'next' present.
35
+ Can be obtained from inside channel request result.
36
+ filter: Filter for live streams. Available options:
37
+ l - live now;
38
+ p - past live streams;
39
+ is_id: Channel id.
40
+ sort: Sort parameter. Available options:
41
+ n - newest;
42
+ o - oldest;
43
+ p - popular
44
+
45
+ """
46
+ url = f"https://youtube-search-and-download.p.rapidapi.com/channel"
47
+ querystring = {}
48
+ if next:
49
+ querystring['next'] = next
50
+ if filter:
51
+ querystring['filter'] = filter
52
+ if is_id:
53
+ querystring['id'] = is_id
54
+ if sort:
55
+ querystring['sort'] = sort
56
+
57
+ headers = {
58
+ "X-RapidAPI-Key": toolbench_rapidapi_key,
59
+ "X-RapidAPI-Host": "youtube-search-and-download.p.rapidapi.com"
60
+ }
61
+
62
+
63
+ response = requests.get(url, headers=headers, params=querystring)
64
+ try:
65
+ observation = response.json()
66
+ except:
67
+ observation = response.text
68
+ return observation
69
+
70
+ def video_related(is_id: str, next: str='CBQSDRILWVFIc1hNZ2xDOUEYACreAQjQr43tubfzi64BCNi24eOapu-n7AEIgejpz9fcuPajAQjwqMe8v7SEuJ0BCI3CwqDWu4nahAEItNrrwNnAzuQ1CK6-ooCH-Jj5JAik8O-ahq3L1sYBCMb965f10YS4UwiNkaXwtL_gzi4I1vOMu5f7r4HeAQjEuYHvqNfimgwIzvHK75mt1Z27AQjw_7n5yaLZ3_UBCJOq5eCOo-XS_QEIocGSnpeajIsXCN2F2tj65L_4zwEI4KbhwtjP98duCI_C_IbhttbzTAi2gO-y3KbjuZgBCNbN7-m31YCKVmoPd2F0Y2gtbmV4dC1mZWVk', hl: str='en', gl: str='US', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
71
+ """
72
+ "Get related videos"
73
+ id: Video id
74
+ next: Pagination(continuation) parameter to get more related videos, no need any other parameters if 'next' present.
75
+ Can be obtained from first response.
76
+ hl: Locale/language for request
77
+ gl: Country code like US(default), UK, BE, etc...
78
+
79
+ """
80
+ url = f"https://youtube-search-and-download.p.rapidapi.com/video/related"
81
+ querystring = {'id': is_id, }
82
+ if next:
83
+ querystring['next'] = next
84
+ if hl:
85
+ querystring['hl'] = hl
86
+ if gl:
87
+ querystring['gl'] = gl
88
+
89
+ headers = {
90
+ "X-RapidAPI-Key": toolbench_rapidapi_key,
91
+ "X-RapidAPI-Host": "youtube-search-and-download.p.rapidapi.com"
92
+ }
93
+
94
+
95
+ response = requests.get(url, headers=headers, params=querystring)
96
+ try:
97
+ observation = response.json()
98
+ except:
99
+ observation = response.text
100
+ return observation
101
+
102
+ def video_comments(next: str='Eg0SC1lRSHNYTWdsQzlBGAYyJSIRIgtZUUhzWE1nbEM5QTAAeAJCEGNvbW1lbnRzLXNlY3Rpb24%3D', is_id: str='YQHsXMglC9A', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
103
+ """
104
+ "Get video comments list.
105
+ If you need sorting then use "sortTopNext" or "sortNewestNext" fields from first response and pass it to "next" parameter."
106
+ next: Pagination(continuation) parameter to get more comments , no need any other parameters if 'next' present. Could be used for sorting, just pass \"sortNewestNext\" or \"sortTopNext\" field values for newest or top sorting.
107
+ Can be obtained from response with \"id\" parameter in request
108
+ is_id: Video id to get first part of comments.
109
+
110
+
111
+ """
112
+ url = f"https://youtube-search-and-download.p.rapidapi.com/video/comments"
113
+ querystring = {}
114
+ if next:
115
+ querystring['next'] = next
116
+ if is_id:
117
+ querystring['id'] = is_id
118
+
119
+ headers = {
120
+ "X-RapidAPI-Key": toolbench_rapidapi_key,
121
+ "X-RapidAPI-Host": "youtube-search-and-download.p.rapidapi.com"
122
+ }
123
+
124
+
125
+ response = requests.get(url, headers=headers, params=querystring)
126
+ try:
127
+ observation = response.json()
128
+ except:
129
+ observation = response.text
130
+ return observation
131
+
132
+ def trending(hl: str='en', gl: str='US', type: str='mu', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
133
+ """
134
+ "Get list of trending videos"
135
+ hl: Locale/language for request
136
+ gl: Country from you want get trendings like US(default), UK, BE, etc...
137
+ type: Type of trending videos:
138
+ n - now (default)
139
+ mu - music
140
+ mo - movies
141
+ g - gaming
142
+
143
+ """
144
+ url = f"https://youtube-search-and-download.p.rapidapi.com/trending"
145
+ querystring = {}
146
+ if hl:
147
+ querystring['hl'] = hl
148
+ if gl:
149
+ querystring['gl'] = gl
150
+ if type:
151
+ querystring['type'] = type
152
+
153
+ headers = {
154
+ "X-RapidAPI-Key": toolbench_rapidapi_key,
155
+ "X-RapidAPI-Host": "youtube-search-and-download.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 video_info(is_id: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
167
+ """
168
+ "Get video info by id"
169
+ id: Video id from YouTube
170
+
171
+ """
172
+ url = f"https://youtube-search-and-download.p.rapidapi.com/video"
173
+ querystring = {'id': is_id, }
174
+
175
+ headers = {
176
+ "X-RapidAPI-Key": toolbench_rapidapi_key,
177
+ "X-RapidAPI-Host": "youtube-search-and-download.p.rapidapi.com"
178
+ }
179
+
180
+
181
+ response = requests.get(url, headers=headers, params=querystring)
182
+ try:
183
+ observation = response.json()
184
+ except:
185
+ observation = response.text
186
+ return observation
187
+
188
+ def playlist(next: str='4qmFsgJhEiRWTFBMV3dBeXBBY0ZSZ0tBSUlGcUJyOW95LVpZWm5peGFfRmoaFENBRjZCbEJVT2tOSFZRJTNEJTNEmgIiUExXd0F5cEFjRlJnS0FJSUZxQnI5b3ktWllabml4YV9Gag%3D%3D', is_id: str='PL2UMfhpwklNNI9ALzCFI-cObgnO4nQ2fu', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
189
+ """
190
+ "Playlist videos"
191
+ next: Pagination(continuation) parameter to get more playlist items, no need any other parameters if 'next' present.
192
+ Can be obtained from inside playlist request result.
193
+ is_id: Playlist id
194
+
195
+ """
196
+ url = f"https://youtube-search-and-download.p.rapidapi.com/playlist"
197
+ querystring = {}
198
+ if next:
199
+ querystring['next'] = next
200
+ if is_id:
201
+ querystring['id'] = is_id
202
+
203
+ headers = {
204
+ "X-RapidAPI-Key": toolbench_rapidapi_key,
205
+ "X-RapidAPI-Host": "youtube-search-and-download.p.rapidapi.com"
206
+ }
207
+
208
+
209
+ response = requests.get(url, headers=headers, params=querystring)
210
+ try:
211
+ observation = response.json()
212
+ except:
213
+ observation = response.text
214
+ return observation
215
+
216
+ def search_videos_channels_playlists(upload_date: str='t', sort: str='v', features: str='li;hd', next: str='EogDEgVoZWxsbxr-AlNCU0NBUXRaVVVoeldFMW5iRU01UVlJQkMyMUlUMDVPWTFwaWQwUlpnZ0VMWW1VeE1rSkROWEJSVEVXQ0FRdFZNMEZUYWpGTU5sOXpXWUlCQzJaaGVrMVRRMXBuTFcxM2dnRUxaV3hrWldGSlFYWmZkMFdDQVExU1JGbFJTSE5ZVFdkc1F6bEJnZ0VMT0hwRVUybHJRMmc1Tm1PQ0FRc3pOMFU1VjNORWJVUmxaNElCQzJGaFNXcHpPRXN6YjFsdmdnRUxaMmRvUkZKS1ZuaEdlRldDQVF0clN6UXlURnB4VHpCM1FZSUJDME42VHpOaFNXVXdVbkJ6Z2dFTFNVNHdUMk5WZGtkaU5qQ0NBUXRSYTJWbGFGRTRSRjlXVFlJQkMyWk9NVU41Y2pCYVN6bE5nZ0VMZEZac1kwdHdNMkpYU0RpQ0FRdGZSQzFGT1Rsa01XSk1TWUlCQzJoQlUwNVRSSFZOY2pGUmdnRUxkREEzTVZkdE5EVnhWMDAlM0QYgeDoGCILc2VhcmNoLWZlZWQ%3D', hl: str='en', duration: str='s', gl: str='US', type: str='v', query: str='rick roll', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
217
+ """
218
+ "Search any youtube content with all available filters"
219
+ upload_date: Upload date filter.
220
+ Available options:
221
+ l - last hour;
222
+ t - today;
223
+ w - weak ago;
224
+ m - month ago;
225
+ y - year ago;
226
+ sort: Result sort. Available options:
227
+ r - relevance;
228
+ ra - rating;
229
+ u - upload date;
230
+ v - view count;
231
+ features: Video features. Available options(could be joined by ';'):
232
+ h - hdr;
233
+ hd - hd;
234
+ s - subtitles;
235
+ c - cc;
236
+ 3d - 3d;
237
+ 3 - 360;
238
+ li - live;
239
+ lo - location;
240
+ 4 - 4k;
241
+
242
+ next: Pagination(continuation) parameter to get next result for same search query, no need any other parameters if 'next' present.
243
+ Can be obtained from inside search result.
244
+ hl: Search language
245
+ duration: Video duration. Available options:
246
+ s - short;
247
+ l - long;
248
+ gl: Search location
249
+ type: Search type. Available options:
250
+ v - video;
251
+ c - channel;
252
+ p - playlist;
253
+ query: Search query you want to search
254
+
255
+ """
256
+ url = f"https://youtube-search-and-download.p.rapidapi.com/search"
257
+ querystring = {}
258
+ if upload_date:
259
+ querystring['upload_date'] = upload_date
260
+ if sort:
261
+ querystring['sort'] = sort
262
+ if features:
263
+ querystring['features'] = features
264
+ if next:
265
+ querystring['next'] = next
266
+ if hl:
267
+ querystring['hl'] = hl
268
+ if duration:
269
+ querystring['duration'] = duration
270
+ if gl:
271
+ querystring['gl'] = gl
272
+ if type:
273
+ querystring['type'] = type
274
+ if query:
275
+ querystring['query'] = query
276
+
277
+ headers = {
278
+ "X-RapidAPI-Key": toolbench_rapidapi_key,
279
+ "X-RapidAPI-Host": "youtube-search-and-download.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
+
toolbench/toolenv/tools/Entertainment/youtube_search_helpers.json ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "tool_name":"Youtube Search Helpers",
3
+ "tool_description":"If You Want An Interactive Search In Your Video Streaming App, Or You Are Using The Youtube Api, This Api Was Made For You, Try It Out!",
4
+ "title":"Youtube Search Helpers",
5
+ "pricing":"FREE",
6
+ "score":{
7
+ "avgServiceLevel":100,
8
+ "avgLatency":957,
9
+ "avgSuccessRate":0,
10
+ "popularityScore":0,
11
+ "__typename":"Score"
12
+ },
13
+ "home_url":"https://rapidapi.com/berkman.gary/api/youtube-search-helpers/",
14
+ "host":"youtube-search-helpers.p.rapidapi.com",
15
+ "api_list":[
16
+ {
17
+ "name":"Base endpoint",
18
+ "url":"https://youtube-search-helpers.p.rapidapi.com/",
19
+ "description":"Base endpoint",
20
+ "method":"GET",
21
+ "required_parameters":[
22
+ {
23
+ "name":"search",
24
+ "type":"STRING",
25
+ "description":"",
26
+ "default":"cats videos"
27
+ }
28
+ ],
29
+ "optional_parameters":[],
30
+ "code":"import requests\n\nurl = \"https://youtube-search-helpers.p.rapidapi.com/\"\nquerystring = {\"search\": search}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"youtube-search-helpers.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n",
31
+ "statuscode":111,
32
+ "body":"",
33
+ "headers":"",
34
+ "schema":""
35
+ }
36
+ ]
37
+ }
toolbench/toolenv/tools/Entertainment/youtube_search_helpers/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 base_endpoint(search: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
10
+ """
11
+ "Base endpoint"
12
+
13
+ """
14
+ url = f"https://youtube-search-helpers.p.rapidapi.com/"
15
+ querystring = {'search': search, }
16
+
17
+ headers = {
18
+ "X-RapidAPI-Key": toolbench_rapidapi_key,
19
+ "X-RapidAPI-Host": "youtube-search-helpers.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/Entertainment/youtube_subscribers_count.json ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "tool_name":"YouTube Subscribers Count",
3
+ "tool_description":"Youtube Subscribers Count",
4
+ "title":"YouTube Subscribers Count",
5
+ "pricing":"FREEMIUM",
6
+ "score":null,
7
+ "home_url":"https://rapidapi.com/moneymakersmill/api/youtube-subscribers-count/",
8
+ "host":"youtube-subscribers-count.p.rapidapi.com",
9
+ "api_list":[
10
+ {
11
+ "name":"Subscribers Count",
12
+ "url":"https://youtube-subscribers-count.p.rapidapi.com/subscribersaccount",
13
+ "description":"Get all of YouTube Subscribers request .",
14
+ "method":"GET",
15
+ "required_parameters":[],
16
+ "optional_parameters":[],
17
+ "code":"import requests\n\nurl = \"https://youtube-subscribers-count.p.rapidapi.com/subscribersaccount\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"youtube-subscribers-count.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/Entertainment/youtube_subscribers_count/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 subscribers_count(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
10
+ """
11
+ "Get all of YouTube Subscribers request ."
12
+
13
+ """
14
+ url = f"https://youtube-subscribers-count.p.rapidapi.com/subscribersaccount"
15
+ querystring = {}
16
+
17
+ headers = {
18
+ "X-RapidAPI-Key": toolbench_rapidapi_key,
19
+ "X-RapidAPI-Host": "youtube-subscribers-count.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/Entertainment/youtube_to_mp4.json ADDED
@@ -0,0 +1,77 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "tool_name":"YouTube to Mp4",
3
+ "tool_description":"An online service that grabs YouTube video file from the unique server address on Google.",
4
+ "title":"YouTube to Mp4",
5
+ "pricing":"FREEMIUM",
6
+ "score":{
7
+ "avgServiceLevel":98,
8
+ "avgLatency":2731,
9
+ "avgSuccessRate":0,
10
+ "popularityScore":0.1,
11
+ "__typename":"Score"
12
+ },
13
+ "home_url":"https://rapidapi.com/aidangig/api/youtube-to-mp4/",
14
+ "host":"youtube-to-mp4.p.rapidapi.com",
15
+ "api_list":[
16
+ {
17
+ "name":"Title & URL",
18
+ "url":"https://youtube-to-mp4.p.rapidapi.com/url=&title",
19
+ "description":"fetches YouTube direct download link and video title",
20
+ "method":"GET",
21
+ "required_parameters":[
22
+ {
23
+ "name":"url",
24
+ "type":"STRING",
25
+ "description":"",
26
+ "default":"https://www.youtube.com/watch?v=IfNB5RTxnhI"
27
+ }
28
+ ],
29
+ "optional_parameters":[
30
+ {
31
+ "name":"title",
32
+ "type":"STRING",
33
+ "description":"",
34
+ "default":"Call of Duty : Modern Warfare 2 Remastered - All Weapon Reload Animations in 4 Minutes"
35
+ }
36
+ ],
37
+ "code":"import requests\n\nurl = \"https://youtube-to-mp4.p.rapidapi.com/url=&title\"\nquerystring = {\"url\": url, \"title\": title}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"youtube-to-mp4.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n",
38
+ "statuscode":200,
39
+ "body":"<iframe style=\"width:100%;min-width:200px;max-width:750px;height:185px;border:0;overflow:hidden;margin-top:40px;\" src=\"//yt-mp3.net/dl.php?url=https://www.youtube.com/watch?v=IfNB5RTxnhI&selectionFormat=Mp4.\" scrolling=\"no\"></iframe>",
40
+ "headers":{
41
+ "accept-ranges":"none",
42
+ "content-type":"text/html; charset=UTF-8",
43
+ "date":"Sat, 09 May 2020 07:44:15 GMT",
44
+ "server":"RapidAPI-1.1.6",
45
+ "vary":"Accept-Encoding",
46
+ "x-powered-by":"PHP/7.2.30",
47
+ "x-rapidapi-region":"AWS - us-east-1",
48
+ "x-rapidapi-version":"1.1.6",
49
+ "content-length":"233",
50
+ "connection":"Close"
51
+ },
52
+ "schema":{
53
+ "type":"object",
54
+ "properties":{
55
+ "get":{
56
+ "type":"string"
57
+ },
58
+ "parameters":{
59
+ "type":"array"
60
+ },
61
+ "errors":{
62
+ "type":"array"
63
+ },
64
+ "results":{
65
+ "type":"integer"
66
+ },
67
+ "response":{
68
+ "type":"array",
69
+ "items":{
70
+ "type":"object"
71
+ }
72
+ }
73
+ }
74
+ }
75
+ }
76
+ ]
77
+ }
toolbench/toolenv/tools/Entertainment/youtube_to_mp4/api.py ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 title_url(url: str, title: str='Call of Duty : Modern Warfare 2 Remastered - All Weapon Reload Animations in 4 Minutes', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
10
+ """
11
+ "fetches YouTube direct download link and video title"
12
+
13
+ """
14
+ url = f"https://youtube-to-mp4.p.rapidapi.com/url=&title"
15
+ querystring = {'url': url, }
16
+ if title:
17
+ querystring['title'] = title
18
+
19
+ headers = {
20
+ "X-RapidAPI-Key": toolbench_rapidapi_key,
21
+ "X-RapidAPI-Host": "youtube-to-mp4.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
+
toolbench/toolenv/tools/Entertainment/youtube_video_downloader.json ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "tool_name":"Youtube Video Downloader",
3
+ "tool_description":"Get Youtube Video Direct Streaming Links with audios in 144p, 320p and 720p.",
4
+ "title":"Youtube Video Downloader",
5
+ "pricing":"FREEMIUM",
6
+ "score":null,
7
+ "home_url":"https://rapidapi.com/varunkumarbilwal/api/youtube-video-downloader9/",
8
+ "host":"youtube-video-downloader9.p.rapidapi.com",
9
+ "api_list":[
10
+ {
11
+ "name":"url",
12
+ "url":"https://youtube-video-downloader9.p.rapidapi.com/api",
13
+ "description":"Get Video Streaming Links of 144p. 320p and 720p with audios.",
14
+ "method":"GET",
15
+ "required_parameters":[
16
+ {
17
+ "name":"url",
18
+ "type":"STRING",
19
+ "description":"",
20
+ "default":"https://www.youtube.com/watch?v=wbNE5bJFLxs"
21
+ }
22
+ ],
23
+ "optional_parameters":[],
24
+ "code":"import requests\n\nurl = \"https://youtube-video-downloader9.p.rapidapi.com/api\"\nquerystring = {\"url\": url}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"youtube-video-downloader9.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n",
25
+ "statuscode":111,
26
+ "body":"",
27
+ "headers":"",
28
+ "schema":""
29
+ }
30
+ ]
31
+ }
toolbench/toolenv/tools/Entertainment/youtube_video_downloader/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 url(url: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
10
+ """
11
+ "Get Video Streaming Links of 144p. 320p and 720p with audios."
12
+
13
+ """
14
+ url = f"https://youtube-video-downloader9.p.rapidapi.com/api"
15
+ querystring = {'url': url, }
16
+
17
+ headers = {
18
+ "X-RapidAPI-Key": toolbench_rapidapi_key,
19
+ "X-RapidAPI-Host": "youtube-video-downloader9.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/Entertainment/ytgrabber/api.py ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 app_get(vid: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
10
+ """
11
+ "Download the video using vid"
12
+ vid: YouTube Video ID
13
+
14
+ """
15
+ url = f"https://ytgrabber.p.rapidapi.com/app/get/{vid}"
16
+ querystring = {}
17
+
18
+ headers = {
19
+ "X-RapidAPI-Key": toolbench_rapidapi_key,
20
+ "X-RapidAPI-Host": "ytgrabber.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
+
toolbench/toolenv/tools/Entertainment/yurna.json ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "tool_name":"yurna",
3
+ "tool_description":"yurna discord bot",
4
+ "title":"yurna",
5
+ "pricing":"FREE",
6
+ "score":null,
7
+ "home_url":"https://rapidapi.com/barndt20/api/yurna/",
8
+ "host":"yurna.p.rapidapi.com",
9
+ "api_list":[
10
+ {
11
+ "name":"yurna",
12
+ "url":"https://yurna.p.rapidapi.com/",
13
+ "description":"Discord bot",
14
+ "method":"GET",
15
+ "required_parameters":[],
16
+ "optional_parameters":[],
17
+ "code":"import requests\n\nurl = \"https://yurna.p.rapidapi.com/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"yurna.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/Entertainment/yurna/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 yurna(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
10
+ """
11
+ "Discord bot"
12
+
13
+ """
14
+ url = f"https://yurna.p.rapidapi.com/"
15
+ querystring = {}
16
+
17
+ headers = {
18
+ "X-RapidAPI-Key": toolbench_rapidapi_key,
19
+ "X-RapidAPI-Host": "yurna.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/Entertainment/zodiac_info.json ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "tool_name":"Zodiac Info",
3
+ "tool_description":"",
4
+ "title":"Zodiac Info",
5
+ "pricing":"FREEMIUM",
6
+ "score":{
7
+ "avgServiceLevel":100,
8
+ "avgLatency":208,
9
+ "avgSuccessRate":100,
10
+ "popularityScore":8.4,
11
+ "__typename":"Score"
12
+ },
13
+ "home_url":"https://rapidapi.com/SethGecko/api/zodiac-info/",
14
+ "host":"zodiac-info.p.rapidapi.com",
15
+ "api_list":[
16
+ {
17
+ "name":"Get Zodiac info",
18
+ "url":"https://zodiac-info.p.rapidapi.com/zodiac",
19
+ "description":"Send ?date=YYYY-MM-DD and get the info on what Stars can say about you",
20
+ "method":"GET",
21
+ "required_parameters":[
22
+ {
23
+ "name":"date",
24
+ "type":"DATE (YYYY-MM-DD)",
25
+ "description":"",
26
+ "default":"1990-12-31"
27
+ }
28
+ ],
29
+ "optional_parameters":[],
30
+ "code":"import requests\n\nurl = \"https://zodiac-info.p.rapidapi.com/zodiac\"\nquerystring = {\"date\": date}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"zodiac-info.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n",
31
+ "statuscode":111,
32
+ "body":"",
33
+ "headers":"",
34
+ "schema":""
35
+ }
36
+ ]
37
+ }
toolbench/toolenv/tools/Entertainment/zodiac_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 get_zodiac_info(date: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
10
+ """
11
+ "Send ?date=YYYY-MM-DD and get the info on what Stars can say about you"
12
+
13
+ """
14
+ url = f"https://zodiac-info.p.rapidapi.com/zodiac"
15
+ querystring = {'date': date, }
16
+
17
+ headers = {
18
+ "X-RapidAPI-Key": toolbench_rapidapi_key,
19
+ "X-RapidAPI-Host": "zodiac-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/Events/10times_scraper/api.py ADDED
@@ -0,0 +1,68 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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_categories(query: str='bio', sort: str=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
10
+ """
11
+ "Get Categories"
12
+
13
+ """
14
+ url = f"https://10times-scraper.p.rapidapi.com/get-categories"
15
+ querystring = {}
16
+ if query:
17
+ querystring['query'] = query
18
+ if sort:
19
+ querystring['sort'] = sort
20
+
21
+ headers = {
22
+ "X-RapidAPI-Key": toolbench_rapidapi_key,
23
+ "X-RapidAPI-Host": "10times-scraper.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 search_events(category: str=None, query: str=None, sort: str=None, limit: int=None, page: int=None, location: str='Jakarta', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
35
+ """
36
+ "Search Events"
37
+ category: Category ids separated by spaces or comma. Use` get-category` endpoint to list categories.
38
+ query: Search event name
39
+
40
+ """
41
+ url = f"https://10times-scraper.p.rapidapi.com/search-events"
42
+ querystring = {}
43
+ if category:
44
+ querystring['category'] = category
45
+ if query:
46
+ querystring['query'] = query
47
+ if sort:
48
+ querystring['sort'] = sort
49
+ if limit:
50
+ querystring['limit'] = limit
51
+ if page:
52
+ querystring['page'] = page
53
+ if location:
54
+ querystring['location'] = location
55
+
56
+ headers = {
57
+ "X-RapidAPI-Key": toolbench_rapidapi_key,
58
+ "X-RapidAPI-Host": "10times-scraper.p.rapidapi.com"
59
+ }
60
+
61
+
62
+ response = requests.get(url, headers=headers, params=querystring)
63
+ try:
64
+ observation = response.json()
65
+ except:
66
+ observation = response.text
67
+ return observation
68
+
toolbench/toolenv/tools/Events/art_openings_italy.json ADDED
@@ -0,0 +1,184 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "tool_name":"Art openings Italy",
3
+ "tool_description":"Introducing the ultimate art event API for Italy - your one-stop destination for discovering and experiencing the best art events happening across the country. With our API, you have access to a comprehensive list of cities where art events take place, as well as a list of ongoing events happening in each city.",
4
+ "title":"Art openings Italy",
5
+ "pricing":"FREEMIUM",
6
+ "score":{
7
+ "avgServiceLevel":78,
8
+ "avgLatency":48556,
9
+ "avgSuccessRate":78,
10
+ "popularityScore":9.3,
11
+ "__typename":"Score"
12
+ },
13
+ "home_url":"https://rapidapi.com/luigimattino/api/art-openings-italy/",
14
+ "host":"art-openings-italy.p.rapidapi.com",
15
+ "api_list":[
16
+ {
17
+ "name":"Live events",
18
+ "url":"https://art-openings-italy.p.rapidapi.com/api/ongoing-events",
19
+ "description":"To call this service, you would make a GET request to the endpoint /api/ongoing-events with the optional query parameter city. When the service is called, it retrieves a list of events from the database, filtered by the city parameter if it is provided.",
20
+ "method":"GET",
21
+ "required_parameters":[],
22
+ "optional_parameters":[
23
+ {
24
+ "name":"city",
25
+ "type":"STRING",
26
+ "description":"",
27
+ "default":"Firenze"
28
+ },
29
+ {
30
+ "name":"genre",
31
+ "type":"STRING",
32
+ "description":"",
33
+ "default":"festival"
34
+ },
35
+ {
36
+ "name":"location",
37
+ "type":"STRING",
38
+ "description":"",
39
+ "default":"PIAZZA SANTA MARIA NOVELLA"
40
+ }
41
+ ],
42
+ "code":"import requests\n\nurl = \"https://art-openings-italy.p.rapidapi.com/api/ongoing-events\"\nquerystring = {\"city\": city, \"genre\": genre, \"location\": location}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"art-openings-italy.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n",
43
+ "statuscode":200,
44
+ "body":[
45
+ {
46
+ "title":"Inside Banksy: Unauthorized Exhibition",
47
+ "city":"Firenze",
48
+ "openingDate":"2022-11-25T00:00:00.000Z",
49
+ "closingDate":"2023-02-26T00:00:00.000Z",
50
+ "location":"SANTO STEFANO AL PONTE",
51
+ "address":"Piazza di Santo Stefano, 5 - Firenze - Toscana",
52
+ "genres":[
53
+ "new media"
54
+ ],
55
+ "artists":[
56
+ "Banksy"
57
+ ],
58
+ "id":"e82d2fc2-f223-4d99-bc05-6d8b1d770576"
59
+ }
60
+ ],
61
+ "headers":{
62
+ "access-control-allow-credentials":"true",
63
+ "access-control-allow-origin":"*",
64
+ "alt-svc":"h3=\":443\"; ma=86400, h3-29=\":443\"; ma=86400",
65
+ "cf-cache-status":"DYNAMIC",
66
+ "cf-ray":"7900bb4e7c0d9a0f-FRA",
67
+ "content-type":"application/json; charset=utf-8",
68
+ "date":"Fri, 27 Jan 2023 10:16:13 GMT",
69
+ "etag":"W/\"14e-mjhmZWSjeoO0ksSfW/ILGWOryh8\"",
70
+ "server":"RapidAPI-1.2.8",
71
+ "vary":"Accept-Encoding",
72
+ "x-powered-by":"Express",
73
+ "x-rapidapi-region":"AWS - eu-central-1",
74
+ "x-rapidapi-version":"1.2.8",
75
+ "x-render-origin-server":"Render"
76
+ },
77
+ "schema":{}
78
+ },
79
+ {
80
+ "name":"Events Detail",
81
+ "url":"https://art-openings-italy.p.rapidapi.com/api/events/{id}",
82
+ "description":"This service returns all data related to a specific id. The id field in the example you provided is a unique identifier for the event. It is a string of characters that follows the format of a universally unique identifier (UUID), which is a standardized way of generating a 128-bit identifier that is guaranteed to be unique across all devices and all time.",
83
+ "method":"GET",
84
+ "required_parameters":[
85
+ {
86
+ "name":"id",
87
+ "type":"string",
88
+ "description":"",
89
+ "default":"55daa408-d224-4b68-8b70-8800424d3e88"
90
+ }
91
+ ],
92
+ "optional_parameters":[],
93
+ "code":"import requests\n\nurl = \"https://art-openings-italy.p.rapidapi.com/api/events/{id}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"art-openings-italy.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n",
94
+ "statuscode":200,
95
+ "body":{
96
+ "title":"Green Line Festival 2022",
97
+ "city":"Firenze",
98
+ "openingDate":"2022-12-07T00:00:00.000Z",
99
+ "closingDate":"2024-01-08T00:00:00.000Z",
100
+ "description":"Enel X illumina Piazza Santa Maria Novella con il Cantico delle Creature di San Francesco d'Assisi.",
101
+ "press":"Enel X illumina Piazza Santa Maria Novella con il Cantico delle Creature di San Francesco d'Assisi. Un grande evento in tutta la città dal 7 dicembre 2022 all’8 gennaio 2023, direttore artistico Sergio Risaliti   È stato ribattezzato Green Line il festival fiorentino promosso dal Comune di Firenze e organizzato da MUS.E, con la direzione artistica di Sergio Risaliti, che dal 7 dicembre 2022 all’8 gennaio 2023 animerà la città di Firenze e avrà come tema centrale i quattro elementi naturali – aria, acqua, terra e fuoco -, il rapporto uomo-natura e la connessione tra patrimonio e buona cura ",
102
+ "location":"PIAZZA SANTA MARIA NOVELLA",
103
+ "address":"Piazza Santa Maria Novella - Firenze - Toscana",
104
+ "dates":"dal 07/12/2022 - al 08/01/2024",
105
+ "opening":"07/12/2022",
106
+ "genres":[
107
+ "festival"
108
+ ],
109
+ "artists":[],
110
+ "editors":[],
111
+ "id":"55daa408-d224-4b68-8b70-8800424d3e88"
112
+ },
113
+ "headers":{
114
+ "access-control-allow-credentials":"true",
115
+ "access-control-allow-origin":"*",
116
+ "alt-svc":"h3=\":443\"; ma=86400, h3-29=\":443\"; ma=86400",
117
+ "cf-cache-status":"DYNAMIC",
118
+ "cf-ray":"7900ba53ce3430e7-FRA",
119
+ "content-type":"application/json; charset=utf-8",
120
+ "date":"Fri, 27 Jan 2023 10:15:33 GMT",
121
+ "etag":"W/\"474-2RdJF/gcZqct/6QuQKo9ZklTB7A\"",
122
+ "server":"RapidAPI-1.2.8",
123
+ "vary":"Accept-Encoding",
124
+ "x-powered-by":"Express",
125
+ "x-rapidapi-region":"AWS - eu-central-1",
126
+ "x-rapidapi-version":"1.2.8",
127
+ "x-render-origin-server":"Render"
128
+ },
129
+ "schema":{}
130
+ },
131
+ {
132
+ "name":"Health check",
133
+ "url":"https://art-openings-italy.p.rapidapi.com/api/healthcheck",
134
+ "description":"The service it allows you to monitor if the application is up time. It returns an healthcheck object that has three properties uptime , message and timestamp.",
135
+ "method":"GET",
136
+ "required_parameters":[],
137
+ "optional_parameters":[],
138
+ "code":"import requests\n\nurl = \"https://art-openings-italy.p.rapidapi.com/api/healthcheck\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"art-openings-italy.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n",
139
+ "statuscode":111,
140
+ "body":"",
141
+ "headers":"",
142
+ "schema":""
143
+ },
144
+ {
145
+ "name":"Get all genres",
146
+ "url":"https://art-openings-italy.p.rapidapi.com/api/genres",
147
+ "description":"This service returns a list of all genres of the events.",
148
+ "method":"GET",
149
+ "required_parameters":[],
150
+ "optional_parameters":[],
151
+ "code":"import requests\n\nurl = \"https://art-openings-italy.p.rapidapi.com/api/genres\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"art-openings-italy.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n",
152
+ "statuscode":111,
153
+ "body":"",
154
+ "headers":"",
155
+ "schema":""
156
+ },
157
+ {
158
+ "name":"Get all locations",
159
+ "url":"https://art-openings-italy.p.rapidapi.com/api/locations",
160
+ "description":"This service returns a list of all locations where art events take place.",
161
+ "method":"GET",
162
+ "required_parameters":[],
163
+ "optional_parameters":[],
164
+ "code":"import requests\n\nurl = \"https://art-openings-italy.p.rapidapi.com/api/locations\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"art-openings-italy.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n",
165
+ "statuscode":111,
166
+ "body":"",
167
+ "headers":"",
168
+ "schema":""
169
+ },
170
+ {
171
+ "name":"Get all cities",
172
+ "url":"https://art-openings-italy.p.rapidapi.com/api/cities",
173
+ "description":"This service returns a list of all cities where art events take place.",
174
+ "method":"GET",
175
+ "required_parameters":[],
176
+ "optional_parameters":[],
177
+ "code":"import requests\n\nurl = \"https://art-openings-italy.p.rapidapi.com/api/cities\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"art-openings-italy.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n",
178
+ "statuscode":111,
179
+ "body":"",
180
+ "headers":"",
181
+ "schema":""
182
+ }
183
+ ]
184
+ }
toolbench/toolenv/tools/Events/art_openings_italy/api.py ADDED
@@ -0,0 +1,140 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 live_events(city: str='Firenze', genre: str='festival', location: str='PIAZZA SANTA MARIA NOVELLA', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
10
+ """
11
+ "To call this service, you would make a GET request to the endpoint /api/ongoing-events with the optional query parameter city. When the service is called, it retrieves a list of events from the database, filtered by the city parameter if it is provided."
12
+
13
+ """
14
+ url = f"https://art-openings-italy.p.rapidapi.com/api/ongoing-events"
15
+ querystring = {}
16
+ if city:
17
+ querystring['city'] = city
18
+ if genre:
19
+ querystring['genre'] = genre
20
+ if location:
21
+ querystring['location'] = location
22
+
23
+ headers = {
24
+ "X-RapidAPI-Key": toolbench_rapidapi_key,
25
+ "X-RapidAPI-Host": "art-openings-italy.p.rapidapi.com"
26
+ }
27
+
28
+
29
+ response = requests.get(url, headers=headers, params=querystring)
30
+ try:
31
+ observation = response.json()
32
+ except:
33
+ observation = response.text
34
+ return observation
35
+
36
+ def events_detail(is_id: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
37
+ """
38
+ "This service returns all data related to a specific id. The id field in the example you provided is a unique identifier for the event. It is a string of characters that follows the format of a universally unique identifier (UUID), which is a standardized way of generating a 128-bit identifier that is guaranteed to be unique across all devices and all time."
39
+
40
+ """
41
+ url = f"https://art-openings-italy.p.rapidapi.com/api/events/{is_id}"
42
+ querystring = {}
43
+
44
+ headers = {
45
+ "X-RapidAPI-Key": toolbench_rapidapi_key,
46
+ "X-RapidAPI-Host": "art-openings-italy.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 health_check(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
58
+ """
59
+ "The service it allows you to monitor if the application is up time. It returns an healthcheck object that has three properties uptime , message and timestamp."
60
+
61
+ """
62
+ url = f"https://art-openings-italy.p.rapidapi.com/api/healthcheck"
63
+ querystring = {}
64
+
65
+ headers = {
66
+ "X-RapidAPI-Key": toolbench_rapidapi_key,
67
+ "X-RapidAPI-Host": "art-openings-italy.p.rapidapi.com"
68
+ }
69
+
70
+
71
+ response = requests.get(url, headers=headers, params=querystring)
72
+ try:
73
+ observation = response.json()
74
+ except:
75
+ observation = response.text
76
+ return observation
77
+
78
+ def get_all_genres(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
79
+ """
80
+ "This service returns a list of all genres of the events."
81
+
82
+ """
83
+ url = f"https://art-openings-italy.p.rapidapi.com/api/genres"
84
+ querystring = {}
85
+
86
+ headers = {
87
+ "X-RapidAPI-Key": toolbench_rapidapi_key,
88
+ "X-RapidAPI-Host": "art-openings-italy.p.rapidapi.com"
89
+ }
90
+
91
+
92
+ response = requests.get(url, headers=headers, params=querystring)
93
+ try:
94
+ observation = response.json()
95
+ except:
96
+ observation = response.text
97
+ return observation
98
+
99
+ def get_all_locations(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
100
+ """
101
+ "This service returns a list of all locations where art events take place."
102
+
103
+ """
104
+ url = f"https://art-openings-italy.p.rapidapi.com/api/locations"
105
+ querystring = {}
106
+
107
+ headers = {
108
+ "X-RapidAPI-Key": toolbench_rapidapi_key,
109
+ "X-RapidAPI-Host": "art-openings-italy.p.rapidapi.com"
110
+ }
111
+
112
+
113
+ response = requests.get(url, headers=headers, params=querystring)
114
+ try:
115
+ observation = response.json()
116
+ except:
117
+ observation = response.text
118
+ return observation
119
+
120
+ def get_all_cities(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
121
+ """
122
+ "This service returns a list of all cities where art events take place."
123
+
124
+ """
125
+ url = f"https://art-openings-italy.p.rapidapi.com/api/cities"
126
+ querystring = {}
127
+
128
+ headers = {
129
+ "X-RapidAPI-Key": toolbench_rapidapi_key,
130
+ "X-RapidAPI-Host": "art-openings-italy.p.rapidapi.com"
131
+ }
132
+
133
+
134
+ response = requests.get(url, headers=headers, params=querystring)
135
+ try:
136
+ observation = response.json()
137
+ except:
138
+ observation = response.text
139
+ return observation
140
+
toolbench/toolenv/tools/Events/bid.json ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "tool_name":"Bid",
3
+ "tool_description":"Find Bid Number",
4
+ "title":"Bid",
5
+ "pricing":"FREE",
6
+ "score":null,
7
+ "home_url":"https://rapidapi.com/lejour-lejour-default/api/bid1/",
8
+ "host":"bid1.p.rapidapi.com",
9
+ "api_list":[
10
+ {
11
+ "name":"Bid",
12
+ "url":"https://bid1.p.rapidapi.com/BINNumber",
13
+ "description":"teste",
14
+ "method":"GET",
15
+ "required_parameters":[
16
+ {
17
+ "name":"bid",
18
+ "type":"STRING",
19
+ "description":"",
20
+ "default":"528400"
21
+ },
22
+ {
23
+ "name":"format",
24
+ "type":"STRING",
25
+ "description":"",
26
+ "default":"xml"
27
+ }
28
+ ],
29
+ "optional_parameters":[],
30
+ "code":"import requests\n\nurl = \"https://bid1.p.rapidapi.com/BINNumber\"\nquerystring = {\"bid\": bid, \"format\": format}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"bid1.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n",
31
+ "statuscode":111,
32
+ "body":"",
33
+ "headers":"",
34
+ "schema":""
35
+ }
36
+ ]
37
+ }
toolbench/toolenv/tools/Events/bid/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 bid(bid: str, format: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
10
+ """
11
+ "teste"
12
+
13
+ """
14
+ url = f"https://bid1.p.rapidapi.com/binnumber"
15
+ querystring = {'bid': bid, 'format': format, }
16
+
17
+ headers = {
18
+ "X-RapidAPI-Key": toolbench_rapidapi_key,
19
+ "X-RapidAPI-Host": "bid1.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/Events/birthday_cake_with_name_generator.json ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "tool_name":"Birthday Cake With Name Generator",
3
+ "tool_description":"Write name on unique design best happy birthday cake images with name generator online And download free birthday cake with name to surprise your friends. ",
4
+ "title":"Birthday Cake With Name Generator",
5
+ "pricing":"FREE",
6
+ "score":null,
7
+ "home_url":"https://rapidapi.com/lovenamepix/api/birthday-cake-with-name-generator/",
8
+ "host":"birthday-cake-with-name-generator.p.rapidapi.com",
9
+ "api_list":[
10
+ {
11
+ "name":"Send Name Birthday Cakes",
12
+ "url":"https://birthday-cake-with-name-generator.p.rapidapi.comendpoint",
13
+ "description":"Write name on birthday cake for free",
14
+ "method":"GET",
15
+ "required_parameters":[],
16
+ "optional_parameters":[],
17
+ "code":"import requests\n\nurl = \"https://birthday-cake-with-name-generator.p.rapidapi.comendpoint\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"birthday-cake-with-name-generator.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/Events/birthday_cake_with_name_generator/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 send_name_birthday_cakes(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
10
+ """
11
+ "Write name on birthday cake for free"
12
+
13
+ """
14
+ url = f"https://birthday-cake-with-name-generator.p.rapidapi.comendpoint"
15
+ querystring = {}
16
+
17
+ headers = {
18
+ "X-RapidAPI-Key": toolbench_rapidapi_key,
19
+ "X-RapidAPI-Host": "birthday-cake-with-name-generator.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/Events/calendarific.json ADDED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "tool_name":"Calendarific",
3
+ "tool_description":"Global Holidays API",
4
+ "title":"Calendarific",
5
+ "pricing":"FREEMIUM",
6
+ "score":{
7
+ "avgServiceLevel":100,
8
+ "avgLatency":343,
9
+ "avgSuccessRate":0,
10
+ "popularityScore":0.1,
11
+ "__typename":"Score"
12
+ },
13
+ "home_url":"https://rapidapi.com/ryancli/api/calendarific/",
14
+ "host":"calendarific.p.rapidapi.com",
15
+ "api_list":[
16
+ {
17
+ "name":"Holidays",
18
+ "url":"https://calendarific.p.rapidapi.com/holidays",
19
+ "description":"Return a list of holidays",
20
+ "method":"GET",
21
+ "required_parameters":[
22
+ {
23
+ "name":"year",
24
+ "type":"STRING",
25
+ "description":"Year",
26
+ "default":"2019"
27
+ },
28
+ {
29
+ "name":"country",
30
+ "type":"STRING",
31
+ "description":"Country ",
32
+ "default":"us"
33
+ }
34
+ ],
35
+ "optional_parameters":[],
36
+ "code":"import requests\n\nurl = \"https://calendarific.p.rapidapi.com/holidays\"\nquerystring = {\"year\": year, \"country\": country}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"calendarific.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n",
37
+ "statuscode":111,
38
+ "body":"",
39
+ "headers":"",
40
+ "schema":""
41
+ }
42
+ ]
43
+ }
toolbench/toolenv/tools/Events/calendarific/api.py ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 holidays(year: str, country: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
10
+ """
11
+ "Return a list of holidays"
12
+ year: Year
13
+ country: Country
14
+
15
+ """
16
+ url = f"https://calendarific.p.rapidapi.com/holidays"
17
+ querystring = {'year': year, 'country': country, }
18
+
19
+ headers = {
20
+ "X-RapidAPI-Key": toolbench_rapidapi_key,
21
+ "X-RapidAPI-Host": "calendarific.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
+
toolbench/toolenv/tools/Events/calendars.json ADDED
@@ -0,0 +1,83 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "tool_name":"Calendars",
3
+ "tool_description":"Get list of events from a number of venues",
4
+ "title":"Calendars",
5
+ "pricing":"FREEMIUM",
6
+ "score":{
7
+ "avgServiceLevel":92,
8
+ "avgLatency":1580,
9
+ "avgSuccessRate":92,
10
+ "popularityScore":9.3,
11
+ "__typename":"Score"
12
+ },
13
+ "home_url":"https://rapidapi.com/handnf/api/calendars/",
14
+ "host":"calendars.p.rapidapi.com",
15
+ "api_list":[
16
+ {
17
+ "name":"Fetch Events",
18
+ "url":"https://calendars.p.rapidapi.com/ical_fetch",
19
+ "description":"Fetches a list of events in either JSON or iCalendar format for the selected calendar",
20
+ "method":"GET",
21
+ "required_parameters":[
22
+ {
23
+ "name":"c",
24
+ "type":"ENUM",
25
+ "description":"",
26
+ "default":""
27
+ }
28
+ ],
29
+ "optional_parameters":[
30
+ {
31
+ "name":"json",
32
+ "type":"BOOLEAN",
33
+ "description":"",
34
+ "default":"true"
35
+ }
36
+ ],
37
+ "code":"import requests\n\nurl = \"https://calendars.p.rapidapi.com/ical_fetch\"\nquerystring = {\"c\": c, \"json\": json}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"calendars.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
+ "type":"object",
46
+ "properties":{
47
+ "validCalendarsRead":{
48
+ "type":"array",
49
+ "items":{
50
+ "type":"string"
51
+ }
52
+ },
53
+ "events":{
54
+ "type":"array",
55
+ "items":{
56
+ "type":"object",
57
+ "properties":{
58
+ "summary":{
59
+ "type":"string"
60
+ },
61
+ "dtend":{
62
+ "type":"string"
63
+ },
64
+ "dtstart":{
65
+ "type":"string"
66
+ },
67
+ "description":{
68
+ "type":"string"
69
+ },
70
+ "location":{
71
+ "type":"string"
72
+ },
73
+ "url":{
74
+ "type":"string"
75
+ }
76
+ }
77
+ }
78
+ }
79
+ }
80
+ }
81
+ }
82
+ ]
83
+ }
toolbench/toolenv/tools/Events/calendars/api.py ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 fetch_events(c: str, json: bool=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
10
+ """
11
+ "Fetches a list of events in either JSON or iCalendar format for the selected calendar"
12
+
13
+ """
14
+ url = f"https://calendars.p.rapidapi.com/ical_fetch"
15
+ querystring = {'c': c, }
16
+ if json:
17
+ querystring['json'] = json
18
+
19
+ headers = {
20
+ "X-RapidAPI-Key": toolbench_rapidapi_key,
21
+ "X-RapidAPI-Host": "calendars.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
+
toolbench/toolenv/tools/Events/canada_holidays/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 holidays(optional: str='false', federal: str='1', year: int=2023, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
10
+ """
11
+ "Returns Canadian public holidays. Each holiday lists the regions that observe it."
12
+ optional: A boolean parameter. If false or 0 (default), will return only legislated holidays. If true or 1, will return optional holidays from Alberta and BC.
13
+ federal: A boolean parameter. If true or 1, will return only federal holidays. If false or 0, will return no federal holidays.
14
+ year: A calendar year
15
+
16
+ """
17
+ url = f"https://canada-holidays.p.rapidapi.com/api/v1/holidays"
18
+ querystring = {}
19
+ if optional:
20
+ querystring['optional'] = optional
21
+ if federal:
22
+ querystring['federal'] = federal
23
+ if year:
24
+ querystring['year'] = year
25
+
26
+ headers = {
27
+ "X-RapidAPI-Key": toolbench_rapidapi_key,
28
+ "X-RapidAPI-Host": "canada-holidays.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 holiday(holidayid: int, year: int=2023, optional: str='false', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
40
+ """
41
+ "Returns one Canadian statutory holiday by integer id. Returns a 404 response for invalid ids."
42
+ holidayid: Primary key for a holiday
43
+ year: A calendar year
44
+ optional: A boolean parameter. If false or 0 (default), will return provinces for which this is a legislated holiday. If true or 1, will return provinces which optionally celebrate this holiday.
45
+
46
+ """
47
+ url = f"https://canada-holidays.p.rapidapi.com/api/v1/holidays/{holidayid}"
48
+ querystring = {}
49
+ if year:
50
+ querystring['year'] = year
51
+ if optional:
52
+ querystring['optional'] = optional
53
+
54
+ headers = {
55
+ "X-RapidAPI-Key": toolbench_rapidapi_key,
56
+ "X-RapidAPI-Host": "canada-holidays.p.rapidapi.com"
57
+ }
58
+
59
+
60
+ response = requests.get(url, headers=headers, params=querystring)
61
+ try:
62
+ observation = response.json()
63
+ except:
64
+ observation = response.text
65
+ return observation
66
+
67
+ def province(provinceid: str, year: int=2023, optional: str='false', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
68
+ """
69
+ "Returns a Canadian province or territory with its associated holidays. Returns a 404 response for invalid abbreviations."
70
+ provinceid: A Canadian province abbreviation
71
+ year: A calendar year
72
+ optional: A boolean parameter (AB and BC only). If false or 0 (default), will return only legislated holidays. If true or 1, will return optional holidays from Alberta and BC.
73
+
74
+ """
75
+ url = f"https://canada-holidays.p.rapidapi.com/api/v1/provinces/{provinceid}"
76
+ querystring = {}
77
+ if year:
78
+ querystring['year'] = year
79
+ if optional:
80
+ querystring['optional'] = optional
81
+
82
+ headers = {
83
+ "X-RapidAPI-Key": toolbench_rapidapi_key,
84
+ "X-RapidAPI-Host": "canada-holidays.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 root(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
96
+ """
97
+ "Returns a welcome message."
98
+
99
+ """
100
+ url = f"https://canada-holidays.p.rapidapi.com/api/v1"
101
+ querystring = {}
102
+
103
+ headers = {
104
+ "X-RapidAPI-Key": toolbench_rapidapi_key,
105
+ "X-RapidAPI-Host": "canada-holidays.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 provinces(optional: str='false', year: int=2023, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
117
+ """
118
+ "Returns provinces and territories in Canada. Each province or territory lists its associated holidays."
119
+ optional: A boolean parameter. If false or 0 (default), will return only legislated holidays. If true or 1, will return optional holidays from Alberta and BC.
120
+ year: A calendar year
121
+
122
+ """
123
+ url = f"https://canada-holidays.p.rapidapi.com/api/v1/provinces"
124
+ querystring = {}
125
+ if optional:
126
+ querystring['optional'] = optional
127
+ if year:
128
+ querystring['year'] = year
129
+
130
+ headers = {
131
+ "X-RapidAPI-Key": toolbench_rapidapi_key,
132
+ "X-RapidAPI-Host": "canada-holidays.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 spec(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
144
+ """
145
+ "Gets the schema for the JSON API as a yaml file."
146
+
147
+ """
148
+ url = f"https://canada-holidays.p.rapidapi.com/api/v1/spec"
149
+ querystring = {}
150
+
151
+ headers = {
152
+ "X-RapidAPI-Key": toolbench_rapidapi_key,
153
+ "X-RapidAPI-Host": "canada-holidays.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/Events/checkiday.json ADDED
@@ -0,0 +1,136 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "tool_name":"Checkiday",
3
+ "tool_description":"Industry-leading Holiday API. Over 5,000 holidays and thousands of descriptions. Trusted by the World's leading companies.",
4
+ "title":"Checkiday",
5
+ "pricing":"FREEMIUM",
6
+ "score":{
7
+ "avgServiceLevel":95,
8
+ "avgLatency":371,
9
+ "avgSuccessRate":95,
10
+ "popularityScore":8.8,
11
+ "__typename":"Score"
12
+ },
13
+ "home_url":"https://rapidapi.com/westy92-llc-westy92-llc-default/api/checkiday/",
14
+ "host":"checkiday.p.rapidapi.com",
15
+ "api_list":[
16
+ {
17
+ "name":"Get Event Details",
18
+ "url":"https://checkiday.p.rapidapi.com/event/{id}",
19
+ "description":"Get details for an event",
20
+ "method":"GET",
21
+ "required_parameters":[
22
+ {
23
+ "name":"id",
24
+ "type":"string",
25
+ "description":"The event ID.",
26
+ "default":"f90b893ea04939d7456f30c54f68d7b4"
27
+ }
28
+ ],
29
+ "optional_parameters":[
30
+ {
31
+ "name":"start",
32
+ "type":"NUMBER",
33
+ "description":"",
34
+ "default":"2020"
35
+ },
36
+ {
37
+ "name":"end",
38
+ "type":"NUMBER",
39
+ "description":"",
40
+ "default":"2025"
41
+ }
42
+ ],
43
+ "code":"import requests\n\nurl = \"https://checkiday.p.rapidapi.com/event/{id}\"\nquerystring = {\"start\": start, \"end\": end}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"checkiday.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n",
44
+ "statuscode":111,
45
+ "body":"",
46
+ "headers":"",
47
+ "schema":""
48
+ },
49
+ {
50
+ "name":"Search for Event(s)",
51
+ "url":"https://checkiday.p.rapidapi.com/search",
52
+ "description":"Search for events.",
53
+ "method":"GET",
54
+ "required_parameters":[
55
+ {
56
+ "name":"query",
57
+ "type":"STRING",
58
+ "description":"The search query",
59
+ "default":"pizza"
60
+ }
61
+ ],
62
+ "optional_parameters":[
63
+ {
64
+ "name":"adult",
65
+ "type":"BOOLEAN",
66
+ "description":"Include content that may be unsafe for children or for viewing at work",
67
+ "default":""
68
+ }
69
+ ],
70
+ "code":"import requests\n\nurl = \"https://checkiday.p.rapidapi.com/search\"\nquerystring = {\"query\": query}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"checkiday.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n",
71
+ "statuscode":111,
72
+ "body":"",
73
+ "headers":"",
74
+ "schema":""
75
+ },
76
+ {
77
+ "name":"Get Today's Events",
78
+ "url":"https://checkiday.p.rapidapi.com/today",
79
+ "description":"Get today's events",
80
+ "method":"GET",
81
+ "required_parameters":[],
82
+ "optional_parameters":[
83
+ {
84
+ "name":"timezone",
85
+ "type":"STRING",
86
+ "description":"IANA timezone",
87
+ "default":"America/Chicago"
88
+ },
89
+ {
90
+ "name":"adult",
91
+ "type":"BOOLEAN",
92
+ "description":"Include content that may be unsafe for children or for viewing at work",
93
+ "default":"false"
94
+ }
95
+ ],
96
+ "code":"import requests\n\nurl = \"https://checkiday.p.rapidapi.com/today\"\nquerystring = {\"timezone\": timezone, \"adult\": adult}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"checkiday.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n",
97
+ "statuscode":111,
98
+ "body":"",
99
+ "headers":"",
100
+ "schema":""
101
+ },
102
+ {
103
+ "name":"Get Events for a Date",
104
+ "url":"https://checkiday.p.rapidapi.com/events",
105
+ "description":"Get lists of events happening today, multi-day events starting today, and multi-day events that are still happening today.",
106
+ "method":"GET",
107
+ "required_parameters":[
108
+ {
109
+ "name":"date",
110
+ "type":"STRING",
111
+ "description":"The date to fetch events for",
112
+ "default":"5/1/2023"
113
+ }
114
+ ],
115
+ "optional_parameters":[
116
+ {
117
+ "name":"timezone",
118
+ "type":"STRING",
119
+ "description":"IANA timezone",
120
+ "default":"America/Chicago"
121
+ },
122
+ {
123
+ "name":"adult",
124
+ "type":"BOOLEAN",
125
+ "description":"Include content that may be unsafe for children or for viewing at work",
126
+ "default":""
127
+ }
128
+ ],
129
+ "code":"import requests\n\nurl = \"https://checkiday.p.rapidapi.com/events\"\nquerystring = {\"timezone\": timezone, \"date\": date}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"checkiday.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
+ }
toolbench/toolenv/tools/Events/checkiday/api.py ADDED
@@ -0,0 +1,114 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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_event_details(is_id: str, start: int=2020, end: int=2025, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
10
+ """
11
+ "Get details for an event"
12
+ id: The event ID.
13
+
14
+ """
15
+ url = f"https://checkiday.p.rapidapi.com/event/{is_id}"
16
+ querystring = {}
17
+ if start:
18
+ querystring['start'] = start
19
+ if end:
20
+ querystring['end'] = end
21
+
22
+ headers = {
23
+ "X-RapidAPI-Key": toolbench_rapidapi_key,
24
+ "X-RapidAPI-Host": "checkiday.p.rapidapi.com"
25
+ }
26
+
27
+
28
+ response = requests.get(url, headers=headers, params=querystring)
29
+ try:
30
+ observation = response.json()
31
+ except:
32
+ observation = response.text
33
+ return observation
34
+
35
+ def search_for_event_s(query: str, adult: bool=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
36
+ """
37
+ "Search for events."
38
+ query: The search query
39
+ adult: Include content that may be unsafe for children or for viewing at work
40
+
41
+ """
42
+ url = f"https://checkiday.p.rapidapi.com/search"
43
+ querystring = {'query': query, }
44
+ if adult:
45
+ querystring['adult'] = adult
46
+
47
+ headers = {
48
+ "X-RapidAPI-Key": toolbench_rapidapi_key,
49
+ "X-RapidAPI-Host": "checkiday.p.rapidapi.com"
50
+ }
51
+
52
+
53
+ response = requests.get(url, headers=headers, params=querystring)
54
+ try:
55
+ observation = response.json()
56
+ except:
57
+ observation = response.text
58
+ return observation
59
+
60
+ def get_today_s_events(timezone: str='America/Chicago', adult: bool=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
61
+ """
62
+ "Get today's events"
63
+ timezone: IANA timezone
64
+ adult: Include content that may be unsafe for children or for viewing at work
65
+
66
+ """
67
+ url = f"https://checkiday.p.rapidapi.com/today"
68
+ querystring = {}
69
+ if timezone:
70
+ querystring['timezone'] = timezone
71
+ if adult:
72
+ querystring['adult'] = adult
73
+
74
+ headers = {
75
+ "X-RapidAPI-Key": toolbench_rapidapi_key,
76
+ "X-RapidAPI-Host": "checkiday.p.rapidapi.com"
77
+ }
78
+
79
+
80
+ response = requests.get(url, headers=headers, params=querystring)
81
+ try:
82
+ observation = response.json()
83
+ except:
84
+ observation = response.text
85
+ return observation
86
+
87
+ def get_events_for_a_date(date: str, timezone: str='America/Chicago', adult: bool=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
88
+ """
89
+ "Get lists of events happening today, multi-day events starting today, and multi-day events that are still happening today."
90
+ date: The date to fetch events for
91
+ timezone: IANA timezone
92
+ adult: Include content that may be unsafe for children or for viewing at work
93
+
94
+ """
95
+ url = f"https://checkiday.p.rapidapi.com/events"
96
+ querystring = {'date': date, }
97
+ if timezone:
98
+ querystring['timezone'] = timezone
99
+ if adult:
100
+ querystring['adult'] = adult
101
+
102
+ headers = {
103
+ "X-RapidAPI-Key": toolbench_rapidapi_key,
104
+ "X-RapidAPI-Host": "checkiday.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
+
toolbench/toolenv/tools/Events/contests.json ADDED
@@ -0,0 +1,85 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "tool_name":"contests",
3
+ "tool_description":"Get the list of active contests.",
4
+ "title":"contests",
5
+ "pricing":"FREE",
6
+ "score":{
7
+ "avgServiceLevel":100,
8
+ "avgLatency":1174,
9
+ "avgSuccessRate":100,
10
+ "popularityScore":8.3,
11
+ "__typename":"Score"
12
+ },
13
+ "home_url":"https://rapidapi.com/horvatlpd/api/contests7/",
14
+ "host":"contests7.p.rapidapi.com",
15
+ "api_list":[
16
+ {
17
+ "name":"/contests",
18
+ "url":"https://contests7.p.rapidapi.com/contests",
19
+ "description":"Get the latest active contests list",
20
+ "method":"GET",
21
+ "required_parameters":[],
22
+ "optional_parameters":[],
23
+ "code":"import requests\n\nurl = \"https://contests7.p.rapidapi.com/contests\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"contests7.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n",
24
+ "statuscode":200,
25
+ "body":[
26
+ {
27
+ "name":"ProjectEuler+",
28
+ "url":"https://hackerrank.com/contests/projecteuler",
29
+ "start_time":"2014-07-07T15:38:00.000Z",
30
+ "end_time":"2024-07-30T18:30:00.000Z",
31
+ "duration":"317616720.0",
32
+ "site":"HackerRank",
33
+ "in_24_hours":"No",
34
+ "status":"CODING"
35
+ }
36
+ ],
37
+ "headers":{},
38
+ "schema":{
39
+ "type":"array",
40
+ "items":{
41
+ "type":"object",
42
+ "properties":{
43
+ "name":{
44
+ "type":"string"
45
+ },
46
+ "url":{
47
+ "type":"string"
48
+ },
49
+ "start_time":{
50
+ "type":"string"
51
+ },
52
+ "end_time":{
53
+ "type":"string"
54
+ },
55
+ "duration":{
56
+ "type":"string"
57
+ },
58
+ "site":{
59
+ "type":"string"
60
+ },
61
+ "in_24_hours":{
62
+ "type":"string"
63
+ },
64
+ "status":{
65
+ "type":"string"
66
+ }
67
+ }
68
+ }
69
+ }
70
+ },
71
+ {
72
+ "name":"/health",
73
+ "url":"https://contests7.p.rapidapi.com/health",
74
+ "description":"Use health endpoint to check if server is up and running",
75
+ "method":"GET",
76
+ "required_parameters":[],
77
+ "optional_parameters":[],
78
+ "code":"import requests\n\nurl = \"https://contests7.p.rapidapi.com/health\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"contests7.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n",
79
+ "statuscode":111,
80
+ "body":"",
81
+ "headers":"",
82
+ "schema":""
83
+ }
84
+ ]
85
+ }
toolbench/toolenv/tools/Events/contests/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 contests(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
10
+ """
11
+ "Get the latest active contests list"
12
+
13
+ """
14
+ url = f"https://contests7.p.rapidapi.com/contests"
15
+ querystring = {}
16
+
17
+ headers = {
18
+ "X-RapidAPI-Key": toolbench_rapidapi_key,
19
+ "X-RapidAPI-Host": "contests7.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 health(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
31
+ """
32
+ "Use health endpoint to check if server is up and running"
33
+
34
+ """
35
+ url = f"https://contests7.p.rapidapi.com/health"
36
+ querystring = {}
37
+
38
+ headers = {
39
+ "X-RapidAPI-Key": toolbench_rapidapi_key,
40
+ "X-RapidAPI-Host": "contests7.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/Events/crypto_events_calendar.json ADDED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "tool_name":"📅 Crypto Events Calendar 🚀",
3
+ "tool_description":"Get crypto events like listing, airdrops, release, tokenomics, partnershiop, other.\n",
4
+ "title":"📅 Crypto Events Calendar 🚀",
5
+ "pricing":"FREEMIUM",
6
+ "score":{
7
+ "avgServiceLevel":100,
8
+ "avgLatency":289,
9
+ "avgSuccessRate":100,
10
+ "popularityScore":9.2,
11
+ "__typename":"Score"
12
+ },
13
+ "home_url":"https://rapidapi.com/emir12/api/crypto-events-calendar/",
14
+ "host":"crypto-events-calendar.p.rapidapi.com",
15
+ "api_list":[
16
+ {
17
+ "name":"Events",
18
+ "url":"https://crypto-events-calendar.p.rapidapi.com/index",
19
+ "description":"Get crypto events like listing, airdrops, release, tokenomics, partnershiop, other.\nGrouped by days!",
20
+ "method":"GET",
21
+ "required_parameters":[
22
+ {
23
+ "name":"pageSize",
24
+ "type":"STRING",
25
+ "description":"Max pageSize = 10",
26
+ "default":"10"
27
+ },
28
+ {
29
+ "name":"page",
30
+ "type":"STRING",
31
+ "description":"",
32
+ "default":"1"
33
+ }
34
+ ],
35
+ "optional_parameters":[],
36
+ "code":"import requests\n\nurl = \"https://crypto-events-calendar.p.rapidapi.com/index\"\nquerystring = {\"pageSize\": pagesize, \"page\": page}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"crypto-events-calendar.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n",
37
+ "statuscode":111,
38
+ "body":"",
39
+ "headers":"",
40
+ "schema":""
41
+ }
42
+ ]
43
+ }
toolbench/toolenv/tools/Events/crypto_events_calendar/api.py ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 events(pagesize: str, page: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
10
+ """
11
+ "Get crypto events like listing, airdrops, release, tokenomics, partnershiop, other.
12
+ Grouped by days!"
13
+ pagesize: Max pageSize = 10
14
+
15
+ """
16
+ url = f"https://crypto-events-calendar.p.rapidapi.com/index"
17
+ querystring = {'pageSize': pagesize, 'page': page, }
18
+
19
+ headers = {
20
+ "X-RapidAPI-Key": toolbench_rapidapi_key,
21
+ "X-RapidAPI-Host": "crypto-events-calendar.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
+
toolbench/toolenv/tools/Events/demo_project.json ADDED
The diff for this file is too large to render. See raw diff
 
toolbench/toolenv/tools/Events/demo_project/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 get_categories(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
10
+ """
11
+ " "
12
+
13
+ """
14
+ url = f"https://demo-project29842.p.rapidapi.com/catalog/categories"
15
+ querystring = {}
16
+
17
+ headers = {
18
+ "X-RapidAPI-Key": toolbench_rapidapi_key,
19
+ "X-RapidAPI-Host": "demo-project29842.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_product(is_id: int, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
31
+ """
32
+ " "
33
+
34
+ """
35
+ url = f"https://demo-project29842.p.rapidapi.com/catalog/product/{is_id}"
36
+ querystring = {}
37
+
38
+ headers = {
39
+ "X-RapidAPI-Key": toolbench_rapidapi_key,
40
+ "X-RapidAPI-Host": "demo-project29842.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 get_products_in_category(category: str, limit: int, skip: int, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
52
+ """
53
+ " "
54
+
55
+ """
56
+ url = f"https://demo-project29842.p.rapidapi.com/catalog/category/{category}/products"
57
+ querystring = {'limit': limit, 'skip': skip, }
58
+
59
+ headers = {
60
+ "X-RapidAPI-Key": toolbench_rapidapi_key,
61
+ "X-RapidAPI-Host": "demo-project29842.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 get_order(is_id: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
73
+ """
74
+ " "
75
+
76
+ """
77
+ url = f"https://demo-project29842.p.rapidapi.com/order/{is_id}"
78
+ querystring = {}
79
+
80
+ headers = {
81
+ "X-RapidAPI-Key": toolbench_rapidapi_key,
82
+ "X-RapidAPI-Host": "demo-project29842.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 get_user_orders(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
94
+ """
95
+ " "
96
+
97
+ """
98
+ url = f"https://demo-project29842.p.rapidapi.com/order/my"
99
+ querystring = {}
100
+
101
+ headers = {
102
+ "X-RapidAPI-Key": toolbench_rapidapi_key,
103
+ "X-RapidAPI-Host": "demo-project29842.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 get_products(limit: int, skip: int, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
115
+ """
116
+ " "
117
+
118
+ """
119
+ url = f"https://demo-project29842.p.rapidapi.com/catalog/products"
120
+ querystring = {'limit': limit, 'skip': skip, }
121
+
122
+ headers = {
123
+ "X-RapidAPI-Key": toolbench_rapidapi_key,
124
+ "X-RapidAPI-Host": "demo-project29842.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 me(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
136
+ """
137
+ " "
138
+
139
+ """
140
+ url = f"https://demo-project29842.p.rapidapi.com/auth/me"
141
+ querystring = {}
142
+
143
+ headers = {
144
+ "X-RapidAPI-Key": toolbench_rapidapi_key,
145
+ "X-RapidAPI-Host": "demo-project29842.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/Events/enoch_calendar.json ADDED
@@ -0,0 +1,418 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "tool_name":"Enoch Calendar",
3
+ "tool_description":"Access the Biblical Holydays and Sabbaths using the Enoch Calendar",
4
+ "title":"Enoch Calendar",
5
+ "pricing":"FREE",
6
+ "score":{
7
+ "avgServiceLevel":33,
8
+ "avgLatency":83134,
9
+ "avgSuccessRate":33,
10
+ "popularityScore":9.3,
11
+ "__typename":"Score"
12
+ },
13
+ "home_url":"https://rapidapi.com/AwesomelyPerfect/api/enoch-calendar/",
14
+ "host":"enoch-calendar.p.rapidapi.com",
15
+ "api_list":[
16
+ {
17
+ "name":"Get Calendar Components",
18
+ "url":"https://enoch-calendar.p.rapidapi.com/date-elements/{month}/{year}",
19
+ "description":"Get the calendar components to build the current Hebrew month calendar from the supplied Hebrew month number, if supplied, or the first Hebrew month and, a supplied year, or this year",
20
+ "method":"GET",
21
+ "required_parameters":[
22
+ {
23
+ "name":"month",
24
+ "type":"NUMBER",
25
+ "description":"",
26
+ "default":"7"
27
+ },
28
+ {
29
+ "name":"year",
30
+ "type":"NUMBER",
31
+ "description":"",
32
+ "default":"2021"
33
+ }
34
+ ],
35
+ "optional_parameters":[],
36
+ "code":"import requests\n\nurl = \"https://enoch-calendar.p.rapidapi.com/date-elements/{month}/{year}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"enoch-calendar.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n",
37
+ "statuscode":200,
38
+ "body":{
39
+ "days":30,
40
+ "month":"7",
41
+ "date":1,
42
+ "day_milli":86400000,
43
+ "eng_start_date":"2021-09-15T05:46:00.000Z",
44
+ "eng_start_date_milli":1631684760000,
45
+ "holydays":{
46
+ "days":{
47
+ "1":{
48
+ "name":"The Feast of Trumpets",
49
+ "scripture":"Leviticus 23:23-25; Numbers 29:1-6; Psa 81:3",
50
+ "isSabbath":true
51
+ },
52
+ "9":{
53
+ "name":"Evening sabbath before Day of Atonement",
54
+ "scripture":"Leviticus 23:26-32; Numbers 29:7-11",
55
+ "isSabbath":true
56
+ },
57
+ "10":{
58
+ "name":"The Day of Atonement",
59
+ "scripture":"Leviticus 23:26-32; Numbers 29:7-11",
60
+ "isSabbath":true
61
+ },
62
+ "15":{
63
+ "name":"Day 1 Feast of Tabernacles",
64
+ "scripture":"Leviticus 23:33-44; Nehemiah 8:13-18",
65
+ "isSabbath":true
66
+ },
67
+ "16":{
68
+ "name":"Day 2 Feast of Tabernacles",
69
+ "scripture":"Leviticus 23:33-44; Nehemiah 8:13-18",
70
+ "isSabbath":false
71
+ },
72
+ "17":{
73
+ "name":"Day 3 Feast of Tabernacles",
74
+ "scripture":"Leviticus 23:33-44; Nehemiah 8:13-18",
75
+ "isSabbath":false
76
+ },
77
+ "18":{
78
+ "name":"Day 4 Feast of Tabernacles",
79
+ "scripture":"Leviticus 23:33-44; Nehemiah 8:13-18",
80
+ "isSabbath":false
81
+ },
82
+ "19":{
83
+ "name":"Day 5 Feast of Tabernacles",
84
+ "scripture":"Leviticus 23:33-44; Nehemiah 8:13-18",
85
+ "isSabbath":false
86
+ },
87
+ "20":{
88
+ "name":"Day 6 Feast of Tabernacles",
89
+ "scripture":"Leviticus 23:33-44; Nehemiah 8:13-18",
90
+ "isSabbath":false
91
+ },
92
+ "21":{
93
+ "name":"Day 7 Feast of Tabernacles",
94
+ "scripture":"Leviticus 23:33-44; Nehemiah 8:13-18",
95
+ "isSabbath":false
96
+ },
97
+ "22":{
98
+ "name":"Day 8 Sabbath Feast of Tabernacles",
99
+ "scripture":"Leviticus 23:33-44; Nehemiah 8:13-18",
100
+ "isSabbath":true
101
+ }
102
+ }
103
+ },
104
+ "sabbathday":"tues"
105
+ },
106
+ "headers":{
107
+ "access-control-allow-credentials":"true",
108
+ "access-control-allow-origin":"*",
109
+ "connection":"keep-alive",
110
+ "content-length":"1417",
111
+ "content-type":"application/json; charset=utf-8",
112
+ "date":"Fri, 29 Oct 2021 09:09:07 GMT",
113
+ "etag":"W/\"589-ga9EbaW1GYLgQta4S/WQrYOqCP0\"",
114
+ "server":"RapidAPI-1.2.8",
115
+ "via":"1.1 vegur",
116
+ "x-powered-by":"Express",
117
+ "x-rapidapi-region":"AWS - us-east-1",
118
+ "x-rapidapi-version":"1.2.8"
119
+ },
120
+ "schema":{}
121
+ },
122
+ {
123
+ "name":"Get Calendar Components for Today",
124
+ "url":"https://enoch-calendar.p.rapidapi.com/date-elements",
125
+ "description":"Get calendar components for today",
126
+ "method":"GET",
127
+ "required_parameters":[],
128
+ "optional_parameters":[],
129
+ "code":"import requests\n\nurl = \"https://enoch-calendar.p.rapidapi.com/date-elements\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"enoch-calendar.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n",
130
+ "statuscode":200,
131
+ "body":{
132
+ "days":30,
133
+ "month":8,
134
+ "date":15,
135
+ "day_milli":86400000,
136
+ "eng_start_date":"2021-10-15T05:46:00.000Z",
137
+ "eng_start_date_milli":1634276760000,
138
+ "holydays":{
139
+ "days":null
140
+ },
141
+ "sabbathday":"tues"
142
+ },
143
+ "headers":{
144
+ "access-control-allow-credentials":"true",
145
+ "access-control-allow-origin":"*",
146
+ "connection":"keep-alive",
147
+ "content-length":"178",
148
+ "content-type":"application/json; charset=utf-8",
149
+ "date":"Fri, 29 Oct 2021 18:44:24 GMT",
150
+ "etag":"W/\"b2-fux0BP/WkVEGM5TPWOAxykpDr28\"",
151
+ "server":"RapidAPI-1.2.8",
152
+ "via":"1.1 vegur",
153
+ "x-powered-by":"Express",
154
+ "x-rapidapi-region":"AWS - us-east-1",
155
+ "x-rapidapi-version":"1.2.8"
156
+ },
157
+ "schema":{}
158
+ },
159
+ {
160
+ "name":"Count of Days for today",
161
+ "url":"https://enoch-calendar.p.rapidapi.com/count-of-days",
162
+ "description":"Get the count of days for today",
163
+ "method":"GET",
164
+ "required_parameters":[],
165
+ "optional_parameters":[],
166
+ "code":"import requests\n\nurl = \"https://enoch-calendar.p.rapidapi.com/count-of-days\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"enoch-calendar.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n",
167
+ "statuscode":200,
168
+ "body":{
169
+ "day":227
170
+ },
171
+ "headers":{
172
+ "access-control-allow-credentials":"true",
173
+ "access-control-allow-origin":"*",
174
+ "connection":"keep-alive",
175
+ "content-length":"11",
176
+ "content-type":"application/json; charset=utf-8",
177
+ "date":"Fri, 29 Oct 2021 18:12:51 GMT",
178
+ "etag":"W/\"b-dGcbcd+NSdtzsK5pCiEsE4agwT4\"",
179
+ "server":"RapidAPI-1.2.8",
180
+ "via":"1.1 vegur",
181
+ "x-powered-by":"Express",
182
+ "x-rapidapi-region":"AWS - us-east-1",
183
+ "x-rapidapi-version":"1.2.8"
184
+ },
185
+ "schema":{}
186
+ },
187
+ {
188
+ "name":"Count of Days",
189
+ "url":"https://enoch-calendar.p.rapidapi.com/count-of-days/{datestring}",
190
+ "description":"Current day count in this Hebrew year from the supplied date string or today's date",
191
+ "method":"GET",
192
+ "required_parameters":[
193
+ {
194
+ "name":"datestring",
195
+ "type":"DATE (YYYY-MM-DD)",
196
+ "description":"The date that you want to know the number of the day of the Hebrew year",
197
+ "default":"2021-03-30"
198
+ }
199
+ ],
200
+ "optional_parameters":[],
201
+ "code":"import requests\n\nurl = \"https://enoch-calendar.p.rapidapi.com/count-of-days/{datestring}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"enoch-calendar.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n",
202
+ "statuscode":200,
203
+ "body":{
204
+ "day":14
205
+ },
206
+ "headers":{
207
+ "access-control-allow-credentials":"true",
208
+ "access-control-allow-origin":"*",
209
+ "connection":"keep-alive",
210
+ "content-length":"10",
211
+ "content-type":"application/json; charset=utf-8",
212
+ "date":"Fri, 29 Oct 2021 08:59:16 GMT",
213
+ "etag":"W/\"a-Ay9mdipe7SheuKuMh5YmP/xlUfw\"",
214
+ "server":"RapidAPI-1.2.8",
215
+ "via":"1.1 vegur",
216
+ "x-powered-by":"Express",
217
+ "x-rapidapi-region":"AWS - us-east-1",
218
+ "x-rapidapi-version":"1.2.8"
219
+ },
220
+ "schema":{}
221
+ },
222
+ {
223
+ "name":"Is Holyday",
224
+ "url":"https://enoch-calendar.p.rapidapi.com/is-holyday/{datestring}",
225
+ "description":"Get the Holyday, corresponding Scritpures and if this Holyday is also a Sabbath from the supplied date string or today's date. Or false in for all returned properties",
226
+ "method":"GET",
227
+ "required_parameters":[
228
+ {
229
+ "name":"datestring",
230
+ "type":"DATE (YYYY-MM-DD)",
231
+ "description":"",
232
+ "default":"2021-03-30"
233
+ }
234
+ ],
235
+ "optional_parameters":[],
236
+ "code":"import requests\n\nurl = \"https://enoch-calendar.p.rapidapi.com/is-holyday/{datestring}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"enoch-calendar.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n",
237
+ "statuscode":200,
238
+ "body":{
239
+ "holyday":{
240
+ "name":"Passover",
241
+ "scripture":"Leviticus 23:5; Deut. 16:1-16; Exodus 12:6 - Exodus 12:20; Exodus 12:26 - Exodus 12:27",
242
+ "isSabbath":false
243
+ }
244
+ },
245
+ "headers":{
246
+ "access-control-allow-credentials":"true",
247
+ "access-control-allow-origin":"*",
248
+ "connection":"keep-alive",
249
+ "content-length":"150",
250
+ "content-type":"application/json; charset=utf-8",
251
+ "date":"Fri, 29 Oct 2021 08:59:47 GMT",
252
+ "etag":"W/\"96-6oko+KpwS+eFBvOOC6L99haXGCg\"",
253
+ "server":"RapidAPI-1.2.8",
254
+ "via":"1.1 vegur",
255
+ "x-powered-by":"Express",
256
+ "x-rapidapi-region":"AWS - us-east-1",
257
+ "x-rapidapi-version":"1.2.8"
258
+ },
259
+ "schema":{}
260
+ },
261
+ {
262
+ "name":"Get Hebrew Month and Date",
263
+ "url":"https://enoch-calendar.p.rapidapi.com/hebrew-date-from/{datestring}",
264
+ "description":"Get Hebrew Month, Date and holydays from supplied date string or today's date",
265
+ "method":"GET",
266
+ "required_parameters":[
267
+ {
268
+ "name":"datestring",
269
+ "type":"DATE (YYYY-MM-DD)",
270
+ "description":"",
271
+ "default":"2021-03-30"
272
+ }
273
+ ],
274
+ "optional_parameters":[],
275
+ "code":"import requests\n\nurl = \"https://enoch-calendar.p.rapidapi.com/hebrew-date-from/{datestring}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"enoch-calendar.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n",
276
+ "statuscode":200,
277
+ "body":{
278
+ "month":1,
279
+ "date":{
280
+ "number":14,
281
+ "holyday":{
282
+ "name":"Passover",
283
+ "scripture":"Leviticus 23:5; Deut. 16:1-16; Exodus 12:6 - Exodus 12:20; Exodus 12:26 - Exodus 12:27",
284
+ "isSabbath":false
285
+ }
286
+ },
287
+ "sabbathday":true
288
+ },
289
+ "headers":{
290
+ "access-control-allow-credentials":"true",
291
+ "access-control-allow-origin":"*",
292
+ "connection":"keep-alive",
293
+ "content-length":"199",
294
+ "content-type":"application/json; charset=utf-8",
295
+ "date":"Fri, 29 Oct 2021 09:00:09 GMT",
296
+ "etag":"W/\"c7-ykQcv4pnRu1UrRM++yaj4b7yUYM\"",
297
+ "server":"RapidAPI-1.2.8",
298
+ "via":"1.1 vegur",
299
+ "x-powered-by":"Express",
300
+ "x-rapidapi-region":"AWS - us-east-1",
301
+ "x-rapidapi-version":"1.2.8"
302
+ },
303
+ "schema":{}
304
+ },
305
+ {
306
+ "name":"Is Sabbath Day",
307
+ "url":"https://enoch-calendar.p.rapidapi.com/is-sabbath-day/{datestring}",
308
+ "description":"Is supplied date string or today a Sabbath day",
309
+ "method":"GET",
310
+ "required_parameters":[
311
+ {
312
+ "name":"datestring",
313
+ "type":"DATE (YYYY-MM-DD)",
314
+ "description":"",
315
+ "default":"2021-03-23"
316
+ }
317
+ ],
318
+ "optional_parameters":[],
319
+ "code":"import requests\n\nurl = \"https://enoch-calendar.p.rapidapi.com/is-sabbath-day/{datestring}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"enoch-calendar.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n",
320
+ "statuscode":200,
321
+ "body":{
322
+ "sabbath":true
323
+ },
324
+ "headers":{
325
+ "access-control-allow-credentials":"true",
326
+ "access-control-allow-origin":"*",
327
+ "connection":"keep-alive",
328
+ "content-length":"16",
329
+ "content-type":"application/json; charset=utf-8",
330
+ "date":"Fri, 29 Oct 2021 09:01:54 GMT",
331
+ "etag":"W/\"10-WcUVl4s/UA4Ozz1eRvomZOd16Ps\"",
332
+ "server":"RapidAPI-1.2.8",
333
+ "via":"1.1 vegur",
334
+ "x-powered-by":"Express",
335
+ "x-rapidapi-region":"AWS - us-east-1",
336
+ "x-rapidapi-version":"1.2.8"
337
+ },
338
+ "schema":{}
339
+ },
340
+ {
341
+ "name":"Get Hebrew Month",
342
+ "url":"https://enoch-calendar.p.rapidapi.com/month/{datestring}",
343
+ "description":"Get Hebrew Month from supplied date string or today's date",
344
+ "method":"GET",
345
+ "required_parameters":[
346
+ {
347
+ "name":"datestring",
348
+ "type":"DATE (YYYY-MM-DD)",
349
+ "description":"",
350
+ "default":"2021-03-17"
351
+ }
352
+ ],
353
+ "optional_parameters":[],
354
+ "code":"import requests\n\nurl = \"https://enoch-calendar.p.rapidapi.com/month/{datestring}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"enoch-calendar.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n",
355
+ "statuscode":200,
356
+ "body":{
357
+ "month":1
358
+ },
359
+ "headers":{
360
+ "access-control-allow-credentials":"true",
361
+ "access-control-allow-origin":"*",
362
+ "connection":"keep-alive",
363
+ "content-length":"11",
364
+ "content-type":"application/json; charset=utf-8",
365
+ "date":"Fri, 29 Oct 2021 09:03:06 GMT",
366
+ "etag":"W/\"b-ZALlB9M8XzDf9EUdqFuDcqhB+wA\"",
367
+ "server":"RapidAPI-1.2.8",
368
+ "via":"1.1 vegur",
369
+ "x-powered-by":"Express",
370
+ "x-rapidapi-region":"AWS - us-east-1",
371
+ "x-rapidapi-version":"1.2.8"
372
+ },
373
+ "schema":{}
374
+ },
375
+ {
376
+ "name":"Get Hebrew Date",
377
+ "url":"https://enoch-calendar.p.rapidapi.com/date/{datestring}",
378
+ "description":"Get Hebrew Date for supplied date string or today's date; as well as current holyday if any",
379
+ "method":"GET",
380
+ "required_parameters":[
381
+ {
382
+ "name":"datestring",
383
+ "type":"DATE (YYYY-MM-DD)",
384
+ "description":"",
385
+ "default":"2021-03-17"
386
+ }
387
+ ],
388
+ "optional_parameters":[],
389
+ "code":"import requests\n\nurl = \"https://enoch-calendar.p.rapidapi.com/date/{datestring}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"enoch-calendar.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n",
390
+ "statuscode":200,
391
+ "body":{
392
+ "date":{
393
+ "number":1,
394
+ "holyday":{
395
+ "name":false,
396
+ "scripture":false,
397
+ "isSabbath":false
398
+ }
399
+ }
400
+ },
401
+ "headers":{
402
+ "access-control-allow-credentials":"true",
403
+ "access-control-allow-origin":"*",
404
+ "connection":"keep-alive",
405
+ "content-length":"82",
406
+ "content-type":"application/json; charset=utf-8",
407
+ "date":"Fri, 29 Oct 2021 09:03:56 GMT",
408
+ "etag":"W/\"52-gSx2vuGjwGWRMDlT8V6VU+NWaxo\"",
409
+ "server":"RapidAPI-1.2.8",
410
+ "via":"1.1 vegur",
411
+ "x-powered-by":"Express",
412
+ "x-rapidapi-region":"AWS - us-east-1",
413
+ "x-rapidapi-version":"1.2.8"
414
+ },
415
+ "schema":{}
416
+ }
417
+ ]
418
+ }
toolbench/toolenv/tools/Events/enoch_calendar/api.py ADDED
@@ -0,0 +1,198 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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_calendar_components(month: int, year: int, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
10
+ """
11
+ "Get the calendar components to build the current Hebrew month calendar from the supplied Hebrew month number, if supplied, or the first Hebrew month and, a supplied year, or this year"
12
+
13
+ """
14
+ url = f"https://enoch-calendar.p.rapidapi.com/date-elements/{month}/{year}"
15
+ querystring = {}
16
+
17
+ headers = {
18
+ "X-RapidAPI-Key": toolbench_rapidapi_key,
19
+ "X-RapidAPI-Host": "enoch-calendar.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_calendar_components_for_today(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
31
+ """
32
+ "Get calendar components for today"
33
+
34
+ """
35
+ url = f"https://enoch-calendar.p.rapidapi.com/date-elements"
36
+ querystring = {}
37
+
38
+ headers = {
39
+ "X-RapidAPI-Key": toolbench_rapidapi_key,
40
+ "X-RapidAPI-Host": "enoch-calendar.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 count_of_days_for_today(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
52
+ """
53
+ "Get the count of days for today"
54
+
55
+ """
56
+ url = f"https://enoch-calendar.p.rapidapi.com/count-of-days"
57
+ querystring = {}
58
+
59
+ headers = {
60
+ "X-RapidAPI-Key": toolbench_rapidapi_key,
61
+ "X-RapidAPI-Host": "enoch-calendar.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 count_of_days(datestring: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
73
+ """
74
+ "Current day count in this Hebrew year from the supplied date string or today's date"
75
+ datestring: The date that you want to know the number of the day of the Hebrew year
76
+
77
+ """
78
+ url = f"https://enoch-calendar.p.rapidapi.com/count-of-days/{datestring}"
79
+ querystring = {}
80
+
81
+ headers = {
82
+ "X-RapidAPI-Key": toolbench_rapidapi_key,
83
+ "X-RapidAPI-Host": "enoch-calendar.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 is_holyday(datestring: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
95
+ """
96
+ "Get the Holyday, corresponding Scritpures and if this Holyday is also a Sabbath from the supplied date string or today's date. Or false in for all returned properties"
97
+
98
+ """
99
+ url = f"https://enoch-calendar.p.rapidapi.com/is-holyday/{datestring}"
100
+ querystring = {}
101
+
102
+ headers = {
103
+ "X-RapidAPI-Key": toolbench_rapidapi_key,
104
+ "X-RapidAPI-Host": "enoch-calendar.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 get_hebrew_month_and_date(datestring: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
116
+ """
117
+ "Get Hebrew Month, Date and holydays from supplied date string or today's date"
118
+
119
+ """
120
+ url = f"https://enoch-calendar.p.rapidapi.com/hebrew-date-from/{datestring}"
121
+ querystring = {}
122
+
123
+ headers = {
124
+ "X-RapidAPI-Key": toolbench_rapidapi_key,
125
+ "X-RapidAPI-Host": "enoch-calendar.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 is_sabbath_day(datestring: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
137
+ """
138
+ "Is supplied date string or today a Sabbath day"
139
+
140
+ """
141
+ url = f"https://enoch-calendar.p.rapidapi.com/is-sabbath-day/{datestring}"
142
+ querystring = {}
143
+
144
+ headers = {
145
+ "X-RapidAPI-Key": toolbench_rapidapi_key,
146
+ "X-RapidAPI-Host": "enoch-calendar.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 get_hebrew_month(datestring: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
158
+ """
159
+ "Get Hebrew Month from supplied date string or today's date"
160
+
161
+ """
162
+ url = f"https://enoch-calendar.p.rapidapi.com/month/{datestring}"
163
+ querystring = {}
164
+
165
+ headers = {
166
+ "X-RapidAPI-Key": toolbench_rapidapi_key,
167
+ "X-RapidAPI-Host": "enoch-calendar.p.rapidapi.com"
168
+ }
169
+
170
+
171
+ response = requests.get(url, headers=headers, params=querystring)
172
+ try:
173
+ observation = response.json()
174
+ except:
175
+ observation = response.text
176
+ return observation
177
+
178
+ def get_hebrew_date(datestring: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
179
+ """
180
+ "Get Hebrew Date for supplied date string or today's date; as well as current holyday if any"
181
+
182
+ """
183
+ url = f"https://enoch-calendar.p.rapidapi.com/date/{datestring}"
184
+ querystring = {}
185
+
186
+ headers = {
187
+ "X-RapidAPI-Key": toolbench_rapidapi_key,
188
+ "X-RapidAPI-Host": "enoch-calendar.p.rapidapi.com"
189
+ }
190
+
191
+
192
+ response = requests.get(url, headers=headers, params=querystring)
193
+ try:
194
+ observation = response.json()
195
+ except:
196
+ observation = response.text
197
+ return observation
198
+
toolbench/toolenv/tools/Events/eventful.json ADDED
The diff for this file is too large to render. See raw diff
 
toolbench/toolenv/tools/Events/events_happened_in_world.json ADDED
@@ -0,0 +1,357 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "tool_name":"Events Happened in World",
3
+ "tool_description":"Record important events in month and date",
4
+ "title":"Events Happened in World",
5
+ "pricing":"FREEMIUM",
6
+ "score":{
7
+ "avgServiceLevel":0,
8
+ "avgLatency":720,
9
+ "avgSuccessRate":0,
10
+ "popularityScore":0,
11
+ "__typename":"Score"
12
+ },
13
+ "home_url":"https://rapidapi.com/hendrahima1-0PV5OBAUoqB/api/events-happened-in-world/",
14
+ "host":"events-happened-in-world.p.rapidapi.com",
15
+ "api_list":[
16
+ {
17
+ "name":"Get Search",
18
+ "url":"https://events-happened-in-world.p.rapidapi.com/search",
19
+ "description":"Search what happened in the world by date and month",
20
+ "method":"GET",
21
+ "required_parameters":[
22
+ {
23
+ "name":"month",
24
+ "type":"NUMBER",
25
+ "description":"",
26
+ "default":"4"
27
+ },
28
+ {
29
+ "name":"date",
30
+ "type":"NUMBER",
31
+ "description":"",
32
+ "default":"5"
33
+ }
34
+ ],
35
+ "optional_parameters":[
36
+ {
37
+ "name":"limit",
38
+ "type":"NUMBER",
39
+ "description":"",
40
+ "default":"5"
41
+ }
42
+ ],
43
+ "code":"import requests\n\nurl = \"https://events-happened-in-world.p.rapidapi.com/search\"\nquerystring = {\"limit\": limit, \"month\": month, \"date\": date}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"events-happened-in-world.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n",
44
+ "statuscode":200,
45
+ "body":{
46
+ "data":[
47
+ {
48
+ "_id":"61d8eefe8d2a7580b2f9bebe",
49
+ "date":"5",
50
+ "month":"May",
51
+ "year":"1911 ",
52
+ "event":" Gilles Grangier, French director and screenwriter (d. 1996)"
53
+ },
54
+ {
55
+ "_id":"61d8eefe8d2a7580b2f9bf30",
56
+ "date":"5",
57
+ "month":"May",
58
+ "year":"1905 ",
59
+ "event":" The trial in the Stratton Brothers case begins in London, England; it marks the first time that fingerprint evidence is used to gain a conviction for murder."
60
+ },
61
+ {
62
+ "_id":"61d8eefe8d2a7580b2f9bf03",
63
+ "date":"5",
64
+ "month":"May",
65
+ "year":"1883 ",
66
+ "event":" Anna Johnson Pell Wheeler, American mathematician (d. 1966)"
67
+ },
68
+ {
69
+ "_id":"61d8eefe8d2a7580b2f9bf28",
70
+ "date":"5",
71
+ "month":"May",
72
+ "year":"1985 ",
73
+ "event":" Marcos Rogério Oliveira Duarte, Brazilian footballer"
74
+ },
75
+ {
76
+ "_id":"61d8eefe8d2a7580b2f9bf18",
77
+ "date":"5",
78
+ "month":"May",
79
+ "year":"1923 ",
80
+ "event":" Cathleen Synge Morawetz, Canadian mathematician (d. 2017)"
81
+ }
82
+ ]
83
+ },
84
+ "headers":{
85
+ "access-control-allow-credentials":"true",
86
+ "access-control-allow-origin":"*",
87
+ "connection":"keep-alive",
88
+ "content-length":"836",
89
+ "content-type":"application/json; charset=utf-8",
90
+ "date":"Sat, 08 Jan 2022 01:57:10 GMT",
91
+ "etag":"W/\"344-vzLK4MOX44S9XPR2Z8VcOozL8eE\"",
92
+ "server":"RapidAPI-1.2.8",
93
+ "via":"1.1 vegur",
94
+ "x-powered-by":"Express",
95
+ "x-rapidapi-region":"AWS - ap-southeast-1",
96
+ "x-rapidapi-version":"1.2.8"
97
+ },
98
+ "schema":{}
99
+ },
100
+ {
101
+ "name":"Get Id Event",
102
+ "url":"https://events-happened-in-world.p.rapidapi.com/id/{id}",
103
+ "description":"Find Id Event what happened in the world",
104
+ "method":"GET",
105
+ "required_parameters":[
106
+ {
107
+ "name":"id",
108
+ "type":"string",
109
+ "description":"",
110
+ "default":"61d8e80ab07faf65fececedd"
111
+ }
112
+ ],
113
+ "optional_parameters":[],
114
+ "code":"import requests\n\nurl = \"https://events-happened-in-world.p.rapidapi.com/id/{id}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"events-happened-in-world.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n",
115
+ "statuscode":200,
116
+ "body":{
117
+ "data":[
118
+ {
119
+ "_id":"61d8e80ab07faf65fececedd",
120
+ "date":"1",
121
+ "month":"March",
122
+ "year":"1956 ",
123
+ "event":" Dalia Grybauskaitė, Lithuanian politician, President of Lithuania"
124
+ }
125
+ ]
126
+ },
127
+ "headers":{
128
+ "access-control-allow-credentials":"true",
129
+ "access-control-allow-origin":"*",
130
+ "connection":"keep-alive",
131
+ "content-length":"167",
132
+ "content-type":"application/json; charset=utf-8",
133
+ "date":"Sat, 08 Jan 2022 01:52:31 GMT",
134
+ "etag":"W/\"a7-E0P4PB41T99ov4DEobshDdPZ9k8\"",
135
+ "server":"RapidAPI-1.2.8",
136
+ "via":"1.1 vegur",
137
+ "x-powered-by":"Express",
138
+ "x-rapidapi-region":"AWS - ap-southeast-1",
139
+ "x-rapidapi-version":"1.2.8"
140
+ },
141
+ "schema":{}
142
+ },
143
+ {
144
+ "name":"Get Tomorrow",
145
+ "url":"https://events-happened-in-world.p.rapidapi.com/tomorrow",
146
+ "description":"Find what happened tomorrow in the world",
147
+ "method":"GET",
148
+ "required_parameters":[],
149
+ "optional_parameters":[
150
+ {
151
+ "name":"limit",
152
+ "type":"NUMBER",
153
+ "description":"",
154
+ "default":"5"
155
+ }
156
+ ],
157
+ "code":"import requests\n\nurl = \"https://events-happened-in-world.p.rapidapi.com/tomorrow\"\nquerystring = {\"limit\": limit}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"events-happened-in-world.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n",
158
+ "statuscode":200,
159
+ "body":{
160
+ "data":[
161
+ {
162
+ "date":"9",
163
+ "month":"January",
164
+ "year":"710 ",
165
+ "event":" Adrian of Canterbury, abbot and scholar",
166
+ "_id":"61d8ee038d2a7580b2f9bd81"
167
+ },
168
+ {
169
+ "date":"9",
170
+ "month":"January",
171
+ "year":"1943 ",
172
+ "event":" Robert Drewe, Australian author and playwright",
173
+ "_id":"61d8ee038d2a7580b2f9bd82"
174
+ },
175
+ {
176
+ "date":"9",
177
+ "month":"January",
178
+ "year":"1900 ",
179
+ "event":" Richard Halliburton, American journalist and author (d. 1939)",
180
+ "_id":"61d8ee038d2a7580b2f9bd83"
181
+ },
182
+ {
183
+ "date":"9",
184
+ "month":"January",
185
+ "year":"1896 ",
186
+ "event":" Warwick Braithwaite, New Zealand-English conductor and director (d. 1971)",
187
+ "_id":"61d8ee038d2a7580b2f9bd84"
188
+ },
189
+ {
190
+ "date":"9",
191
+ "month":"January",
192
+ "year":"1879 ",
193
+ "event":" John B. Watson, American psychologist and academic (d. 1958)",
194
+ "_id":"61d8ee038d2a7580b2f9bd85"
195
+ }
196
+ ]
197
+ },
198
+ "headers":{
199
+ "access-control-allow-credentials":"true",
200
+ "access-control-allow-origin":"*",
201
+ "connection":"keep-alive",
202
+ "content-length":"743",
203
+ "content-type":"application/json; charset=utf-8",
204
+ "date":"Sat, 08 Jan 2022 01:51:00 GMT",
205
+ "etag":"W/\"2e7-VkEUlk21aIs1TSHsmcryrHtFJqo\"",
206
+ "server":"RapidAPI-1.2.8",
207
+ "via":"1.1 vegur",
208
+ "x-powered-by":"Express",
209
+ "x-rapidapi-region":"AWS - ap-southeast-1",
210
+ "x-rapidapi-version":"1.2.8"
211
+ },
212
+ "schema":{}
213
+ },
214
+ {
215
+ "name":"Get Yesterday",
216
+ "url":"https://events-happened-in-world.p.rapidapi.com/yesterday",
217
+ "description":"Find what happened yesterday in the world",
218
+ "method":"GET",
219
+ "required_parameters":[],
220
+ "optional_parameters":[
221
+ {
222
+ "name":"limit",
223
+ "type":"NUMBER",
224
+ "description":"",
225
+ "default":"5"
226
+ }
227
+ ],
228
+ "code":"import requests\n\nurl = \"https://events-happened-in-world.p.rapidapi.com/yesterday\"\nquerystring = {\"limit\": limit}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"events-happened-in-world.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n",
229
+ "statuscode":200,
230
+ "body":{
231
+ "data":[
232
+ {
233
+ "_id":"61d7a62e4f2f987eebe94151",
234
+ "date":"7",
235
+ "month":"January",
236
+ "year":"2002 ",
237
+ "event":" Avery Schreiber, American comedian and actor (b. 1935)"
238
+ },
239
+ {
240
+ "_id":"61d7a62e4f2f987eebe940a6",
241
+ "date":"7",
242
+ "month":"January",
243
+ "year":"1713 ",
244
+ "event":" Giovanni Battista Locatelli, Italian opera director and manager (d. 1785)"
245
+ },
246
+ {
247
+ "_id":"61d7a62e4f2f987eebe940bf",
248
+ "date":"7",
249
+ "month":"January",
250
+ "year":"1895 ",
251
+ "event":" Hudson Fysh, Australian pilot and businessman, co-founded Qantas Airways Limited (d. 1974)"
252
+ },
253
+ {
254
+ "_id":"61d7a62e4f2f987eebe940bd",
255
+ "date":"7",
256
+ "month":"January",
257
+ "year":"1889 ",
258
+ "event":" Vera de Bosset, Russian-American ballerina (d. 1982)"
259
+ },
260
+ {
261
+ "_id":"61d7a62e4f2f987eebe940e3",
262
+ "date":"7",
263
+ "month":"January",
264
+ "year":"1946 ",
265
+ "event":" Michele Elliott, author, psychologist and founder of child protection charity Kidscape"
266
+ }
267
+ ]
268
+ },
269
+ "headers":{
270
+ "access-control-allow-credentials":"true",
271
+ "access-control-allow-origin":"*",
272
+ "connection":"keep-alive",
273
+ "content-length":"820",
274
+ "content-type":"application/json; charset=utf-8",
275
+ "date":"Sat, 08 Jan 2022 01:49:49 GMT",
276
+ "etag":"W/\"334-CXOBV4/hnGv7OKDzoUms4q64/i4\"",
277
+ "server":"RapidAPI-1.2.8",
278
+ "via":"1.1 vegur",
279
+ "x-powered-by":"Express",
280
+ "x-rapidapi-region":"AWS - ap-southeast-1",
281
+ "x-rapidapi-version":"1.2.8"
282
+ },
283
+ "schema":{}
284
+ },
285
+ {
286
+ "name":"Get Today",
287
+ "url":"https://events-happened-in-world.p.rapidapi.com/today",
288
+ "description":"Find what happened today in the world",
289
+ "method":"GET",
290
+ "required_parameters":[],
291
+ "optional_parameters":[
292
+ {
293
+ "name":"limit",
294
+ "type":"NUMBER",
295
+ "description":"",
296
+ "default":"5"
297
+ }
298
+ ],
299
+ "code":"import requests\n\nurl = \"https://events-happened-in-world.p.rapidapi.com/today\"\nquerystring = {\"limit\": limit}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"events-happened-in-world.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n",
300
+ "statuscode":200,
301
+ "body":{
302
+ "data":[
303
+ {
304
+ "_id":"61d7a6354f2f987eebe94471",
305
+ "date":"8",
306
+ "month":"January",
307
+ "year":"1920 ",
308
+ "event":" The steel strike of 1919 ends in failure for the Amalgamated Association of Iron, Steel and Tin Workers labor union."
309
+ },
310
+ {
311
+ "_id":"61d7a6354f2f987eebe944c9",
312
+ "date":"8",
313
+ "month":"January",
314
+ "year":"1902 ",
315
+ "event":" Carl Rogers, American psychologist and academic (d. 1987)"
316
+ },
317
+ {
318
+ "_id":"61d7a6354f2f987eebe9455e",
319
+ "date":"8",
320
+ "month":"January",
321
+ "year":"1983 ",
322
+ "event":" Gerhard Barkhorn, German general and pilot (b. 1919)"
323
+ },
324
+ {
325
+ "_id":"61d7a6354f2f987eebe9454f",
326
+ "date":"8",
327
+ "month":"January",
328
+ "year":"1943 ",
329
+ "event":" Andres Larka, Estonian general and politician, 1st Estonian Minister of War (b. 1879)"
330
+ },
331
+ {
332
+ "_id":"61d7a6354f2f987eebe94473",
333
+ "date":"8",
334
+ "month":"January",
335
+ "year":"1926 ",
336
+ "event":" Abdul-Aziz ibn Saud is crowned King of Hejaz."
337
+ }
338
+ ]
339
+ },
340
+ "headers":{
341
+ "access-control-allow-credentials":"true",
342
+ "access-control-allow-origin":"*",
343
+ "connection":"keep-alive",
344
+ "content-length":"822",
345
+ "content-type":"application/json; charset=utf-8",
346
+ "date":"Sat, 08 Jan 2022 01:48:31 GMT",
347
+ "etag":"W/\"336-hqqHaCaCvu0igsDwSojcGydxepM\"",
348
+ "server":"RapidAPI-1.2.8",
349
+ "via":"1.1 vegur",
350
+ "x-powered-by":"Express",
351
+ "x-rapidapi-region":"AWS - ap-southeast-1",
352
+ "x-rapidapi-version":"1.2.8"
353
+ },
354
+ "schema":{}
355
+ }
356
+ ]
357
+ }
toolbench/toolenv/tools/Events/events_happened_in_world/api.py ADDED
@@ -0,0 +1,121 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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_search(month: int, date: int, limit: int=5, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
10
+ """
11
+ "Search what happened in the world by date and month"
12
+
13
+ """
14
+ url = f"https://events-happened-in-world.p.rapidapi.com/search"
15
+ querystring = {'month': month, 'date': date, }
16
+ if limit:
17
+ querystring['limit'] = limit
18
+
19
+ headers = {
20
+ "X-RapidAPI-Key": toolbench_rapidapi_key,
21
+ "X-RapidAPI-Host": "events-happened-in-world.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_id_event(is_id: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
33
+ """
34
+ "Find Id Event what happened in the world"
35
+
36
+ """
37
+ url = f"https://events-happened-in-world.p.rapidapi.com/id/{is_id}"
38
+ querystring = {}
39
+
40
+ headers = {
41
+ "X-RapidAPI-Key": toolbench_rapidapi_key,
42
+ "X-RapidAPI-Host": "events-happened-in-world.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_tomorrow(limit: int=5, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
54
+ """
55
+ "Find what happened tomorrow in the world"
56
+
57
+ """
58
+ url = f"https://events-happened-in-world.p.rapidapi.com/tomorrow"
59
+ querystring = {}
60
+ if limit:
61
+ querystring['limit'] = limit
62
+
63
+ headers = {
64
+ "X-RapidAPI-Key": toolbench_rapidapi_key,
65
+ "X-RapidAPI-Host": "events-happened-in-world.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 get_yesterday(limit: int=5, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
77
+ """
78
+ "Find what happened yesterday in the world"
79
+
80
+ """
81
+ url = f"https://events-happened-in-world.p.rapidapi.com/yesterday"
82
+ querystring = {}
83
+ if limit:
84
+ querystring['limit'] = limit
85
+
86
+ headers = {
87
+ "X-RapidAPI-Key": toolbench_rapidapi_key,
88
+ "X-RapidAPI-Host": "events-happened-in-world.p.rapidapi.com"
89
+ }
90
+
91
+
92
+ response = requests.get(url, headers=headers, params=querystring)
93
+ try:
94
+ observation = response.json()
95
+ except:
96
+ observation = response.text
97
+ return observation
98
+
99
+ def get_today(limit: int=5, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
100
+ """
101
+ "Find what happened today in the world"
102
+
103
+ """
104
+ url = f"https://events-happened-in-world.p.rapidapi.com/today"
105
+ querystring = {}
106
+ if limit:
107
+ querystring['limit'] = limit
108
+
109
+ headers = {
110
+ "X-RapidAPI-Key": toolbench_rapidapi_key,
111
+ "X-RapidAPI-Host": "events-happened-in-world.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
+
toolbench/toolenv/tools/Events/ewaiverpro.json ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "tool_name":"eWaiverPro",
3
+ "tool_description":"eWaiverPro",
4
+ "title":"eWaiverPro",
5
+ "pricing":"FREE",
6
+ "score":null,
7
+ "home_url":"https://rapidapi.com/leevan1983/api/ewaiverpro/",
8
+ "host":"ewaiverpro.p.rapidapi.com",
9
+ "api_list":[
10
+ {
11
+ "name":"Lorem",
12
+ "url":"https://ewaiverpro.p.rapidapi.com/",
13
+ "description":"dfsdfsdf",
14
+ "method":"GET",
15
+ "required_parameters":[],
16
+ "optional_parameters":[],
17
+ "code":"import requests\n\nurl = \"https://ewaiverpro.p.rapidapi.com/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"ewaiverpro.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/Events/ewaiverpro/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 lorem(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
10
+ """
11
+ "dfsdfsdf"
12
+
13
+ """
14
+ url = f"https://ewaiverpro.p.rapidapi.com/"
15
+ querystring = {}
16
+
17
+ headers = {
18
+ "X-RapidAPI-Key": toolbench_rapidapi_key,
19
+ "X-RapidAPI-Host": "ewaiverpro.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/Events/feriados_brasileiros.json ADDED
@@ -0,0 +1,75 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "tool_name":"feriados-brasileiros",
3
+ "tool_description":"API para obter feriados nacionais para uma cidade/estado específica durante um determinado ano.",
4
+ "title":"feriados-brasileiros",
5
+ "pricing":"FREEMIUM",
6
+ "score":{
7
+ "avgServiceLevel":100,
8
+ "avgLatency":1139,
9
+ "avgSuccessRate":100,
10
+ "popularityScore":9.4,
11
+ "__typename":"Score"
12
+ },
13
+ "home_url":"https://rapidapi.com/davidsimonmarques/api/feriados-brasileiros1/",
14
+ "host":"feriados-brasileiros1.p.rapidapi.com",
15
+ "api_list":[
16
+ {
17
+ "name":"Feriados dos Estados",
18
+ "url":"https://feriados-brasileiros1.p.rapidapi.com/read_uf",
19
+ "description":"Retorna os feriados de certo estado. Os parâmetros necessários são: 1. Estado - Sigla da Unidade Federativa em letra maíuscula. 2. Ano",
20
+ "method":"GET",
21
+ "required_parameters":[
22
+ {
23
+ "name":"estado",
24
+ "type":"STRING",
25
+ "description":"",
26
+ "default":"MG"
27
+ },
28
+ {
29
+ "name":"ano",
30
+ "type":"STRING",
31
+ "description":"",
32
+ "default":"2023"
33
+ }
34
+ ],
35
+ "optional_parameters":[],
36
+ "code":"import requests\n\nurl = \"https://feriados-brasileiros1.p.rapidapi.com/read_uf\"\nquerystring = {\"estado\": estado, \"ano\": ano}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"feriados-brasileiros1.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n",
37
+ "statuscode":111,
38
+ "body":"",
39
+ "headers":"",
40
+ "schema":""
41
+ },
42
+ {
43
+ "name":"Feriados das Cidades",
44
+ "url":"https://feriados-brasileiros1.p.rapidapi.com/read",
45
+ "description":"Retorna os feriados de certa cidade brasileira. Os parâmetros necessários são: 1. Cidade - Nome da cidade sem acentos ou símbolos especiais, com exceção do hífen (\"-\") que deve ser mantido. 2. Estado - Unidade Federativa correspondente à cidade. Usar a sigla e em letra maíuscula. 3. Ano",
46
+ "method":"GET",
47
+ "required_parameters":[
48
+ {
49
+ "name":"cidade",
50
+ "type":"STRING",
51
+ "description":"",
52
+ "default":"belo_horizonte"
53
+ },
54
+ {
55
+ "name":"ano",
56
+ "type":"STRING",
57
+ "description":"",
58
+ "default":"2023"
59
+ },
60
+ {
61
+ "name":"estado",
62
+ "type":"STRING",
63
+ "description":"",
64
+ "default":"MG"
65
+ }
66
+ ],
67
+ "optional_parameters":[],
68
+ "code":"import requests\n\nurl = \"https://feriados-brasileiros1.p.rapidapi.com/read\"\nquerystring = {\"cidade\": cidade, \"ano\": ano, \"estado\": estado}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"feriados-brasileiros1.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n",
69
+ "statuscode":111,
70
+ "body":"",
71
+ "headers":"",
72
+ "schema":""
73
+ }
74
+ ]
75
+ }
toolbench/toolenv/tools/Events/feriados_brasileiros/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 feriados_dos_estados(estado: str, ano: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
10
+ """
11
+ "Retorna os feriados de certo estado. Os parâmetros necessários são: 1. Estado - Sigla da Unidade Federativa em letra maíuscula. 2. Ano"
12
+
13
+ """
14
+ url = f"https://feriados-brasileiros1.p.rapidapi.com/read_uf"
15
+ querystring = {'estado': estado, 'ano': ano, }
16
+
17
+ headers = {
18
+ "X-RapidAPI-Key": toolbench_rapidapi_key,
19
+ "X-RapidAPI-Host": "feriados-brasileiros1.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 feriados_das_cidades(cidade: str, ano: str, estado: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
31
+ """
32
+ "Retorna os feriados de certa cidade brasileira. Os parâmetros necessários são: 1. Cidade - Nome da cidade sem acentos ou símbolos especiais, com exceção do hífen ("-") que deve ser mantido. 2. Estado - Unidade Federativa correspondente à cidade. Usar a sigla e em letra maíuscula. 3. Ano"
33
+
34
+ """
35
+ url = f"https://feriados-brasileiros1.p.rapidapi.com/read"
36
+ querystring = {'cidade': cidade, 'ano': ano, 'estado': estado, }
37
+
38
+ headers = {
39
+ "X-RapidAPI-Key": toolbench_rapidapi_key,
40
+ "X-RapidAPI-Host": "feriados-brasileiros1.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/Events/fight_events.json ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "product_id": "api_af527e26-a9e7-410f-b667-0091a7c2274e",
3
+ "tool_description": "Find Fight Events",
4
+ "home_url": "https://rapidapi.com/rahults2016/api/fight-events/",
5
+ "name": "Fight Events",
6
+ "title": "Fight Events",
7
+ "pricing": "FREE",
8
+ "tool_name": "Fight Events",
9
+ "score": null,
10
+ "host": "fight-events.p.rapidapi.com",
11
+ "api_list": [
12
+ {
13
+ "name": "Event Filter",
14
+ "url": "https://fight-events.p.rapidapi.com/events",
15
+ "description": "List of all events",
16
+ "method": "POST",
17
+ "required_parameters": [],
18
+ "optional_parameters": [],
19
+ "code": "import requests\n\nurl = \"https://fight-events.p.rapidapi.com/events\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"fight-events.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
20
+ "convert_code": "import requests\n\nurl = \"https://fight-events.p.rapidapi.com/events\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"fight-events.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
21
+ "test_endpoint": ""
22
+ }
23
+ ]
24
+ }
toolbench/toolenv/tools/Events/fisrt.json ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "tool_name":"fisrt",
3
+ "tool_description":"my first api :)",
4
+ "title":"fisrt",
5
+ "pricing":"FREE",
6
+ "score":{
7
+ "avgServiceLevel":100,
8
+ "avgLatency":919,
9
+ "avgSuccessRate":0,
10
+ "popularityScore":0,
11
+ "__typename":"Score"
12
+ },
13
+ "home_url":"https://rapidapi.com/korkron/api/fisrt1/",
14
+ "host":"fisrt1.p.rapidapi.com",
15
+ "api_list":[
16
+ {
17
+ "name":"Base",
18
+ "url":"https://fisrt1.p.rapidapi.com/",
19
+ "description":"Base desc",
20
+ "method":"GET",
21
+ "required_parameters":[],
22
+ "optional_parameters":[],
23
+ "code":"import requests\n\nurl = \"https://fisrt1.p.rapidapi.com/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"fisrt1.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
+ }