Upload folder using huggingface_hub (part 18)
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- toolbench/toolenv/tools/Monitoring/onboarding_project.json +105 -0
- toolbench/toolenv/tools/Monitoring/onboarding_project/api.py +155 -0
- toolbench/toolenv/tools/Monitoring/opensquat.json +37 -0
- toolbench/toolenv/tools/Monitoring/opensquat/api.py +29 -0
- toolbench/toolenv/tools/Monitoring/otp.json +37 -0
- toolbench/toolenv/tools/Monitoring/otp/api.py +29 -0
- toolbench/toolenv/tools/Monitoring/pages_hosted_on_domain.json +86 -0
- toolbench/toolenv/tools/Monitoring/pages_hosted_on_domain/api.py +41 -0
- toolbench/toolenv/tools/Monitoring/patient.json +37 -0
- toolbench/toolenv/tools/Monitoring/patient/api.py +33 -0
- toolbench/toolenv/tools/Monitoring/plerdy.json +24 -0
- toolbench/toolenv/tools/Monitoring/plerdy/api.py +29 -0
- toolbench/toolenv/tools/Monitoring/porn_filter.json +46 -0
- toolbench/toolenv/tools/Monitoring/porn_filter/api.py +29 -0
- toolbench/toolenv/tools/Monitoring/price_tracking_tools.json +95 -0
- toolbench/toolenv/tools/Monitoring/price_tracking_tools/api.py +70 -0
- toolbench/toolenv/tools/Monitoring/publiccloudwatchdashboard.json +110 -0
- toolbench/toolenv/tools/Monitoring/publiccloudwatchdashboard/api.py +59 -0
- toolbench/toolenv/tools/Monitoring/scalair_nc.json +108 -0
- toolbench/toolenv/tools/Monitoring/scalair_nc/api.py +155 -0
- toolbench/toolenv/tools/Monitoring/scan_web_heades_api.json +37 -0
- toolbench/toolenv/tools/Monitoring/scan_web_heades_api/api.py +29 -0
- toolbench/toolenv/tools/Monitoring/screenshot_maker.json +122 -0
- toolbench/toolenv/tools/Monitoring/screenshot_maker/api.py +71 -0
- toolbench/toolenv/tools/Monitoring/searchingwebrequest.json +38 -0
- toolbench/toolenv/tools/Monitoring/searchingwebrequest/api.py +31 -0
- toolbench/toolenv/tools/Monitoring/secureforest/api.py +92 -0
- toolbench/toolenv/tools/Monitoring/similar_web.json +50 -0
- toolbench/toolenv/tools/Monitoring/similar_web/api.py +51 -0
- toolbench/toolenv/tools/Monitoring/similarweb_working_api/api.py +206 -0
- toolbench/toolenv/tools/Monitoring/simple_email_notifications.json +44 -0
- toolbench/toolenv/tools/Monitoring/simple_email_notifications/api.py +38 -0
- toolbench/toolenv/tools/Monitoring/skin_analyze.json +65 -0
- toolbench/toolenv/tools/Monitoring/ssl_certificate.json +364 -0
- toolbench/toolenv/tools/Monitoring/ssl_certificate/api.py +365 -0
- toolbench/toolenv/tools/Monitoring/ssl_checker.json +160 -0
- toolbench/toolenv/tools/Monitoring/ssl_checker/api.py +29 -0
- toolbench/toolenv/tools/Monitoring/ssl_snitch.json +76 -0
- toolbench/toolenv/tools/Monitoring/ssl_snitch/api.py +31 -0
- toolbench/toolenv/tools/Monitoring/stack_overflow_monitor.json +43 -0
- toolbench/toolenv/tools/Monitoring/stack_overflow_monitor/api.py +50 -0
- toolbench/toolenv/tools/Monitoring/subjson/api.py +52 -0
- toolbench/toolenv/tools/Monitoring/temps_attente_en_agence/api.py +92 -0
- toolbench/toolenv/tools/Monitoring/test/api.py +29 -0
- toolbench/toolenv/tools/Monitoring/test_v2/api.py +50 -0
- toolbench/toolenv/tools/Monitoring/tor_exit_nodes_geolocated.json +55 -0
- toolbench/toolenv/tools/Monitoring/tor_exit_nodes_geolocated/api.py +39 -0
- toolbench/toolenv/tools/Monitoring/universal_easy_webhooks.json +24 -0
- toolbench/toolenv/tools/Monitoring/weather_request.json +50 -0
- toolbench/toolenv/tools/Monitoring/weather_request/api.py +50 -0
toolbench/toolenv/tools/Monitoring/onboarding_project.json
ADDED
|
@@ -0,0 +1,105 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"product_id": "api_d035bf77-6b89-4680-a14b-e70a6fcb53f3",
|
| 3 |
+
"tool_description": "This Project is created by the onboarding process",
|
| 4 |
+
"home_url": "https://rapidapi.com/Zariwaya1/api/onboarding-project1470/",
|
| 5 |
+
"name": "\ud83d\udc4b Onboarding Project",
|
| 6 |
+
"title": "\ud83d\udc4b Onboarding Project",
|
| 7 |
+
"pricing": "PAID",
|
| 8 |
+
"tool_name": "\ud83d\udc4b Onboarding Project",
|
| 9 |
+
"score": null,
|
| 10 |
+
"host": "onboarding-project1470.p.rapidapi.com",
|
| 11 |
+
"api_list": [
|
| 12 |
+
{
|
| 13 |
+
"name": "Create Product",
|
| 14 |
+
"url": "https://onboarding-project1470.p.rapidapi.com/catalog/product",
|
| 15 |
+
"description": " ",
|
| 16 |
+
"method": "POST",
|
| 17 |
+
"required_parameters": [],
|
| 18 |
+
"optional_parameters": [],
|
| 19 |
+
"code": "import requests\n\nurl = \"https://onboarding-project1470.p.rapidapi.com/catalog/product\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"onboarding-project1470.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
|
| 20 |
+
"convert_code": "import requests\n\nurl = \"https://onboarding-project1470.p.rapidapi.com/catalog/product\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"onboarding-project1470.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
|
| 21 |
+
"test_endpoint": "",
|
| 22 |
+
"statuscode": 1,
|
| 23 |
+
"schema": ""
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"name": "Add to Order",
|
| 27 |
+
"url": "https://onboarding-project1470.p.rapidapi.com/order/{id}/product",
|
| 28 |
+
"description": " ",
|
| 29 |
+
"method": "POST",
|
| 30 |
+
"required_parameters": [
|
| 31 |
+
{
|
| 32 |
+
"name": "id",
|
| 33 |
+
"type": "STRING",
|
| 34 |
+
"description": "",
|
| 35 |
+
"default": ""
|
| 36 |
+
}
|
| 37 |
+
],
|
| 38 |
+
"optional_parameters": [],
|
| 39 |
+
"code": "import requests\n\nurl = \"https://onboarding-project1470.p.rapidapi.com/order/{id}/product\"\nquerystring = {\"id\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"onboarding-project1470.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n",
|
| 40 |
+
"convert_code": "import requests\n\nurl = \"https://onboarding-project1470.p.rapidapi.com/order/{id}/product\"\nquerystring = {\"id\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"onboarding-project1470.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n",
|
| 41 |
+
"test_endpoint": "",
|
| 42 |
+
"statuscode": 1,
|
| 43 |
+
"schema": ""
|
| 44 |
+
},
|
| 45 |
+
{
|
| 46 |
+
"name": "Login",
|
| 47 |
+
"url": "https://onboarding-project1470.p.rapidapi.com/auth/login",
|
| 48 |
+
"description": " ",
|
| 49 |
+
"method": "POST",
|
| 50 |
+
"required_parameters": [],
|
| 51 |
+
"optional_parameters": [],
|
| 52 |
+
"code": "import requests\n\nurl = \"https://onboarding-project1470.p.rapidapi.com/auth/login\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"onboarding-project1470.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
|
| 53 |
+
"convert_code": "import requests\n\nurl = \"https://onboarding-project1470.p.rapidapi.com/auth/login\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"onboarding-project1470.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
|
| 54 |
+
"test_endpoint": "",
|
| 55 |
+
"statuscode": 1,
|
| 56 |
+
"schema": ""
|
| 57 |
+
},
|
| 58 |
+
{
|
| 59 |
+
"name": "Create Order",
|
| 60 |
+
"url": "https://onboarding-project1470.p.rapidapi.com/order/new",
|
| 61 |
+
"description": " ",
|
| 62 |
+
"method": "POST",
|
| 63 |
+
"required_parameters": [],
|
| 64 |
+
"optional_parameters": [],
|
| 65 |
+
"code": "import requests\n\nurl = \"https://onboarding-project1470.p.rapidapi.com/order/new\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"onboarding-project1470.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
|
| 66 |
+
"convert_code": "import requests\n\nurl = \"https://onboarding-project1470.p.rapidapi.com/order/new\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"onboarding-project1470.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
|
| 67 |
+
"test_endpoint": "",
|
| 68 |
+
"statuscode": 1,
|
| 69 |
+
"schema": ""
|
| 70 |
+
},
|
| 71 |
+
{
|
| 72 |
+
"name": "Place Order",
|
| 73 |
+
"url": "https://onboarding-project1470.p.rapidapi.com/order/{id}/place",
|
| 74 |
+
"description": " ",
|
| 75 |
+
"method": "POST",
|
| 76 |
+
"required_parameters": [
|
| 77 |
+
{
|
| 78 |
+
"name": "id",
|
| 79 |
+
"type": "STRING",
|
| 80 |
+
"description": "",
|
| 81 |
+
"default": ""
|
| 82 |
+
}
|
| 83 |
+
],
|
| 84 |
+
"optional_parameters": [],
|
| 85 |
+
"code": "import requests\n\nurl = \"https://onboarding-project1470.p.rapidapi.com/order/{id}/place\"\nquerystring = {\"id\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"onboarding-project1470.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n",
|
| 86 |
+
"convert_code": "import requests\n\nurl = \"https://onboarding-project1470.p.rapidapi.com/order/{id}/place\"\nquerystring = {\"id\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"onboarding-project1470.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n",
|
| 87 |
+
"test_endpoint": "",
|
| 88 |
+
"statuscode": 1,
|
| 89 |
+
"schema": ""
|
| 90 |
+
},
|
| 91 |
+
{
|
| 92 |
+
"name": "Create User (Sign Up)",
|
| 93 |
+
"url": "https://onboarding-project1470.p.rapidapi.com/auth/user",
|
| 94 |
+
"description": " ",
|
| 95 |
+
"method": "POST",
|
| 96 |
+
"required_parameters": [],
|
| 97 |
+
"optional_parameters": [],
|
| 98 |
+
"code": "import requests\n\nurl = \"https://onboarding-project1470.p.rapidapi.com/auth/user\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"onboarding-project1470.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
|
| 99 |
+
"convert_code": "import requests\n\nurl = \"https://onboarding-project1470.p.rapidapi.com/auth/user\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"onboarding-project1470.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
|
| 100 |
+
"test_endpoint": "",
|
| 101 |
+
"statuscode": 1,
|
| 102 |
+
"schema": ""
|
| 103 |
+
}
|
| 104 |
+
]
|
| 105 |
+
}
|
toolbench/toolenv/tools/Monitoring/onboarding_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_products(skip: int, limit: int, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 10 |
+
"""
|
| 11 |
+
" "
|
| 12 |
+
|
| 13 |
+
"""
|
| 14 |
+
url = f"https://onboarding-project1470.p.rapidapi.com/catalog/products"
|
| 15 |
+
querystring = {'skip': skip, 'limit': limit, }
|
| 16 |
+
|
| 17 |
+
headers = {
|
| 18 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 19 |
+
"X-RapidAPI-Host": "onboarding-project1470.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://onboarding-project1470.p.rapidapi.com/catalog/product/{is_id}"
|
| 36 |
+
querystring = {}
|
| 37 |
+
|
| 38 |
+
headers = {
|
| 39 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 40 |
+
"X-RapidAPI-Host": "onboarding-project1470.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_categories(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 52 |
+
"""
|
| 53 |
+
" "
|
| 54 |
+
|
| 55 |
+
"""
|
| 56 |
+
url = f"https://onboarding-project1470.p.rapidapi.com/catalog/categories"
|
| 57 |
+
querystring = {}
|
| 58 |
+
|
| 59 |
+
headers = {
|
| 60 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 61 |
+
"X-RapidAPI-Host": "onboarding-project1470.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_products_in_category(category: str, limit: int, skip: int, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 73 |
+
"""
|
| 74 |
+
" "
|
| 75 |
+
|
| 76 |
+
"""
|
| 77 |
+
url = f"https://onboarding-project1470.p.rapidapi.com/catalog/category/{category}/products"
|
| 78 |
+
querystring = {'limit': limit, 'skip': skip, }
|
| 79 |
+
|
| 80 |
+
headers = {
|
| 81 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 82 |
+
"X-RapidAPI-Host": "onboarding-project1470.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_order(is_id: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 94 |
+
"""
|
| 95 |
+
" "
|
| 96 |
+
|
| 97 |
+
"""
|
| 98 |
+
url = f"https://onboarding-project1470.p.rapidapi.com/order/{is_id}"
|
| 99 |
+
querystring = {}
|
| 100 |
+
|
| 101 |
+
headers = {
|
| 102 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 103 |
+
"X-RapidAPI-Host": "onboarding-project1470.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_user_orders(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 115 |
+
"""
|
| 116 |
+
" "
|
| 117 |
+
|
| 118 |
+
"""
|
| 119 |
+
url = f"https://onboarding-project1470.p.rapidapi.com/order/my"
|
| 120 |
+
querystring = {}
|
| 121 |
+
|
| 122 |
+
headers = {
|
| 123 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 124 |
+
"X-RapidAPI-Host": "onboarding-project1470.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://onboarding-project1470.p.rapidapi.com/auth/me"
|
| 141 |
+
querystring = {}
|
| 142 |
+
|
| 143 |
+
headers = {
|
| 144 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 145 |
+
"X-RapidAPI-Host": "onboarding-project1470.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/Monitoring/opensquat.json
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"tool_name":"openSquat",
|
| 3 |
+
"tool_description":"The openSquat is an open-source project for phishing domain and domain squatting detection by searching daily newly registered domains impersonating legit domains.",
|
| 4 |
+
"title":"openSquat",
|
| 5 |
+
"pricing":"FREEMIUM",
|
| 6 |
+
"score":{
|
| 7 |
+
"avgServiceLevel":99,
|
| 8 |
+
"avgLatency":11437,
|
| 9 |
+
"avgSuccessRate":98,
|
| 10 |
+
"popularityScore":9.6,
|
| 11 |
+
"__typename":"Score"
|
| 12 |
+
},
|
| 13 |
+
"home_url":"https://rapidapi.com/atenreiro/api/opensquat1/",
|
| 14 |
+
"host":"opensquat1.p.rapidapi.com",
|
| 15 |
+
"api_list":[
|
| 16 |
+
{
|
| 17 |
+
"name":"Get Daily Domains",
|
| 18 |
+
"url":"https://opensquat1.p.rapidapi.com/{keyword}",
|
| 19 |
+
"description":"Get the daily list of domains that have been registered in the past day that have a similar word to {keyword} - the keyword should not contain any domain, e.g: Google",
|
| 20 |
+
"method":"GET",
|
| 21 |
+
"required_parameters":[
|
| 22 |
+
{
|
| 23 |
+
"name":"keyword",
|
| 24 |
+
"type":"string",
|
| 25 |
+
"description":"",
|
| 26 |
+
"default":"Google"
|
| 27 |
+
}
|
| 28 |
+
],
|
| 29 |
+
"optional_parameters":[],
|
| 30 |
+
"code":"import requests\n\nurl = \"https://opensquat1.p.rapidapi.com/{keyword}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"opensquat1.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n",
|
| 31 |
+
"statuscode":111,
|
| 32 |
+
"body":"",
|
| 33 |
+
"headers":"",
|
| 34 |
+
"schema":""
|
| 35 |
+
}
|
| 36 |
+
]
|
| 37 |
+
}
|
toolbench/toolenv/tools/Monitoring/opensquat/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_daily_domains(keyword: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 10 |
+
"""
|
| 11 |
+
"Get the daily list of domains that have been registered in the past day that have a similar word to {keyword} - the keyword should not contain any domain, e.g: Google"
|
| 12 |
+
|
| 13 |
+
"""
|
| 14 |
+
url = f"https://opensquat1.p.rapidapi.com/{keyword}"
|
| 15 |
+
querystring = {}
|
| 16 |
+
|
| 17 |
+
headers = {
|
| 18 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 19 |
+
"X-RapidAPI-Host": "opensquat1.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/Monitoring/otp.json
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"tool_name":"OTP",
|
| 3 |
+
"tool_description":"send Account Registration OTP",
|
| 4 |
+
"title":"OTP",
|
| 5 |
+
"pricing":"FREE",
|
| 6 |
+
"score":{
|
| 7 |
+
"avgServiceLevel":100,
|
| 8 |
+
"avgLatency":383,
|
| 9 |
+
"avgSuccessRate":0,
|
| 10 |
+
"popularityScore":0.1,
|
| 11 |
+
"__typename":"Score"
|
| 12 |
+
},
|
| 13 |
+
"home_url":"https://rapidapi.com/lakshmi-digipro-systemz-lakshmi-digipro-systemz-default/api/otp19/",
|
| 14 |
+
"host":"otp19.p.rapidapi.com",
|
| 15 |
+
"api_list":[
|
| 16 |
+
{
|
| 17 |
+
"name":"sms",
|
| 18 |
+
"url":"https://otp19.p.rapidapi.com/sms/{mobileno}",
|
| 19 |
+
"description":"otp sms to users",
|
| 20 |
+
"method":"GET",
|
| 21 |
+
"required_parameters":[
|
| 22 |
+
{
|
| 23 |
+
"name":"mobileno",
|
| 24 |
+
"type":"string",
|
| 25 |
+
"description":"",
|
| 26 |
+
"default":"9629029442"
|
| 27 |
+
}
|
| 28 |
+
],
|
| 29 |
+
"optional_parameters":[],
|
| 30 |
+
"code":"import requests\n\nurl = \"https://otp19.p.rapidapi.com/sms/{mobileno}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"otp19.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n",
|
| 31 |
+
"statuscode":111,
|
| 32 |
+
"body":"",
|
| 33 |
+
"headers":"",
|
| 34 |
+
"schema":""
|
| 35 |
+
}
|
| 36 |
+
]
|
| 37 |
+
}
|
toolbench/toolenv/tools/Monitoring/otp/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 sms(mobileno: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 10 |
+
"""
|
| 11 |
+
"otp sms to users"
|
| 12 |
+
|
| 13 |
+
"""
|
| 14 |
+
url = f"https://otp19.p.rapidapi.com/sms/{mobileno}"
|
| 15 |
+
querystring = {}
|
| 16 |
+
|
| 17 |
+
headers = {
|
| 18 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 19 |
+
"X-RapidAPI-Host": "otp19.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/Monitoring/pages_hosted_on_domain.json
ADDED
|
@@ -0,0 +1,86 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"tool_name":"Pages hosted on domain",
|
| 3 |
+
"tool_description":"Find web pages hosted on a domain, including historic pages. ",
|
| 4 |
+
"title":"Pages hosted on domain",
|
| 5 |
+
"pricing":"FREEMIUM",
|
| 6 |
+
"score":{
|
| 7 |
+
"avgServiceLevel":100,
|
| 8 |
+
"avgLatency":799,
|
| 9 |
+
"avgSuccessRate":100,
|
| 10 |
+
"popularityScore":8.4,
|
| 11 |
+
"__typename":"Score"
|
| 12 |
+
},
|
| 13 |
+
"home_url":"https://rapidapi.com/infiniteloop/api/pages-hosted-on-domain/",
|
| 14 |
+
"host":"pages-hosted-on-domain.p.rapidapi.com",
|
| 15 |
+
"api_list":[
|
| 16 |
+
{
|
| 17 |
+
"name":"searchDomain",
|
| 18 |
+
"url":"https://pages-hosted-on-domain.p.rapidapi.com/web/timemap/json",
|
| 19 |
+
"description":" ",
|
| 20 |
+
"method":"GET",
|
| 21 |
+
"required_parameters":[],
|
| 22 |
+
"optional_parameters":[
|
| 23 |
+
{
|
| 24 |
+
"name":"matchType",
|
| 25 |
+
"type":"STRING",
|
| 26 |
+
"description":"",
|
| 27 |
+
"default":"prefix"
|
| 28 |
+
},
|
| 29 |
+
{
|
| 30 |
+
"name":"collapse",
|
| 31 |
+
"type":"STRING",
|
| 32 |
+
"description":"",
|
| 33 |
+
"default":"urlkey"
|
| 34 |
+
},
|
| 35 |
+
{
|
| 36 |
+
"name":"url",
|
| 37 |
+
"type":"STRING",
|
| 38 |
+
"description":"",
|
| 39 |
+
"default":"httpsimage.com"
|
| 40 |
+
},
|
| 41 |
+
{
|
| 42 |
+
"name":"fl",
|
| 43 |
+
"type":"STRING",
|
| 44 |
+
"description":"",
|
| 45 |
+
"default":"timestamp:4,original,urlkey"
|
| 46 |
+
},
|
| 47 |
+
{
|
| 48 |
+
"name":"limit",
|
| 49 |
+
"type":"NUMBER",
|
| 50 |
+
"description":"",
|
| 51 |
+
"default":"100000"
|
| 52 |
+
},
|
| 53 |
+
{
|
| 54 |
+
"name":"filter",
|
| 55 |
+
"type":"STRING",
|
| 56 |
+
"description":"",
|
| 57 |
+
"default":"statuscode:200"
|
| 58 |
+
}
|
| 59 |
+
],
|
| 60 |
+
"code":"import requests\n\nurl = \"https://pages-hosted-on-domain.p.rapidapi.com/web/timemap/json\"\nquerystring = {\"matchType\": matchtype, \"collapse\": collapse, \"url\": url, \"fl\": fl, \"limit\": limit, \"filter\": filter}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"pages-hosted-on-domain.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n",
|
| 61 |
+
"statuscode":200,
|
| 62 |
+
"body":{},
|
| 63 |
+
"headers":{
|
| 64 |
+
"Server":"",
|
| 65 |
+
"Date":"",
|
| 66 |
+
"Content-Type":"",
|
| 67 |
+
"Transfer-Encoding":"",
|
| 68 |
+
"Connection":"",
|
| 69 |
+
"server-timing":"",
|
| 70 |
+
"x-app-server":"",
|
| 71 |
+
"x-ts":"",
|
| 72 |
+
"x-tr":"",
|
| 73 |
+
"X-location":"",
|
| 74 |
+
"X-RL":"",
|
| 75 |
+
"X-NA":"",
|
| 76 |
+
"X-Page-Cache":"",
|
| 77 |
+
"X-NID":"",
|
| 78 |
+
"Referrer-Policy":"",
|
| 79 |
+
"Permissions-Policy":""
|
| 80 |
+
},
|
| 81 |
+
"schema":{
|
| 82 |
+
"type":"object"
|
| 83 |
+
}
|
| 84 |
+
}
|
| 85 |
+
]
|
| 86 |
+
}
|
toolbench/toolenv/tools/Monitoring/pages_hosted_on_domain/api.py
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 searchdomain(matchtype: str='prefix', collapse: str='urlkey', url: str='httpsimage.com', fl: str='timestamp:4,original,urlkey', limit: int=100000, filter: str='statuscode:200', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 10 |
+
"""
|
| 11 |
+
" "
|
| 12 |
+
|
| 13 |
+
"""
|
| 14 |
+
url = f"https://pages-hosted-on-domain.p.rapidapi.com/web/timemap/json"
|
| 15 |
+
querystring = {}
|
| 16 |
+
if matchtype:
|
| 17 |
+
querystring['matchType'] = matchtype
|
| 18 |
+
if collapse:
|
| 19 |
+
querystring['collapse'] = collapse
|
| 20 |
+
if url:
|
| 21 |
+
querystring['url'] = url
|
| 22 |
+
if fl:
|
| 23 |
+
querystring['fl'] = fl
|
| 24 |
+
if limit:
|
| 25 |
+
querystring['limit'] = limit
|
| 26 |
+
if filter:
|
| 27 |
+
querystring['filter'] = filter
|
| 28 |
+
|
| 29 |
+
headers = {
|
| 30 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 31 |
+
"X-RapidAPI-Host": "pages-hosted-on-domain.p.rapidapi.com"
|
| 32 |
+
}
|
| 33 |
+
|
| 34 |
+
|
| 35 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 36 |
+
try:
|
| 37 |
+
observation = response.json()
|
| 38 |
+
except:
|
| 39 |
+
observation = response.text
|
| 40 |
+
return observation
|
| 41 |
+
|
toolbench/toolenv/tools/Monitoring/patient.json
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"tool_name":"Patient",
|
| 3 |
+
"tool_description":"Patient Database Management",
|
| 4 |
+
"title":"Patient",
|
| 5 |
+
"pricing":"FREE",
|
| 6 |
+
"score":null,
|
| 7 |
+
"home_url":"https://rapidapi.com/FreyaJin/api/patient/",
|
| 8 |
+
"host":"patient.p.rapidapi.com",
|
| 9 |
+
"api_list":[
|
| 10 |
+
{
|
| 11 |
+
"name":"Example",
|
| 12 |
+
"url":"https://patient.p.rapidapi.com/add",
|
| 13 |
+
"description":"ddfgsdfgdfgsdfg",
|
| 14 |
+
"method":"GET",
|
| 15 |
+
"required_parameters":[],
|
| 16 |
+
"optional_parameters":[
|
| 17 |
+
{
|
| 18 |
+
"name":"Example",
|
| 19 |
+
"type":"STRING",
|
| 20 |
+
"description":"",
|
| 21 |
+
"default":""
|
| 22 |
+
},
|
| 23 |
+
{
|
| 24 |
+
"name":"data",
|
| 25 |
+
"type":"STRING",
|
| 26 |
+
"description":"",
|
| 27 |
+
"default":"1"
|
| 28 |
+
}
|
| 29 |
+
],
|
| 30 |
+
"code":"import requests\n\nurl = \"https://patient.p.rapidapi.com/add\"\nquerystring = {\"data\": data}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"patient.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/Monitoring/patient/api.py
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import requests
|
| 2 |
+
import json
|
| 3 |
+
from datetime import date, datetime, timedelta
|
| 4 |
+
import os
|
| 5 |
+
|
| 6 |
+
from typing import Optional, Dict, Union, List
|
| 7 |
+
|
| 8 |
+
|
| 9 |
+
def example(example: str=None, data: str='1', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 10 |
+
"""
|
| 11 |
+
"ddfgsdfgdfgsdfg"
|
| 12 |
+
|
| 13 |
+
"""
|
| 14 |
+
url = f"https://patient.p.rapidapi.com/add"
|
| 15 |
+
querystring = {}
|
| 16 |
+
if example:
|
| 17 |
+
querystring['Example'] = example
|
| 18 |
+
if data:
|
| 19 |
+
querystring['data'] = data
|
| 20 |
+
|
| 21 |
+
headers = {
|
| 22 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 23 |
+
"X-RapidAPI-Host": "patient.p.rapidapi.com"
|
| 24 |
+
}
|
| 25 |
+
|
| 26 |
+
|
| 27 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 28 |
+
try:
|
| 29 |
+
observation = response.json()
|
| 30 |
+
except:
|
| 31 |
+
observation = response.text
|
| 32 |
+
return observation
|
| 33 |
+
|
toolbench/toolenv/tools/Monitoring/plerdy.json
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"tool_name":"Plerdy",
|
| 3 |
+
"tool_description":"Plerdy ( https://www.plerdy.com/ ) is multifunctional SaaS solution for an improvement of conversion on websites.",
|
| 4 |
+
"title":"Plerdy",
|
| 5 |
+
"pricing":"FREE",
|
| 6 |
+
"score":null,
|
| 7 |
+
"home_url":"https://rapidapi.com/olehmirosh/api/plerdy/",
|
| 8 |
+
"host":"plerdy.p.rapidapi.com",
|
| 9 |
+
"api_list":[
|
| 10 |
+
{
|
| 11 |
+
"name":"Heatmap",
|
| 12 |
+
"url":"https://plerdy.p.rapidapi.comhttps://www.plerdy.com/heatmap/",
|
| 13 |
+
"description":"With Plerdy Heatmaps we see exactly where the clicks were on the website. All clicks on the website are recorded and displayed in real time. Which helps to understand how users behave on the website.",
|
| 14 |
+
"method":"GET",
|
| 15 |
+
"required_parameters":[],
|
| 16 |
+
"optional_parameters":[],
|
| 17 |
+
"code":"import requests\n\nurl = \"https://plerdy.p.rapidapi.comhttps://www.plerdy.com/heatmap/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"plerdy.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/Monitoring/plerdy/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 heatmap(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 10 |
+
"""
|
| 11 |
+
"With Plerdy Heatmaps we see exactly where the clicks were on the website. All clicks on the website are recorded and displayed in real time. Which helps to understand how users behave on the website."
|
| 12 |
+
|
| 13 |
+
"""
|
| 14 |
+
url = f"https://plerdy.p.rapidapi.comhttps://www.plerdy.com/heatmap/"
|
| 15 |
+
querystring = {}
|
| 16 |
+
|
| 17 |
+
headers = {
|
| 18 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 19 |
+
"X-RapidAPI-Host": "plerdy.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/Monitoring/porn_filter.json
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"tool_name":"Porn Filter",
|
| 3 |
+
"tool_description":"Check if a website contains adult content.",
|
| 4 |
+
"title":"Porn Filter",
|
| 5 |
+
"pricing":"PAID",
|
| 6 |
+
"score":null,
|
| 7 |
+
"home_url":"https://rapidapi.com/ExoWatts/api/porn-filter2/",
|
| 8 |
+
"host":"porn-filter2.p.rapidapi.com",
|
| 9 |
+
"api_list":[
|
| 10 |
+
{
|
| 11 |
+
"name":"filter",
|
| 12 |
+
"url":"https://porn-filter2.p.rapidapi.com/",
|
| 13 |
+
"description":"Check if a website is on our porn blacklist.",
|
| 14 |
+
"method":"GET",
|
| 15 |
+
"required_parameters":[
|
| 16 |
+
{
|
| 17 |
+
"name":"domain",
|
| 18 |
+
"type":"STRING",
|
| 19 |
+
"description":"",
|
| 20 |
+
"default":"pornhub.com"
|
| 21 |
+
}
|
| 22 |
+
],
|
| 23 |
+
"optional_parameters":[],
|
| 24 |
+
"code":"import requests\n\nurl = \"https://porn-filter2.p.rapidapi.com/\"\nquerystring = {\"domain\": domain}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"porn-filter2.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n",
|
| 25 |
+
"statuscode":200,
|
| 26 |
+
"body":{
|
| 27 |
+
"porn":true
|
| 28 |
+
},
|
| 29 |
+
"headers":{
|
| 30 |
+
"access-control-allow-credentials":"true",
|
| 31 |
+
"access-control-allow-origin":"*",
|
| 32 |
+
"alt-svc":"h3=\":443\"; ma=86400, h3-29=\":443\"; ma=86400",
|
| 33 |
+
"cf-cache-status":"DYNAMIC",
|
| 34 |
+
"cf-ray":"7641d677a8ce5a10-IAD",
|
| 35 |
+
"content-type":"application/json; charset=UTF-8",
|
| 36 |
+
"date":"Thu, 03 Nov 2022 02:56:37 GMT",
|
| 37 |
+
"nel":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}",
|
| 38 |
+
"report-to":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=5JEac%2F06e16EoA7hCeyvPcHHua6Lnb7crm8pe6R%2BYkdwA1G37yuEisZBhVT1yR%2BAT951LdR9V04CYv3LixctYdOt%2Ff44aYHa6ZrLo%2FKA1435yhOmeyaPpzMTow9CnIrA9U4F\"}],\"group\":\"cf-nel\",\"max_age\":604800}",
|
| 39 |
+
"server":"RapidAPI-1.2.8",
|
| 40 |
+
"x-rapidapi-region":"AWS - us-east-1",
|
| 41 |
+
"x-rapidapi-version":"1.2.8"
|
| 42 |
+
},
|
| 43 |
+
"schema":{}
|
| 44 |
+
}
|
| 45 |
+
]
|
| 46 |
+
}
|
toolbench/toolenv/tools/Monitoring/porn_filter/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 filter(domain: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 10 |
+
"""
|
| 11 |
+
"Check if a website is on our porn blacklist."
|
| 12 |
+
|
| 13 |
+
"""
|
| 14 |
+
url = f"https://porn-filter2.p.rapidapi.com/"
|
| 15 |
+
querystring = {'domain': domain, }
|
| 16 |
+
|
| 17 |
+
headers = {
|
| 18 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 19 |
+
"X-RapidAPI-Host": "porn-filter2.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/Monitoring/price_tracking_tools.json
ADDED
|
@@ -0,0 +1,95 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"tool_name":"Price Tracking Tools",
|
| 3 |
+
"tool_description":"This API currently helps to query for prices of products from Amazon. We will support more other sites/brands soon. Stay tune!",
|
| 4 |
+
"title":"Price Tracking Tools",
|
| 5 |
+
"pricing":"FREEMIUM",
|
| 6 |
+
"score":{
|
| 7 |
+
"avgServiceLevel":100,
|
| 8 |
+
"avgLatency":1458,
|
| 9 |
+
"avgSuccessRate":100,
|
| 10 |
+
"popularityScore":9.1,
|
| 11 |
+
"__typename":"Score"
|
| 12 |
+
},
|
| 13 |
+
"home_url":"https://rapidapi.com/apidojo/api/price-tracking-tools/",
|
| 14 |
+
"host":"price-tracking-tools.p.rapidapi.com",
|
| 15 |
+
"api_list":[
|
| 16 |
+
{
|
| 17 |
+
"name":"camelizer/get-prices",
|
| 18 |
+
"url":"https://price-tracking-tools.p.rapidapi.com/camelizer/get-prices",
|
| 19 |
+
"description":"Get latest prices, history highest/lowest prices of a product from Amazon",
|
| 20 |
+
"method":"GET",
|
| 21 |
+
"required_parameters":[
|
| 22 |
+
{
|
| 23 |
+
"name":"asin",
|
| 24 |
+
"type":"STRING",
|
| 25 |
+
"description":"The asin number of a product from Amazon, and must be in the correct format. Ex : B08QB93S6R",
|
| 26 |
+
"default":""
|
| 27 |
+
}
|
| 28 |
+
],
|
| 29 |
+
"optional_parameters":[
|
| 30 |
+
{
|
| 31 |
+
"name":"locale",
|
| 32 |
+
"type":"STRING",
|
| 33 |
+
"description":"One of the following : au|ca|fr|de|it|es|uk|us",
|
| 34 |
+
"default":"us"
|
| 35 |
+
}
|
| 36 |
+
],
|
| 37 |
+
"code":"import requests\n\nurl = \"https://price-tracking-tools.p.rapidapi.com/camelizer/get-prices\"\nquerystring = {\"locale\": locale, \"asin\": asin}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"price-tracking-tools.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n",
|
| 38 |
+
"statuscode":111,
|
| 39 |
+
"body":"",
|
| 40 |
+
"headers":"",
|
| 41 |
+
"schema":""
|
| 42 |
+
},
|
| 43 |
+
{
|
| 44 |
+
"name":"camelizer/get-price-chart",
|
| 45 |
+
"url":"https://price-tracking-tools.p.rapidapi.com/camelizer/get-price-chart",
|
| 46 |
+
"description":"Get pricing history chart of a product from Amazon",
|
| 47 |
+
"method":"GET",
|
| 48 |
+
"required_parameters":[
|
| 49 |
+
{
|
| 50 |
+
"name":"asin",
|
| 51 |
+
"type":"STRING",
|
| 52 |
+
"description":"The asin number of a product from Amazon, and must be in the correct format. Ex : B08QB93S6R",
|
| 53 |
+
"default":""
|
| 54 |
+
}
|
| 55 |
+
],
|
| 56 |
+
"optional_parameters":[
|
| 57 |
+
{
|
| 58 |
+
"name":"lang",
|
| 59 |
+
"type":"STRING",
|
| 60 |
+
"description":"One of the following : en|fr|de|it|es",
|
| 61 |
+
"default":"en"
|
| 62 |
+
},
|
| 63 |
+
{
|
| 64 |
+
"name":"tp",
|
| 65 |
+
"type":"STRING",
|
| 66 |
+
"description":"Time period. One of the following : 1m|3m|6m|1y|all",
|
| 67 |
+
"default":"3m"
|
| 68 |
+
},
|
| 69 |
+
{
|
| 70 |
+
"name":"w",
|
| 71 |
+
"type":"NUMBER",
|
| 72 |
+
"description":"The width of the chart",
|
| 73 |
+
"default":"720"
|
| 74 |
+
},
|
| 75 |
+
{
|
| 76 |
+
"name":"h",
|
| 77 |
+
"type":"NUMBER",
|
| 78 |
+
"description":"The height of the chart",
|
| 79 |
+
"default":"480"
|
| 80 |
+
},
|
| 81 |
+
{
|
| 82 |
+
"name":"country",
|
| 83 |
+
"type":"STRING",
|
| 84 |
+
"description":"One of the following : au|ca|fr|de|it|es|uk|us",
|
| 85 |
+
"default":"us"
|
| 86 |
+
}
|
| 87 |
+
],
|
| 88 |
+
"code":"import requests\n\nurl = \"https://price-tracking-tools.p.rapidapi.com/camelizer/get-price-chart\"\nquerystring = {\"lang\": lang, \"tp\": tp, \"w\": w, \"asin\": asin, \"h\": h, \"country\": country}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"price-tracking-tools.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n",
|
| 89 |
+
"statuscode":111,
|
| 90 |
+
"body":"",
|
| 91 |
+
"headers":"",
|
| 92 |
+
"schema":""
|
| 93 |
+
}
|
| 94 |
+
]
|
| 95 |
+
}
|
toolbench/toolenv/tools/Monitoring/price_tracking_tools/api.py
ADDED
|
@@ -0,0 +1,70 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 camelizer_get_prices(asin: str, locale: str='us', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 10 |
+
"""
|
| 11 |
+
"Get latest prices, history highest/lowest prices of a product from Amazon"
|
| 12 |
+
asin: The asin number of a product from Amazon, and must be in the correct format. Ex : B08QB93S6R
|
| 13 |
+
locale: One of the following : au|ca|fr|de|it|es|uk|us
|
| 14 |
+
|
| 15 |
+
"""
|
| 16 |
+
url = f"https://price-tracking-tools.p.rapidapi.com/camelizer/get-prices"
|
| 17 |
+
querystring = {'asin': asin, }
|
| 18 |
+
if locale:
|
| 19 |
+
querystring['locale'] = locale
|
| 20 |
+
|
| 21 |
+
headers = {
|
| 22 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 23 |
+
"X-RapidAPI-Host": "price-tracking-tools.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 camelizer_get_price_chart(asin: str, lang: str='en', tp: str='3m', w: int=720, h: int=480, country: str='us', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 35 |
+
"""
|
| 36 |
+
"Get pricing history chart of a product from Amazon"
|
| 37 |
+
asin: The asin number of a product from Amazon, and must be in the correct format. Ex : B08QB93S6R
|
| 38 |
+
lang: One of the following : en|fr|de|it|es
|
| 39 |
+
tp: Time period. One of the following : 1m|3m|6m|1y|all
|
| 40 |
+
w: The width of the chart
|
| 41 |
+
h: The height of the chart
|
| 42 |
+
country: One of the following : au|ca|fr|de|it|es|uk|us
|
| 43 |
+
|
| 44 |
+
"""
|
| 45 |
+
url = f"https://price-tracking-tools.p.rapidapi.com/camelizer/get-price-chart"
|
| 46 |
+
querystring = {'asin': asin, }
|
| 47 |
+
if lang:
|
| 48 |
+
querystring['lang'] = lang
|
| 49 |
+
if tp:
|
| 50 |
+
querystring['tp'] = tp
|
| 51 |
+
if w:
|
| 52 |
+
querystring['w'] = w
|
| 53 |
+
if h:
|
| 54 |
+
querystring['h'] = h
|
| 55 |
+
if country:
|
| 56 |
+
querystring['country'] = country
|
| 57 |
+
|
| 58 |
+
headers = {
|
| 59 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 60 |
+
"X-RapidAPI-Host": "price-tracking-tools.p.rapidapi.com"
|
| 61 |
+
}
|
| 62 |
+
|
| 63 |
+
|
| 64 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 65 |
+
try:
|
| 66 |
+
observation = response.json()
|
| 67 |
+
except:
|
| 68 |
+
observation = response.text
|
| 69 |
+
return observation
|
| 70 |
+
|
toolbench/toolenv/tools/Monitoring/publiccloudwatchdashboard.json
ADDED
|
@@ -0,0 +1,110 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"tool_name":"PublicCloudwatchDashboard",
|
| 3 |
+
"tool_description":"Make a AWS Cloudwatch Dashboard Public",
|
| 4 |
+
"title":"PublicCloudwatchDashboard",
|
| 5 |
+
"pricing":"FREE",
|
| 6 |
+
"score":null,
|
| 7 |
+
"home_url":"https://rapidapi.com/quodlibet/api/publiccloudwatchdashboard/",
|
| 8 |
+
"host":"publiccloudwatchdashboard.p.rapidapi.com",
|
| 9 |
+
"api_list":[
|
| 10 |
+
{
|
| 11 |
+
"name":"dashboard",
|
| 12 |
+
"url":"https://publiccloudwatchdashboard.p.rapidapi.com/dashboard",
|
| 13 |
+
"description":"Get private signed url to dashboard",
|
| 14 |
+
"method":"GET",
|
| 15 |
+
"required_parameters":[
|
| 16 |
+
{
|
| 17 |
+
"name":"updatefrequency",
|
| 18 |
+
"type":"STRING",
|
| 19 |
+
"description":"Update Frequency, combined with updatefrequencyunit, determines how often data in the dashboard is refreshed)",
|
| 20 |
+
"default":"1"
|
| 21 |
+
},
|
| 22 |
+
{
|
| 23 |
+
"name":"updatefrequencyunit",
|
| 24 |
+
"type":"ENUM",
|
| 25 |
+
"description":"Time Unit for the updatefrequency parameter",
|
| 26 |
+
"default":""
|
| 27 |
+
},
|
| 28 |
+
{
|
| 29 |
+
"name":"region",
|
| 30 |
+
"type":"STRING",
|
| 31 |
+
"description":"The region in which the dashboard that you want to expose is defined in.",
|
| 32 |
+
"default":""
|
| 33 |
+
},
|
| 34 |
+
{
|
| 35 |
+
"name":"role",
|
| 36 |
+
"type":"STRING",
|
| 37 |
+
"description":"The IAM role to be assumed when reading Dashboard and Metrics",
|
| 38 |
+
"default":""
|
| 39 |
+
},
|
| 40 |
+
{
|
| 41 |
+
"name":"externalid",
|
| 42 |
+
"type":"STRING",
|
| 43 |
+
"description":"External ID used to Assume access to your IAM role",
|
| 44 |
+
"default":""
|
| 45 |
+
},
|
| 46 |
+
{
|
| 47 |
+
"name":"dashboard",
|
| 48 |
+
"type":"STRING",
|
| 49 |
+
"description":"The name of the Cloudwatch Dashboard",
|
| 50 |
+
"default":""
|
| 51 |
+
}
|
| 52 |
+
],
|
| 53 |
+
"optional_parameters":[
|
| 54 |
+
{
|
| 55 |
+
"name":"infolinktext",
|
| 56 |
+
"type":"STRING",
|
| 57 |
+
"description":"The text to be used for the info link on the dashboard",
|
| 58 |
+
"default":""
|
| 59 |
+
},
|
| 60 |
+
{
|
| 61 |
+
"name":"infolink",
|
| 62 |
+
"type":"STRING",
|
| 63 |
+
"description":"The link to be used when clicking the info text on the dashboard",
|
| 64 |
+
"default":""
|
| 65 |
+
},
|
| 66 |
+
{
|
| 67 |
+
"name":"periodthree",
|
| 68 |
+
"type":"ENUM",
|
| 69 |
+
"description":"The third of the three time periods each metric on the dashboard is displayed for.",
|
| 70 |
+
"default":""
|
| 71 |
+
},
|
| 72 |
+
{
|
| 73 |
+
"name":"forceupdate",
|
| 74 |
+
"type":"BOOLEAN",
|
| 75 |
+
"description":"Update even if according to the updatefrequency, and update is not required",
|
| 76 |
+
"default":""
|
| 77 |
+
},
|
| 78 |
+
{
|
| 79 |
+
"name":"periodone",
|
| 80 |
+
"type":"ENUM",
|
| 81 |
+
"description":"The first of the three time periods each metric on the dashboard is displayed for. ",
|
| 82 |
+
"default":""
|
| 83 |
+
},
|
| 84 |
+
{
|
| 85 |
+
"name":"periodtwo",
|
| 86 |
+
"type":"ENUM",
|
| 87 |
+
"description":"The second of the three time periods each metric on the dashboard is displayed for.",
|
| 88 |
+
"default":""
|
| 89 |
+
},
|
| 90 |
+
{
|
| 91 |
+
"name":"companyname",
|
| 92 |
+
"type":"STRING",
|
| 93 |
+
"description":"Provide the name of your company to be displayed on the dashboard",
|
| 94 |
+
"default":""
|
| 95 |
+
},
|
| 96 |
+
{
|
| 97 |
+
"name":"companyurl",
|
| 98 |
+
"type":"STRING",
|
| 99 |
+
"description":"The link to be used when clicking the company on the Dashboard",
|
| 100 |
+
"default":""
|
| 101 |
+
}
|
| 102 |
+
],
|
| 103 |
+
"code":"import requests\n\nurl = \"https://publiccloudwatchdashboard.p.rapidapi.com/dashboard\"\nquerystring = {\"updatefrequency\": updatefrequency, \"updatefrequencyunit\": updatefrequencyunit, \"region\": region, \"role\": role, \"externalid\": externalid, \"dashboard\": dashboard}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"publiccloudwatchdashboard.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n",
|
| 104 |
+
"statuscode":111,
|
| 105 |
+
"body":"",
|
| 106 |
+
"headers":"",
|
| 107 |
+
"schema":""
|
| 108 |
+
}
|
| 109 |
+
]
|
| 110 |
+
}
|
toolbench/toolenv/tools/Monitoring/publiccloudwatchdashboard/api.py
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 dashboard(updatefrequency: str, updatefrequencyunit: str, region: str, role: str, externalid: str, dashboard: str, infolinktext: str=None, infolink: str=None, periodthree: str=None, forceupdate: bool=None, periodone: str=None, periodtwo: str=None, companyname: str=None, companyurl: str=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 10 |
+
"""
|
| 11 |
+
"Get private signed url to dashboard"
|
| 12 |
+
updatefrequency: Update Frequency, combined with updatefrequencyunit, determines how often data in the dashboard is refreshed)
|
| 13 |
+
updatefrequencyunit: Time Unit for the updatefrequency parameter
|
| 14 |
+
region: The region in which the dashboard that you want to expose is defined in.
|
| 15 |
+
role: The IAM role to be assumed when reading Dashboard and Metrics
|
| 16 |
+
externalid: External ID used to Assume access to your IAM role
|
| 17 |
+
dashboard: The name of the Cloudwatch Dashboard
|
| 18 |
+
infolinktext: The text to be used for the info link on the dashboard
|
| 19 |
+
infolink: The link to be used when clicking the info text on the dashboard
|
| 20 |
+
periodthree: The third of the three time periods each metric on the dashboard is displayed for.
|
| 21 |
+
forceupdate: Update even if according to the updatefrequency, and update is not required
|
| 22 |
+
periodone: The first of the three time periods each metric on the dashboard is displayed for.
|
| 23 |
+
periodtwo: The second of the three time periods each metric on the dashboard is displayed for.
|
| 24 |
+
companyname: Provide the name of your company to be displayed on the dashboard
|
| 25 |
+
companyurl: The link to be used when clicking the company on the Dashboard
|
| 26 |
+
|
| 27 |
+
"""
|
| 28 |
+
url = f"https://publiccloudwatchdashboard.p.rapidapi.com/dashboard"
|
| 29 |
+
querystring = {'updatefrequency': updatefrequency, 'updatefrequencyunit': updatefrequencyunit, 'region': region, 'role': role, 'externalid': externalid, 'dashboard': dashboard, }
|
| 30 |
+
if infolinktext:
|
| 31 |
+
querystring['infolinktext'] = infolinktext
|
| 32 |
+
if infolink:
|
| 33 |
+
querystring['infolink'] = infolink
|
| 34 |
+
if periodthree:
|
| 35 |
+
querystring['periodthree'] = periodthree
|
| 36 |
+
if forceupdate:
|
| 37 |
+
querystring['forceupdate'] = forceupdate
|
| 38 |
+
if periodone:
|
| 39 |
+
querystring['periodone'] = periodone
|
| 40 |
+
if periodtwo:
|
| 41 |
+
querystring['periodtwo'] = periodtwo
|
| 42 |
+
if companyname:
|
| 43 |
+
querystring['companyname'] = companyname
|
| 44 |
+
if companyurl:
|
| 45 |
+
querystring['companyurl'] = companyurl
|
| 46 |
+
|
| 47 |
+
headers = {
|
| 48 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 49 |
+
"X-RapidAPI-Host": "publiccloudwatchdashboard.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 |
+
|
toolbench/toolenv/tools/Monitoring/scalair_nc.json
ADDED
|
@@ -0,0 +1,108 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"tool_name":"scalair-nc",
|
| 3 |
+
"tool_description":"API de Scalair NC, les indices de qualité de l'air",
|
| 4 |
+
"title":"scalair-nc",
|
| 5 |
+
"pricing":"FREE",
|
| 6 |
+
"score":{
|
| 7 |
+
"avgServiceLevel":100,
|
| 8 |
+
"avgLatency":216,
|
| 9 |
+
"avgSuccessRate":0,
|
| 10 |
+
"popularityScore":0,
|
| 11 |
+
"__typename":"Score"
|
| 12 |
+
},
|
| 13 |
+
"home_url":"https://rapidapi.com/adriens/api/scalair-nc/",
|
| 14 |
+
"host":"scalair-nc.p.rapidapi.com",
|
| 15 |
+
"api_list":[
|
| 16 |
+
{
|
| 17 |
+
"name":"Montravel",
|
| 18 |
+
"url":"https://scalair-nc.p.rapidapi.com/scalair/montravel/",
|
| 19 |
+
"description":"Montravel",
|
| 20 |
+
"method":"GET",
|
| 21 |
+
"required_parameters":[],
|
| 22 |
+
"optional_parameters":[],
|
| 23 |
+
"code":"import requests\n\nurl = \"https://scalair-nc.p.rapidapi.com/scalair/montravel/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"scalair-nc.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n",
|
| 24 |
+
"statuscode":111,
|
| 25 |
+
"body":"",
|
| 26 |
+
"headers":"",
|
| 27 |
+
"schema":""
|
| 28 |
+
},
|
| 29 |
+
{
|
| 30 |
+
"name":"Faubougr Blanchot",
|
| 31 |
+
"url":"https://scalair-nc.p.rapidapi.com/scalair/faubourg/",
|
| 32 |
+
"description":"Faubourg Blanchot",
|
| 33 |
+
"method":"GET",
|
| 34 |
+
"required_parameters":[],
|
| 35 |
+
"optional_parameters":[],
|
| 36 |
+
"code":"import requests\n\nurl = \"https://scalair-nc.p.rapidapi.com/scalair/faubourg/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"scalair-nc.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n",
|
| 37 |
+
"statuscode":111,
|
| 38 |
+
"body":"",
|
| 39 |
+
"headers":"",
|
| 40 |
+
"schema":""
|
| 41 |
+
},
|
| 42 |
+
{
|
| 43 |
+
"name":"Anse Vata",
|
| 44 |
+
"url":"https://scalair-nc.p.rapidapi.com/scalair/vata/",
|
| 45 |
+
"description":"Anse Vata",
|
| 46 |
+
"method":"GET",
|
| 47 |
+
"required_parameters":[],
|
| 48 |
+
"optional_parameters":[],
|
| 49 |
+
"code":"import requests\n\nurl = \"https://scalair-nc.p.rapidapi.com/scalair/vata/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"scalair-nc.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n",
|
| 50 |
+
"statuscode":111,
|
| 51 |
+
"body":"",
|
| 52 |
+
"headers":"",
|
| 53 |
+
"schema":""
|
| 54 |
+
},
|
| 55 |
+
{
|
| 56 |
+
"name":"Général",
|
| 57 |
+
"url":"https://scalair-nc.p.rapidapi.com/scalair/general/",
|
| 58 |
+
"description":"Général",
|
| 59 |
+
"method":"GET",
|
| 60 |
+
"required_parameters":[],
|
| 61 |
+
"optional_parameters":[],
|
| 62 |
+
"code":"import requests\n\nurl = \"https://scalair-nc.p.rapidapi.com/scalair/general/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"scalair-nc.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n",
|
| 63 |
+
"statuscode":111,
|
| 64 |
+
"body":"",
|
| 65 |
+
"headers":"",
|
| 66 |
+
"schema":""
|
| 67 |
+
},
|
| 68 |
+
{
|
| 69 |
+
"name":"IQAs",
|
| 70 |
+
"url":"https://scalair-nc.p.rapidapi.com/scalair/iqa/",
|
| 71 |
+
"description":"Liste des Indices de Qualité de l'air",
|
| 72 |
+
"method":"GET",
|
| 73 |
+
"required_parameters":[],
|
| 74 |
+
"optional_parameters":[],
|
| 75 |
+
"code":"import requests\n\nurl = \"https://scalair-nc.p.rapidapi.com/scalair/iqa/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"scalair-nc.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n",
|
| 76 |
+
"statuscode":111,
|
| 77 |
+
"body":"",
|
| 78 |
+
"headers":"",
|
| 79 |
+
"schema":""
|
| 80 |
+
},
|
| 81 |
+
{
|
| 82 |
+
"name":"Global",
|
| 83 |
+
"url":"https://scalair-nc.p.rapidapi.com/scalair/",
|
| 84 |
+
"description":"Liste de tous les indices pour tous les lieux de Nouméa",
|
| 85 |
+
"method":"GET",
|
| 86 |
+
"required_parameters":[],
|
| 87 |
+
"optional_parameters":[],
|
| 88 |
+
"code":"import requests\n\nurl = \"https://scalair-nc.p.rapidapi.com/scalair/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"scalair-nc.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n",
|
| 89 |
+
"statuscode":111,
|
| 90 |
+
"body":"",
|
| 91 |
+
"headers":"",
|
| 92 |
+
"schema":""
|
| 93 |
+
},
|
| 94 |
+
{
|
| 95 |
+
"name":"Logicoop",
|
| 96 |
+
"url":"https://scalair-nc.p.rapidapi.com/scalair/logicoop/",
|
| 97 |
+
"description":"Logicoop",
|
| 98 |
+
"method":"GET",
|
| 99 |
+
"required_parameters":[],
|
| 100 |
+
"optional_parameters":[],
|
| 101 |
+
"code":"import requests\n\nurl = \"https://scalair-nc.p.rapidapi.com/scalair/logicoop/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"scalair-nc.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n",
|
| 102 |
+
"statuscode":111,
|
| 103 |
+
"body":"",
|
| 104 |
+
"headers":"",
|
| 105 |
+
"schema":""
|
| 106 |
+
}
|
| 107 |
+
]
|
| 108 |
+
}
|
toolbench/toolenv/tools/Monitoring/scalair_nc/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 montravel(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 10 |
+
"""
|
| 11 |
+
"Montravel"
|
| 12 |
+
|
| 13 |
+
"""
|
| 14 |
+
url = f"https://scalair-nc.p.rapidapi.com/scalair/montravel/"
|
| 15 |
+
querystring = {}
|
| 16 |
+
|
| 17 |
+
headers = {
|
| 18 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 19 |
+
"X-RapidAPI-Host": "scalair-nc.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 faubougr_blanchot(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 31 |
+
"""
|
| 32 |
+
"Faubourg Blanchot"
|
| 33 |
+
|
| 34 |
+
"""
|
| 35 |
+
url = f"https://scalair-nc.p.rapidapi.com/scalair/faubourg/"
|
| 36 |
+
querystring = {}
|
| 37 |
+
|
| 38 |
+
headers = {
|
| 39 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 40 |
+
"X-RapidAPI-Host": "scalair-nc.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 anse_vata(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 52 |
+
"""
|
| 53 |
+
"Anse Vata"
|
| 54 |
+
|
| 55 |
+
"""
|
| 56 |
+
url = f"https://scalair-nc.p.rapidapi.com/scalair/vata/"
|
| 57 |
+
querystring = {}
|
| 58 |
+
|
| 59 |
+
headers = {
|
| 60 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 61 |
+
"X-RapidAPI-Host": "scalair-nc.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 g_n_ral(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 73 |
+
"""
|
| 74 |
+
"Général"
|
| 75 |
+
|
| 76 |
+
"""
|
| 77 |
+
url = f"https://scalair-nc.p.rapidapi.com/scalair/general/"
|
| 78 |
+
querystring = {}
|
| 79 |
+
|
| 80 |
+
headers = {
|
| 81 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 82 |
+
"X-RapidAPI-Host": "scalair-nc.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 iqas(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 94 |
+
"""
|
| 95 |
+
"Liste des Indices de Qualité de l'air"
|
| 96 |
+
|
| 97 |
+
"""
|
| 98 |
+
url = f"https://scalair-nc.p.rapidapi.com/scalair/iqa/"
|
| 99 |
+
querystring = {}
|
| 100 |
+
|
| 101 |
+
headers = {
|
| 102 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 103 |
+
"X-RapidAPI-Host": "scalair-nc.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 global(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 115 |
+
"""
|
| 116 |
+
"Liste de tous les indices pour tous les lieux de Nouméa"
|
| 117 |
+
|
| 118 |
+
"""
|
| 119 |
+
url = f"https://scalair-nc.p.rapidapi.com/scalair/"
|
| 120 |
+
querystring = {}
|
| 121 |
+
|
| 122 |
+
headers = {
|
| 123 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 124 |
+
"X-RapidAPI-Host": "scalair-nc.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 logicoop(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 136 |
+
"""
|
| 137 |
+
"Logicoop"
|
| 138 |
+
|
| 139 |
+
"""
|
| 140 |
+
url = f"https://scalair-nc.p.rapidapi.com/scalair/logicoop/"
|
| 141 |
+
querystring = {}
|
| 142 |
+
|
| 143 |
+
headers = {
|
| 144 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 145 |
+
"X-RapidAPI-Host": "scalair-nc.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/Monitoring/scan_web_heades_api.json
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"tool_name":"Scan Web Heades API",
|
| 3 |
+
"tool_description":"This API takes domain name as parameter and returns headers status as response",
|
| 4 |
+
"title":"Scan Web Heades API",
|
| 5 |
+
"pricing":"FREE",
|
| 6 |
+
"score":{
|
| 7 |
+
"avgServiceLevel":100,
|
| 8 |
+
"avgLatency":1366,
|
| 9 |
+
"avgSuccessRate":100,
|
| 10 |
+
"popularityScore":9.1,
|
| 11 |
+
"__typename":"Score"
|
| 12 |
+
},
|
| 13 |
+
"home_url":"https://rapidapi.com/rahul4real/api/scan-web-heades-api/",
|
| 14 |
+
"host":"scan-web-heades-api.p.rapidapi.com",
|
| 15 |
+
"api_list":[
|
| 16 |
+
{
|
| 17 |
+
"name":"Scan Headers",
|
| 18 |
+
"url":"https://scan-web-heades-api.p.rapidapi.com/ScanHeaders",
|
| 19 |
+
"description":"This endpoint takes a 'GET' request with domain as a query string parameter and returns status of Headers of Web Page",
|
| 20 |
+
"method":"GET",
|
| 21 |
+
"required_parameters":[
|
| 22 |
+
{
|
| 23 |
+
"name":"domain",
|
| 24 |
+
"type":"STRING",
|
| 25 |
+
"description":"",
|
| 26 |
+
"default":"www.google.com"
|
| 27 |
+
}
|
| 28 |
+
],
|
| 29 |
+
"optional_parameters":[],
|
| 30 |
+
"code":"import requests\n\nurl = \"https://scan-web-heades-api.p.rapidapi.com/ScanHeaders\"\nquerystring = {\"domain\": domain}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"scan-web-heades-api.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/Monitoring/scan_web_heades_api/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 scan_headers(domain: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 10 |
+
"""
|
| 11 |
+
"This endpoint takes a 'GET' request with domain as a query string parameter and returns status of Headers of Web Page"
|
| 12 |
+
|
| 13 |
+
"""
|
| 14 |
+
url = f"https://scan-web-heades-api.p.rapidapi.com/scanheaders"
|
| 15 |
+
querystring = {'domain': domain, }
|
| 16 |
+
|
| 17 |
+
headers = {
|
| 18 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 19 |
+
"X-RapidAPI-Host": "scan-web-heades-api.p.rapidapi.com"
|
| 20 |
+
}
|
| 21 |
+
|
| 22 |
+
|
| 23 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 24 |
+
try:
|
| 25 |
+
observation = response.json()
|
| 26 |
+
except:
|
| 27 |
+
observation = response.text
|
| 28 |
+
return observation
|
| 29 |
+
|
toolbench/toolenv/tools/Monitoring/screenshot_maker.json
ADDED
|
@@ -0,0 +1,122 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"tool_name":"Screenshot Maker",
|
| 3 |
+
"tool_description":"Take perfect screenshot from websites. Powered by nodejs\n\nThe service work through proxy servers. \nUse proxyCountry : europe\nOr proxyState : france | spain\notherwise it will pick one randomly",
|
| 4 |
+
"title":"Screenshot Maker",
|
| 5 |
+
"pricing":"FREE",
|
| 6 |
+
"score":{
|
| 7 |
+
"avgServiceLevel":74,
|
| 8 |
+
"avgLatency":8572,
|
| 9 |
+
"avgSuccessRate":22,
|
| 10 |
+
"popularityScore":2,
|
| 11 |
+
"__typename":"Score"
|
| 12 |
+
},
|
| 13 |
+
"home_url":"https://rapidapi.com/andychen-nBn3-aYqo/api/screenshot-maker/",
|
| 14 |
+
"host":"screenshot-maker.p.rapidapi.com",
|
| 15 |
+
"api_list":[
|
| 16 |
+
{
|
| 17 |
+
"name":"Take screenshot",
|
| 18 |
+
"url":"https://screenshot-maker.p.rapidapi.com/browser/screenshot/_take",
|
| 19 |
+
"description":"collect all parameteres, load the webpage and take screenshot at the end.\nThis API save on a S3 bucket and return the url.",
|
| 20 |
+
"method":"GET",
|
| 21 |
+
"required_parameters":[
|
| 22 |
+
{
|
| 23 |
+
"name":"targetUrl",
|
| 24 |
+
"type":"STRING",
|
| 25 |
+
"description":"Website url",
|
| 26 |
+
"default":"https://www.mio-ip.it/"
|
| 27 |
+
}
|
| 28 |
+
],
|
| 29 |
+
"optional_parameters":[
|
| 30 |
+
{
|
| 31 |
+
"name":"isLandScape",
|
| 32 |
+
"type":"ENUM",
|
| 33 |
+
"description":"Specifies if the viewport is in landscape mode.",
|
| 34 |
+
"default":""
|
| 35 |
+
},
|
| 36 |
+
{
|
| 37 |
+
"name":"proxyCountry",
|
| 38 |
+
"type":"ENUM",
|
| 39 |
+
"description":"",
|
| 40 |
+
"default":""
|
| 41 |
+
},
|
| 42 |
+
{
|
| 43 |
+
"name":"isFullyLoaded",
|
| 44 |
+
"type":"ENUM",
|
| 45 |
+
"description":"consider navigation to be finished when there are no more than 0 network connections for at least 500 ms. \nThan take screenshot",
|
| 46 |
+
"default":""
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"name":"clickCount",
|
| 50 |
+
"type":"NUMBER",
|
| 51 |
+
"description":"",
|
| 52 |
+
"default":"1"
|
| 53 |
+
},
|
| 54 |
+
{
|
| 55 |
+
"name":"fullpage",
|
| 56 |
+
"type":"ENUM",
|
| 57 |
+
"description":"take screenshot of the entire website page, from header to footer",
|
| 58 |
+
"default":""
|
| 59 |
+
},
|
| 60 |
+
{
|
| 61 |
+
"name":"clickSelector",
|
| 62 |
+
"type":"STRING",
|
| 63 |
+
"description":"This method fetches an element with selector, scrolls it into view if needed, and then uses Page.mouse to click in the center of the element. If there's no element matching selector, the method throws an error.",
|
| 64 |
+
"default":""
|
| 65 |
+
},
|
| 66 |
+
{
|
| 67 |
+
"name":"hasTouch",
|
| 68 |
+
"type":"ENUM",
|
| 69 |
+
"description":"Specify if the viewport supports touch events.",
|
| 70 |
+
"default":""
|
| 71 |
+
},
|
| 72 |
+
{
|
| 73 |
+
"name":"clickDelay",
|
| 74 |
+
"type":"NUMBER",
|
| 75 |
+
"description":"",
|
| 76 |
+
"default":"500"
|
| 77 |
+
},
|
| 78 |
+
{
|
| 79 |
+
"name":"clickButton",
|
| 80 |
+
"type":"ENUM",
|
| 81 |
+
"description":"Mouse button to be used, left click or right click etc",
|
| 82 |
+
"default":""
|
| 83 |
+
},
|
| 84 |
+
{
|
| 85 |
+
"name":"deviceScaleFactor",
|
| 86 |
+
"type":"NUMBER",
|
| 87 |
+
"description":"Specify device scale factor.",
|
| 88 |
+
"default":"1"
|
| 89 |
+
},
|
| 90 |
+
{
|
| 91 |
+
"name":"isMobile",
|
| 92 |
+
"type":"ENUM",
|
| 93 |
+
"description":"Whether the meta viewport tag is taken into account.",
|
| 94 |
+
"default":""
|
| 95 |
+
},
|
| 96 |
+
{
|
| 97 |
+
"name":"pageWidth",
|
| 98 |
+
"type":"NUMBER",
|
| 99 |
+
"description":"Set browser page width",
|
| 100 |
+
"default":"1024"
|
| 101 |
+
},
|
| 102 |
+
{
|
| 103 |
+
"name":"pageHeight",
|
| 104 |
+
"type":"NUMBER",
|
| 105 |
+
"description":"Set browser page height",
|
| 106 |
+
"default":"1024"
|
| 107 |
+
},
|
| 108 |
+
{
|
| 109 |
+
"name":"removables",
|
| 110 |
+
"type":"STRING",
|
| 111 |
+
"description":"remove divs/html by selector",
|
| 112 |
+
"default":""
|
| 113 |
+
}
|
| 114 |
+
],
|
| 115 |
+
"code":"import requests\n\nurl = \"https://screenshot-maker.p.rapidapi.com/browser/screenshot/_take\"\nquerystring = {\"clickCount\": clickcount, \"clickDelay\": clickdelay, \"deviceScaleFactor\": devicescalefactor, \"pageWidth\": pagewidth, \"pageHeight\": pageheight, \"targetUrl\": targeturl}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"screenshot-maker.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n",
|
| 116 |
+
"statuscode":111,
|
| 117 |
+
"body":"",
|
| 118 |
+
"headers":"",
|
| 119 |
+
"schema":""
|
| 120 |
+
}
|
| 121 |
+
]
|
| 122 |
+
}
|
toolbench/toolenv/tools/Monitoring/screenshot_maker/api.py
ADDED
|
@@ -0,0 +1,71 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 take_screenshot(targeturl: str, islandscape: str=None, proxycountry: str=None, isfullyloaded: str=None, clickcount: int=1, fullpage: str=None, clickselector: str=None, hastouch: str=None, clickdelay: int=500, clickbutton: str=None, devicescalefactor: int=1, ismobile: str=None, pagewidth: int=1024, pageheight: int=1024, removables: str=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 10 |
+
"""
|
| 11 |
+
"collect all parameteres, load the webpage and take screenshot at the end.
|
| 12 |
+
This API save on a S3 bucket and return the url."
|
| 13 |
+
targeturl: Website url
|
| 14 |
+
islandscape: Specifies if the viewport is in landscape mode.
|
| 15 |
+
isfullyloaded: consider navigation to be finished when there are no more than 0 network connections for at least 500 ms.
|
| 16 |
+
Than take screenshot
|
| 17 |
+
fullpage: take screenshot of the entire website page, from header to footer
|
| 18 |
+
clickselector: This method fetches an element with selector, scrolls it into view if needed, and then uses Page.mouse to click in the center of the element. If there's no element matching selector, the method throws an error.
|
| 19 |
+
hastouch: Specify if the viewport supports touch events.
|
| 20 |
+
clickbutton: Mouse button to be used, left click or right click etc
|
| 21 |
+
devicescalefactor: Specify device scale factor.
|
| 22 |
+
ismobile: Whether the meta viewport tag is taken into account.
|
| 23 |
+
pagewidth: Set browser page width
|
| 24 |
+
pageheight: Set browser page height
|
| 25 |
+
removables: remove divs/html by selector
|
| 26 |
+
|
| 27 |
+
"""
|
| 28 |
+
url = f"https://screenshot-maker.p.rapidapi.com/browser/screenshot/_take"
|
| 29 |
+
querystring = {'targetUrl': targeturl, }
|
| 30 |
+
if islandscape:
|
| 31 |
+
querystring['isLandScape'] = islandscape
|
| 32 |
+
if proxycountry:
|
| 33 |
+
querystring['proxyCountry'] = proxycountry
|
| 34 |
+
if isfullyloaded:
|
| 35 |
+
querystring['isFullyLoaded'] = isfullyloaded
|
| 36 |
+
if clickcount:
|
| 37 |
+
querystring['clickCount'] = clickcount
|
| 38 |
+
if fullpage:
|
| 39 |
+
querystring['fullpage'] = fullpage
|
| 40 |
+
if clickselector:
|
| 41 |
+
querystring['clickSelector'] = clickselector
|
| 42 |
+
if hastouch:
|
| 43 |
+
querystring['hasTouch'] = hastouch
|
| 44 |
+
if clickdelay:
|
| 45 |
+
querystring['clickDelay'] = clickdelay
|
| 46 |
+
if clickbutton:
|
| 47 |
+
querystring['clickButton'] = clickbutton
|
| 48 |
+
if devicescalefactor:
|
| 49 |
+
querystring['deviceScaleFactor'] = devicescalefactor
|
| 50 |
+
if ismobile:
|
| 51 |
+
querystring['isMobile'] = ismobile
|
| 52 |
+
if pagewidth:
|
| 53 |
+
querystring['pageWidth'] = pagewidth
|
| 54 |
+
if pageheight:
|
| 55 |
+
querystring['pageHeight'] = pageheight
|
| 56 |
+
if removables:
|
| 57 |
+
querystring['removables'] = removables
|
| 58 |
+
|
| 59 |
+
headers = {
|
| 60 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 61 |
+
"X-RapidAPI-Host": "screenshot-maker.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 |
+
|
toolbench/toolenv/tools/Monitoring/searchingwebrequest.json
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"tool_name":"SearchingWebRequest",
|
| 3 |
+
"tool_description":"We need to search text using Specific keyword",
|
| 4 |
+
"title":"SearchingWebRequest",
|
| 5 |
+
"pricing":"FREE",
|
| 6 |
+
"score":null,
|
| 7 |
+
"home_url":"https://rapidapi.com/itvisualmediamonitor/api/searchingwebrequest/",
|
| 8 |
+
"host":"searchingwebrequest.p.rapidapi.com",
|
| 9 |
+
"api_list":[
|
| 10 |
+
{
|
| 11 |
+
"name":"SearchWebRequest",
|
| 12 |
+
"url":"https://searchingwebrequest.p.rapidapi.comhttp://localhost:54192/Panel/Mentions",
|
| 13 |
+
"description":"We need to get the response from the web after specifying a keyword",
|
| 14 |
+
"method":"GET",
|
| 15 |
+
"required_parameters":[
|
| 16 |
+
{
|
| 17 |
+
"name":"Keyword",
|
| 18 |
+
"type":"STRING",
|
| 19 |
+
"description":"",
|
| 20 |
+
"default":""
|
| 21 |
+
}
|
| 22 |
+
],
|
| 23 |
+
"optional_parameters":[
|
| 24 |
+
{
|
| 25 |
+
"name":"Response",
|
| 26 |
+
"type":"STRING",
|
| 27 |
+
"description":"",
|
| 28 |
+
"default":""
|
| 29 |
+
}
|
| 30 |
+
],
|
| 31 |
+
"code":"import requests\n\nurl = \"https://searchingwebrequest.p.rapidapi.comhttp://localhost:54192/Panel/Mentions\"\nquerystring = {\"Keyword\": keyword}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"searchingwebrequest.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n",
|
| 32 |
+
"statuscode":111,
|
| 33 |
+
"body":"",
|
| 34 |
+
"headers":"",
|
| 35 |
+
"schema":""
|
| 36 |
+
}
|
| 37 |
+
]
|
| 38 |
+
}
|
toolbench/toolenv/tools/Monitoring/searchingwebrequest/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 searchwebrequest(keyword: str, response: str=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 10 |
+
"""
|
| 11 |
+
"We need to get the response from the web after specifying a keyword"
|
| 12 |
+
|
| 13 |
+
"""
|
| 14 |
+
url = f"https://searchingwebrequest.p.rapidapi.comhttp://localhost:54192/panel/mentions"
|
| 15 |
+
querystring = {'Keyword': keyword, }
|
| 16 |
+
if response:
|
| 17 |
+
querystring['Response'] = response
|
| 18 |
+
|
| 19 |
+
headers = {
|
| 20 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 21 |
+
"X-RapidAPI-Host": "searchingwebrequest.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/Monitoring/secureforest/api.py
ADDED
|
@@ -0,0 +1,92 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 domain(is_id: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 10 |
+
"""
|
| 11 |
+
"returns numeric risk score"
|
| 12 |
+
|
| 13 |
+
"""
|
| 14 |
+
url = f"https://secureforest.p.rapidapi.com/domain/{is_id}"
|
| 15 |
+
querystring = {}
|
| 16 |
+
|
| 17 |
+
headers = {
|
| 18 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 19 |
+
"X-RapidAPI-Host": "secureforest.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 ip(is_id: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 31 |
+
"""
|
| 32 |
+
"returns numeric risk score"
|
| 33 |
+
|
| 34 |
+
"""
|
| 35 |
+
url = f"https://secureforest.p.rapidapi.com/ip/{is_id}"
|
| 36 |
+
querystring = {}
|
| 37 |
+
|
| 38 |
+
headers = {
|
| 39 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 40 |
+
"X-RapidAPI-Host": "secureforest.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 url(is_id: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 52 |
+
"""
|
| 53 |
+
"returns numeric risk score"
|
| 54 |
+
|
| 55 |
+
"""
|
| 56 |
+
url = f"https://secureforest.p.rapidapi.com/url/{is_id}"
|
| 57 |
+
querystring = {}
|
| 58 |
+
|
| 59 |
+
headers = {
|
| 60 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 61 |
+
"X-RapidAPI-Host": "secureforest.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 email(is_id: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 73 |
+
"""
|
| 74 |
+
"returns numeric risk score"
|
| 75 |
+
|
| 76 |
+
"""
|
| 77 |
+
url = f"https://secureforest.p.rapidapi.com/email/{is_id}"
|
| 78 |
+
querystring = {}
|
| 79 |
+
|
| 80 |
+
headers = {
|
| 81 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 82 |
+
"X-RapidAPI-Host": "secureforest.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 |
+
|
toolbench/toolenv/tools/Monitoring/similar_web.json
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"tool_name":"Similar Web",
|
| 3 |
+
"tool_description":"This API helps you to query website traffic and key metrics for any website, including engagement rate, traffic ranking, keyword ranking and traffic source... to create a plugin like similarweb.com",
|
| 4 |
+
"title":"Similar Web",
|
| 5 |
+
"pricing":"FREEMIUM",
|
| 6 |
+
"score":{
|
| 7 |
+
"avgServiceLevel":100,
|
| 8 |
+
"avgLatency":1128,
|
| 9 |
+
"avgSuccessRate":100,
|
| 10 |
+
"popularityScore":9.9,
|
| 11 |
+
"__typename":"Score"
|
| 12 |
+
},
|
| 13 |
+
"home_url":"https://rapidapi.com/apidojo/api/similar-web/",
|
| 14 |
+
"host":"similar-web.p.rapidapi.com",
|
| 15 |
+
"api_list":[
|
| 16 |
+
{
|
| 17 |
+
"name":"countries/list",
|
| 18 |
+
"url":"https://similar-web.p.rapidapi.com/countries/list",
|
| 19 |
+
"description":"List countries with meta data",
|
| 20 |
+
"method":"GET",
|
| 21 |
+
"required_parameters":[],
|
| 22 |
+
"optional_parameters":[],
|
| 23 |
+
"code":"import requests\n\nurl = \"https://similar-web.p.rapidapi.com/countries/list\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"similar-web.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n",
|
| 24 |
+
"statuscode":111,
|
| 25 |
+
"body":"",
|
| 26 |
+
"headers":"",
|
| 27 |
+
"schema":""
|
| 28 |
+
},
|
| 29 |
+
{
|
| 30 |
+
"name":"get-analysis",
|
| 31 |
+
"url":"https://similar-web.p.rapidapi.com/get-analysis",
|
| 32 |
+
"description":"Get website traffic, key metrics, including engagement rate, traffic ranking, keyword ranking and traffic source.",
|
| 33 |
+
"method":"GET",
|
| 34 |
+
"required_parameters":[
|
| 35 |
+
{
|
| 36 |
+
"name":"domain",
|
| 37 |
+
"type":"STRING",
|
| 38 |
+
"description":"Any site or domain that you are familiar with. Ex : amazon.com",
|
| 39 |
+
"default":""
|
| 40 |
+
}
|
| 41 |
+
],
|
| 42 |
+
"optional_parameters":[],
|
| 43 |
+
"code":"import requests\n\nurl = \"https://similar-web.p.rapidapi.com/get-analysis\"\nquerystring = {\"domain\": domain}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"similar-web.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 |
+
}
|
toolbench/toolenv/tools/Monitoring/similar_web/api.py
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 countries_list(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 10 |
+
"""
|
| 11 |
+
"List countries with meta data"
|
| 12 |
+
|
| 13 |
+
"""
|
| 14 |
+
url = f"https://similar-web.p.rapidapi.com/countries/list"
|
| 15 |
+
querystring = {}
|
| 16 |
+
|
| 17 |
+
headers = {
|
| 18 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 19 |
+
"X-RapidAPI-Host": "similar-web.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_analysis(domain: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 31 |
+
"""
|
| 32 |
+
"Get website traffic, key metrics, including engagement rate, traffic ranking, keyword ranking and traffic source."
|
| 33 |
+
domain: Any site or domain that you are familiar with. Ex : amazon.com
|
| 34 |
+
|
| 35 |
+
"""
|
| 36 |
+
url = f"https://similar-web.p.rapidapi.com/get-analysis"
|
| 37 |
+
querystring = {'domain': domain, }
|
| 38 |
+
|
| 39 |
+
headers = {
|
| 40 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 41 |
+
"X-RapidAPI-Host": "similar-web.p.rapidapi.com"
|
| 42 |
+
}
|
| 43 |
+
|
| 44 |
+
|
| 45 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 46 |
+
try:
|
| 47 |
+
observation = response.json()
|
| 48 |
+
except:
|
| 49 |
+
observation = response.text
|
| 50 |
+
return observation
|
| 51 |
+
|
toolbench/toolenv/tools/Monitoring/similarweb_working_api/api.py
ADDED
|
@@ -0,0 +1,206 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 getcompletedata_async_creates_a_task_to_process(domain: str, callback_url: str=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 10 |
+
"""
|
| 11 |
+
"👁️🗨️Read [5 easy steps to use ASYNC](https://rapidapi.com/letsscrape/api/similarweb-working-api/tutorials/how-to-use-async-endpoints-to-get-complete-data%3F)
|
| 12 |
+
Creates a task that will return complete domain data from SimilarWeb when finished. Using this endpoint is very simple!
|
| 13 |
+
1. Make a request providing **domain** name
|
| 14 |
+
2. Grab received **task_id**
|
| 15 |
+
3. Provide the **task_id** to **GetTaskResult** endpoint to get complete domain data.
|
| 16 |
+
|
| 17 |
+
The average execution time is 10-40 seconds. It all depends how many tasks are in the queue.
|
| 18 |
+
You individual queue could can contain up to 5 tasks. Need more? Contact us!"
|
| 19 |
+
callback_url: After finishing your task the system will send the result to provided **callback_url**. System sends result in **json** format by using **POST** method. If you have more questions about it write us! To get result in php just use:
|
| 20 |
+
*$result = file_get_contents('php://input');*
|
| 21 |
+
|
| 22 |
+
"""
|
| 23 |
+
url = f"https://similarweb-working-api.p.rapidapi.com/similarweb/getcompletedataasync"
|
| 24 |
+
querystring = {'domain': domain, }
|
| 25 |
+
if callback_url:
|
| 26 |
+
querystring['callback_url'] = callback_url
|
| 27 |
+
|
| 28 |
+
headers = {
|
| 29 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 30 |
+
"X-RapidAPI-Host": "similarweb-working-api.p.rapidapi.com"
|
| 31 |
+
}
|
| 32 |
+
|
| 33 |
+
|
| 34 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 35 |
+
try:
|
| 36 |
+
observation = response.json()
|
| 37 |
+
except:
|
| 38 |
+
observation = response.text
|
| 39 |
+
return observation
|
| 40 |
+
|
| 41 |
+
def get_additional_domain_data_bonus_try_it(domain: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 42 |
+
"""
|
| 43 |
+
"Gets additional domain information like:
|
| 44 |
+
- Backlinks report
|
| 45 |
+
- SEMrush data
|
| 46 |
+
- MOZ data
|
| 47 |
+
- Revenue/Loss report
|
| 48 |
+
- Search engine data
|
| 49 |
+
- and more!"
|
| 50 |
+
|
| 51 |
+
"""
|
| 52 |
+
url = f"https://similarweb-working-api.p.rapidapi.com/similarweb/getadditionaldomaindata"
|
| 53 |
+
querystring = {'domain': domain, }
|
| 54 |
+
|
| 55 |
+
headers = {
|
| 56 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 57 |
+
"X-RapidAPI-Host": "similarweb-working-api.p.rapidapi.com"
|
| 58 |
+
}
|
| 59 |
+
|
| 60 |
+
|
| 61 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 62 |
+
try:
|
| 63 |
+
observation = response.json()
|
| 64 |
+
except:
|
| 65 |
+
observation = response.text
|
| 66 |
+
return observation
|
| 67 |
+
|
| 68 |
+
def get_domain_data(domain: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 69 |
+
"""
|
| 70 |
+
"Gets **basic** domain data from SimilarWeb. You will receive from this endpoint data like: top country shares, monthly visits, user engagements, ranks and traffic sources. In many cases such data **meet the clients needs**. If you want complete domain data check **GetCompleteDataAsync** out!"
|
| 71 |
+
|
| 72 |
+
"""
|
| 73 |
+
url = f"https://similarweb-working-api.p.rapidapi.com/similarweb/getdata"
|
| 74 |
+
querystring = {'domain': domain, }
|
| 75 |
+
|
| 76 |
+
headers = {
|
| 77 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 78 |
+
"X-RapidAPI-Host": "similarweb-working-api.p.rapidapi.com"
|
| 79 |
+
}
|
| 80 |
+
|
| 81 |
+
|
| 82 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 83 |
+
try:
|
| 84 |
+
observation = response.json()
|
| 85 |
+
except:
|
| 86 |
+
observation = response.text
|
| 87 |
+
return observation
|
| 88 |
+
|
| 89 |
+
def canceltask_free_of_use(task_id: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 90 |
+
"""
|
| 91 |
+
"Cancels pending task. Removes task from your job queue. Use this endpoint how much you want. **It's free of charge**!"
|
| 92 |
+
|
| 93 |
+
"""
|
| 94 |
+
url = f"https://similarweb-working-api.p.rapidapi.com/similarweb/canceltask"
|
| 95 |
+
querystring = {'task_id': task_id, }
|
| 96 |
+
|
| 97 |
+
headers = {
|
| 98 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 99 |
+
"X-RapidAPI-Host": "similarweb-working-api.p.rapidapi.com"
|
| 100 |
+
}
|
| 101 |
+
|
| 102 |
+
|
| 103 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 104 |
+
try:
|
| 105 |
+
observation = response.json()
|
| 106 |
+
except:
|
| 107 |
+
observation = response.text
|
| 108 |
+
return observation
|
| 109 |
+
|
| 110 |
+
def get_server_time(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 111 |
+
"""
|
| 112 |
+
"Returns server time"
|
| 113 |
+
|
| 114 |
+
"""
|
| 115 |
+
url = f"https://similarweb-working-api.p.rapidapi.com/similarweb/getservertime"
|
| 116 |
+
querystring = {}
|
| 117 |
+
|
| 118 |
+
headers = {
|
| 119 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 120 |
+
"X-RapidAPI-Host": "similarweb-working-api.p.rapidapi.com"
|
| 121 |
+
}
|
| 122 |
+
|
| 123 |
+
|
| 124 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 125 |
+
try:
|
| 126 |
+
observation = response.json()
|
| 127 |
+
except:
|
| 128 |
+
observation = response.text
|
| 129 |
+
return observation
|
| 130 |
+
|
| 131 |
+
def gettaskresult_free_of_use(task_id: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 132 |
+
"""
|
| 133 |
+
"To get the result of the task just provide the **task_id** that you obtained after requesting **GetCompleteDataAsync**. When task is not finished yet you will receive **task_status: inprogress**. For a finished task you will get **task_status: succeeded**. Check the **Example Responses** tab to see the examples.
|
| 134 |
+
Possible task statuses:
|
| 135 |
+
- **pending** - task is waiting for its turn
|
| 136 |
+
- **inprogress** - task has been passed to the worker
|
| 137 |
+
- **succeeded** - task has been finished with success
|
| 138 |
+
|
| 139 |
+
Use this endpoint how much you want. **It's free of charge**!
|
| 140 |
+
|
| 141 |
+
The average **GetCompleteDataAsync** execution time is 10-40 seconds. It all depends how many tasks are in the queue."
|
| 142 |
+
task_id: To get the **task_id** call the **GetCompleteDataAsync**
|
| 143 |
+
|
| 144 |
+
"""
|
| 145 |
+
url = f"https://similarweb-working-api.p.rapidapi.com/similarweb/gettaskresult"
|
| 146 |
+
querystring = {'task_id': task_id, }
|
| 147 |
+
|
| 148 |
+
headers = {
|
| 149 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 150 |
+
"X-RapidAPI-Host": "similarweb-working-api.p.rapidapi.com"
|
| 151 |
+
}
|
| 152 |
+
|
| 153 |
+
|
| 154 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 155 |
+
try:
|
| 156 |
+
observation = response.json()
|
| 157 |
+
except:
|
| 158 |
+
observation = response.text
|
| 159 |
+
return observation
|
| 160 |
+
|
| 161 |
+
def getmytasks_free_of_use(task_status: str=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 162 |
+
"""
|
| 163 |
+
"Retrieves your all tasks. Use this endpoint when lost your **task_id** . Use this endpoint how much you want. **It's free of charge**!"
|
| 164 |
+
|
| 165 |
+
"""
|
| 166 |
+
url = f"https://similarweb-working-api.p.rapidapi.com/similarweb/getmytasks"
|
| 167 |
+
querystring = {}
|
| 168 |
+
if task_status:
|
| 169 |
+
querystring['task_status'] = task_status
|
| 170 |
+
|
| 171 |
+
headers = {
|
| 172 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 173 |
+
"X-RapidAPI-Host": "similarweb-working-api.p.rapidapi.com"
|
| 174 |
+
}
|
| 175 |
+
|
| 176 |
+
|
| 177 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 178 |
+
try:
|
| 179 |
+
observation = response.json()
|
| 180 |
+
except:
|
| 181 |
+
observation = response.text
|
| 182 |
+
return observation
|
| 183 |
+
|
| 184 |
+
def get_complete_data_obsolete_use_async_version_instead(domain: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 185 |
+
"""
|
| 186 |
+
"⚠️**OBSOLETE! Use GetCompleteDataASYNC version instead.**
|
| 187 |
+
|
| 188 |
+
Detailed data retrieval time usually takes 5-120 seconds. **Unfortunately**, RapidAPI timeout limit is 60 seconds, so not all requests will be succeed."
|
| 189 |
+
|
| 190 |
+
"""
|
| 191 |
+
url = f"https://similarweb-working-api.p.rapidapi.com/similarweb/getfulldata"
|
| 192 |
+
querystring = {'domain': domain, }
|
| 193 |
+
|
| 194 |
+
headers = {
|
| 195 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 196 |
+
"X-RapidAPI-Host": "similarweb-working-api.p.rapidapi.com"
|
| 197 |
+
}
|
| 198 |
+
|
| 199 |
+
|
| 200 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 201 |
+
try:
|
| 202 |
+
observation = response.json()
|
| 203 |
+
except:
|
| 204 |
+
observation = response.text
|
| 205 |
+
return observation
|
| 206 |
+
|
toolbench/toolenv/tools/Monitoring/simple_email_notifications.json
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"tool_name":"Simple Email Notifications",
|
| 3 |
+
"tool_description":"Notify on cronjob failure. Notify when command execution finished or failed. And more...",
|
| 4 |
+
"title":"Simple Email Notifications",
|
| 5 |
+
"pricing":"FREEMIUM",
|
| 6 |
+
"score":{
|
| 7 |
+
"avgServiceLevel":100,
|
| 8 |
+
"avgLatency":119,
|
| 9 |
+
"avgSuccessRate":97,
|
| 10 |
+
"popularityScore":9,
|
| 11 |
+
"__typename":"Score"
|
| 12 |
+
},
|
| 13 |
+
"home_url":"https://rapidapi.com/leonkura/api/simple-email-notifications/",
|
| 14 |
+
"host":"simple-email-notifications.p.rapidapi.com",
|
| 15 |
+
"api_list":[
|
| 16 |
+
{
|
| 17 |
+
"name":"Send Email Notification",
|
| 18 |
+
"url":"https://simple-email-notifications.p.rapidapi.com/{subject}",
|
| 19 |
+
"description":"Intended usage is as a one liner. For example like this:\nbackup.sh && curl https://simple-email-notifications.p.rapidapi.com/Backup finished ✅ /?email=demo@example.com&rapidapi-key=<your-rapidapi-key>\n\nWe recommend to use your rapidapi key as a query parameter as to reduce the complexity of the curl call.\n\nSend a email notification to the specified recipient. Note that it's not possible to set a email body. It's only possible to set a subject, as this API is only supposed to be used as a notification tool for jobs or tasks that have finished or experienced errors. If you don't set a subject, \"📩\" will be set automatically for you.",
|
| 20 |
+
"method":"GET",
|
| 21 |
+
"required_parameters":[
|
| 22 |
+
{
|
| 23 |
+
"name":"email",
|
| 24 |
+
"type":"STRING",
|
| 25 |
+
"description":"The E-Mail address that should receive this notification. Please note that it is NOT ALLOWED TO USE THIS API TO SEND ANY KIND OF MARKETING E-MAILS OR ANY E-MAIL COMMUNICATION WITH PARTIES THAT HAVE NOT GIVEN THEIR CONSENT TO RECEIVE THOSE E-MAILS! ",
|
| 26 |
+
"default":"demo@example.com"
|
| 27 |
+
}
|
| 28 |
+
],
|
| 29 |
+
"optional_parameters":[
|
| 30 |
+
{
|
| 31 |
+
"name":"subject",
|
| 32 |
+
"type":"string",
|
| 33 |
+
"description":"The subject to set for the E-Mail. In case you don't set a subject \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"📩\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\" will be set for you. The maximum allowed length is 50 characters.",
|
| 34 |
+
"default":"Cronjob-finished"
|
| 35 |
+
}
|
| 36 |
+
],
|
| 37 |
+
"code":"import requests\n\nurl = \"https://simple-email-notifications.p.rapidapi.com/{subject}\"\nquerystring = {\"email\": email}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"simple-email-notifications.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n",
|
| 38 |
+
"statuscode":200,
|
| 39 |
+
"body":"text example!",
|
| 40 |
+
"headers":{},
|
| 41 |
+
"schema":{}
|
| 42 |
+
}
|
| 43 |
+
]
|
| 44 |
+
}
|
toolbench/toolenv/tools/Monitoring/simple_email_notifications/api.py
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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_email_notification(email: str, subject: str='Cronjob-finished', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 10 |
+
"""
|
| 11 |
+
"Intended usage is as a one liner. For example like this:
|
| 12 |
+
backup.sh && curl https://simple-email-notifications.p.rapidapi.com/Backup finished ✅ /?email=demo@example.com&rapidapi-key=<your-rapidapi-key>
|
| 13 |
+
|
| 14 |
+
We recommend to use your rapidapi key as a query parameter as to reduce the complexity of the curl call.
|
| 15 |
+
|
| 16 |
+
Send a email notification to the specified recipient. Note that it's not possible to set a email body. It's only possible to set a subject, as this API is only supposed to be used as a notification tool for jobs or tasks that have finished or experienced errors. If you don't set a subject, "📩" will be set automatically for you."
|
| 17 |
+
email: The E-Mail address that should receive this notification. Please note that it is NOT ALLOWED TO USE THIS API TO SEND ANY KIND OF MARKETING E-MAILS OR ANY E-MAIL COMMUNICATION WITH PARTIES THAT HAVE NOT GIVEN THEIR CONSENT TO RECEIVE THOSE E-MAILS!
|
| 18 |
+
subject: The subject to set for the E-Mail. In case you don't set a subject \\\\\\\\\\\\\\\"📩\\\\\\\\\\\\\\\" will be set for you. The maximum allowed length is 50 characters.
|
| 19 |
+
|
| 20 |
+
"""
|
| 21 |
+
url = f"https://simple-email-notifications.p.rapidapi.com/{subject}"
|
| 22 |
+
querystring = {'email': email, }
|
| 23 |
+
if subject:
|
| 24 |
+
querystring['subject'] = subject
|
| 25 |
+
|
| 26 |
+
headers = {
|
| 27 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 28 |
+
"X-RapidAPI-Host": "simple-email-notifications.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 |
+
|
toolbench/toolenv/tools/Monitoring/skin_analyze.json
ADDED
|
@@ -0,0 +1,65 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"product_id": "api_b80fc1b3-4565-452e-a038-f54e1320a218",
|
| 3 |
+
"tool_description": "Analysis of skin condition, such as skin color, skin texture, double eyelids, eye bags, dark circles, wrinkles, acne, spots, etc.",
|
| 4 |
+
"home_url": "https://rapidapi.com/ailabapi-ailabapi-default/api/skin-analyze/",
|
| 5 |
+
"name": "Skin analyze",
|
| 6 |
+
"title": "Skin analyze",
|
| 7 |
+
"pricing": "FREEMIUM",
|
| 8 |
+
"tool_name": "Skin analyze",
|
| 9 |
+
"score": {
|
| 10 |
+
"avgServiceLevel": 100,
|
| 11 |
+
"avgLatency": 1723,
|
| 12 |
+
"avgSuccessRate": 68,
|
| 13 |
+
"popularityScore": 9.5,
|
| 14 |
+
"__typename": "Score"
|
| 15 |
+
},
|
| 16 |
+
"host": "skin-analyze.p.rapidapi.com",
|
| 17 |
+
"api_list": [
|
| 18 |
+
{
|
| 19 |
+
"name": "Skin analyze",
|
| 20 |
+
"url": "https://skin-analyze.p.rapidapi.com/facebody/analysis/skinanalyze",
|
| 21 |
+
"description": "Skin analyze",
|
| 22 |
+
"method": "POST",
|
| 23 |
+
"required_parameters": [
|
| 24 |
+
{
|
| 25 |
+
"name": "image",
|
| 26 |
+
"type": "BINARY",
|
| 27 |
+
"description": "- **Image format**: `JPG` `JPEG`\n- **Image size**: No more than 2 MB.\n- **Image resolution**: Larger than 200x200px, smaller than 4096x4096px.\n- **Minimum face pixel size**: To ensure the effect, it is recommended that the minimum value of the face box (square) side length in the image is not less than 200 pixels. Calibration size: minimum of 160 pixels. The minimum value of the face frame edge length is not less than one-tenth of the shortest edge of the image.\n- **Face quality**: The higher the face quality, the more accurate the skin analysis. Factors affecting face quality include: occlusion of the five facial features, blurred images, improper lighting (bright, dark, backlight), excessive face angle (roll \u2264 \u00b145\u00b0, yaw \u2264 \u00b145\u00b0, pitch \u2264 \u00b145\u00b0 are recommended), etc.",
|
| 28 |
+
"default": ""
|
| 29 |
+
}
|
| 30 |
+
],
|
| 31 |
+
"optional_parameters": [],
|
| 32 |
+
"code": "import requests\n\nurl = \"https://skin-analyze.p.rapidapi.com/facebody/analysis/skinanalyze\"\nquerystring = {\"image\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"skin-analyze.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n",
|
| 33 |
+
"convert_code": "import requests\n\nurl = \"https://skin-analyze.p.rapidapi.com/facebody/analysis/skinanalyze\"\nquerystring = {\"image\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"skin-analyze.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n",
|
| 34 |
+
"test_endpoint": "",
|
| 35 |
+
"statuscode": 200,
|
| 36 |
+
"schema": {
|
| 37 |
+
"request_id": {
|
| 38 |
+
"type": "string",
|
| 39 |
+
"required": false,
|
| 40 |
+
"description": "Request ID."
|
| 41 |
+
},
|
| 42 |
+
"log_id": {
|
| 43 |
+
"type": "string",
|
| 44 |
+
"required": false,
|
| 45 |
+
"description": "Log ID."
|
| 46 |
+
},
|
| 47 |
+
"error_code": {
|
| 48 |
+
"type": "integer",
|
| 49 |
+
"required": false,
|
| 50 |
+
"description": "Error Code."
|
| 51 |
+
},
|
| 52 |
+
"error_code_str": {
|
| 53 |
+
"type": "string",
|
| 54 |
+
"required": false,
|
| 55 |
+
"description": "Error Code."
|
| 56 |
+
},
|
| 57 |
+
"error_msg": {
|
| 58 |
+
"type": "string",
|
| 59 |
+
"required": false,
|
| 60 |
+
"description": "Error Message."
|
| 61 |
+
}
|
| 62 |
+
}
|
| 63 |
+
}
|
| 64 |
+
]
|
| 65 |
+
}
|
toolbench/toolenv/tools/Monitoring/ssl_certificate.json
ADDED
|
@@ -0,0 +1,364 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"tool_name":"SSL Certificate",
|
| 3 |
+
"tool_description":"Retrieve information about a domain's certificate.",
|
| 4 |
+
"title":"SSL Certificate",
|
| 5 |
+
"pricing":"FREEMIUM",
|
| 6 |
+
"score":null,
|
| 7 |
+
"home_url":"https://rapidapi.com/MSnoeren/api/ssl-certificate/",
|
| 8 |
+
"host":"ssl-certificate.p.rapidapi.com",
|
| 9 |
+
"api_list":[
|
| 10 |
+
{
|
| 11 |
+
"name":"IP",
|
| 12 |
+
"url":"https://ssl-certificate.p.rapidapi.com/ip/{domain}",
|
| 13 |
+
"description":"Retrieve the IP of the certificate. This is often the IP of the server itself.",
|
| 14 |
+
"method":"GET",
|
| 15 |
+
"required_parameters":[
|
| 16 |
+
{
|
| 17 |
+
"name":"domain",
|
| 18 |
+
"type":"string",
|
| 19 |
+
"description":"",
|
| 20 |
+
"default":"google.nl"
|
| 21 |
+
}
|
| 22 |
+
],
|
| 23 |
+
"optional_parameters":[],
|
| 24 |
+
"code":"import requests\n\nurl = \"https://ssl-certificate.p.rapidapi.com/ip/{domain}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"ssl-certificate.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n",
|
| 25 |
+
"statuscode":111,
|
| 26 |
+
"body":"",
|
| 27 |
+
"headers":"",
|
| 28 |
+
"schema":""
|
| 29 |
+
},
|
| 30 |
+
{
|
| 31 |
+
"name":"Uses SHA1",
|
| 32 |
+
"url":"https://ssl-certificate.p.rapidapi.com/uses_sha1/{domain}",
|
| 33 |
+
"description":"Retrieve if the certificate uses the unsafe SHA1 hashing method.",
|
| 34 |
+
"method":"GET",
|
| 35 |
+
"required_parameters":[
|
| 36 |
+
{
|
| 37 |
+
"name":"domain",
|
| 38 |
+
"type":"string",
|
| 39 |
+
"description":"",
|
| 40 |
+
"default":"google.nl"
|
| 41 |
+
}
|
| 42 |
+
],
|
| 43 |
+
"optional_parameters":[],
|
| 44 |
+
"code":"import requests\n\nurl = \"https://ssl-certificate.p.rapidapi.com/uses_sha1/{domain}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"ssl-certificate.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n",
|
| 45 |
+
"statuscode":111,
|
| 46 |
+
"body":"",
|
| 47 |
+
"headers":"",
|
| 48 |
+
"schema":""
|
| 49 |
+
},
|
| 50 |
+
{
|
| 51 |
+
"name":"Self-signed",
|
| 52 |
+
"url":"https://ssl-certificate.p.rapidapi.com/self_signed/{domain}",
|
| 53 |
+
"description":"Retrieve if the certificate is self-signed.",
|
| 54 |
+
"method":"GET",
|
| 55 |
+
"required_parameters":[
|
| 56 |
+
{
|
| 57 |
+
"name":"domain",
|
| 58 |
+
"type":"string",
|
| 59 |
+
"description":"",
|
| 60 |
+
"default":"google.nl"
|
| 61 |
+
}
|
| 62 |
+
],
|
| 63 |
+
"optional_parameters":[],
|
| 64 |
+
"code":"import requests\n\nurl = \"https://ssl-certificate.p.rapidapi.com/self_signed/{domain}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"ssl-certificate.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n",
|
| 65 |
+
"statuscode":111,
|
| 66 |
+
"body":"",
|
| 67 |
+
"headers":"",
|
| 68 |
+
"schema":""
|
| 69 |
+
},
|
| 70 |
+
{
|
| 71 |
+
"name":"Expired",
|
| 72 |
+
"url":"https://ssl-certificate.p.rapidapi.com/expired/{domain}",
|
| 73 |
+
"description":"Retrieve if the current certificate is expired.",
|
| 74 |
+
"method":"GET",
|
| 75 |
+
"required_parameters":[
|
| 76 |
+
{
|
| 77 |
+
"name":"domain",
|
| 78 |
+
"type":"string",
|
| 79 |
+
"description":"",
|
| 80 |
+
"default":"google.nl"
|
| 81 |
+
}
|
| 82 |
+
],
|
| 83 |
+
"optional_parameters":[],
|
| 84 |
+
"code":"import requests\n\nurl = \"https://ssl-certificate.p.rapidapi.com/expired/{domain}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"ssl-certificate.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n",
|
| 85 |
+
"statuscode":111,
|
| 86 |
+
"body":"",
|
| 87 |
+
"headers":"",
|
| 88 |
+
"schema":""
|
| 89 |
+
},
|
| 90 |
+
{
|
| 91 |
+
"name":"Expires at",
|
| 92 |
+
"url":"https://ssl-certificate.p.rapidapi.com/expires_at/{domain}",
|
| 93 |
+
"description":"Retrieve the expirey date of the certificate.",
|
| 94 |
+
"method":"GET",
|
| 95 |
+
"required_parameters":[
|
| 96 |
+
{
|
| 97 |
+
"name":"domain",
|
| 98 |
+
"type":"string",
|
| 99 |
+
"description":"",
|
| 100 |
+
"default":"google.nl"
|
| 101 |
+
}
|
| 102 |
+
],
|
| 103 |
+
"optional_parameters":[],
|
| 104 |
+
"code":"import requests\n\nurl = \"https://ssl-certificate.p.rapidapi.com/expires_at/{domain}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"ssl-certificate.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n",
|
| 105 |
+
"statuscode":111,
|
| 106 |
+
"body":"",
|
| 107 |
+
"headers":"",
|
| 108 |
+
"schema":""
|
| 109 |
+
},
|
| 110 |
+
{
|
| 111 |
+
"name":"Valid from",
|
| 112 |
+
"url":"https://ssl-certificate.p.rapidapi.com/valid_from/{domain}",
|
| 113 |
+
"description":"Retrieve the valid from date of the certificate.",
|
| 114 |
+
"method":"GET",
|
| 115 |
+
"required_parameters":[
|
| 116 |
+
{
|
| 117 |
+
"name":"domain",
|
| 118 |
+
"type":"string",
|
| 119 |
+
"description":"",
|
| 120 |
+
"default":"google.nl"
|
| 121 |
+
}
|
| 122 |
+
],
|
| 123 |
+
"optional_parameters":[],
|
| 124 |
+
"code":"import requests\n\nurl = \"https://ssl-certificate.p.rapidapi.com/valid_from/{domain}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"ssl-certificate.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n",
|
| 125 |
+
"statuscode":111,
|
| 126 |
+
"body":"",
|
| 127 |
+
"headers":"",
|
| 128 |
+
"schema":""
|
| 129 |
+
},
|
| 130 |
+
{
|
| 131 |
+
"name":"Expires in Days",
|
| 132 |
+
"url":"https://ssl-certificate.p.rapidapi.com/expires_in_days/{domain}",
|
| 133 |
+
"description":"Retrieve in how many days from now the certificate will expire.",
|
| 134 |
+
"method":"GET",
|
| 135 |
+
"required_parameters":[
|
| 136 |
+
{
|
| 137 |
+
"name":"domain",
|
| 138 |
+
"type":"string",
|
| 139 |
+
"description":"",
|
| 140 |
+
"default":"google.nl"
|
| 141 |
+
}
|
| 142 |
+
],
|
| 143 |
+
"optional_parameters":[],
|
| 144 |
+
"code":"import requests\n\nurl = \"https://ssl-certificate.p.rapidapi.com/expires_in_days/{domain}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"ssl-certificate.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n",
|
| 145 |
+
"statuscode":111,
|
| 146 |
+
"body":"",
|
| 147 |
+
"headers":"",
|
| 148 |
+
"schema":""
|
| 149 |
+
},
|
| 150 |
+
{
|
| 151 |
+
"name":"Lifespan in Days",
|
| 152 |
+
"url":"https://ssl-certificate.p.rapidapi.com/lifespan_in_days/{domain}",
|
| 153 |
+
"description":"Retrieve the lifespan in days of the certificate.",
|
| 154 |
+
"method":"GET",
|
| 155 |
+
"required_parameters":[
|
| 156 |
+
{
|
| 157 |
+
"name":"domain",
|
| 158 |
+
"type":"string",
|
| 159 |
+
"description":"",
|
| 160 |
+
"default":"google.nl"
|
| 161 |
+
}
|
| 162 |
+
],
|
| 163 |
+
"optional_parameters":[],
|
| 164 |
+
"code":"import requests\n\nurl = \"https://ssl-certificate.p.rapidapi.com/lifespan_in_days/{domain}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"ssl-certificate.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":"Hash",
|
| 172 |
+
"url":"https://ssl-certificate.p.rapidapi.com/hash/{domain}",
|
| 173 |
+
"description":"Retrieve a hash of the certificate.",
|
| 174 |
+
"method":"GET",
|
| 175 |
+
"required_parameters":[
|
| 176 |
+
{
|
| 177 |
+
"name":"domain",
|
| 178 |
+
"type":"string",
|
| 179 |
+
"description":"",
|
| 180 |
+
"default":"google.nl"
|
| 181 |
+
}
|
| 182 |
+
],
|
| 183 |
+
"optional_parameters":[],
|
| 184 |
+
"code":"import requests\n\nurl = \"https://ssl-certificate.p.rapidapi.com/hash/{domain}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"ssl-certificate.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n",
|
| 185 |
+
"statuscode":111,
|
| 186 |
+
"body":"",
|
| 187 |
+
"headers":"",
|
| 188 |
+
"schema":""
|
| 189 |
+
},
|
| 190 |
+
{
|
| 191 |
+
"name":"Fingerprint (SHA256)",
|
| 192 |
+
"url":"https://ssl-certificate.p.rapidapi.com/fingerprint_sha256/{domain}",
|
| 193 |
+
"description":"Retrieve the fingerprint of the certificate in SHA256 form.",
|
| 194 |
+
"method":"GET",
|
| 195 |
+
"required_parameters":[
|
| 196 |
+
{
|
| 197 |
+
"name":"domain",
|
| 198 |
+
"type":"string",
|
| 199 |
+
"description":"",
|
| 200 |
+
"default":"google.nl"
|
| 201 |
+
}
|
| 202 |
+
],
|
| 203 |
+
"optional_parameters":[],
|
| 204 |
+
"code":"import requests\n\nurl = \"https://ssl-certificate.p.rapidapi.com/fingerprint_sha256/{domain}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"ssl-certificate.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n",
|
| 205 |
+
"statuscode":111,
|
| 206 |
+
"body":"",
|
| 207 |
+
"headers":"",
|
| 208 |
+
"schema":""
|
| 209 |
+
},
|
| 210 |
+
{
|
| 211 |
+
"name":"Fingerprint",
|
| 212 |
+
"url":"https://ssl-certificate.p.rapidapi.com/fingerprint/{domain}",
|
| 213 |
+
"description":"Retrieve the fingerprint of the certificate.",
|
| 214 |
+
"method":"GET",
|
| 215 |
+
"required_parameters":[
|
| 216 |
+
{
|
| 217 |
+
"name":"domain",
|
| 218 |
+
"type":"string",
|
| 219 |
+
"description":"",
|
| 220 |
+
"default":"google.nl"
|
| 221 |
+
}
|
| 222 |
+
],
|
| 223 |
+
"optional_parameters":[],
|
| 224 |
+
"code":"import requests\n\nurl = \"https://ssl-certificate.p.rapidapi.com/fingerprint/{domain}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"ssl-certificate.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n",
|
| 225 |
+
"statuscode":111,
|
| 226 |
+
"body":"",
|
| 227 |
+
"headers":"",
|
| 228 |
+
"schema":""
|
| 229 |
+
},
|
| 230 |
+
{
|
| 231 |
+
"name":"Organization",
|
| 232 |
+
"url":"https://ssl-certificate.p.rapidapi.com/organization/{domain}",
|
| 233 |
+
"description":"Retrieve the organization name of the certificate.",
|
| 234 |
+
"method":"GET",
|
| 235 |
+
"required_parameters":[
|
| 236 |
+
{
|
| 237 |
+
"name":"domain",
|
| 238 |
+
"type":"string",
|
| 239 |
+
"description":"",
|
| 240 |
+
"default":"google.nl"
|
| 241 |
+
}
|
| 242 |
+
],
|
| 243 |
+
"optional_parameters":[],
|
| 244 |
+
"code":"import requests\n\nurl = \"https://ssl-certificate.p.rapidapi.com/organization/{domain}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"ssl-certificate.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n",
|
| 245 |
+
"statuscode":111,
|
| 246 |
+
"body":"",
|
| 247 |
+
"headers":"",
|
| 248 |
+
"schema":""
|
| 249 |
+
},
|
| 250 |
+
{
|
| 251 |
+
"name":"Algorithm",
|
| 252 |
+
"url":"https://ssl-certificate.p.rapidapi.com/algorithm/{domain}",
|
| 253 |
+
"description":"Retrieve the algorithm of the certificate.",
|
| 254 |
+
"method":"GET",
|
| 255 |
+
"required_parameters":[
|
| 256 |
+
{
|
| 257 |
+
"name":"domain",
|
| 258 |
+
"type":"string",
|
| 259 |
+
"description":"",
|
| 260 |
+
"default":"google.nl"
|
| 261 |
+
}
|
| 262 |
+
],
|
| 263 |
+
"optional_parameters":[],
|
| 264 |
+
"code":"import requests\n\nurl = \"https://ssl-certificate.p.rapidapi.com/algorithm/{domain}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"ssl-certificate.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n",
|
| 265 |
+
"statuscode":111,
|
| 266 |
+
"body":"",
|
| 267 |
+
"headers":"",
|
| 268 |
+
"schema":""
|
| 269 |
+
},
|
| 270 |
+
{
|
| 271 |
+
"name":"Issuer",
|
| 272 |
+
"url":"https://ssl-certificate.p.rapidapi.com/issuer/{domain}",
|
| 273 |
+
"description":"Retrieve the associated domain issuer of the certificate.",
|
| 274 |
+
"method":"GET",
|
| 275 |
+
"required_parameters":[
|
| 276 |
+
{
|
| 277 |
+
"name":"domain",
|
| 278 |
+
"type":"string",
|
| 279 |
+
"description":"",
|
| 280 |
+
"default":"google.nl"
|
| 281 |
+
}
|
| 282 |
+
],
|
| 283 |
+
"optional_parameters":[],
|
| 284 |
+
"code":"import requests\n\nurl = \"https://ssl-certificate.p.rapidapi.com/issuer/{domain}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"ssl-certificate.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n",
|
| 285 |
+
"statuscode":111,
|
| 286 |
+
"body":"",
|
| 287 |
+
"headers":"",
|
| 288 |
+
"schema":""
|
| 289 |
+
},
|
| 290 |
+
{
|
| 291 |
+
"name":"Domains",
|
| 292 |
+
"url":"https://ssl-certificate.p.rapidapi.com/domains/{domain}",
|
| 293 |
+
"description":"Retrieve all associated domainnames of the certificate.",
|
| 294 |
+
"method":"GET",
|
| 295 |
+
"required_parameters":[
|
| 296 |
+
{
|
| 297 |
+
"name":"domain",
|
| 298 |
+
"type":"string",
|
| 299 |
+
"description":"",
|
| 300 |
+
"default":"google.nl"
|
| 301 |
+
}
|
| 302 |
+
],
|
| 303 |
+
"optional_parameters":[],
|
| 304 |
+
"code":"import requests\n\nurl = \"https://ssl-certificate.p.rapidapi.com/domains/{domain}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"ssl-certificate.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n",
|
| 305 |
+
"statuscode":111,
|
| 306 |
+
"body":"",
|
| 307 |
+
"headers":"",
|
| 308 |
+
"schema":""
|
| 309 |
+
},
|
| 310 |
+
{
|
| 311 |
+
"name":"Domain",
|
| 312 |
+
"url":"https://ssl-certificate.p.rapidapi.com/domain/{domain}",
|
| 313 |
+
"description":"Retrieve the associated domain name of the certificate.",
|
| 314 |
+
"method":"GET",
|
| 315 |
+
"required_parameters":[
|
| 316 |
+
{
|
| 317 |
+
"name":"domain",
|
| 318 |
+
"type":"string",
|
| 319 |
+
"description":"",
|
| 320 |
+
"default":"google.nl"
|
| 321 |
+
}
|
| 322 |
+
],
|
| 323 |
+
"optional_parameters":[],
|
| 324 |
+
"code":"import requests\n\nurl = \"https://ssl-certificate.p.rapidapi.com/domain/{domain}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"ssl-certificate.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n",
|
| 325 |
+
"statuscode":111,
|
| 326 |
+
"body":"",
|
| 327 |
+
"headers":"",
|
| 328 |
+
"schema":""
|
| 329 |
+
},
|
| 330 |
+
{
|
| 331 |
+
"name":"All Information",
|
| 332 |
+
"url":"https://ssl-certificate.p.rapidapi.com/full/{domain}",
|
| 333 |
+
"description":"Retrieve all available information about the domain.",
|
| 334 |
+
"method":"GET",
|
| 335 |
+
"required_parameters":[
|
| 336 |
+
{
|
| 337 |
+
"name":"domain",
|
| 338 |
+
"type":"string",
|
| 339 |
+
"description":"",
|
| 340 |
+
"default":"google.nl"
|
| 341 |
+
}
|
| 342 |
+
],
|
| 343 |
+
"optional_parameters":[],
|
| 344 |
+
"code":"import requests\n\nurl = \"https://ssl-certificate.p.rapidapi.com/full/{domain}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"ssl-certificate.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n",
|
| 345 |
+
"statuscode":200,
|
| 346 |
+
"body":{
|
| 347 |
+
"key1":"value",
|
| 348 |
+
"key2":"value"
|
| 349 |
+
},
|
| 350 |
+
"headers":{},
|
| 351 |
+
"schema":{
|
| 352 |
+
"type":"object",
|
| 353 |
+
"properties":{
|
| 354 |
+
"key1":{
|
| 355 |
+
"type":"string"
|
| 356 |
+
},
|
| 357 |
+
"key2":{
|
| 358 |
+
"type":"string"
|
| 359 |
+
}
|
| 360 |
+
}
|
| 361 |
+
}
|
| 362 |
+
}
|
| 363 |
+
]
|
| 364 |
+
}
|
toolbench/toolenv/tools/Monitoring/ssl_certificate/api.py
ADDED
|
@@ -0,0 +1,365 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 ip(domain: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 10 |
+
"""
|
| 11 |
+
"Retrieve the IP of the certificate. This is often the IP of the server itself."
|
| 12 |
+
|
| 13 |
+
"""
|
| 14 |
+
url = f"https://ssl-certificate.p.rapidapi.com/ip/{domain}"
|
| 15 |
+
querystring = {}
|
| 16 |
+
|
| 17 |
+
headers = {
|
| 18 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 19 |
+
"X-RapidAPI-Host": "ssl-certificate.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 uses_sha1(domain: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 31 |
+
"""
|
| 32 |
+
"Retrieve if the certificate uses the unsafe SHA1 hashing method."
|
| 33 |
+
|
| 34 |
+
"""
|
| 35 |
+
url = f"https://ssl-certificate.p.rapidapi.com/uses_sha1/{domain}"
|
| 36 |
+
querystring = {}
|
| 37 |
+
|
| 38 |
+
headers = {
|
| 39 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 40 |
+
"X-RapidAPI-Host": "ssl-certificate.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 self_signed(domain: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 52 |
+
"""
|
| 53 |
+
"Retrieve if the certificate is self-signed."
|
| 54 |
+
|
| 55 |
+
"""
|
| 56 |
+
url = f"https://ssl-certificate.p.rapidapi.com/self_signed/{domain}"
|
| 57 |
+
querystring = {}
|
| 58 |
+
|
| 59 |
+
headers = {
|
| 60 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 61 |
+
"X-RapidAPI-Host": "ssl-certificate.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 expired(domain: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 73 |
+
"""
|
| 74 |
+
"Retrieve if the current certificate is expired."
|
| 75 |
+
|
| 76 |
+
"""
|
| 77 |
+
url = f"https://ssl-certificate.p.rapidapi.com/expired/{domain}"
|
| 78 |
+
querystring = {}
|
| 79 |
+
|
| 80 |
+
headers = {
|
| 81 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 82 |
+
"X-RapidAPI-Host": "ssl-certificate.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 expires_at(domain: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 94 |
+
"""
|
| 95 |
+
"Retrieve the expirey date of the certificate."
|
| 96 |
+
|
| 97 |
+
"""
|
| 98 |
+
url = f"https://ssl-certificate.p.rapidapi.com/expires_at/{domain}"
|
| 99 |
+
querystring = {}
|
| 100 |
+
|
| 101 |
+
headers = {
|
| 102 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 103 |
+
"X-RapidAPI-Host": "ssl-certificate.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 valid_from(domain: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 115 |
+
"""
|
| 116 |
+
"Retrieve the valid from date of the certificate."
|
| 117 |
+
|
| 118 |
+
"""
|
| 119 |
+
url = f"https://ssl-certificate.p.rapidapi.com/valid_from/{domain}"
|
| 120 |
+
querystring = {}
|
| 121 |
+
|
| 122 |
+
headers = {
|
| 123 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 124 |
+
"X-RapidAPI-Host": "ssl-certificate.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 expires_in_days(domain: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 136 |
+
"""
|
| 137 |
+
"Retrieve in how many days from now the certificate will expire."
|
| 138 |
+
|
| 139 |
+
"""
|
| 140 |
+
url = f"https://ssl-certificate.p.rapidapi.com/expires_in_days/{domain}"
|
| 141 |
+
querystring = {}
|
| 142 |
+
|
| 143 |
+
headers = {
|
| 144 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 145 |
+
"X-RapidAPI-Host": "ssl-certificate.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 |
+
|
| 156 |
+
def lifespan_in_days(domain: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 157 |
+
"""
|
| 158 |
+
"Retrieve the lifespan in days of the certificate."
|
| 159 |
+
|
| 160 |
+
"""
|
| 161 |
+
url = f"https://ssl-certificate.p.rapidapi.com/lifespan_in_days/{domain}"
|
| 162 |
+
querystring = {}
|
| 163 |
+
|
| 164 |
+
headers = {
|
| 165 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 166 |
+
"X-RapidAPI-Host": "ssl-certificate.p.rapidapi.com"
|
| 167 |
+
}
|
| 168 |
+
|
| 169 |
+
|
| 170 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 171 |
+
try:
|
| 172 |
+
observation = response.json()
|
| 173 |
+
except:
|
| 174 |
+
observation = response.text
|
| 175 |
+
return observation
|
| 176 |
+
|
| 177 |
+
def hash(domain: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 178 |
+
"""
|
| 179 |
+
"Retrieve a hash of the certificate."
|
| 180 |
+
|
| 181 |
+
"""
|
| 182 |
+
url = f"https://ssl-certificate.p.rapidapi.com/hash/{domain}"
|
| 183 |
+
querystring = {}
|
| 184 |
+
|
| 185 |
+
headers = {
|
| 186 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 187 |
+
"X-RapidAPI-Host": "ssl-certificate.p.rapidapi.com"
|
| 188 |
+
}
|
| 189 |
+
|
| 190 |
+
|
| 191 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 192 |
+
try:
|
| 193 |
+
observation = response.json()
|
| 194 |
+
except:
|
| 195 |
+
observation = response.text
|
| 196 |
+
return observation
|
| 197 |
+
|
| 198 |
+
def fingerprint_sha256(domain: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 199 |
+
"""
|
| 200 |
+
"Retrieve the fingerprint of the certificate in SHA256 form."
|
| 201 |
+
|
| 202 |
+
"""
|
| 203 |
+
url = f"https://ssl-certificate.p.rapidapi.com/fingerprint_sha256/{domain}"
|
| 204 |
+
querystring = {}
|
| 205 |
+
|
| 206 |
+
headers = {
|
| 207 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 208 |
+
"X-RapidAPI-Host": "ssl-certificate.p.rapidapi.com"
|
| 209 |
+
}
|
| 210 |
+
|
| 211 |
+
|
| 212 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 213 |
+
try:
|
| 214 |
+
observation = response.json()
|
| 215 |
+
except:
|
| 216 |
+
observation = response.text
|
| 217 |
+
return observation
|
| 218 |
+
|
| 219 |
+
def fingerprint(domain: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 220 |
+
"""
|
| 221 |
+
"Retrieve the fingerprint of the certificate."
|
| 222 |
+
|
| 223 |
+
"""
|
| 224 |
+
url = f"https://ssl-certificate.p.rapidapi.com/fingerprint/{domain}"
|
| 225 |
+
querystring = {}
|
| 226 |
+
|
| 227 |
+
headers = {
|
| 228 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 229 |
+
"X-RapidAPI-Host": "ssl-certificate.p.rapidapi.com"
|
| 230 |
+
}
|
| 231 |
+
|
| 232 |
+
|
| 233 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 234 |
+
try:
|
| 235 |
+
observation = response.json()
|
| 236 |
+
except:
|
| 237 |
+
observation = response.text
|
| 238 |
+
return observation
|
| 239 |
+
|
| 240 |
+
def organization(domain: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 241 |
+
"""
|
| 242 |
+
"Retrieve the organization name of the certificate."
|
| 243 |
+
|
| 244 |
+
"""
|
| 245 |
+
url = f"https://ssl-certificate.p.rapidapi.com/organization/{domain}"
|
| 246 |
+
querystring = {}
|
| 247 |
+
|
| 248 |
+
headers = {
|
| 249 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 250 |
+
"X-RapidAPI-Host": "ssl-certificate.p.rapidapi.com"
|
| 251 |
+
}
|
| 252 |
+
|
| 253 |
+
|
| 254 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 255 |
+
try:
|
| 256 |
+
observation = response.json()
|
| 257 |
+
except:
|
| 258 |
+
observation = response.text
|
| 259 |
+
return observation
|
| 260 |
+
|
| 261 |
+
def algorithm(domain: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 262 |
+
"""
|
| 263 |
+
"Retrieve the algorithm of the certificate."
|
| 264 |
+
|
| 265 |
+
"""
|
| 266 |
+
url = f"https://ssl-certificate.p.rapidapi.com/algorithm/{domain}"
|
| 267 |
+
querystring = {}
|
| 268 |
+
|
| 269 |
+
headers = {
|
| 270 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 271 |
+
"X-RapidAPI-Host": "ssl-certificate.p.rapidapi.com"
|
| 272 |
+
}
|
| 273 |
+
|
| 274 |
+
|
| 275 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 276 |
+
try:
|
| 277 |
+
observation = response.json()
|
| 278 |
+
except:
|
| 279 |
+
observation = response.text
|
| 280 |
+
return observation
|
| 281 |
+
|
| 282 |
+
def issuer(domain: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 283 |
+
"""
|
| 284 |
+
"Retrieve the associated domain issuer of the certificate."
|
| 285 |
+
|
| 286 |
+
"""
|
| 287 |
+
url = f"https://ssl-certificate.p.rapidapi.com/issuer/{domain}"
|
| 288 |
+
querystring = {}
|
| 289 |
+
|
| 290 |
+
headers = {
|
| 291 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 292 |
+
"X-RapidAPI-Host": "ssl-certificate.p.rapidapi.com"
|
| 293 |
+
}
|
| 294 |
+
|
| 295 |
+
|
| 296 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 297 |
+
try:
|
| 298 |
+
observation = response.json()
|
| 299 |
+
except:
|
| 300 |
+
observation = response.text
|
| 301 |
+
return observation
|
| 302 |
+
|
| 303 |
+
def domains(domain: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 304 |
+
"""
|
| 305 |
+
"Retrieve all associated domainnames of the certificate."
|
| 306 |
+
|
| 307 |
+
"""
|
| 308 |
+
url = f"https://ssl-certificate.p.rapidapi.com/domains/{domain}"
|
| 309 |
+
querystring = {}
|
| 310 |
+
|
| 311 |
+
headers = {
|
| 312 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 313 |
+
"X-RapidAPI-Host": "ssl-certificate.p.rapidapi.com"
|
| 314 |
+
}
|
| 315 |
+
|
| 316 |
+
|
| 317 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 318 |
+
try:
|
| 319 |
+
observation = response.json()
|
| 320 |
+
except:
|
| 321 |
+
observation = response.text
|
| 322 |
+
return observation
|
| 323 |
+
|
| 324 |
+
def domain(domain: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 325 |
+
"""
|
| 326 |
+
"Retrieve the associated domain name of the certificate."
|
| 327 |
+
|
| 328 |
+
"""
|
| 329 |
+
url = f"https://ssl-certificate.p.rapidapi.com/domain/{domain}"
|
| 330 |
+
querystring = {}
|
| 331 |
+
|
| 332 |
+
headers = {
|
| 333 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 334 |
+
"X-RapidAPI-Host": "ssl-certificate.p.rapidapi.com"
|
| 335 |
+
}
|
| 336 |
+
|
| 337 |
+
|
| 338 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 339 |
+
try:
|
| 340 |
+
observation = response.json()
|
| 341 |
+
except:
|
| 342 |
+
observation = response.text
|
| 343 |
+
return observation
|
| 344 |
+
|
| 345 |
+
def all_information(domain: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 346 |
+
"""
|
| 347 |
+
"Retrieve all available information about the domain."
|
| 348 |
+
|
| 349 |
+
"""
|
| 350 |
+
url = f"https://ssl-certificate.p.rapidapi.com/full/{domain}"
|
| 351 |
+
querystring = {}
|
| 352 |
+
|
| 353 |
+
headers = {
|
| 354 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 355 |
+
"X-RapidAPI-Host": "ssl-certificate.p.rapidapi.com"
|
| 356 |
+
}
|
| 357 |
+
|
| 358 |
+
|
| 359 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 360 |
+
try:
|
| 361 |
+
observation = response.json()
|
| 362 |
+
except:
|
| 363 |
+
observation = response.text
|
| 364 |
+
return observation
|
| 365 |
+
|
toolbench/toolenv/tools/Monitoring/ssl_checker.json
ADDED
|
@@ -0,0 +1,160 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"tool_name":"SSL Checker",
|
| 3 |
+
"tool_description":"Get all sensitive data about any public SSL certificate",
|
| 4 |
+
"title":"SSL Checker",
|
| 5 |
+
"pricing":"FREEMIUM",
|
| 6 |
+
"score":{
|
| 7 |
+
"avgServiceLevel":100,
|
| 8 |
+
"avgLatency":327,
|
| 9 |
+
"avgSuccessRate":0,
|
| 10 |
+
"popularityScore":0.1,
|
| 11 |
+
"__typename":"Score"
|
| 12 |
+
},
|
| 13 |
+
"home_url":"https://rapidapi.com/botmaker.pro/api/ssl-checker/",
|
| 14 |
+
"host":"ssl-checker.p.rapidapi.com",
|
| 15 |
+
"api_list":[
|
| 16 |
+
{
|
| 17 |
+
"name":"check-ssl",
|
| 18 |
+
"url":"https://ssl-checker.p.rapidapi.com/check-ssl",
|
| 19 |
+
"description":"Performs full check of provided SSL certificate",
|
| 20 |
+
"method":"GET",
|
| 21 |
+
"required_parameters":[
|
| 22 |
+
{
|
| 23 |
+
"name":"source",
|
| 24 |
+
"type":"STRING",
|
| 25 |
+
"description":"",
|
| 26 |
+
"default":"example.com"
|
| 27 |
+
}
|
| 28 |
+
],
|
| 29 |
+
"optional_parameters":[],
|
| 30 |
+
"code":"import requests\n\nurl = \"https://ssl-checker.p.rapidapi.com/check-ssl\"\nquerystring = {\"source\": source}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"ssl-checker.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n",
|
| 31 |
+
"statuscode":200,
|
| 32 |
+
"body":{
|
| 33 |
+
"additional_domains":[
|
| 34 |
+
"www.example.org",
|
| 35 |
+
"example.com",
|
| 36 |
+
"example.edu",
|
| 37 |
+
"example.net",
|
| 38 |
+
"example.org",
|
| 39 |
+
"www.example.com",
|
| 40 |
+
"www.example.edu",
|
| 41 |
+
"www.example.net"
|
| 42 |
+
],
|
| 43 |
+
"code":200,
|
| 44 |
+
"days_until_expiration":285,
|
| 45 |
+
"domain":"www.example.org",
|
| 46 |
+
"error":"ok",
|
| 47 |
+
"execution_time":309,
|
| 48 |
+
"expiration_date":"2021-12-25T23:59:59.000000Z",
|
| 49 |
+
"is_valid":true,
|
| 50 |
+
"issuer":"DigiCert TLS RSA SHA256 2020 CA1",
|
| 51 |
+
"organization":"DigiCert Inc",
|
| 52 |
+
"raw_certificate_json_data":{
|
| 53 |
+
"extensions":{
|
| 54 |
+
"authorityInfoAccess":"OCSP - URI:http://ocsp.digicert.com\nCA Issuers - URI:http://cacerts.digicert.com/DigiCertTLSRSASHA2562020CA1.crt\n",
|
| 55 |
+
"authorityKeyIdentifier":"keyid:B7:6B:A2:EA:A8:AA:84:8C:79:EA:B4:DA:0F:98:B2:C5:95:76:B9:F4\n",
|
| 56 |
+
"basicConstraints":"CA:FALSE",
|
| 57 |
+
"certificatePolicies":"Policy: 2.16.840.1.114412.1.1\n CPS: https://www.digicert.com/CPS\nPolicy: 2.23.140.1.2.2\n",
|
| 58 |
+
"crlDistributionPoints":"\nFull Name:\n URI:http://crl3.digicert.com/DigiCertTLSRSASHA2562020CA1.crl\n\nFull Name:\n URI:http://crl4.digicert.com/DigiCertTLSRSASHA2562020CA1.crl\n",
|
| 59 |
+
"ct_precert_scts":"Signed Certificate Timestamp:\n Version : v1(0)\n Log ID : F6:5C:94:2F:D1:77:30:22:14:54:18:08:30:94:56:8E:\n E3:4D:13:19:33:BF:DF:0C:2F:20:0B:CC:4E:F1:64:E3\n Timestamp : Nov 24 19:32:04.334 2020 GMT\n Extensions: none\n Signature : ecdsa-with-SHA256\n 30:46:02:21:00:A4:6B:A8:D0:43:A4:F1:07:32:2D:ED:\n 9C:39:7D:77:E8:73:C1:9F:ED:22:4A:00:C5:BE:9A:C9:\n B5:B6:12:DC:B1:02:21:00:8D:E8:5F:8A:C7:52:CD:0D:\n A1:23:D5:B5:BB:DB:DB:62:13:88:22:D6:70:EC:83:5E:\n 3F:C9:AC:94:4C:8C:58:3A\nSigned Certificate Timestamp:\n Version : v1(0)\n Log ID : 5C:DC:43:92:FE:E6:AB:45:44:B1:5E:9A:D4:56:E6:10:\n 37:FB:D5:FA:47:DC:A1:73:94:B2:5E:E6:F6:C7:0E:CA\n Timestamp : Nov 24 19:32:04.429 2020 GMT\n Extensions: none\n Signature : ecdsa-with-SHA256\n 30:45:02:20:6A:AC:11:FA:05:09:12:FF:9B:8E:89:30:\n DF:0E:05:6E:CA:8E:59:CC:ED:B5:C2:0A:3C:33:34:A8:\n B0:33:DA:AC:02:21:00:DA:D8:5C:51:6D:64:0A:A6:AA:\n 3D:8B:35:20:13:3A:6A:97:4F:76:B9:67:CB:BE:FC:CC:\n A4:57:67:B4:3F:1B:BD",
|
| 60 |
+
"extendedKeyUsage":"TLS Web Server Authentication, TLS Web Client Authentication",
|
| 61 |
+
"keyUsage":"Digital Signature, Key Encipherment",
|
| 62 |
+
"subjectAltName":"DNS:www.example.org, DNS:example.com, DNS:example.edu, DNS:example.net, DNS:example.org, DNS:www.example.com, DNS:www.example.edu, DNS:www.example.net",
|
| 63 |
+
"subjectKeyIdentifier":"26:1A:F8:E4:B1:B0:72:84:CE:DA:81:06:D2:27:98:FB:ED:3A:3D:17"
|
| 64 |
+
},
|
| 65 |
+
"hash":"46fdf148",
|
| 66 |
+
"issuer":{
|
| 67 |
+
"C":"US",
|
| 68 |
+
"CN":"DigiCert TLS RSA SHA256 2020 CA1",
|
| 69 |
+
"O":"DigiCert Inc"
|
| 70 |
+
},
|
| 71 |
+
"name":"/C=US/ST=California/L=Los Angeles/O=Internet Corporation for Assigned Names and Numbers/CN=www.example.org",
|
| 72 |
+
"purposes":{
|
| 73 |
+
"1":[
|
| 74 |
+
true,
|
| 75 |
+
false,
|
| 76 |
+
"sslclient"
|
| 77 |
+
],
|
| 78 |
+
"2":[
|
| 79 |
+
true,
|
| 80 |
+
false,
|
| 81 |
+
"sslserver"
|
| 82 |
+
],
|
| 83 |
+
"3":[
|
| 84 |
+
true,
|
| 85 |
+
false,
|
| 86 |
+
"nssslserver"
|
| 87 |
+
],
|
| 88 |
+
"4":[
|
| 89 |
+
false,
|
| 90 |
+
false,
|
| 91 |
+
"smimesign"
|
| 92 |
+
],
|
| 93 |
+
"5":[
|
| 94 |
+
false,
|
| 95 |
+
false,
|
| 96 |
+
"smimeencrypt"
|
| 97 |
+
],
|
| 98 |
+
"6":[
|
| 99 |
+
false,
|
| 100 |
+
false,
|
| 101 |
+
"crlsign"
|
| 102 |
+
],
|
| 103 |
+
"7":[
|
| 104 |
+
true,
|
| 105 |
+
true,
|
| 106 |
+
"any"
|
| 107 |
+
],
|
| 108 |
+
"8":[
|
| 109 |
+
true,
|
| 110 |
+
false,
|
| 111 |
+
"ocsphelper"
|
| 112 |
+
],
|
| 113 |
+
"9":[
|
| 114 |
+
false,
|
| 115 |
+
false,
|
| 116 |
+
"timestampsign"
|
| 117 |
+
]
|
| 118 |
+
},
|
| 119 |
+
"serialNumber":"20925132584583406404415624503433883337",
|
| 120 |
+
"serialNumberHex":"0FBE08B0854D05738AB0CCE1C9AFEEC9",
|
| 121 |
+
"signatureTypeLN":"sha256WithRSAEncryption",
|
| 122 |
+
"signatureTypeNID":668,
|
| 123 |
+
"signatureTypeSN":"RSA-SHA256",
|
| 124 |
+
"subject":{
|
| 125 |
+
"C":"US",
|
| 126 |
+
"CN":"www.example.org",
|
| 127 |
+
"L":"Los Angeles",
|
| 128 |
+
"O":"Internet Corporation for Assigned Names and Numbers",
|
| 129 |
+
"ST":"California"
|
| 130 |
+
},
|
| 131 |
+
"validFrom":"201124000000Z",
|
| 132 |
+
"validFrom_time_t":1606176000,
|
| 133 |
+
"validTo":"211225235959Z",
|
| 134 |
+
"validTo_time_t":1640476799,
|
| 135 |
+
"version":2
|
| 136 |
+
},
|
| 137 |
+
"remote_address":"93.184.216.34:443",
|
| 138 |
+
"valid_from_date":"2020-11-24T00:00:00.000000Z"
|
| 139 |
+
},
|
| 140 |
+
"headers":{
|
| 141 |
+
"access-control-allow-origin":"*",
|
| 142 |
+
"cache-control":"private, must-revalidate",
|
| 143 |
+
"content-type":"application/json",
|
| 144 |
+
"date":"Mon, 15 Mar 2021 15:05:53 GMT",
|
| 145 |
+
"expires":"-1",
|
| 146 |
+
"pragma":"no-cache",
|
| 147 |
+
"server":"RapidAPI-1.2.7",
|
| 148 |
+
"vary":"Accept-Encoding",
|
| 149 |
+
"x-powered-by":"PHP/7.4.16",
|
| 150 |
+
"x-rapidapi-region":"AWS - eu-central-1",
|
| 151 |
+
"x-rapidapi-version":"1.2.7",
|
| 152 |
+
"x-ratelimit-limit":"60",
|
| 153 |
+
"x-ratelimit-remaining":"59",
|
| 154 |
+
"content-length":"3653",
|
| 155 |
+
"connection":"Close"
|
| 156 |
+
},
|
| 157 |
+
"schema":{}
|
| 158 |
+
}
|
| 159 |
+
]
|
| 160 |
+
}
|
toolbench/toolenv/tools/Monitoring/ssl_checker/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 check_ssl(source: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 10 |
+
"""
|
| 11 |
+
"Performs full check of provided SSL certificate"
|
| 12 |
+
|
| 13 |
+
"""
|
| 14 |
+
url = f"https://ssl-checker.p.rapidapi.com/check-ssl"
|
| 15 |
+
querystring = {'source': source, }
|
| 16 |
+
|
| 17 |
+
headers = {
|
| 18 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 19 |
+
"X-RapidAPI-Host": "ssl-checker.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/Monitoring/ssl_snitch.json
ADDED
|
@@ -0,0 +1,76 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"tool_name": "SSL Snitch",
|
| 3 |
+
"tool_description": "The easy way to monitor SSL certificate expirations.",
|
| 4 |
+
"title": "SSL Snitch",
|
| 5 |
+
"pricing": "FREEMIUM",
|
| 6 |
+
"score": {
|
| 7 |
+
"avgServiceLevel": 100,
|
| 8 |
+
"avgLatency": 1173,
|
| 9 |
+
"avgSuccessRate": 28,
|
| 10 |
+
"popularityScore": 2,
|
| 11 |
+
"__typename": "Score"
|
| 12 |
+
},
|
| 13 |
+
"home_url": "https://rapidapi.com/sunandmoon/api/ssl-snitch/",
|
| 14 |
+
"host": "ssl-snitch.p.rapidapi.com",
|
| 15 |
+
"api_list": [
|
| 16 |
+
{
|
| 17 |
+
"name": "Check",
|
| 18 |
+
"url": "https://ssl-snitch.p.rapidapi.com/v1/check",
|
| 19 |
+
"description": "Takes a domain name and returns SSL information. Optionally, the extend property can be set for additional information.",
|
| 20 |
+
"method": "POST",
|
| 21 |
+
"required_parameters": [],
|
| 22 |
+
"optional_parameters": [],
|
| 23 |
+
"code": "import requests\n\nurl = \"https://ssl-snitch.p.rapidapi.com/v1/check\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"ssl-snitch.p.rapidapi.com\"\n}\n\nresponse = requests.post(url, headers=headers)\n\nprint(response.json())\n",
|
| 24 |
+
"statuscode": 200,
|
| 25 |
+
"body": {
|
| 26 |
+
"key1": "value",
|
| 27 |
+
"key2": "value"
|
| 28 |
+
},
|
| 29 |
+
"headers": {},
|
| 30 |
+
"schema": {}
|
| 31 |
+
},
|
| 32 |
+
{
|
| 33 |
+
"name": "Check",
|
| 34 |
+
"url": "https://ssl-snitch.p.rapidapi.com/v1/check",
|
| 35 |
+
"description": "Takes a domain name and returns SSL information. Optionally, the extend property can be set for additional information.",
|
| 36 |
+
"method": "GET",
|
| 37 |
+
"required_parameters": [
|
| 38 |
+
{
|
| 39 |
+
"name": "domain",
|
| 40 |
+
"type": "STRING",
|
| 41 |
+
"description": "",
|
| 42 |
+
"default": "test.com"
|
| 43 |
+
}
|
| 44 |
+
],
|
| 45 |
+
"optional_parameters": [
|
| 46 |
+
{
|
| 47 |
+
"name": "extended",
|
| 48 |
+
"type": "STRING",
|
| 49 |
+
"description": "",
|
| 50 |
+
"default": "true"
|
| 51 |
+
}
|
| 52 |
+
],
|
| 53 |
+
"code": "import requests\n\nurl = \"https://ssl-snitch.p.rapidapi.com/v1/check\"\nquerystring = {\"extended\": extended, \"domain\": domain}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"ssl-snitch.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n",
|
| 54 |
+
"statuscode": 200,
|
| 55 |
+
"body": {
|
| 56 |
+
"key1": "value",
|
| 57 |
+
"key2": "value"
|
| 58 |
+
},
|
| 59 |
+
"headers": {},
|
| 60 |
+
"schema": {}
|
| 61 |
+
},
|
| 62 |
+
{
|
| 63 |
+
"name": "Check",
|
| 64 |
+
"url": "https://ssl-snitch.p.rapidapi.com/v1/check",
|
| 65 |
+
"description": "Takes a domain name and returns SSL information. Optionally, the extend property can be set for additional information.",
|
| 66 |
+
"method": "POST",
|
| 67 |
+
"required_parameters": [],
|
| 68 |
+
"optional_parameters": [],
|
| 69 |
+
"code": "import requests\n\nurl = \"https://ssl-snitch.p.rapidapi.com/v1/check\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"ssl-snitch.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
|
| 70 |
+
"convert_code": "import requests\n\nurl = \"https://ssl-snitch.p.rapidapi.com/v1/check\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"ssl-snitch.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
|
| 71 |
+
"test_endpoint": "",
|
| 72 |
+
"statuscode": 200,
|
| 73 |
+
"schema": {}
|
| 74 |
+
}
|
| 75 |
+
]
|
| 76 |
+
}
|
toolbench/toolenv/tools/Monitoring/ssl_snitch/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 check(domain: str, extended: str='true', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 10 |
+
"""
|
| 11 |
+
"Takes a domain name and returns SSL information. Optionally, the extend property can be set for additional information."
|
| 12 |
+
|
| 13 |
+
"""
|
| 14 |
+
url = f"https://ssl-snitch.p.rapidapi.com/v1/check"
|
| 15 |
+
querystring = {'domain': domain, }
|
| 16 |
+
if extended:
|
| 17 |
+
querystring['extended'] = extended
|
| 18 |
+
|
| 19 |
+
headers = {
|
| 20 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 21 |
+
"X-RapidAPI-Host": "ssl-snitch.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/Monitoring/stack_overflow_monitor.json
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"tool_name":"stack overflow monitor",
|
| 3 |
+
"tool_description":"an api retrieving the top questions from stack overflow from the home page categories, (bounty, interesting, week top), providing the question, number of answers and URL.",
|
| 4 |
+
"title":"stack overflow monitor",
|
| 5 |
+
"pricing":"FREEMIUM",
|
| 6 |
+
"score":null,
|
| 7 |
+
"home_url":"https://rapidapi.com/francoisgreeff16-Pg1uIyWnxxl/api/stack-overflow-monitor/",
|
| 8 |
+
"host":"stack-overflow-monitor.p.rapidapi.com",
|
| 9 |
+
"api_list":[
|
| 10 |
+
{
|
| 11 |
+
"name":"Get top bounty questions on stack over flow",
|
| 12 |
+
"url":"https://stack-overflow-monitor.p.rapidapi.com/bountyhunter",
|
| 13 |
+
"description":"this return the top questions under the bounty tab of stack overlfow, displaying the question the URL and the rep that can be gained if answered.",
|
| 14 |
+
"method":"GET",
|
| 15 |
+
"required_parameters":[],
|
| 16 |
+
"optional_parameters":[],
|
| 17 |
+
"code":"import requests\n\nurl = \"https://stack-overflow-monitor.p.rapidapi.com/bountyhunter\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"stack-overflow-monitor.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n",
|
| 18 |
+
"statuscode":200,
|
| 19 |
+
"body":{
|
| 20 |
+
"key1":"value",
|
| 21 |
+
"key2":"value"
|
| 22 |
+
},
|
| 23 |
+
"headers":{},
|
| 24 |
+
"schema":{}
|
| 25 |
+
},
|
| 26 |
+
{
|
| 27 |
+
"name":"get interesting questions",
|
| 28 |
+
"url":"https://stack-overflow-monitor.p.rapidapi.com/interesting",
|
| 29 |
+
"description":"this end point return the top interesting questions on stack overflow",
|
| 30 |
+
"method":"GET",
|
| 31 |
+
"required_parameters":[],
|
| 32 |
+
"optional_parameters":[],
|
| 33 |
+
"code":"import requests\n\nurl = \"https://stack-overflow-monitor.p.rapidapi.com/interesting\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"stack-overflow-monitor.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n",
|
| 34 |
+
"statuscode":200,
|
| 35 |
+
"body":{
|
| 36 |
+
"key1":"value",
|
| 37 |
+
"key2":"value"
|
| 38 |
+
},
|
| 39 |
+
"headers":{},
|
| 40 |
+
"schema":{}
|
| 41 |
+
}
|
| 42 |
+
]
|
| 43 |
+
}
|
toolbench/toolenv/tools/Monitoring/stack_overflow_monitor/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 get_top_bounty_questions_on_stack_over_flow(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 10 |
+
"""
|
| 11 |
+
"this return the top questions under the bounty tab of stack overlfow, displaying the question the URL and the rep that can be gained if answered."
|
| 12 |
+
|
| 13 |
+
"""
|
| 14 |
+
url = f"https://stack-overflow-monitor.p.rapidapi.com/bountyhunter"
|
| 15 |
+
querystring = {}
|
| 16 |
+
|
| 17 |
+
headers = {
|
| 18 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 19 |
+
"X-RapidAPI-Host": "stack-overflow-monitor.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_interesting_questions(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 31 |
+
"""
|
| 32 |
+
"this end point return the top interesting questions on stack overflow"
|
| 33 |
+
|
| 34 |
+
"""
|
| 35 |
+
url = f"https://stack-overflow-monitor.p.rapidapi.com/interesting"
|
| 36 |
+
querystring = {}
|
| 37 |
+
|
| 38 |
+
headers = {
|
| 39 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 40 |
+
"X-RapidAPI-Host": "stack-overflow-monitor.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/Monitoring/subjson/api.py
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 all_companyname(companyname: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 10 |
+
"""
|
| 11 |
+
"Brings all subdomains of selected company in JSON."
|
| 12 |
+
|
| 13 |
+
"""
|
| 14 |
+
url = f"https://subjson.p.rapidapi.com/all/{companyname}"
|
| 15 |
+
querystring = {}
|
| 16 |
+
|
| 17 |
+
headers = {
|
| 18 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 19 |
+
"X-RapidAPI-Host": "subjson.p.rapidapi.com"
|
| 20 |
+
}
|
| 21 |
+
|
| 22 |
+
|
| 23 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 24 |
+
try:
|
| 25 |
+
observation = response.json()
|
| 26 |
+
except:
|
| 27 |
+
observation = response.text
|
| 28 |
+
return observation
|
| 29 |
+
|
| 30 |
+
def all(all: str=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 31 |
+
"""
|
| 32 |
+
"Brings all companies saved to the database in JSON."
|
| 33 |
+
|
| 34 |
+
"""
|
| 35 |
+
url = f"https://subjson.p.rapidapi.com/all"
|
| 36 |
+
querystring = {}
|
| 37 |
+
if all:
|
| 38 |
+
querystring['all'] = all
|
| 39 |
+
|
| 40 |
+
headers = {
|
| 41 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 42 |
+
"X-RapidAPI-Host": "subjson.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 |
+
|
toolbench/toolenv/tools/Monitoring/temps_attente_en_agence/api.py
ADDED
|
@@ -0,0 +1,92 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 temps_d_attente_d_une_agence(idagence: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 10 |
+
"""
|
| 11 |
+
"Le temps d'attente d'une agence donnée, fournie par son id."
|
| 12 |
+
|
| 13 |
+
"""
|
| 14 |
+
url = f"https://temps-attente-en-agence.p.rapidapi.com/temps-attente/agence/{idagence}"
|
| 15 |
+
querystring = {}
|
| 16 |
+
|
| 17 |
+
headers = {
|
| 18 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 19 |
+
"X-RapidAPI-Host": "temps-attente-en-agence.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 temps_d_attente_des_agences_commune(communename: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 31 |
+
"""
|
| 32 |
+
"Temps d'attente de toutes les agences d'une commune donnée. Très pratique pour les grosses agglomérations."
|
| 33 |
+
|
| 34 |
+
"""
|
| 35 |
+
url = f"https://temps-attente-en-agence.p.rapidapi.com/temps-attente/agences/{communename}"
|
| 36 |
+
querystring = {}
|
| 37 |
+
|
| 38 |
+
headers = {
|
| 39 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 40 |
+
"X-RapidAPI-Host": "temps-attente-en-agence.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 agences(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 52 |
+
"""
|
| 53 |
+
"La liste de toutes les agences."
|
| 54 |
+
|
| 55 |
+
"""
|
| 56 |
+
url = f"https://temps-attente-en-agence.p.rapidapi.com/temps-attente/agences"
|
| 57 |
+
querystring = {}
|
| 58 |
+
|
| 59 |
+
headers = {
|
| 60 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 61 |
+
"X-RapidAPI-Host": "temps-attente-en-agence.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 communes(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 73 |
+
"""
|
| 74 |
+
"La liste des communes où sont les agences."
|
| 75 |
+
|
| 76 |
+
"""
|
| 77 |
+
url = f"https://temps-attente-en-agence.p.rapidapi.com/communes"
|
| 78 |
+
querystring = {}
|
| 79 |
+
|
| 80 |
+
headers = {
|
| 81 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 82 |
+
"X-RapidAPI-Host": "temps-attente-en-agence.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 |
+
|
toolbench/toolenv/tools/Monitoring/test/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 camera(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 10 |
+
"""
|
| 11 |
+
"test camera"
|
| 12 |
+
|
| 13 |
+
"""
|
| 14 |
+
url = f"https://test6582.p.rapidapi.com/"
|
| 15 |
+
querystring = {}
|
| 16 |
+
|
| 17 |
+
headers = {
|
| 18 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 19 |
+
"X-RapidAPI-Host": "test6582.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/Monitoring/test_v2/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 certain(newspaperid: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 10 |
+
"""
|
| 11 |
+
"Certain"
|
| 12 |
+
|
| 13 |
+
"""
|
| 14 |
+
url = f"https://test6733.p.rapidapi.com/news/{newspaperid}"
|
| 15 |
+
querystring = {}
|
| 16 |
+
|
| 17 |
+
headers = {
|
| 18 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 19 |
+
"X-RapidAPI-Host": "test6733.p.rapidapi.com"
|
| 20 |
+
}
|
| 21 |
+
|
| 22 |
+
|
| 23 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 24 |
+
try:
|
| 25 |
+
observation = response.json()
|
| 26 |
+
except:
|
| 27 |
+
observation = response.text
|
| 28 |
+
return observation
|
| 29 |
+
|
| 30 |
+
def all(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 31 |
+
"""
|
| 32 |
+
"Get all"
|
| 33 |
+
|
| 34 |
+
"""
|
| 35 |
+
url = f"https://test6733.p.rapidapi.com/news"
|
| 36 |
+
querystring = {}
|
| 37 |
+
|
| 38 |
+
headers = {
|
| 39 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 40 |
+
"X-RapidAPI-Host": "test6733.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/Monitoring/tor_exit_nodes_geolocated.json
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"tool_name":"Tor Exit Nodes Geolocated",
|
| 3 |
+
"tool_description":"This API returns the list of active Tor exit nodes geolocated to country-level along with active carrier information.",
|
| 4 |
+
"title":"Tor Exit Nodes Geolocated",
|
| 5 |
+
"pricing":"FREEMIUM",
|
| 6 |
+
"score":null,
|
| 7 |
+
"home_url":"https://rapidapi.com/bigdatacloud-pty-ltd-bigdatacloud-pty-ltd-default/api/tor-exit-nodes-geolocated/",
|
| 8 |
+
"host":"tor-exit-nodes-geolocated.p.rapidapi.com",
|
| 9 |
+
"api_list":[
|
| 10 |
+
{
|
| 11 |
+
"name":"Tor Exit Nodes Geolocated",
|
| 12 |
+
"url":"https://tor-exit-nodes-geolocated.p.rapidapi.com/data/tor-exit-nodes-list",
|
| 13 |
+
"description":"This API returns the list of active Tor exit nodes geolocated to country-level along with active carrier information.",
|
| 14 |
+
"method":"GET",
|
| 15 |
+
"required_parameters":[],
|
| 16 |
+
"optional_parameters":[
|
| 17 |
+
{
|
| 18 |
+
"name":"order",
|
| 19 |
+
"type":"STRING",
|
| 20 |
+
"description":"",
|
| 21 |
+
"default":""
|
| 22 |
+
},
|
| 23 |
+
{
|
| 24 |
+
"name":"localityLanguage",
|
| 25 |
+
"type":"STRING",
|
| 26 |
+
"description":"",
|
| 27 |
+
"default":"en"
|
| 28 |
+
},
|
| 29 |
+
{
|
| 30 |
+
"name":"offset",
|
| 31 |
+
"type":"NUMBER",
|
| 32 |
+
"description":"",
|
| 33 |
+
"default":"0"
|
| 34 |
+
},
|
| 35 |
+
{
|
| 36 |
+
"name":"sort",
|
| 37 |
+
"type":"STRING",
|
| 38 |
+
"description":"",
|
| 39 |
+
"default":""
|
| 40 |
+
},
|
| 41 |
+
{
|
| 42 |
+
"name":"batchSize",
|
| 43 |
+
"type":"NUMBER",
|
| 44 |
+
"description":"",
|
| 45 |
+
"default":"100"
|
| 46 |
+
}
|
| 47 |
+
],
|
| 48 |
+
"code":"import requests\n\nurl = \"https://tor-exit-nodes-geolocated.p.rapidapi.com/data/tor-exit-nodes-list\"\nquerystring = {\"localityLanguage\": localitylanguage, \"offset\": offset, \"batchSize\": batchsize}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"tor-exit-nodes-geolocated.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n",
|
| 49 |
+
"statuscode":111,
|
| 50 |
+
"body":"",
|
| 51 |
+
"headers":"",
|
| 52 |
+
"schema":""
|
| 53 |
+
}
|
| 54 |
+
]
|
| 55 |
+
}
|
toolbench/toolenv/tools/Monitoring/tor_exit_nodes_geolocated/api.py
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 tor_exit_nodes_geolocated(order: str=None, localitylanguage: str='en', offset: int=0, sort: str=None, batchsize: int=100, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 10 |
+
"""
|
| 11 |
+
"This API returns the list of active Tor exit nodes geolocated to country-level along with active carrier information."
|
| 12 |
+
|
| 13 |
+
"""
|
| 14 |
+
url = f"https://tor-exit-nodes-geolocated.p.rapidapi.com/data/tor-exit-nodes-list"
|
| 15 |
+
querystring = {}
|
| 16 |
+
if order:
|
| 17 |
+
querystring['order'] = order
|
| 18 |
+
if localitylanguage:
|
| 19 |
+
querystring['localityLanguage'] = localitylanguage
|
| 20 |
+
if offset:
|
| 21 |
+
querystring['offset'] = offset
|
| 22 |
+
if sort:
|
| 23 |
+
querystring['sort'] = sort
|
| 24 |
+
if batchsize:
|
| 25 |
+
querystring['batchSize'] = batchsize
|
| 26 |
+
|
| 27 |
+
headers = {
|
| 28 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 29 |
+
"X-RapidAPI-Host": "tor-exit-nodes-geolocated.p.rapidapi.com"
|
| 30 |
+
}
|
| 31 |
+
|
| 32 |
+
|
| 33 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 34 |
+
try:
|
| 35 |
+
observation = response.json()
|
| 36 |
+
except:
|
| 37 |
+
observation = response.text
|
| 38 |
+
return observation
|
| 39 |
+
|
toolbench/toolenv/tools/Monitoring/universal_easy_webhooks.json
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"product_id": "api_b540d688-f795-4d77-ae5f-8e98287497d9",
|
| 3 |
+
"tool_description": "Simplify your application by just having 1 endpoint for all types of webhooks / requests",
|
| 4 |
+
"home_url": "https://rapidapi.com/m1kx/api/universal-easy-webhooks/",
|
| 5 |
+
"name": "Universal / Easy Webhooks",
|
| 6 |
+
"title": "Universal / Easy Webhooks",
|
| 7 |
+
"pricing": "FREE",
|
| 8 |
+
"tool_name": "Universal / Easy Webhooks",
|
| 9 |
+
"score": null,
|
| 10 |
+
"host": "universal-easy-webhooks.p.rapidapi.com",
|
| 11 |
+
"api_list": [
|
| 12 |
+
{
|
| 13 |
+
"name": "Universal Webhook",
|
| 14 |
+
"url": "https://universal-easy-webhooks.p.rapidapi.com/send",
|
| 15 |
+
"description": "Easy-to-use endpoint to send the webhooks with the necessary data\nIt's easy to use and has fixed requests / responses, so you have an easy time, implementing a webhook feature.",
|
| 16 |
+
"method": "POST",
|
| 17 |
+
"required_parameters": [],
|
| 18 |
+
"optional_parameters": [],
|
| 19 |
+
"code": "import requests\n\nurl = \"https://universal-easy-webhooks.p.rapidapi.com/send\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"universal-easy-webhooks.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
|
| 20 |
+
"convert_code": "import requests\n\nurl = \"https://universal-easy-webhooks.p.rapidapi.com/send\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"universal-easy-webhooks.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
|
| 21 |
+
"test_endpoint": ""
|
| 22 |
+
}
|
| 23 |
+
]
|
| 24 |
+
}
|
toolbench/toolenv/tools/Monitoring/weather_request.json
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"tool_name":"Weather Request",
|
| 3 |
+
"tool_description":"Restful API for getting weather information, city and country name, weather type, current date and time.",
|
| 4 |
+
"title":"Weather Request",
|
| 5 |
+
"pricing":"FREE",
|
| 6 |
+
"score":{
|
| 7 |
+
"avgServiceLevel":100,
|
| 8 |
+
"avgLatency":932,
|
| 9 |
+
"avgSuccessRate":0,
|
| 10 |
+
"popularityScore":0.1,
|
| 11 |
+
"__typename":"Score"
|
| 12 |
+
},
|
| 13 |
+
"home_url":"https://rapidapi.com/andrejplavsic3-ozcdQGI7M5U/api/weather-request/",
|
| 14 |
+
"host":"weather-request.p.rapidapi.com",
|
| 15 |
+
"api_list":[
|
| 16 |
+
{
|
| 17 |
+
"name":"Single Data",
|
| 18 |
+
"url":"https://weather-request.p.rapidapi.com/weather/{city_or_country_name}",
|
| 19 |
+
"description":"Using this endpoint u can get singular data, for example: if u type /weather/Serbia , the result would be a json data that gets information about city/cities in Serbia.",
|
| 20 |
+
"method":"GET",
|
| 21 |
+
"required_parameters":[
|
| 22 |
+
{
|
| 23 |
+
"name":"city_or_country_name",
|
| 24 |
+
"type":"string",
|
| 25 |
+
"description":"",
|
| 26 |
+
"default":"Serbia"
|
| 27 |
+
}
|
| 28 |
+
],
|
| 29 |
+
"optional_parameters":[],
|
| 30 |
+
"code":"import requests\n\nurl = \"https://weather-request.p.rapidapi.com/weather/{city_or_country_name}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"weather-request.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n",
|
| 31 |
+
"statuscode":111,
|
| 32 |
+
"body":"",
|
| 33 |
+
"headers":"",
|
| 34 |
+
"schema":""
|
| 35 |
+
},
|
| 36 |
+
{
|
| 37 |
+
"name":"Weather World Wide",
|
| 38 |
+
"url":"https://weather-request.p.rapidapi.com/weather",
|
| 39 |
+
"description":"Using /weather u can get all data about weather around the globe.",
|
| 40 |
+
"method":"GET",
|
| 41 |
+
"required_parameters":[],
|
| 42 |
+
"optional_parameters":[],
|
| 43 |
+
"code":"import requests\n\nurl = \"https://weather-request.p.rapidapi.com/weather\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"weather-request.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n",
|
| 44 |
+
"statuscode":111,
|
| 45 |
+
"body":"",
|
| 46 |
+
"headers":"",
|
| 47 |
+
"schema":""
|
| 48 |
+
}
|
| 49 |
+
]
|
| 50 |
+
}
|
toolbench/toolenv/tools/Monitoring/weather_request/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 single_data(city_or_country_name: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 10 |
+
"""
|
| 11 |
+
"Using this endpoint u can get singular data, for example: if u type /weather/Serbia , the result would be a json data that gets information about city/cities in Serbia."
|
| 12 |
+
|
| 13 |
+
"""
|
| 14 |
+
url = f"https://weather-request.p.rapidapi.com/weather/{city_or_country_name}"
|
| 15 |
+
querystring = {}
|
| 16 |
+
|
| 17 |
+
headers = {
|
| 18 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 19 |
+
"X-RapidAPI-Host": "weather-request.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 weather_world_wide(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 31 |
+
"""
|
| 32 |
+
"Using /weather u can get all data about weather around the globe."
|
| 33 |
+
|
| 34 |
+
"""
|
| 35 |
+
url = f"https://weather-request.p.rapidapi.com/weather"
|
| 36 |
+
querystring = {}
|
| 37 |
+
|
| 38 |
+
headers = {
|
| 39 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 40 |
+
"X-RapidAPI-Host": "weather-request.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 |
+
|