Upload folder using huggingface_hub (part 10)
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- toolbench/toolenv/tools/Data/australia_vehicle_rego_check.json +150 -0
- toolbench/toolenv/tools/Data/australian_licence_plate_to_vin/api.py +30 -0
- toolbench/toolenv/tools/Data/australian_nsw_rego_lookup.json +32 -0
- toolbench/toolenv/tools/Data/autocomplete_india.json +176 -0
- toolbench/toolenv/tools/Data/autocomplete_india/api.py +71 -0
- toolbench/toolenv/tools/Data/autocomplete_usa.json +97 -0
- toolbench/toolenv/tools/Data/autocomplete_usa/api.py +92 -0
- toolbench/toolenv/tools/Data/autohost_threat_intelligence/api.py +260 -0
- toolbench/toolenv/tools/Data/automatic_license_plate_recognition.json +43 -0
- toolbench/toolenv/tools/Data/automatic_license_plate_recognition/api.py +29 -0
- toolbench/toolenv/tools/Data/avito_scraper.json +57 -0
- toolbench/toolenv/tools/Data/avito_scraper/api.py +50 -0
- toolbench/toolenv/tools/Data/awesome_rss.json +55 -0
- toolbench/toolenv/tools/Data/awesome_rss/api.py +61 -0
- toolbench/toolenv/tools/Data/aws_inventory/api.py +92 -0
- toolbench/toolenv/tools/Data/axesso_facebook_data_service.json +0 -0
- toolbench/toolenv/tools/Data/axesso_facebook_data_service/api.py +117 -0
- toolbench/toolenv/tools/Data/axesso_instagram_data_service.json +0 -0
- toolbench/toolenv/tools/Data/axesso_instagram_data_service/api.py +96 -0
- toolbench/toolenv/tools/Data/axie_infinity/api.py +52 -0
- toolbench/toolenv/tools/Data/azure.json +280 -0
- toolbench/toolenv/tools/Data/azure/api.py +281 -0
- toolbench/toolenv/tools/Data/azure_smartable.json +0 -0
- toolbench/toolenv/tools/Data/azure_smartable/api.py +281 -0
- toolbench/toolenv/tools/Data/background_removal_remove_background_api.json +44 -0
- toolbench/toolenv/tools/Data/backlinks_and_keywords_fetcher.json +71 -0
- toolbench/toolenv/tools/Data/barcode_lookup.json +363 -0
- toolbench/toolenv/tools/Data/barcode_lookup/api.py +49 -0
- toolbench/toolenv/tools/Data/barcodes.json +105 -0
- toolbench/toolenv/tools/Data/barcodes/api.py +36 -0
- toolbench/toolenv/tools/Data/barcodes_lookup.json +47 -0
- toolbench/toolenv/tools/Data/barcodes_lookup/api.py +36 -0
- toolbench/toolenv/tools/Data/baseconverterapi.json +76 -0
- toolbench/toolenv/tools/Data/baseconverterapi/api.py +29 -0
- toolbench/toolenv/tools/Data/bc_real_time.json +61 -0
- toolbench/toolenv/tools/Data/bc_real_time_otter_ai.json +54 -0
- toolbench/toolenv/tools/Data/bc_real_time_pipedrive_com_filtering.json +100 -0
- toolbench/toolenv/tools/Data/beautisoup_brasileira.json +149 -0
- toolbench/toolenv/tools/Data/best_backlink_checker_api.json +117 -0
- toolbench/toolenv/tools/Data/best_backlink_checker_api/api.py +113 -0
- toolbench/toolenv/tools/Data/best_web_scraping_api.json +31 -0
- toolbench/toolenv/tools/Data/best_web_scraping_api/api.py +29 -0
- toolbench/toolenv/tools/Data/bible_memory_verse_flashcard.json +533 -0
- toolbench/toolenv/tools/Data/bible_memory_verse_flashcard/api.py +292 -0
- toolbench/toolenv/tools/Data/bible_search.json +587 -0
- toolbench/toolenv/tools/Data/bible_search/api.py +235 -0
- toolbench/toolenv/tools/Data/bible_verse_of_the_day.json +30 -0
- toolbench/toolenv/tools/Data/bible_verse_of_the_day/api.py +29 -0
- toolbench/toolenv/tools/Data/bibtexsearch_com/api.py +29 -0
- toolbench/toolenv/tools/Data/bigbox.json +0 -0
toolbench/toolenv/tools/Data/australia_vehicle_rego_check.json
ADDED
|
@@ -0,0 +1,150 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"tool_name":"Australia Vehicle Rego Check",
|
| 3 |
+
"tool_description":"Check the valuation (private sale, dealer trade, dealer retail), color, body type, NVIC, make, model, year, variant, series, summary, features, transmission, engine type, engine CC, engine liters, fuel type, and cylinder of vehicles registered in Australia through Rego.",
|
| 4 |
+
"title":"Australia Vehicle Rego Check",
|
| 5 |
+
"pricing":"FREEMIUM",
|
| 6 |
+
"score":{
|
| 7 |
+
"avgServiceLevel":100,
|
| 8 |
+
"avgLatency":9447,
|
| 9 |
+
"avgSuccessRate":100,
|
| 10 |
+
"popularityScore":9.3,
|
| 11 |
+
"__typename":"Score"
|
| 12 |
+
},
|
| 13 |
+
"home_url":"https://rapidapi.com/n1gh7cyb3r/api/australia-vehicle-rego-check/",
|
| 14 |
+
"host":"australia-vehicle-rego-check.p.rapidapi.com",
|
| 15 |
+
"api_list":[
|
| 16 |
+
{
|
| 17 |
+
"name":"Check",
|
| 18 |
+
"url":"https://australia-vehicle-rego-check.p.rapidapi.com/spec/check",
|
| 19 |
+
"description":"Query vehicle information through rego and state",
|
| 20 |
+
"method":"GET",
|
| 21 |
+
"required_parameters":[
|
| 22 |
+
{
|
| 23 |
+
"name":"state",
|
| 24 |
+
"type":"STRING",
|
| 25 |
+
"description":"",
|
| 26 |
+
"default":"WA"
|
| 27 |
+
},
|
| 28 |
+
{
|
| 29 |
+
"name":"rego",
|
| 30 |
+
"type":"STRING",
|
| 31 |
+
"description":"",
|
| 32 |
+
"default":"1CMR524"
|
| 33 |
+
}
|
| 34 |
+
],
|
| 35 |
+
"optional_parameters":[],
|
| 36 |
+
"code":"import requests\n\nurl = \"https://australia-vehicle-rego-check.p.rapidapi.com/spec/check\"\nquerystring = {\"state\": state, \"rego\": rego}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"australia-vehicle-rego-check.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n",
|
| 37 |
+
"statuscode":200,
|
| 38 |
+
"body":{
|
| 39 |
+
"key1":"value",
|
| 40 |
+
"key2":"value"
|
| 41 |
+
},
|
| 42 |
+
"headers":{},
|
| 43 |
+
"schema":{
|
| 44 |
+
"type":"object",
|
| 45 |
+
"properties":{
|
| 46 |
+
"registration":{
|
| 47 |
+
"type":"object",
|
| 48 |
+
"properties":{
|
| 49 |
+
"state":{
|
| 50 |
+
"type":"string"
|
| 51 |
+
},
|
| 52 |
+
"number":{
|
| 53 |
+
"type":"string"
|
| 54 |
+
}
|
| 55 |
+
}
|
| 56 |
+
},
|
| 57 |
+
"color":{
|
| 58 |
+
"type":"string"
|
| 59 |
+
},
|
| 60 |
+
"bodyType":{
|
| 61 |
+
"type":"string"
|
| 62 |
+
},
|
| 63 |
+
"nvic":{
|
| 64 |
+
"type":"string"
|
| 65 |
+
},
|
| 66 |
+
"make":{
|
| 67 |
+
"type":"string"
|
| 68 |
+
},
|
| 69 |
+
"model":{
|
| 70 |
+
"type":"string"
|
| 71 |
+
},
|
| 72 |
+
"year":{
|
| 73 |
+
"type":"integer"
|
| 74 |
+
},
|
| 75 |
+
"variant":{
|
| 76 |
+
"type":"string"
|
| 77 |
+
},
|
| 78 |
+
"series":{
|
| 79 |
+
"type":"string"
|
| 80 |
+
},
|
| 81 |
+
"summary":{
|
| 82 |
+
"type":"string"
|
| 83 |
+
},
|
| 84 |
+
"features":{
|
| 85 |
+
"type":"array",
|
| 86 |
+
"items":{
|
| 87 |
+
"type":"string"
|
| 88 |
+
}
|
| 89 |
+
},
|
| 90 |
+
"transmission":{
|
| 91 |
+
"type":"string"
|
| 92 |
+
},
|
| 93 |
+
"engineType":{
|
| 94 |
+
"type":"string"
|
| 95 |
+
},
|
| 96 |
+
"engineCC":{
|
| 97 |
+
"type":"string"
|
| 98 |
+
},
|
| 99 |
+
"engineLitre":{
|
| 100 |
+
"type":"string"
|
| 101 |
+
},
|
| 102 |
+
"fuelType":{
|
| 103 |
+
"type":"string"
|
| 104 |
+
},
|
| 105 |
+
"cylinder":{
|
| 106 |
+
"type":"string"
|
| 107 |
+
},
|
| 108 |
+
"price":{
|
| 109 |
+
"type":"object",
|
| 110 |
+
"properties":{
|
| 111 |
+
"privateSale":{
|
| 112 |
+
"type":"object",
|
| 113 |
+
"properties":{
|
| 114 |
+
"from":{
|
| 115 |
+
"type":"integer"
|
| 116 |
+
},
|
| 117 |
+
"to":{
|
| 118 |
+
"type":"integer"
|
| 119 |
+
}
|
| 120 |
+
}
|
| 121 |
+
},
|
| 122 |
+
"dealerRetail":{
|
| 123 |
+
"type":"object",
|
| 124 |
+
"properties":{
|
| 125 |
+
"from":{
|
| 126 |
+
"type":"integer"
|
| 127 |
+
},
|
| 128 |
+
"to":{
|
| 129 |
+
"type":"integer"
|
| 130 |
+
}
|
| 131 |
+
}
|
| 132 |
+
},
|
| 133 |
+
"dealerTrade":{
|
| 134 |
+
"type":"object",
|
| 135 |
+
"properties":{
|
| 136 |
+
"from":{
|
| 137 |
+
"type":"integer"
|
| 138 |
+
},
|
| 139 |
+
"to":{
|
| 140 |
+
"type":"integer"
|
| 141 |
+
}
|
| 142 |
+
}
|
| 143 |
+
}
|
| 144 |
+
}
|
| 145 |
+
}
|
| 146 |
+
}
|
| 147 |
+
}
|
| 148 |
+
}
|
| 149 |
+
]
|
| 150 |
+
}
|
toolbench/toolenv/tools/Data/australian_licence_plate_to_vin/api.py
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import requests
|
| 2 |
+
import json
|
| 3 |
+
from datetime import date, datetime, timedelta
|
| 4 |
+
import os
|
| 5 |
+
|
| 6 |
+
from typing import Optional, Dict, Union, List
|
| 7 |
+
|
| 8 |
+
|
| 9 |
+
def australian_number_plate_to_vin(plate: str, state: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 10 |
+
"""
|
| 11 |
+
"This API get the VIN (Vehicle Identification Number) for a given number plate and state in Australia"
|
| 12 |
+
plate: Vehicle plate number (Also know as Rego number)
|
| 13 |
+
|
| 14 |
+
"""
|
| 15 |
+
url = f"https://australian-licence-plate-to-vin.p.rapidapi.com/"
|
| 16 |
+
querystring = {'plate': plate, 'state': state, }
|
| 17 |
+
|
| 18 |
+
headers = {
|
| 19 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 20 |
+
"X-RapidAPI-Host": "australian-licence-plate-to-vin.p.rapidapi.com"
|
| 21 |
+
}
|
| 22 |
+
|
| 23 |
+
|
| 24 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 25 |
+
try:
|
| 26 |
+
observation = response.json()
|
| 27 |
+
except:
|
| 28 |
+
observation = response.text
|
| 29 |
+
return observation
|
| 30 |
+
|
toolbench/toolenv/tools/Data/australian_nsw_rego_lookup.json
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"product_id": "api_a55802a3-5fbc-427e-a487-eda01ec9333f",
|
| 3 |
+
"tool_description": "Determine the vehicle details of a vehicle registered in New South Wales (Australia)",
|
| 4 |
+
"home_url": "https://rapidapi.com/appaio/api/australian-nsw-rego-lookup/",
|
| 5 |
+
"name": "Australian NSW Rego lookup",
|
| 6 |
+
"title": "Australian NSW Rego lookup",
|
| 7 |
+
"pricing": "FREEMIUM",
|
| 8 |
+
"tool_name": "Australian NSW Rego lookup",
|
| 9 |
+
"score": {
|
| 10 |
+
"avgServiceLevel": 100,
|
| 11 |
+
"avgLatency": 7932,
|
| 12 |
+
"avgSuccessRate": 100,
|
| 13 |
+
"popularityScore": 8.8,
|
| 14 |
+
"__typename": "Score"
|
| 15 |
+
},
|
| 16 |
+
"host": "australian-nsw-rego-lookup.p.rapidapi.com",
|
| 17 |
+
"api_list": [
|
| 18 |
+
{
|
| 19 |
+
"name": "NSWLambda",
|
| 20 |
+
"url": "https://australian-nsw-rego-lookup.p.rapidapi.com/NSWLambda",
|
| 21 |
+
"description": "Here you provide a rego (Vehicle registration number) of a vehicle registered in New South Wales, Australia.",
|
| 22 |
+
"method": "POST",
|
| 23 |
+
"required_parameters": [],
|
| 24 |
+
"optional_parameters": [],
|
| 25 |
+
"code": "import requests\n\nurl = \"https://australian-nsw-rego-lookup.p.rapidapi.com/NSWLambda\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"australian-nsw-rego-lookup.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
|
| 26 |
+
"convert_code": "import requests\n\nurl = \"https://australian-nsw-rego-lookup.p.rapidapi.com/NSWLambda\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"australian-nsw-rego-lookup.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
|
| 27 |
+
"test_endpoint": "",
|
| 28 |
+
"statuscode": 200,
|
| 29 |
+
"schema": {}
|
| 30 |
+
}
|
| 31 |
+
]
|
| 32 |
+
}
|
toolbench/toolenv/tools/Data/autocomplete_india.json
ADDED
|
@@ -0,0 +1,176 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"tool_name":"autocomplete india",
|
| 3 |
+
"tool_description":"Autocomplete Indian pincodes, localities, cities, states.",
|
| 4 |
+
"title":"autocomplete india",
|
| 5 |
+
"pricing":"FREEMIUM",
|
| 6 |
+
"score":{
|
| 7 |
+
"avgServiceLevel":88,
|
| 8 |
+
"avgLatency":1221,
|
| 9 |
+
"avgSuccessRate":88,
|
| 10 |
+
"popularityScore":9.6,
|
| 11 |
+
"__typename":"Score"
|
| 12 |
+
},
|
| 13 |
+
"home_url":"https://rapidapi.com/nishkam-technologies1-nishkam-technologies-default/api/autocomplete-india/",
|
| 14 |
+
"host":"autocomplete-india.p.rapidapi.com",
|
| 15 |
+
"api_list":[
|
| 16 |
+
{
|
| 17 |
+
"name":"Autocomplete Cities",
|
| 18 |
+
"url":"https://autocomplete-india.p.rapidapi.com/marketplace/autocomplete/india/cities/{city}",
|
| 19 |
+
"description":"Autocomplete Cities",
|
| 20 |
+
"method":"GET",
|
| 21 |
+
"required_parameters":[
|
| 22 |
+
{
|
| 23 |
+
"name":"city",
|
| 24 |
+
"type":"string",
|
| 25 |
+
"description":"",
|
| 26 |
+
"default":"Chenn"
|
| 27 |
+
}
|
| 28 |
+
],
|
| 29 |
+
"optional_parameters":[],
|
| 30 |
+
"code":"import requests\n\nurl = \"https://autocomplete-india.p.rapidapi.com/marketplace/autocomplete/india/cities/{city}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"autocomplete-india.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n",
|
| 31 |
+
"statuscode":200,
|
| 32 |
+
"body":{
|
| 33 |
+
"Id":"fe48f5d8-20c5-4e7a-97b0-c54e49d65c42",
|
| 34 |
+
"RequestId":null,
|
| 35 |
+
"ClientSessionId":null,
|
| 36 |
+
"StatusCode":200,
|
| 37 |
+
"Result":[
|
| 38 |
+
"Chennai, Tamil Nadu",
|
| 39 |
+
"Chennai, Telangana",
|
| 40 |
+
"Chennaraopet, Andhra Pradesh",
|
| 41 |
+
"Chennekothapalle, Andhra Pradesh",
|
| 42 |
+
"Chennur, Andhra Pradesh",
|
| 43 |
+
"Chenna Puram, Andhra Pradesh",
|
| 44 |
+
"Chenna Reddi Palle, Andhra Pradesh",
|
| 45 |
+
"Chennabyrenahalli, Karnataka",
|
| 46 |
+
"Chennaganahalli, Karnataka",
|
| 47 |
+
"Chennagiri, Tamil Nadu"
|
| 48 |
+
],
|
| 49 |
+
"MaxAllowedUsage":null,
|
| 50 |
+
"UsageStatistics":null,
|
| 51 |
+
"IsError":false,
|
| 52 |
+
"Errors":[]
|
| 53 |
+
},
|
| 54 |
+
"headers":{
|
| 55 |
+
"access-control-allow-credentials":"true",
|
| 56 |
+
"access-control-allow-origin":"*",
|
| 57 |
+
"connection":"keep-alive",
|
| 58 |
+
"content-length":"475",
|
| 59 |
+
"content-security-policy":"default-src 'self'",
|
| 60 |
+
"content-type":"application/json; charset=utf-8",
|
| 61 |
+
"date":"Sat, 30 Oct 2021 23:35:48 GMT",
|
| 62 |
+
"referrer-policy":"strict-origin-when-cross-origin",
|
| 63 |
+
"server":"RapidAPI-1.2.8",
|
| 64 |
+
"strict-transport-security":"max-age=2592000",
|
| 65 |
+
"x-content-type-options":"nosniff",
|
| 66 |
+
"x-frame-options":"DENY",
|
| 67 |
+
"x-permitted-cross-domain-policies":"none",
|
| 68 |
+
"x-rapidapi-region":"AWS - us-west-2",
|
| 69 |
+
"x-rapidapi-version":"1.2.8",
|
| 70 |
+
"x-xss-protection":"1; mode=block"
|
| 71 |
+
},
|
| 72 |
+
"schema":{}
|
| 73 |
+
},
|
| 74 |
+
{
|
| 75 |
+
"name":"Autocomplete Localities",
|
| 76 |
+
"url":"https://autocomplete-india.p.rapidapi.com/marketplace/autocomplete/india/localities/{locality}",
|
| 77 |
+
"description":"Autocomplete Localities",
|
| 78 |
+
"method":"GET",
|
| 79 |
+
"required_parameters":[
|
| 80 |
+
{
|
| 81 |
+
"name":"locality",
|
| 82 |
+
"type":"string",
|
| 83 |
+
"description":"",
|
| 84 |
+
"default":"rashtra"
|
| 85 |
+
}
|
| 86 |
+
],
|
| 87 |
+
"optional_parameters":[],
|
| 88 |
+
"code":"import requests\n\nurl = \"https://autocomplete-india.p.rapidapi.com/marketplace/autocomplete/india/localities/{locality}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"autocomplete-india.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n",
|
| 89 |
+
"statuscode":200,
|
| 90 |
+
"body":{
|
| 91 |
+
"Id":"eb425796-0cd7-45fd-931a-c6fefc0d9a61",
|
| 92 |
+
"RequestId":null,
|
| 93 |
+
"ClientSessionId":null,
|
| 94 |
+
"StatusCode":200,
|
| 95 |
+
"Result":[
|
| 96 |
+
"Rashtra Bhasha Bhavan, Pune, Maharashtra",
|
| 97 |
+
"Rashtra Bhasha Bhavan, Pune, Maharashtra - 411030",
|
| 98 |
+
"Rashtrapati Bhawan, New Delhi, Delhi - 110004"
|
| 99 |
+
],
|
| 100 |
+
"MaxAllowedUsage":null,
|
| 101 |
+
"UsageStatistics":null,
|
| 102 |
+
"IsError":false,
|
| 103 |
+
"Errors":[]
|
| 104 |
+
},
|
| 105 |
+
"headers":{
|
| 106 |
+
"access-control-allow-credentials":"true",
|
| 107 |
+
"access-control-allow-origin":"*",
|
| 108 |
+
"connection":"keep-alive",
|
| 109 |
+
"content-length":"330",
|
| 110 |
+
"content-security-policy":"default-src 'self'",
|
| 111 |
+
"content-type":"application/json; charset=utf-8",
|
| 112 |
+
"date":"Sat, 30 Oct 2021 23:27:56 GMT",
|
| 113 |
+
"referrer-policy":"strict-origin-when-cross-origin",
|
| 114 |
+
"server":"RapidAPI-1.2.8",
|
| 115 |
+
"strict-transport-security":"max-age=2592000",
|
| 116 |
+
"x-content-type-options":"nosniff",
|
| 117 |
+
"x-frame-options":"DENY",
|
| 118 |
+
"x-permitted-cross-domain-policies":"none",
|
| 119 |
+
"x-rapidapi-region":"AWS - us-west-2",
|
| 120 |
+
"x-rapidapi-version":"1.2.8",
|
| 121 |
+
"x-xss-protection":"1; mode=block"
|
| 122 |
+
},
|
| 123 |
+
"schema":{}
|
| 124 |
+
},
|
| 125 |
+
{
|
| 126 |
+
"name":"Autocomplete PinCodes",
|
| 127 |
+
"url":"https://autocomplete-india.p.rapidapi.com/marketplace/autocomplete/india/pincodes/{pincode}",
|
| 128 |
+
"description":"Autocomplete PinCodes",
|
| 129 |
+
"method":"GET",
|
| 130 |
+
"required_parameters":[
|
| 131 |
+
{
|
| 132 |
+
"name":"pincode",
|
| 133 |
+
"type":"string",
|
| 134 |
+
"description":"",
|
| 135 |
+
"default":"110001"
|
| 136 |
+
}
|
| 137 |
+
],
|
| 138 |
+
"optional_parameters":[],
|
| 139 |
+
"code":"import requests\n\nurl = \"https://autocomplete-india.p.rapidapi.com/marketplace/autocomplete/india/pincodes/{pincode}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"autocomplete-india.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n",
|
| 140 |
+
"statuscode":200,
|
| 141 |
+
"body":{
|
| 142 |
+
"Id":"1775b9a6-2c84-4a4e-8bf4-cdac151ca7cc",
|
| 143 |
+
"RequestId":null,
|
| 144 |
+
"ClientSessionId":null,
|
| 145 |
+
"StatusCode":200,
|
| 146 |
+
"Result":[
|
| 147 |
+
"110001, Central, Delhi",
|
| 148 |
+
"110001, New Delhi, Delhi"
|
| 149 |
+
],
|
| 150 |
+
"MaxAllowedUsage":null,
|
| 151 |
+
"UsageStatistics":null,
|
| 152 |
+
"IsError":false,
|
| 153 |
+
"Errors":[]
|
| 154 |
+
},
|
| 155 |
+
"headers":{
|
| 156 |
+
"access-control-allow-credentials":"true",
|
| 157 |
+
"access-control-allow-origin":"*",
|
| 158 |
+
"connection":"keep-alive",
|
| 159 |
+
"content-length":"239",
|
| 160 |
+
"content-security-policy":"default-src 'self'",
|
| 161 |
+
"content-type":"application/json; charset=utf-8",
|
| 162 |
+
"date":"Sat, 30 Oct 2021 23:20:41 GMT",
|
| 163 |
+
"referrer-policy":"strict-origin-when-cross-origin",
|
| 164 |
+
"server":"RapidAPI-1.2.8",
|
| 165 |
+
"strict-transport-security":"max-age=2592000",
|
| 166 |
+
"x-content-type-options":"nosniff",
|
| 167 |
+
"x-frame-options":"DENY",
|
| 168 |
+
"x-permitted-cross-domain-policies":"none",
|
| 169 |
+
"x-rapidapi-region":"AWS - us-west-2",
|
| 170 |
+
"x-rapidapi-version":"1.2.8",
|
| 171 |
+
"x-xss-protection":"1; mode=block"
|
| 172 |
+
},
|
| 173 |
+
"schema":{}
|
| 174 |
+
}
|
| 175 |
+
]
|
| 176 |
+
}
|
toolbench/toolenv/tools/Data/autocomplete_india/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 autocomplete_cities(city: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 10 |
+
"""
|
| 11 |
+
"Autocomplete Cities"
|
| 12 |
+
|
| 13 |
+
"""
|
| 14 |
+
url = f"https://autocomplete-india.p.rapidapi.com/marketplace/autocomplete/india/cities/{city}"
|
| 15 |
+
querystring = {}
|
| 16 |
+
|
| 17 |
+
headers = {
|
| 18 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 19 |
+
"X-RapidAPI-Host": "autocomplete-india.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 autocomplete_localities(locality: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 31 |
+
"""
|
| 32 |
+
"Autocomplete Localities"
|
| 33 |
+
|
| 34 |
+
"""
|
| 35 |
+
url = f"https://autocomplete-india.p.rapidapi.com/marketplace/autocomplete/india/localities/{locality}"
|
| 36 |
+
querystring = {}
|
| 37 |
+
|
| 38 |
+
headers = {
|
| 39 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 40 |
+
"X-RapidAPI-Host": "autocomplete-india.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 autocomplete_pincodes(pincode: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 52 |
+
"""
|
| 53 |
+
"Autocomplete PinCodes"
|
| 54 |
+
|
| 55 |
+
"""
|
| 56 |
+
url = f"https://autocomplete-india.p.rapidapi.com/marketplace/autocomplete/india/pincodes/{pincode}"
|
| 57 |
+
querystring = {}
|
| 58 |
+
|
| 59 |
+
headers = {
|
| 60 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 61 |
+
"X-RapidAPI-Host": "autocomplete-india.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/Data/autocomplete_usa.json
ADDED
|
@@ -0,0 +1,97 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"tool_name":"autocomplete usa",
|
| 3 |
+
"tool_description":"USA Address, City, Zip code - Zip4, Zip code Autocomplete",
|
| 4 |
+
"title":"autocomplete usa",
|
| 5 |
+
"pricing":"FREEMIUM",
|
| 6 |
+
"score":{
|
| 7 |
+
"avgServiceLevel":98,
|
| 8 |
+
"avgLatency":490,
|
| 9 |
+
"avgSuccessRate":98,
|
| 10 |
+
"popularityScore":9.3,
|
| 11 |
+
"__typename":"Score"
|
| 12 |
+
},
|
| 13 |
+
"home_url":"https://rapidapi.com/nishkam-technologies1-nishkam-technologies-default/api/autocomplete-usa/",
|
| 14 |
+
"host":"autocomplete-usa.p.rapidapi.com",
|
| 15 |
+
"api_list":[
|
| 16 |
+
{
|
| 17 |
+
"name":"Autocomplete Addresses",
|
| 18 |
+
"url":"https://autocomplete-usa.p.rapidapi.com/marketplace/autocomplete/usa/addresses/{address}",
|
| 19 |
+
"description":"Autocomplete USA Addresses",
|
| 20 |
+
"method":"GET",
|
| 21 |
+
"required_parameters":[
|
| 22 |
+
{
|
| 23 |
+
"name":"address",
|
| 24 |
+
"type":"string",
|
| 25 |
+
"description":"",
|
| 26 |
+
"default":"48 sunrise dr"
|
| 27 |
+
}
|
| 28 |
+
],
|
| 29 |
+
"optional_parameters":[],
|
| 30 |
+
"code":"import requests\n\nurl = \"https://autocomplete-usa.p.rapidapi.com/marketplace/autocomplete/usa/addresses/{address}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"autocomplete-usa.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":"Autocomplete Zipcodes-Zip4",
|
| 38 |
+
"url":"https://autocomplete-usa.p.rapidapi.com/marketplace/autocomplete/usa/zipcodes/{zipcode}",
|
| 39 |
+
"description":"Autocomplete USA Zipcodes-Zip4",
|
| 40 |
+
"method":"GET",
|
| 41 |
+
"required_parameters":[
|
| 42 |
+
{
|
| 43 |
+
"name":"zipcode",
|
| 44 |
+
"type":"string",
|
| 45 |
+
"description":"",
|
| 46 |
+
"default":"110"
|
| 47 |
+
}
|
| 48 |
+
],
|
| 49 |
+
"optional_parameters":[],
|
| 50 |
+
"code":"import requests\n\nurl = \"https://autocomplete-usa.p.rapidapi.com/marketplace/autocomplete/usa/zipcodes/{zipcode}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"autocomplete-usa.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n",
|
| 51 |
+
"statuscode":111,
|
| 52 |
+
"body":"",
|
| 53 |
+
"headers":"",
|
| 54 |
+
"schema":""
|
| 55 |
+
},
|
| 56 |
+
{
|
| 57 |
+
"name":"Autocomplete Zipcodes Lite",
|
| 58 |
+
"url":"https://autocomplete-usa.p.rapidapi.com/marketplace/autocomplete/usa/zipcodes/lite/{zipcode}",
|
| 59 |
+
"description":"Autocomplete USA Zipcodes Lite",
|
| 60 |
+
"method":"GET",
|
| 61 |
+
"required_parameters":[
|
| 62 |
+
{
|
| 63 |
+
"name":"zipcode",
|
| 64 |
+
"type":"string",
|
| 65 |
+
"description":"",
|
| 66 |
+
"default":"110"
|
| 67 |
+
}
|
| 68 |
+
],
|
| 69 |
+
"optional_parameters":[],
|
| 70 |
+
"code":"import requests\n\nurl = \"https://autocomplete-usa.p.rapidapi.com/marketplace/autocomplete/usa/zipcodes/lite/{zipcode}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"autocomplete-usa.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n",
|
| 71 |
+
"statuscode":111,
|
| 72 |
+
"body":"",
|
| 73 |
+
"headers":"",
|
| 74 |
+
"schema":""
|
| 75 |
+
},
|
| 76 |
+
{
|
| 77 |
+
"name":"Autocomplete Cities",
|
| 78 |
+
"url":"https://autocomplete-usa.p.rapidapi.com/marketplace/autocomplete/usa/cities/{city}",
|
| 79 |
+
"description":"Autocomplete USA Cities",
|
| 80 |
+
"method":"GET",
|
| 81 |
+
"required_parameters":[
|
| 82 |
+
{
|
| 83 |
+
"name":"city",
|
| 84 |
+
"type":"string",
|
| 85 |
+
"description":"",
|
| 86 |
+
"default":"Sacr"
|
| 87 |
+
}
|
| 88 |
+
],
|
| 89 |
+
"optional_parameters":[],
|
| 90 |
+
"code":"import requests\n\nurl = \"https://autocomplete-usa.p.rapidapi.com/marketplace/autocomplete/usa/cities/{city}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"autocomplete-usa.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n",
|
| 91 |
+
"statuscode":111,
|
| 92 |
+
"body":"",
|
| 93 |
+
"headers":"",
|
| 94 |
+
"schema":""
|
| 95 |
+
}
|
| 96 |
+
]
|
| 97 |
+
}
|
toolbench/toolenv/tools/Data/autocomplete_usa/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 autocomplete_addresses(address: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 10 |
+
"""
|
| 11 |
+
"Autocomplete USA Addresses"
|
| 12 |
+
|
| 13 |
+
"""
|
| 14 |
+
url = f"https://autocomplete-usa.p.rapidapi.com/marketplace/autocomplete/usa/addresses/{address}"
|
| 15 |
+
querystring = {}
|
| 16 |
+
|
| 17 |
+
headers = {
|
| 18 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 19 |
+
"X-RapidAPI-Host": "autocomplete-usa.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 autocomplete_zipcodes_zip4(zipcode: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 31 |
+
"""
|
| 32 |
+
"Autocomplete USA Zipcodes-Zip4"
|
| 33 |
+
|
| 34 |
+
"""
|
| 35 |
+
url = f"https://autocomplete-usa.p.rapidapi.com/marketplace/autocomplete/usa/zipcodes/{zipcode}"
|
| 36 |
+
querystring = {}
|
| 37 |
+
|
| 38 |
+
headers = {
|
| 39 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 40 |
+
"X-RapidAPI-Host": "autocomplete-usa.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 autocomplete_zipcodes_lite(zipcode: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 52 |
+
"""
|
| 53 |
+
"Autocomplete USA Zipcodes Lite"
|
| 54 |
+
|
| 55 |
+
"""
|
| 56 |
+
url = f"https://autocomplete-usa.p.rapidapi.com/marketplace/autocomplete/usa/zipcodes/lite/{zipcode}"
|
| 57 |
+
querystring = {}
|
| 58 |
+
|
| 59 |
+
headers = {
|
| 60 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 61 |
+
"X-RapidAPI-Host": "autocomplete-usa.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 autocomplete_cities(city: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 73 |
+
"""
|
| 74 |
+
"Autocomplete USA Cities"
|
| 75 |
+
|
| 76 |
+
"""
|
| 77 |
+
url = f"https://autocomplete-usa.p.rapidapi.com/marketplace/autocomplete/usa/cities/{city}"
|
| 78 |
+
querystring = {}
|
| 79 |
+
|
| 80 |
+
headers = {
|
| 81 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 82 |
+
"X-RapidAPI-Host": "autocomplete-usa.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/Data/autohost_threat_intelligence/api.py
ADDED
|
@@ -0,0 +1,260 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 lookup_address(address: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 10 |
+
"""
|
| 11 |
+
"Lookup or verify billing and shipping addresses"
|
| 12 |
+
address: Street or mailing address (URL-encoded)
|
| 13 |
+
|
| 14 |
+
"""
|
| 15 |
+
url = f"https://autohost-threat-intelligence.p.rapidapi.com/lookup/geocode/{address}"
|
| 16 |
+
querystring = {}
|
| 17 |
+
|
| 18 |
+
headers = {
|
| 19 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 20 |
+
"X-RapidAPI-Host": "autohost-threat-intelligence.p.rapidapi.com"
|
| 21 |
+
}
|
| 22 |
+
|
| 23 |
+
|
| 24 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 25 |
+
try:
|
| 26 |
+
observation = response.json()
|
| 27 |
+
except:
|
| 28 |
+
observation = response.text
|
| 29 |
+
return observation
|
| 30 |
+
|
| 31 |
+
def lookup_ip(ip: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 32 |
+
"""
|
| 33 |
+
"Lookup threat reports associated with an IP address"
|
| 34 |
+
ip: IP Address
|
| 35 |
+
|
| 36 |
+
"""
|
| 37 |
+
url = f"https://autohost-threat-intelligence.p.rapidapi.com/lookup/ip-threats/{ip}"
|
| 38 |
+
querystring = {}
|
| 39 |
+
|
| 40 |
+
headers = {
|
| 41 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 42 |
+
"X-RapidAPI-Host": "autohost-threat-intelligence.p.rapidapi.com"
|
| 43 |
+
}
|
| 44 |
+
|
| 45 |
+
|
| 46 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 47 |
+
try:
|
| 48 |
+
observation = response.json()
|
| 49 |
+
except:
|
| 50 |
+
observation = response.text
|
| 51 |
+
return observation
|
| 52 |
+
|
| 53 |
+
def lookup_geoip(ip: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 54 |
+
"""
|
| 55 |
+
"Find location details by IP address"
|
| 56 |
+
ip: IP Address
|
| 57 |
+
|
| 58 |
+
"""
|
| 59 |
+
url = f"https://autohost-threat-intelligence.p.rapidapi.com/lookup/geoip/{ip}"
|
| 60 |
+
querystring = {}
|
| 61 |
+
|
| 62 |
+
headers = {
|
| 63 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 64 |
+
"X-RapidAPI-Host": "autohost-threat-intelligence.p.rapidapi.com"
|
| 65 |
+
}
|
| 66 |
+
|
| 67 |
+
|
| 68 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 69 |
+
try:
|
| 70 |
+
observation = response.json()
|
| 71 |
+
except:
|
| 72 |
+
observation = response.text
|
| 73 |
+
return observation
|
| 74 |
+
|
| 75 |
+
def lookup_domain(domain: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 76 |
+
"""
|
| 77 |
+
"Find company details by domain"
|
| 78 |
+
domain: domain name (e.g. oracle.com)
|
| 79 |
+
|
| 80 |
+
"""
|
| 81 |
+
url = f"https://autohost-threat-intelligence.p.rapidapi.com/lookup/domain/{domain}"
|
| 82 |
+
querystring = {}
|
| 83 |
+
|
| 84 |
+
headers = {
|
| 85 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 86 |
+
"X-RapidAPI-Host": "autohost-threat-intelligence.p.rapidapi.com"
|
| 87 |
+
}
|
| 88 |
+
|
| 89 |
+
|
| 90 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 91 |
+
try:
|
| 92 |
+
observation = response.json()
|
| 93 |
+
except:
|
| 94 |
+
observation = response.text
|
| 95 |
+
return observation
|
| 96 |
+
|
| 97 |
+
def lookup_whois(domain: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 98 |
+
"""
|
| 99 |
+
"Discover who owns a domain"
|
| 100 |
+
domain: domain name (e.g. google.com)
|
| 101 |
+
|
| 102 |
+
"""
|
| 103 |
+
url = f"https://autohost-threat-intelligence.p.rapidapi.com/lookup/whois/{domain}"
|
| 104 |
+
querystring = {}
|
| 105 |
+
|
| 106 |
+
headers = {
|
| 107 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 108 |
+
"X-RapidAPI-Host": "autohost-threat-intelligence.p.rapidapi.com"
|
| 109 |
+
}
|
| 110 |
+
|
| 111 |
+
|
| 112 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 113 |
+
try:
|
| 114 |
+
observation = response.json()
|
| 115 |
+
except:
|
| 116 |
+
observation = response.text
|
| 117 |
+
return observation
|
| 118 |
+
|
| 119 |
+
def lookup_breaches(email: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 120 |
+
"""
|
| 121 |
+
"Discover how many times a user has been compromised"
|
| 122 |
+
email: URL encoded email address
|
| 123 |
+
|
| 124 |
+
"""
|
| 125 |
+
url = f"https://autohost-threat-intelligence.p.rapidapi.com/lookup/breaches/{email}"
|
| 126 |
+
querystring = {}
|
| 127 |
+
|
| 128 |
+
headers = {
|
| 129 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 130 |
+
"X-RapidAPI-Host": "autohost-threat-intelligence.p.rapidapi.com"
|
| 131 |
+
}
|
| 132 |
+
|
| 133 |
+
|
| 134 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 135 |
+
try:
|
| 136 |
+
observation = response.json()
|
| 137 |
+
except:
|
| 138 |
+
observation = response.text
|
| 139 |
+
return observation
|
| 140 |
+
|
| 141 |
+
def lookup_sexoffender(fname: str, state: str, lname: str, dob: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 142 |
+
"""
|
| 143 |
+
"Search sex offenders in the USA"
|
| 144 |
+
fname: First name
|
| 145 |
+
state: State (e.g. CA)
|
| 146 |
+
lname: Last name
|
| 147 |
+
dob: Date of birth (YYYY-MM-DD)
|
| 148 |
+
|
| 149 |
+
"""
|
| 150 |
+
url = f"https://autohost-threat-intelligence.p.rapidapi.com/lookup/sexoffender"
|
| 151 |
+
querystring = {'fname': fname, 'state': state, 'lname': lname, 'dob': dob, }
|
| 152 |
+
|
| 153 |
+
headers = {
|
| 154 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 155 |
+
"X-RapidAPI-Host": "autohost-threat-intelligence.p.rapidapi.com"
|
| 156 |
+
}
|
| 157 |
+
|
| 158 |
+
|
| 159 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 160 |
+
try:
|
| 161 |
+
observation = response.json()
|
| 162 |
+
except:
|
| 163 |
+
observation = response.text
|
| 164 |
+
return observation
|
| 165 |
+
|
| 166 |
+
def lookup_ofac(name: str, dob: str, passport_number: str=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 167 |
+
"""
|
| 168 |
+
"Search the OFAC Sanctions List by name, date of birth and aliases"
|
| 169 |
+
name: Full name or alias
|
| 170 |
+
dob: Date of birth (YYYY-MM-DD)
|
| 171 |
+
passport_number: Passport number
|
| 172 |
+
|
| 173 |
+
"""
|
| 174 |
+
url = f"https://autohost-threat-intelligence.p.rapidapi.com/lookup/ofac"
|
| 175 |
+
querystring = {'name': name, 'dob': dob, }
|
| 176 |
+
if passport_number:
|
| 177 |
+
querystring['passport_number'] = passport_number
|
| 178 |
+
|
| 179 |
+
headers = {
|
| 180 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 181 |
+
"X-RapidAPI-Host": "autohost-threat-intelligence.p.rapidapi.com"
|
| 182 |
+
}
|
| 183 |
+
|
| 184 |
+
|
| 185 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 186 |
+
try:
|
| 187 |
+
observation = response.json()
|
| 188 |
+
except:
|
| 189 |
+
observation = response.text
|
| 190 |
+
return observation
|
| 191 |
+
|
| 192 |
+
def lookup_phone(number: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 193 |
+
"""
|
| 194 |
+
"Lookup line type and carrier"
|
| 195 |
+
number: URL-encoded phone number in international format (e.g. +441234567890)
|
| 196 |
+
|
| 197 |
+
"""
|
| 198 |
+
url = f"https://autohost-threat-intelligence.p.rapidapi.com/lookup/phone/{number}"
|
| 199 |
+
querystring = {}
|
| 200 |
+
|
| 201 |
+
headers = {
|
| 202 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 203 |
+
"X-RapidAPI-Host": "autohost-threat-intelligence.p.rapidapi.com"
|
| 204 |
+
}
|
| 205 |
+
|
| 206 |
+
|
| 207 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 208 |
+
try:
|
| 209 |
+
observation = response.json()
|
| 210 |
+
except:
|
| 211 |
+
observation = response.text
|
| 212 |
+
return observation
|
| 213 |
+
|
| 214 |
+
def validate_phone(number: str, country: str='US', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 215 |
+
"""
|
| 216 |
+
"Ensure that the phone number is valid"
|
| 217 |
+
number: URL-encoded phone number in international format (e.g. +441234567890)
|
| 218 |
+
country: ISO country code (two letters)
|
| 219 |
+
|
| 220 |
+
"""
|
| 221 |
+
url = f"https://autohost-threat-intelligence.p.rapidapi.com/validate/phone/{number}"
|
| 222 |
+
querystring = {}
|
| 223 |
+
if country:
|
| 224 |
+
querystring['country'] = country
|
| 225 |
+
|
| 226 |
+
headers = {
|
| 227 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 228 |
+
"X-RapidAPI-Host": "autohost-threat-intelligence.p.rapidapi.com"
|
| 229 |
+
}
|
| 230 |
+
|
| 231 |
+
|
| 232 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 233 |
+
try:
|
| 234 |
+
observation = response.json()
|
| 235 |
+
except:
|
| 236 |
+
observation = response.text
|
| 237 |
+
return observation
|
| 238 |
+
|
| 239 |
+
def validate_email(email: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 240 |
+
"""
|
| 241 |
+
"Ensure that the email address is valid"
|
| 242 |
+
email: URL encoded email address
|
| 243 |
+
|
| 244 |
+
"""
|
| 245 |
+
url = f"https://autohost-threat-intelligence.p.rapidapi.com/validate/email/{email}"
|
| 246 |
+
querystring = {}
|
| 247 |
+
|
| 248 |
+
headers = {
|
| 249 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 250 |
+
"X-RapidAPI-Host": "autohost-threat-intelligence.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 |
+
|
toolbench/toolenv/tools/Data/automatic_license_plate_recognition.json
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"tool_name":"Automatic License Plate Recognition",
|
| 3 |
+
"tool_description":"Get a license plate number and state or region from a photo (ALPR)",
|
| 4 |
+
"title":"Automatic License Plate Recognition",
|
| 5 |
+
"pricing":"FREEMIUM",
|
| 6 |
+
"score":null,
|
| 7 |
+
"home_url":"https://rapidapi.com/mail-x4ODT3u-t/api/automatic-license-plate-recognition1/",
|
| 8 |
+
"host":"automatic-license-plate-recognition1.p.rapidapi.com",
|
| 9 |
+
"api_list":[
|
| 10 |
+
{
|
| 11 |
+
"name":"ALPR",
|
| 12 |
+
"url":"https://automatic-license-plate-recognition1.p.rapidapi.com/rapidalpr",
|
| 13 |
+
"description":"Submit a url to an image and we'll send you back the plate and state",
|
| 14 |
+
"method":"GET",
|
| 15 |
+
"required_parameters":[
|
| 16 |
+
{
|
| 17 |
+
"name":"country",
|
| 18 |
+
"type":"STRING",
|
| 19 |
+
"description":"",
|
| 20 |
+
"default":"us"
|
| 21 |
+
},
|
| 22 |
+
{
|
| 23 |
+
"name":"url",
|
| 24 |
+
"type":"STRING",
|
| 25 |
+
"description":"",
|
| 26 |
+
"default":"https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcT4N0BWjDZWzGSsEpoxyWNc6qvlKu2DJ6G1O0vuIVBTPxbpLKElJniU10n2nouTAWgxcTQsh8km&usqp=CAc"
|
| 27 |
+
},
|
| 28 |
+
{
|
| 29 |
+
"name":"type",
|
| 30 |
+
"type":"STRING",
|
| 31 |
+
"description":"",
|
| 32 |
+
"default":"url"
|
| 33 |
+
}
|
| 34 |
+
],
|
| 35 |
+
"optional_parameters":[],
|
| 36 |
+
"code":"import requests\n\nurl = \"https://automatic-license-plate-recognition1.p.rapidapi.com/rapidalpr\"\nquerystring = {\"country\": country, \"url\": url, \"type\": type}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"automatic-license-plate-recognition1.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n",
|
| 37 |
+
"statuscode":111,
|
| 38 |
+
"body":"",
|
| 39 |
+
"headers":"",
|
| 40 |
+
"schema":""
|
| 41 |
+
}
|
| 42 |
+
]
|
| 43 |
+
}
|
toolbench/toolenv/tools/Data/automatic_license_plate_recognition/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 alpr(country: str, url: str, type: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 10 |
+
"""
|
| 11 |
+
"Submit a url to an image and we'll send you back the plate and state"
|
| 12 |
+
|
| 13 |
+
"""
|
| 14 |
+
url = f"https://automatic-license-plate-recognition1.p.rapidapi.com/rapidalpr"
|
| 15 |
+
querystring = {'country': country, 'url': url, 'type': type, }
|
| 16 |
+
|
| 17 |
+
headers = {
|
| 18 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 19 |
+
"X-RapidAPI-Host": "automatic-license-plate-recognition1.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/Data/avito_scraper.json
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"tool_name":"Avito Scraper",
|
| 3 |
+
"tool_description":"API that extract data of any search on avito.ma",
|
| 4 |
+
"title":"Avito Scraper",
|
| 5 |
+
"pricing":"FREEMIUM",
|
| 6 |
+
"score":{
|
| 7 |
+
"avgServiceLevel":88,
|
| 8 |
+
"avgLatency":18904,
|
| 9 |
+
"avgSuccessRate":88,
|
| 10 |
+
"popularityScore":9.1,
|
| 11 |
+
"__typename":"Score"
|
| 12 |
+
},
|
| 13 |
+
"home_url":"https://rapidapi.com/dodocr7/api/avito-scraper/",
|
| 14 |
+
"host":"avito-scraper.p.rapidapi.com",
|
| 15 |
+
"api_list":[
|
| 16 |
+
{
|
| 17 |
+
"name":"FastSearchFull",
|
| 18 |
+
"url":"https://avito-scraper.p.rapidapi.com/",
|
| 19 |
+
"description":"this is a beta test of fast API of Full info Search",
|
| 20 |
+
"method":"GET",
|
| 21 |
+
"required_parameters":[
|
| 22 |
+
{
|
| 23 |
+
"name":"fastav",
|
| 24 |
+
"type":"STRING",
|
| 25 |
+
"description":"",
|
| 26 |
+
"default":"https://www.avito.ma/fr/maroc/jeux_vid%C3%A9o_et_consoles-%C3%A0_vendre?cities=8,5&price_min=350&price_max=1200"
|
| 27 |
+
}
|
| 28 |
+
],
|
| 29 |
+
"optional_parameters":[],
|
| 30 |
+
"code":"import requests\n\nurl = \"https://avito-scraper.p.rapidapi.com/\"\nquerystring = {\"fastav\": fastav}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"avito-scraper.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 |
+
"name":"SingleOffer",
|
| 38 |
+
"url":"https://avito-scraper.p.rapidapi.com/",
|
| 39 |
+
"description":"API that get info for a single offer",
|
| 40 |
+
"method":"GET",
|
| 41 |
+
"required_parameters":[
|
| 42 |
+
{
|
| 43 |
+
"name":"singleav",
|
| 44 |
+
"type":"STRING",
|
| 45 |
+
"description":"",
|
| 46 |
+
"default":"https://www.avito.ma/fr/autre_secteur/maisons_et_villas/Villa_OCP_4_faces_sur_550_metre_de_terrain_49107436.htm"
|
| 47 |
+
}
|
| 48 |
+
],
|
| 49 |
+
"optional_parameters":[],
|
| 50 |
+
"code":"import requests\n\nurl = \"https://avito-scraper.p.rapidapi.com/\"\nquerystring = {\"singleav\": singleav}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"avito-scraper.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n",
|
| 51 |
+
"statuscode":111,
|
| 52 |
+
"body":"",
|
| 53 |
+
"headers":"",
|
| 54 |
+
"schema":""
|
| 55 |
+
}
|
| 56 |
+
]
|
| 57 |
+
}
|
toolbench/toolenv/tools/Data/avito_scraper/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 fastsearchfull(fastav: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 10 |
+
"""
|
| 11 |
+
"this is a beta test of fast API of Full info Search"
|
| 12 |
+
|
| 13 |
+
"""
|
| 14 |
+
url = f"https://avito-scraper.p.rapidapi.com/"
|
| 15 |
+
querystring = {'fastav': fastav, }
|
| 16 |
+
|
| 17 |
+
headers = {
|
| 18 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 19 |
+
"X-RapidAPI-Host": "avito-scraper.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 singleoffer(singleav: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 31 |
+
"""
|
| 32 |
+
"API that get info for a single offer"
|
| 33 |
+
|
| 34 |
+
"""
|
| 35 |
+
url = f"https://avito-scraper.p.rapidapi.com/"
|
| 36 |
+
querystring = {'singleav': singleav, }
|
| 37 |
+
|
| 38 |
+
headers = {
|
| 39 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 40 |
+
"X-RapidAPI-Host": "avito-scraper.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/Data/awesome_rss.json
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"product_id": "api_f1ab1326-1764-45e2-99e6-d89016732c30",
|
| 3 |
+
"tool_description": "Generating RSS is super easy",
|
| 4 |
+
"home_url": "https://rapidapi.com/awesomerssservice/api/awesome-rss/",
|
| 5 |
+
"name": "Awesome RSS",
|
| 6 |
+
"title": "Awesome RSS",
|
| 7 |
+
"pricing": "FREE",
|
| 8 |
+
"tool_name": "Awesome RSS",
|
| 9 |
+
"score": {
|
| 10 |
+
"avgServiceLevel": 100,
|
| 11 |
+
"avgLatency": 1409,
|
| 12 |
+
"avgSuccessRate": 67,
|
| 13 |
+
"popularityScore": 6.2,
|
| 14 |
+
"__typename": "Score"
|
| 15 |
+
},
|
| 16 |
+
"host": "awesome-rss.p.rapidapi.com",
|
| 17 |
+
"api_list": [
|
| 18 |
+
{
|
| 19 |
+
"name": "/v1/feeds",
|
| 20 |
+
"url": "https://awesome-rss.p.rapidapi.com/v1/feeds",
|
| 21 |
+
"description": "List your current RSS",
|
| 22 |
+
"method": "GET",
|
| 23 |
+
"required_parameters": [],
|
| 24 |
+
"optional_parameters": [],
|
| 25 |
+
"code": "import requests\n\nurl = \"https://awesome-rss.p.rapidapi.com/v1/feeds\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"awesome-rss.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n",
|
| 26 |
+
"convert_code": "import requests\n\nurl = \"https://awesome-rss.p.rapidapi.com/v1/feeds\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"awesome-rss.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n",
|
| 27 |
+
"test_endpoint": [],
|
| 28 |
+
"statuscode": 200,
|
| 29 |
+
"schema": {
|
| 30 |
+
"type": "array"
|
| 31 |
+
}
|
| 32 |
+
},
|
| 33 |
+
{
|
| 34 |
+
"name": "/v1/{feedId}",
|
| 35 |
+
"url": "https://awesome-rss.p.rapidapi.com/v1/demo",
|
| 36 |
+
"description": "Get RSS content\n\n**If you use an RSS reader**\n\nIf you use RapidAPI, you will need to include two header parameters, *X-RapidAPI-Key* and *X-RapidAPI-Host*.\n\nI know this may not be friendly to RSS readers, so I suggest you use `https://awesome-rss.cys.fyi/api/v1/{feedId}` instead to get your content. Then add the link to your reader.\n",
|
| 37 |
+
"method": "GET",
|
| 38 |
+
"required_parameters": [
|
| 39 |
+
{
|
| 40 |
+
"name": "feedId",
|
| 41 |
+
"type": "STRING",
|
| 42 |
+
"description": "FeedID will be converted to slugs, e.g. foo_bar > foo-bar.\n\nEach user can generate 5 RSS, and each RSS can have up to 20 items.\n",
|
| 43 |
+
"default": "demo"
|
| 44 |
+
}
|
| 45 |
+
],
|
| 46 |
+
"optional_parameters": [],
|
| 47 |
+
"code": "import requests\n\nurl = \"https://awesome-rss.p.rapidapi.com/v1/demo\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"awesome-rss.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n",
|
| 48 |
+
"convert_code": "import requests\n\nurl = \"https://awesome-rss.p.rapidapi.com/v1/{feedid}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"awesome-rss.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n",
|
| 49 |
+
"test_endpoint": "",
|
| 50 |
+
"statuscode": 200,
|
| 51 |
+
"schema": {}
|
| 52 |
+
}
|
| 53 |
+
],
|
| 54 |
+
"standardized_name": "awesome_rss"
|
| 55 |
+
}
|
toolbench/toolenv/tools/Data/awesome_rss/api.py
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 v1_feeds(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 10 |
+
"""
|
| 11 |
+
"List your current RSS"
|
| 12 |
+
|
| 13 |
+
"""
|
| 14 |
+
url = f"https://awesome-rss.p.rapidapi.com/v1/feeds"
|
| 15 |
+
querystring = {}
|
| 16 |
+
|
| 17 |
+
headers = {
|
| 18 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 19 |
+
"X-RapidAPI-Host": "awesome-rss.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 v1_feedid(feedid: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 31 |
+
"""
|
| 32 |
+
"Get RSS content
|
| 33 |
+
|
| 34 |
+
**If you use an RSS reader**
|
| 35 |
+
|
| 36 |
+
If you use RapidAPI, you will need to include two header parameters, *X-RapidAPI-Key* and *X-RapidAPI-Host*.
|
| 37 |
+
|
| 38 |
+
I know this may not be friendly to RSS readers, so I suggest you use `https://awesome-rss.cys.fyi/api/v1/{feedId}` instead to get your content. Then add the link to your reader.
|
| 39 |
+
"
|
| 40 |
+
feedid: FeedID will be converted to slugs, e.g. foo_bar > foo-bar.
|
| 41 |
+
|
| 42 |
+
Each user can generate 5 RSS, and each RSS can have up to 20 items.
|
| 43 |
+
|
| 44 |
+
|
| 45 |
+
"""
|
| 46 |
+
url = f"https://awesome-rss.p.rapidapi.com/v1/{feedid}"
|
| 47 |
+
querystring = {}
|
| 48 |
+
|
| 49 |
+
headers = {
|
| 50 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 51 |
+
"X-RapidAPI-Host": "awesome-rss.p.rapidapi.com"
|
| 52 |
+
}
|
| 53 |
+
|
| 54 |
+
|
| 55 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 56 |
+
try:
|
| 57 |
+
observation = response.json()
|
| 58 |
+
except:
|
| 59 |
+
observation = response.text
|
| 60 |
+
return observation
|
| 61 |
+
|
toolbench/toolenv/tools/Data/aws_inventory/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 scan_account(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 10 |
+
"""
|
| 11 |
+
"Scan AWS account"
|
| 12 |
+
|
| 13 |
+
"""
|
| 14 |
+
url = f"https://aws-inventory1.p.rapidapi.com/scan/"
|
| 15 |
+
querystring = {}
|
| 16 |
+
|
| 17 |
+
headers = {
|
| 18 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 19 |
+
"X-RapidAPI-Host": "aws-inventory1.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 report(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 31 |
+
"""
|
| 32 |
+
"Get the report of all resources"
|
| 33 |
+
|
| 34 |
+
"""
|
| 35 |
+
url = f"https://aws-inventory1.p.rapidapi.com/report/"
|
| 36 |
+
querystring = {}
|
| 37 |
+
|
| 38 |
+
headers = {
|
| 39 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 40 |
+
"X-RapidAPI-Host": "aws-inventory1.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 status(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 52 |
+
"""
|
| 53 |
+
"Check the status of your data"
|
| 54 |
+
|
| 55 |
+
"""
|
| 56 |
+
url = f"https://aws-inventory1.p.rapidapi.com/status/"
|
| 57 |
+
querystring = {}
|
| 58 |
+
|
| 59 |
+
headers = {
|
| 60 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 61 |
+
"X-RapidAPI-Host": "aws-inventory1.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_settings(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 73 |
+
"""
|
| 74 |
+
"Get configured IAM Role using which your AWS account would be scanned."
|
| 75 |
+
|
| 76 |
+
"""
|
| 77 |
+
url = f"https://aws-inventory1.p.rapidapi.com/settings/"
|
| 78 |
+
querystring = {}
|
| 79 |
+
|
| 80 |
+
headers = {
|
| 81 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 82 |
+
"X-RapidAPI-Host": "aws-inventory1.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/Data/axesso_facebook_data_service.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
toolbench/toolenv/tools/Data/axesso_facebook_data_service/api.py
ADDED
|
@@ -0,0 +1,117 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 page_info(url: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 10 |
+
"""
|
| 11 |
+
"Fetch information for a page like followers and many more"
|
| 12 |
+
|
| 13 |
+
"""
|
| 14 |
+
url = f"https://axesso-facebook-data-service.p.rapidapi.com/fba/facebook-page-info"
|
| 15 |
+
querystring = {'url': url, }
|
| 16 |
+
|
| 17 |
+
headers = {
|
| 18 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 19 |
+
"X-RapidAPI-Host": "axesso-facebook-data-service.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 post_details(url: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 31 |
+
"""
|
| 32 |
+
"Fetch post details for a single post"
|
| 33 |
+
|
| 34 |
+
"""
|
| 35 |
+
url = f"https://axesso-facebook-data-service.p.rapidapi.com/fba/facebook-post-details"
|
| 36 |
+
querystring = {'url': url, }
|
| 37 |
+
|
| 38 |
+
headers = {
|
| 39 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 40 |
+
"X-RapidAPI-Host": "axesso-facebook-data-service.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 comments(feedbackid: str, after: str=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 52 |
+
"""
|
| 53 |
+
"Fetch comments for a given feedbackId (returned in the post endpoint). For pagination the optional query parameter "after" can be used by including "comments.data.feedback.page_info.end_cursor" from the previous response."
|
| 54 |
+
|
| 55 |
+
"""
|
| 56 |
+
url = f"https://axesso-facebook-data-service.p.rapidapi.com/fba/facebook-lookup-comments"
|
| 57 |
+
querystring = {'feedbackId': feedbackid, }
|
| 58 |
+
if after:
|
| 59 |
+
querystring['after'] = after
|
| 60 |
+
|
| 61 |
+
headers = {
|
| 62 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 63 |
+
"X-RapidAPI-Host": "axesso-facebook-data-service.p.rapidapi.com"
|
| 64 |
+
}
|
| 65 |
+
|
| 66 |
+
|
| 67 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 68 |
+
try:
|
| 69 |
+
observation = response.json()
|
| 70 |
+
except:
|
| 71 |
+
observation = response.text
|
| 72 |
+
return observation
|
| 73 |
+
|
| 74 |
+
def replies(feedbackid: str, after: str='AQHRl0f7W-KIrlyf4-BzIsbPy7f8d8Rqo569GZjNdn5Gi-F1IpuGuxEAP2daHDv_o4BjQQU1iXqraP3hNj1lKbpn8w', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 75 |
+
"""
|
| 76 |
+
"Fetch comments for for given feedbackId which is located in "data.feedback.display_comments.edges.node.feedback.id" in the post or comments endpoint. For pagination the optional query parameter "after" can be used by including "comments.data.feedback.page_info.end_cursor" from the revious response."
|
| 77 |
+
|
| 78 |
+
"""
|
| 79 |
+
url = f"https://axesso-facebook-data-service.p.rapidapi.com/fba/facebook-lookup-comments"
|
| 80 |
+
querystring = {'feedbackId': feedbackid, }
|
| 81 |
+
if after:
|
| 82 |
+
querystring['after'] = after
|
| 83 |
+
|
| 84 |
+
headers = {
|
| 85 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 86 |
+
"X-RapidAPI-Host": "axesso-facebook-data-service.p.rapidapi.com"
|
| 87 |
+
}
|
| 88 |
+
|
| 89 |
+
|
| 90 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 91 |
+
try:
|
| 92 |
+
observation = response.json()
|
| 93 |
+
except:
|
| 94 |
+
observation = response.text
|
| 95 |
+
return observation
|
| 96 |
+
|
| 97 |
+
def posts(url: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 98 |
+
"""
|
| 99 |
+
"Query posts by providing url e.g. https://www.facebook.com/longhornsteakhouse/posts/. In the response the field "nextUrl" have to passed to the next request to fetch the next posts."
|
| 100 |
+
|
| 101 |
+
"""
|
| 102 |
+
url = f"https://axesso-facebook-data-service.p.rapidapi.com/fba/facebook-lookup-posts"
|
| 103 |
+
querystring = {'url': url, }
|
| 104 |
+
|
| 105 |
+
headers = {
|
| 106 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 107 |
+
"X-RapidAPI-Host": "axesso-facebook-data-service.p.rapidapi.com"
|
| 108 |
+
}
|
| 109 |
+
|
| 110 |
+
|
| 111 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 112 |
+
try:
|
| 113 |
+
observation = response.json()
|
| 114 |
+
except:
|
| 115 |
+
observation = response.text
|
| 116 |
+
return observation
|
| 117 |
+
|
toolbench/toolenv/tools/Data/axesso_instagram_data_service.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
toolbench/toolenv/tools/Data/axesso_instagram_data_service/api.py
ADDED
|
@@ -0,0 +1,96 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import requests
|
| 2 |
+
import json
|
| 3 |
+
from datetime import date, datetime, timedelta
|
| 4 |
+
import os
|
| 5 |
+
|
| 6 |
+
from typing import Optional, Dict, Union, List
|
| 7 |
+
|
| 8 |
+
|
| 9 |
+
def comments(shortcode: str, after: str=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 10 |
+
"""
|
| 11 |
+
"Fetch comments for a given post. Therefore the shortcode needs to be passed which is returned in the "node" array from posts endpoint. If in the first response "data.shortcode_media.edge_media_to_parent_comment.page_info.has_next_page" equals true, then more comments exists and it can be fetched by passing "data.shortcode_media.edge_media_to_parent_comment.page_info.end_cursor" to the after param in the next request."
|
| 12 |
+
|
| 13 |
+
"""
|
| 14 |
+
url = f"https://axesso-instagram-data-service1.p.rapidapi.com/ins/instagram-lookup-comments"
|
| 15 |
+
querystring = {'shortCode': shortcode, }
|
| 16 |
+
if after:
|
| 17 |
+
querystring['after'] = after
|
| 18 |
+
|
| 19 |
+
headers = {
|
| 20 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 21 |
+
"X-RapidAPI-Host": "axesso-instagram-data-service1.p.rapidapi.com"
|
| 22 |
+
}
|
| 23 |
+
|
| 24 |
+
|
| 25 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 26 |
+
try:
|
| 27 |
+
observation = response.json()
|
| 28 |
+
except:
|
| 29 |
+
observation = response.text
|
| 30 |
+
return observation
|
| 31 |
+
|
| 32 |
+
def accountinfo(url: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 33 |
+
"""
|
| 34 |
+
"Fetch data for a give account. The response includes the field "id which is required for further requests e.g. posts, comments and replies and needs to be passed to query param userId. This endpoint needs the sessionid to work."
|
| 35 |
+
|
| 36 |
+
"""
|
| 37 |
+
url = f"https://axesso-instagram-data-service1.p.rapidapi.com/ins/instagram-account-info"
|
| 38 |
+
querystring = {'url': url, }
|
| 39 |
+
|
| 40 |
+
headers = {
|
| 41 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 42 |
+
"X-RapidAPI-Host": "axesso-instagram-data-service1.p.rapidapi.com"
|
| 43 |
+
}
|
| 44 |
+
|
| 45 |
+
|
| 46 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 47 |
+
try:
|
| 48 |
+
observation = response.json()
|
| 49 |
+
except:
|
| 50 |
+
observation = response.text
|
| 51 |
+
return observation
|
| 52 |
+
|
| 53 |
+
def posts(userid: str, after: str=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 54 |
+
"""
|
| 55 |
+
"Get posts for a give user. This endpoints needs the userid which can be obtained from the account-info endpoint. For pagination the field data.user.edge_owner_to_timeline_media.page_info.end_cursor from the response needs to be passed to after param in the next request."
|
| 56 |
+
|
| 57 |
+
"""
|
| 58 |
+
url = f"https://axesso-instagram-data-service1.p.rapidapi.com/ins/instagram-lookup-posts"
|
| 59 |
+
querystring = {'userId': userid, }
|
| 60 |
+
if after:
|
| 61 |
+
querystring['after'] = after
|
| 62 |
+
|
| 63 |
+
headers = {
|
| 64 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 65 |
+
"X-RapidAPI-Host": "axesso-instagram-data-service1.p.rapidapi.com"
|
| 66 |
+
}
|
| 67 |
+
|
| 68 |
+
|
| 69 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 70 |
+
try:
|
| 71 |
+
observation = response.json()
|
| 72 |
+
except:
|
| 73 |
+
observation = response.text
|
| 74 |
+
return observation
|
| 75 |
+
|
| 76 |
+
def replies(after: str, commentid: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 77 |
+
"""
|
| 78 |
+
"Fetch replies for a given commentId. CommentId can be obtained from the comments endpoint response in field node.id. Also the field edge_threaded_comments.page_info.end_cursor needs to be passed for the given comment which can also be found in the response from the comments endpoint."
|
| 79 |
+
|
| 80 |
+
"""
|
| 81 |
+
url = f"https://axesso-instagram-data-service1.p.rapidapi.com/ins/instagram-lookup-replies"
|
| 82 |
+
querystring = {'after': after, 'commentId': commentid, }
|
| 83 |
+
|
| 84 |
+
headers = {
|
| 85 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 86 |
+
"X-RapidAPI-Host": "axesso-instagram-data-service1.p.rapidapi.com"
|
| 87 |
+
}
|
| 88 |
+
|
| 89 |
+
|
| 90 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 91 |
+
try:
|
| 92 |
+
observation = response.json()
|
| 93 |
+
except:
|
| 94 |
+
observation = response.text
|
| 95 |
+
return observation
|
| 96 |
+
|
toolbench/toolenv/tools/Data/axie_infinity/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 get_axie_details_of_an_account(is_id: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 10 |
+
"""
|
| 11 |
+
"This is to get list of axies of an account. It includes picture of the axie and its skills and more information. Add address
|
| 12 |
+
|
| 13 |
+
0x7bad5c65f2e2c53e65a5c32d330c070c337ce066"
|
| 14 |
+
|
| 15 |
+
"""
|
| 16 |
+
url = f"https://axie-infinity.p.rapidapi.com/axie/get-axies/{is_id}"
|
| 17 |
+
querystring = {}
|
| 18 |
+
|
| 19 |
+
headers = {
|
| 20 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 21 |
+
"X-RapidAPI-Host": "axie-infinity.p.rapidapi.com"
|
| 22 |
+
}
|
| 23 |
+
|
| 24 |
+
|
| 25 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 26 |
+
try:
|
| 27 |
+
observation = response.json()
|
| 28 |
+
except:
|
| 29 |
+
observation = response.text
|
| 30 |
+
return observation
|
| 31 |
+
|
| 32 |
+
def get_adventure_slp_mmr_total_slp_v2(is_id: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 33 |
+
"""
|
| 34 |
+
"add ronin address 0x26d252724d08a30151ab5c87bd6b4fb5eadb1500"
|
| 35 |
+
|
| 36 |
+
"""
|
| 37 |
+
url = f"https://axie-infinity.p.rapidapi.com/axie/get-update/{is_id}"
|
| 38 |
+
querystring = {}
|
| 39 |
+
|
| 40 |
+
headers = {
|
| 41 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 42 |
+
"X-RapidAPI-Host": "axie-infinity.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/Data/azure.json
ADDED
|
@@ -0,0 +1,280 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"tool_name":"Azure",
|
| 3 |
+
"tool_description":"The Azure Every Day API offers the Microsoft Azure news, learning resources, events, influencers and other information.",
|
| 4 |
+
"title":"Azure",
|
| 5 |
+
"pricing":"FREEMIUM",
|
| 6 |
+
"score":{
|
| 7 |
+
"avgServiceLevel":100,
|
| 8 |
+
"avgLatency":208,
|
| 9 |
+
"avgSuccessRate":94,
|
| 10 |
+
"popularityScore":9.4,
|
| 11 |
+
"__typename":"Score"
|
| 12 |
+
},
|
| 13 |
+
"home_url":"https://rapidapi.com/everyday/api/azure3/",
|
| 14 |
+
"host":"azure3.p.rapidapi.com",
|
| 15 |
+
"api_list":[
|
| 16 |
+
{
|
| 17 |
+
"name":"GetNews",
|
| 18 |
+
"url":"https://azure3.p.rapidapi.com/news/page/{page}/",
|
| 19 |
+
"description":"Get Azure news",
|
| 20 |
+
"method":"GET",
|
| 21 |
+
"required_parameters":[
|
| 22 |
+
{
|
| 23 |
+
"name":"page",
|
| 24 |
+
"type":"NUMBER",
|
| 25 |
+
"description":"",
|
| 26 |
+
"default":"1"
|
| 27 |
+
}
|
| 28 |
+
],
|
| 29 |
+
"optional_parameters":[],
|
| 30 |
+
"code":"import requests\n\nurl = \"https://azure3.p.rapidapi.com/news/page/{page}/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"azure3.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":"GetNewsByTopic",
|
| 38 |
+
"url":"https://azure3.p.rapidapi.com/news/{topic}/page/{page}/",
|
| 39 |
+
"description":"Get Azure news by topic.",
|
| 40 |
+
"method":"GET",
|
| 41 |
+
"required_parameters":[
|
| 42 |
+
{
|
| 43 |
+
"name":"topic",
|
| 44 |
+
"type":"string",
|
| 45 |
+
"description":"",
|
| 46 |
+
"default":"compute"
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"name":"page",
|
| 50 |
+
"type":"NUMBER",
|
| 51 |
+
"description":"",
|
| 52 |
+
"default":"1"
|
| 53 |
+
}
|
| 54 |
+
],
|
| 55 |
+
"optional_parameters":[],
|
| 56 |
+
"code":"import requests\n\nurl = \"https://azure3.p.rapidapi.com/news/{topic}/page/{page}/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"azure3.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n",
|
| 57 |
+
"statuscode":111,
|
| 58 |
+
"body":"",
|
| 59 |
+
"headers":"",
|
| 60 |
+
"schema":""
|
| 61 |
+
},
|
| 62 |
+
{
|
| 63 |
+
"name":"GetLearningResources",
|
| 64 |
+
"url":"https://azure3.p.rapidapi.com/learning/page/{page}/",
|
| 65 |
+
"description":"Get Azure learning resources",
|
| 66 |
+
"method":"GET",
|
| 67 |
+
"required_parameters":[
|
| 68 |
+
{
|
| 69 |
+
"name":"page",
|
| 70 |
+
"type":"NUMBER",
|
| 71 |
+
"description":"",
|
| 72 |
+
"default":"1"
|
| 73 |
+
}
|
| 74 |
+
],
|
| 75 |
+
"optional_parameters":[],
|
| 76 |
+
"code":"import requests\n\nurl = \"https://azure3.p.rapidapi.com/learning/page/{page}/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"azure3.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n",
|
| 77 |
+
"statuscode":111,
|
| 78 |
+
"body":"",
|
| 79 |
+
"headers":"",
|
| 80 |
+
"schema":""
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"name":"GetLearningResourcesByTopic",
|
| 84 |
+
"url":"https://azure3.p.rapidapi.com/learning/{topic}/page/{page}/",
|
| 85 |
+
"description":"Get Azure learning resources by topic.",
|
| 86 |
+
"method":"GET",
|
| 87 |
+
"required_parameters":[
|
| 88 |
+
{
|
| 89 |
+
"name":"topic",
|
| 90 |
+
"type":"string",
|
| 91 |
+
"description":"",
|
| 92 |
+
"default":"compute"
|
| 93 |
+
},
|
| 94 |
+
{
|
| 95 |
+
"name":"page",
|
| 96 |
+
"type":"NUMBER",
|
| 97 |
+
"description":"",
|
| 98 |
+
"default":"1"
|
| 99 |
+
}
|
| 100 |
+
],
|
| 101 |
+
"optional_parameters":[],
|
| 102 |
+
"code":"import requests\n\nurl = \"https://azure3.p.rapidapi.com/learning/{topic}/page/{page}/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"azure3.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n",
|
| 103 |
+
"statuscode":111,
|
| 104 |
+
"body":"",
|
| 105 |
+
"headers":"",
|
| 106 |
+
"schema":""
|
| 107 |
+
},
|
| 108 |
+
{
|
| 109 |
+
"name":"GetPastEvents",
|
| 110 |
+
"url":"https://azure3.p.rapidapi.com/events/past/page/{page}/",
|
| 111 |
+
"description":"Get past Azure events.",
|
| 112 |
+
"method":"GET",
|
| 113 |
+
"required_parameters":[
|
| 114 |
+
{
|
| 115 |
+
"name":"page",
|
| 116 |
+
"type":"NUMBER",
|
| 117 |
+
"description":"",
|
| 118 |
+
"default":"1"
|
| 119 |
+
}
|
| 120 |
+
],
|
| 121 |
+
"optional_parameters":[],
|
| 122 |
+
"code":"import requests\n\nurl = \"https://azure3.p.rapidapi.com/events/past/page/{page}/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"azure3.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n",
|
| 123 |
+
"statuscode":111,
|
| 124 |
+
"body":"",
|
| 125 |
+
"headers":"",
|
| 126 |
+
"schema":""
|
| 127 |
+
},
|
| 128 |
+
{
|
| 129 |
+
"name":"GetFutureEvents",
|
| 130 |
+
"url":"https://azure3.p.rapidapi.com/events/future/page/{page}/",
|
| 131 |
+
"description":"Get future Azure events.",
|
| 132 |
+
"method":"GET",
|
| 133 |
+
"required_parameters":[
|
| 134 |
+
{
|
| 135 |
+
"name":"page",
|
| 136 |
+
"type":"NUMBER",
|
| 137 |
+
"description":"",
|
| 138 |
+
"default":"1"
|
| 139 |
+
}
|
| 140 |
+
],
|
| 141 |
+
"optional_parameters":[],
|
| 142 |
+
"code":"import requests\n\nurl = \"https://azure3.p.rapidapi.com/events/future/page/{page}/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"azure3.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n",
|
| 143 |
+
"statuscode":111,
|
| 144 |
+
"body":"",
|
| 145 |
+
"headers":"",
|
| 146 |
+
"schema":""
|
| 147 |
+
},
|
| 148 |
+
{
|
| 149 |
+
"name":"GetEvents",
|
| 150 |
+
"url":"https://azure3.p.rapidapi.com/events/page/{page}/",
|
| 151 |
+
"description":"Get Azure events.",
|
| 152 |
+
"method":"GET",
|
| 153 |
+
"required_parameters":[
|
| 154 |
+
{
|
| 155 |
+
"name":"page",
|
| 156 |
+
"type":"NUMBER",
|
| 157 |
+
"description":"",
|
| 158 |
+
"default":"1"
|
| 159 |
+
}
|
| 160 |
+
],
|
| 161 |
+
"optional_parameters":[],
|
| 162 |
+
"code":"import requests\n\nurl = \"https://azure3.p.rapidapi.com/events/page/{page}/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"azure3.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n",
|
| 163 |
+
"statuscode":111,
|
| 164 |
+
"body":"",
|
| 165 |
+
"headers":"",
|
| 166 |
+
"schema":""
|
| 167 |
+
},
|
| 168 |
+
{
|
| 169 |
+
"name":"GetFutureEventsByTopic",
|
| 170 |
+
"url":"https://azure3.p.rapidapi.com/events/future/{topic}/page/{page}/",
|
| 171 |
+
"description":"Get future Azure events by topic.",
|
| 172 |
+
"method":"GET",
|
| 173 |
+
"required_parameters":[
|
| 174 |
+
{
|
| 175 |
+
"name":"topic",
|
| 176 |
+
"type":"string",
|
| 177 |
+
"description":"",
|
| 178 |
+
"default":"compute"
|
| 179 |
+
},
|
| 180 |
+
{
|
| 181 |
+
"name":"page",
|
| 182 |
+
"type":"NUMBER",
|
| 183 |
+
"description":"",
|
| 184 |
+
"default":"1"
|
| 185 |
+
}
|
| 186 |
+
],
|
| 187 |
+
"optional_parameters":[],
|
| 188 |
+
"code":"import requests\n\nurl = \"https://azure3.p.rapidapi.com/events/future/{topic}/page/{page}/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"azure3.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n",
|
| 189 |
+
"statuscode":111,
|
| 190 |
+
"body":"",
|
| 191 |
+
"headers":"",
|
| 192 |
+
"schema":""
|
| 193 |
+
},
|
| 194 |
+
{
|
| 195 |
+
"name":"GetPeople",
|
| 196 |
+
"url":"https://azure3.p.rapidapi.com/people/page/{page}/",
|
| 197 |
+
"description":"Get Azure influencers.",
|
| 198 |
+
"method":"GET",
|
| 199 |
+
"required_parameters":[
|
| 200 |
+
{
|
| 201 |
+
"name":"page",
|
| 202 |
+
"type":"NUMBER",
|
| 203 |
+
"description":"",
|
| 204 |
+
"default":"1"
|
| 205 |
+
}
|
| 206 |
+
],
|
| 207 |
+
"optional_parameters":[],
|
| 208 |
+
"code":"import requests\n\nurl = \"https://azure3.p.rapidapi.com/people/page/{page}/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"azure3.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n",
|
| 209 |
+
"statuscode":111,
|
| 210 |
+
"body":"",
|
| 211 |
+
"headers":"",
|
| 212 |
+
"schema":""
|
| 213 |
+
},
|
| 214 |
+
{
|
| 215 |
+
"name":"GetPeopleByTopic",
|
| 216 |
+
"url":"https://azure3.p.rapidapi.com/people/{topic}/page/{page}/",
|
| 217 |
+
"description":"Get Azure influencers by topic.",
|
| 218 |
+
"method":"GET",
|
| 219 |
+
"required_parameters":[
|
| 220 |
+
{
|
| 221 |
+
"name":"topic",
|
| 222 |
+
"type":"string",
|
| 223 |
+
"description":"",
|
| 224 |
+
"default":"compute"
|
| 225 |
+
},
|
| 226 |
+
{
|
| 227 |
+
"name":"page",
|
| 228 |
+
"type":"NUMBER",
|
| 229 |
+
"description":"",
|
| 230 |
+
"default":"1"
|
| 231 |
+
}
|
| 232 |
+
],
|
| 233 |
+
"optional_parameters":[],
|
| 234 |
+
"code":"import requests\n\nurl = \"https://azure3.p.rapidapi.com/people/{topic}/page/{page}/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"azure3.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n",
|
| 235 |
+
"statuscode":111,
|
| 236 |
+
"body":"",
|
| 237 |
+
"headers":"",
|
| 238 |
+
"schema":""
|
| 239 |
+
},
|
| 240 |
+
{
|
| 241 |
+
"name":"GetSponsorships",
|
| 242 |
+
"url":"https://azure3.p.rapidapi.com/sponsorships/today/",
|
| 243 |
+
"description":"Get Azure sponsorships",
|
| 244 |
+
"method":"GET",
|
| 245 |
+
"required_parameters":[],
|
| 246 |
+
"optional_parameters":[],
|
| 247 |
+
"code":"import requests\n\nurl = \"https://azure3.p.rapidapi.com/sponsorships/today/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"azure3.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n",
|
| 248 |
+
"statuscode":111,
|
| 249 |
+
"body":"",
|
| 250 |
+
"headers":"",
|
| 251 |
+
"schema":""
|
| 252 |
+
},
|
| 253 |
+
{
|
| 254 |
+
"name":"GetNewsletters",
|
| 255 |
+
"url":"https://azure3.p.rapidapi.com/newsletters/",
|
| 256 |
+
"description":"Get Azure newsletters.",
|
| 257 |
+
"method":"GET",
|
| 258 |
+
"required_parameters":[],
|
| 259 |
+
"optional_parameters":[],
|
| 260 |
+
"code":"import requests\n\nurl = \"https://azure3.p.rapidapi.com/newsletters/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"azure3.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n",
|
| 261 |
+
"statuscode":111,
|
| 262 |
+
"body":"",
|
| 263 |
+
"headers":"",
|
| 264 |
+
"schema":""
|
| 265 |
+
},
|
| 266 |
+
{
|
| 267 |
+
"name":"GetTopics",
|
| 268 |
+
"url":"https://azure3.p.rapidapi.com/topics/",
|
| 269 |
+
"description":"Get Azure topics.",
|
| 270 |
+
"method":"GET",
|
| 271 |
+
"required_parameters":[],
|
| 272 |
+
"optional_parameters":[],
|
| 273 |
+
"code":"import requests\n\nurl = \"https://azure3.p.rapidapi.com/topics/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"azure3.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n",
|
| 274 |
+
"statuscode":111,
|
| 275 |
+
"body":"",
|
| 276 |
+
"headers":"",
|
| 277 |
+
"schema":""
|
| 278 |
+
}
|
| 279 |
+
]
|
| 280 |
+
}
|
toolbench/toolenv/tools/Data/azure/api.py
ADDED
|
@@ -0,0 +1,281 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 getnews(page: int, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 10 |
+
"""
|
| 11 |
+
"Get Azure news"
|
| 12 |
+
|
| 13 |
+
"""
|
| 14 |
+
url = f"https://azure3.p.rapidapi.com/news/page/{page}/"
|
| 15 |
+
querystring = {}
|
| 16 |
+
|
| 17 |
+
headers = {
|
| 18 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 19 |
+
"X-RapidAPI-Host": "azure3.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 getnewsbytopic(topic: str, page: int, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 31 |
+
"""
|
| 32 |
+
"Get Azure news by topic."
|
| 33 |
+
|
| 34 |
+
"""
|
| 35 |
+
url = f"https://azure3.p.rapidapi.com/news/{topic}/page/{page}/"
|
| 36 |
+
querystring = {}
|
| 37 |
+
|
| 38 |
+
headers = {
|
| 39 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 40 |
+
"X-RapidAPI-Host": "azure3.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 getlearningresources(page: int, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 52 |
+
"""
|
| 53 |
+
"Get Azure learning resources"
|
| 54 |
+
|
| 55 |
+
"""
|
| 56 |
+
url = f"https://azure3.p.rapidapi.com/learning/page/{page}/"
|
| 57 |
+
querystring = {}
|
| 58 |
+
|
| 59 |
+
headers = {
|
| 60 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 61 |
+
"X-RapidAPI-Host": "azure3.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 getlearningresourcesbytopic(topic: str, page: int, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 73 |
+
"""
|
| 74 |
+
"Get Azure learning resources by topic."
|
| 75 |
+
|
| 76 |
+
"""
|
| 77 |
+
url = f"https://azure3.p.rapidapi.com/learning/{topic}/page/{page}/"
|
| 78 |
+
querystring = {}
|
| 79 |
+
|
| 80 |
+
headers = {
|
| 81 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 82 |
+
"X-RapidAPI-Host": "azure3.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 getpastevents(page: int, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 94 |
+
"""
|
| 95 |
+
"Get past Azure events."
|
| 96 |
+
|
| 97 |
+
"""
|
| 98 |
+
url = f"https://azure3.p.rapidapi.com/events/past/page/{page}/"
|
| 99 |
+
querystring = {}
|
| 100 |
+
|
| 101 |
+
headers = {
|
| 102 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 103 |
+
"X-RapidAPI-Host": "azure3.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 getfutureevents(page: int, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 115 |
+
"""
|
| 116 |
+
"Get future Azure events."
|
| 117 |
+
|
| 118 |
+
"""
|
| 119 |
+
url = f"https://azure3.p.rapidapi.com/events/future/page/{page}/"
|
| 120 |
+
querystring = {}
|
| 121 |
+
|
| 122 |
+
headers = {
|
| 123 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 124 |
+
"X-RapidAPI-Host": "azure3.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 getevents(page: int, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 136 |
+
"""
|
| 137 |
+
"Get Azure events."
|
| 138 |
+
|
| 139 |
+
"""
|
| 140 |
+
url = f"https://azure3.p.rapidapi.com/events/page/{page}/"
|
| 141 |
+
querystring = {}
|
| 142 |
+
|
| 143 |
+
headers = {
|
| 144 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 145 |
+
"X-RapidAPI-Host": "azure3.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 getfutureeventsbytopic(topic: str, page: int, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 157 |
+
"""
|
| 158 |
+
"Get future Azure events by topic."
|
| 159 |
+
|
| 160 |
+
"""
|
| 161 |
+
url = f"https://azure3.p.rapidapi.com/events/future/{topic}/page/{page}/"
|
| 162 |
+
querystring = {}
|
| 163 |
+
|
| 164 |
+
headers = {
|
| 165 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 166 |
+
"X-RapidAPI-Host": "azure3.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 getpeople(page: int, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 178 |
+
"""
|
| 179 |
+
"Get Azure influencers."
|
| 180 |
+
|
| 181 |
+
"""
|
| 182 |
+
url = f"https://azure3.p.rapidapi.com/people/page/{page}/"
|
| 183 |
+
querystring = {}
|
| 184 |
+
|
| 185 |
+
headers = {
|
| 186 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 187 |
+
"X-RapidAPI-Host": "azure3.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 getpeoplebytopic(topic: str, page: int, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 199 |
+
"""
|
| 200 |
+
"Get Azure influencers by topic."
|
| 201 |
+
|
| 202 |
+
"""
|
| 203 |
+
url = f"https://azure3.p.rapidapi.com/people/{topic}/page/{page}/"
|
| 204 |
+
querystring = {}
|
| 205 |
+
|
| 206 |
+
headers = {
|
| 207 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 208 |
+
"X-RapidAPI-Host": "azure3.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 getsponsorships(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 220 |
+
"""
|
| 221 |
+
"Get Azure sponsorships"
|
| 222 |
+
|
| 223 |
+
"""
|
| 224 |
+
url = f"https://azure3.p.rapidapi.com/sponsorships/today/"
|
| 225 |
+
querystring = {}
|
| 226 |
+
|
| 227 |
+
headers = {
|
| 228 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 229 |
+
"X-RapidAPI-Host": "azure3.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 getnewsletters(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 241 |
+
"""
|
| 242 |
+
"Get Azure newsletters."
|
| 243 |
+
|
| 244 |
+
"""
|
| 245 |
+
url = f"https://azure3.p.rapidapi.com/newsletters/"
|
| 246 |
+
querystring = {}
|
| 247 |
+
|
| 248 |
+
headers = {
|
| 249 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 250 |
+
"X-RapidAPI-Host": "azure3.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 gettopics(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 262 |
+
"""
|
| 263 |
+
"Get Azure topics."
|
| 264 |
+
|
| 265 |
+
"""
|
| 266 |
+
url = f"https://azure3.p.rapidapi.com/topics/"
|
| 267 |
+
querystring = {}
|
| 268 |
+
|
| 269 |
+
headers = {
|
| 270 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 271 |
+
"X-RapidAPI-Host": "azure3.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 |
+
|
toolbench/toolenv/tools/Data/azure_smartable.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
toolbench/toolenv/tools/Data/azure_smartable/api.py
ADDED
|
@@ -0,0 +1,281 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 getnews(page: int, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 10 |
+
"""
|
| 11 |
+
"Get Azure news"
|
| 12 |
+
|
| 13 |
+
"""
|
| 14 |
+
url = f"https://azure-smartable.p.rapidapi.com/news/page/{page}/"
|
| 15 |
+
querystring = {}
|
| 16 |
+
|
| 17 |
+
headers = {
|
| 18 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 19 |
+
"X-RapidAPI-Host": "azure-smartable.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 getnewsbytopic(page: int, topic: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 31 |
+
"""
|
| 32 |
+
"Get Azure news by topic."
|
| 33 |
+
|
| 34 |
+
"""
|
| 35 |
+
url = f"https://azure-smartable.p.rapidapi.com/news/{topic}/page/{page}/"
|
| 36 |
+
querystring = {}
|
| 37 |
+
|
| 38 |
+
headers = {
|
| 39 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 40 |
+
"X-RapidAPI-Host": "azure-smartable.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 getevents(page: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 52 |
+
"""
|
| 53 |
+
"Get Azure events"
|
| 54 |
+
|
| 55 |
+
"""
|
| 56 |
+
url = f"https://azure-smartable.p.rapidapi.com/events/page/{page}/"
|
| 57 |
+
querystring = {}
|
| 58 |
+
|
| 59 |
+
headers = {
|
| 60 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 61 |
+
"X-RapidAPI-Host": "azure-smartable.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 getlearningresources(page: int, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 73 |
+
"""
|
| 74 |
+
"Get Azure learning resources"
|
| 75 |
+
|
| 76 |
+
"""
|
| 77 |
+
url = f"https://azure-smartable.p.rapidapi.com/learning/page/{page}/"
|
| 78 |
+
querystring = {}
|
| 79 |
+
|
| 80 |
+
headers = {
|
| 81 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 82 |
+
"X-RapidAPI-Host": "azure-smartable.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 getlearningresourcesbytopic(page: int, topic: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 94 |
+
"""
|
| 95 |
+
"Get Azure learning resources by topic."
|
| 96 |
+
|
| 97 |
+
"""
|
| 98 |
+
url = f"https://azure-smartable.p.rapidapi.com/learning/{topic}/page/{page}/"
|
| 99 |
+
querystring = {}
|
| 100 |
+
|
| 101 |
+
headers = {
|
| 102 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 103 |
+
"X-RapidAPI-Host": "azure-smartable.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 getpeople(page: int, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 115 |
+
"""
|
| 116 |
+
"Get Azure influencers."
|
| 117 |
+
|
| 118 |
+
"""
|
| 119 |
+
url = f"https://azure-smartable.p.rapidapi.com/people/page/{page}/"
|
| 120 |
+
querystring = {}
|
| 121 |
+
|
| 122 |
+
headers = {
|
| 123 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 124 |
+
"X-RapidAPI-Host": "azure-smartable.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 getfutureevents(page: int, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 136 |
+
"""
|
| 137 |
+
"Get future Azure events."
|
| 138 |
+
|
| 139 |
+
"""
|
| 140 |
+
url = f"https://azure-smartable.p.rapidapi.com/events/future/page/{page}/"
|
| 141 |
+
querystring = {}
|
| 142 |
+
|
| 143 |
+
headers = {
|
| 144 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 145 |
+
"X-RapidAPI-Host": "azure-smartable.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 getfutureeventsbytopic(topic: str, page: int, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 157 |
+
"""
|
| 158 |
+
"Get future Azure events by topic."
|
| 159 |
+
|
| 160 |
+
"""
|
| 161 |
+
url = f"https://azure-smartable.p.rapidapi.com/events/future/{topic}/page/{page}/"
|
| 162 |
+
querystring = {}
|
| 163 |
+
|
| 164 |
+
headers = {
|
| 165 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 166 |
+
"X-RapidAPI-Host": "azure-smartable.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 getpastevents(page: int, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 178 |
+
"""
|
| 179 |
+
"Get past Azure events."
|
| 180 |
+
|
| 181 |
+
"""
|
| 182 |
+
url = f"https://azure-smartable.p.rapidapi.com/events/past/page/{page}/"
|
| 183 |
+
querystring = {}
|
| 184 |
+
|
| 185 |
+
headers = {
|
| 186 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 187 |
+
"X-RapidAPI-Host": "azure-smartable.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 gettopics(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 199 |
+
"""
|
| 200 |
+
"Get Azure topics."
|
| 201 |
+
|
| 202 |
+
"""
|
| 203 |
+
url = f"https://azure-smartable.p.rapidapi.com/topics/"
|
| 204 |
+
querystring = {}
|
| 205 |
+
|
| 206 |
+
headers = {
|
| 207 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 208 |
+
"X-RapidAPI-Host": "azure-smartable.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 getnewsletters(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 220 |
+
"""
|
| 221 |
+
"Get Azure newsletters"
|
| 222 |
+
|
| 223 |
+
"""
|
| 224 |
+
url = f"https://azure-smartable.p.rapidapi.com/newsletters/"
|
| 225 |
+
querystring = {}
|
| 226 |
+
|
| 227 |
+
headers = {
|
| 228 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 229 |
+
"X-RapidAPI-Host": "azure-smartable.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 getsponsorships(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 241 |
+
"""
|
| 242 |
+
"Get Azure sponsorships"
|
| 243 |
+
|
| 244 |
+
"""
|
| 245 |
+
url = f"https://azure-smartable.p.rapidapi.com/sponsorships/today/"
|
| 246 |
+
querystring = {}
|
| 247 |
+
|
| 248 |
+
headers = {
|
| 249 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 250 |
+
"X-RapidAPI-Host": "azure-smartable.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 getpeoplebytopic(topic: str, page: int, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 262 |
+
"""
|
| 263 |
+
"Get Azure influencers by topic."
|
| 264 |
+
|
| 265 |
+
"""
|
| 266 |
+
url = f"https://azure-smartable.p.rapidapi.com/people/{topic}/page/{page}/"
|
| 267 |
+
querystring = {}
|
| 268 |
+
|
| 269 |
+
headers = {
|
| 270 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 271 |
+
"X-RapidAPI-Host": "azure-smartable.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 |
+
|
toolbench/toolenv/tools/Data/background_removal_remove_background_api.json
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"product_id": "api_98eef2bf-2a6b-4ca6-8ccb-b182c675d8bf",
|
| 3 |
+
"tool_description": "Background remove API.",
|
| 4 |
+
"home_url": "https://rapidapi.com/cavsn/api/background-removal-remove-background-api/",
|
| 5 |
+
"name": "Background Removal | Remove Background API",
|
| 6 |
+
"title": "Background Removal | Remove Background API",
|
| 7 |
+
"pricing": "FREEMIUM",
|
| 8 |
+
"tool_name": "Background Removal | Remove Background API",
|
| 9 |
+
"score": {
|
| 10 |
+
"avgServiceLevel": 100,
|
| 11 |
+
"avgLatency": 1552,
|
| 12 |
+
"avgSuccessRate": 100,
|
| 13 |
+
"popularityScore": 9.1,
|
| 14 |
+
"__typename": "Score"
|
| 15 |
+
},
|
| 16 |
+
"host": "background-removal-remove-background-api.p.rapidapi.com",
|
| 17 |
+
"api_list": [
|
| 18 |
+
{
|
| 19 |
+
"name": "Remove Background",
|
| 20 |
+
"url": "https://background-removal-remove-background-api.p.rapidapi.com/remove_background",
|
| 21 |
+
"description": "Remove background API url. Returns image URL.",
|
| 22 |
+
"method": "POST",
|
| 23 |
+
"required_parameters": [
|
| 24 |
+
{
|
| 25 |
+
"name": "image",
|
| 26 |
+
"type": "BINARY",
|
| 27 |
+
"description": "",
|
| 28 |
+
"default": ""
|
| 29 |
+
}
|
| 30 |
+
],
|
| 31 |
+
"optional_parameters": [
|
| 32 |
+
{
|
| 33 |
+
"name": "image",
|
| 34 |
+
"type": "GEOPOINT (latitude, longitude)",
|
| 35 |
+
"description": "",
|
| 36 |
+
"default": ""
|
| 37 |
+
}
|
| 38 |
+
],
|
| 39 |
+
"code": "import requests\n\nurl = \"https://background-removal-remove-background-api.p.rapidapi.com/remove_background\"\nquerystring = {\"image\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"background-removal-remove-background-api.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://background-removal-remove-background-api.p.rapidapi.com/remove_background\"\nquerystring = {\"image\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"background-removal-remove-background-api.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n",
|
| 41 |
+
"test_endpoint": ""
|
| 42 |
+
}
|
| 43 |
+
]
|
| 44 |
+
}
|
toolbench/toolenv/tools/Data/backlinks_and_keywords_fetcher.json
ADDED
|
@@ -0,0 +1,71 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"product_id": "api_9c19ced0-b393-461f-afd0-f62dd5ac504d",
|
| 3 |
+
"tool_description": "Discover valuable insights about any domain or URL with our Backlinks and Keyword Fetching API. Gain access to comprehensive data on backlinks, keywords, and SEO performance, empowering you to optimize your online presence and make informed decisions for digital success.",
|
| 4 |
+
"home_url": "https://rapidapi.com/salimaksoy010/api/backlinks-and-keywords-fetcher/",
|
| 5 |
+
"name": "Backlinks and Keywords Fetcher",
|
| 6 |
+
"title": "Backlinks and Keywords Fetcher",
|
| 7 |
+
"pricing": "FREEMIUM",
|
| 8 |
+
"tool_name": "Backlinks and Keywords Fetcher",
|
| 9 |
+
"score": {
|
| 10 |
+
"avgServiceLevel": 100,
|
| 11 |
+
"avgLatency": 1457,
|
| 12 |
+
"avgSuccessRate": 67,
|
| 13 |
+
"popularityScore": 8.9,
|
| 14 |
+
"__typename": "Score"
|
| 15 |
+
},
|
| 16 |
+
"host": "backlinks-and-keywords-fetcher.p.rapidapi.com",
|
| 17 |
+
"api_list": [
|
| 18 |
+
{
|
| 19 |
+
"name": "URL Backlinks",
|
| 20 |
+
"url": "https://backlinks-and-keywords-fetcher.p.rapidapi.com/seolizer",
|
| 21 |
+
"description": "This endpoints provides backlinks against URL.",
|
| 22 |
+
"method": "POST",
|
| 23 |
+
"required_parameters": [],
|
| 24 |
+
"optional_parameters": [],
|
| 25 |
+
"code": "import requests\n\nurl = \"https://backlinks-and-keywords-fetcher.p.rapidapi.com/seolizer\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"backlinks-and-keywords-fetcher.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
|
| 26 |
+
"convert_code": "import requests\n\nurl = \"https://backlinks-and-keywords-fetcher.p.rapidapi.com/seolizer\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"backlinks-and-keywords-fetcher.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
|
| 27 |
+
"test_endpoint": "",
|
| 28 |
+
"statuscode": 200,
|
| 29 |
+
"schema": {}
|
| 30 |
+
},
|
| 31 |
+
{
|
| 32 |
+
"name": "URL Keywords",
|
| 33 |
+
"url": "https://backlinks-and-keywords-fetcher.p.rapidapi.com/seolizer",
|
| 34 |
+
"description": "This endpoints provides keywords against URL.",
|
| 35 |
+
"method": "POST",
|
| 36 |
+
"required_parameters": [],
|
| 37 |
+
"optional_parameters": [],
|
| 38 |
+
"code": "import requests\n\nurl = \"https://backlinks-and-keywords-fetcher.p.rapidapi.com/seolizer\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"backlinks-and-keywords-fetcher.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
|
| 39 |
+
"convert_code": "import requests\n\nurl = \"https://backlinks-and-keywords-fetcher.p.rapidapi.com/seolizer\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"backlinks-and-keywords-fetcher.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
|
| 40 |
+
"test_endpoint": "",
|
| 41 |
+
"statuscode": 200,
|
| 42 |
+
"schema": {}
|
| 43 |
+
},
|
| 44 |
+
{
|
| 45 |
+
"name": "Domain Keywords",
|
| 46 |
+
"url": "https://backlinks-and-keywords-fetcher.p.rapidapi.com/seolizer",
|
| 47 |
+
"description": "This endpoints provides keywords against domain.",
|
| 48 |
+
"method": "POST",
|
| 49 |
+
"required_parameters": [],
|
| 50 |
+
"optional_parameters": [],
|
| 51 |
+
"code": "import requests\n\nurl = \"https://backlinks-and-keywords-fetcher.p.rapidapi.com/seolizer\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"backlinks-and-keywords-fetcher.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
|
| 52 |
+
"convert_code": "import requests\n\nurl = \"https://backlinks-and-keywords-fetcher.p.rapidapi.com/seolizer\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"backlinks-and-keywords-fetcher.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
|
| 53 |
+
"test_endpoint": "",
|
| 54 |
+
"statuscode": 200,
|
| 55 |
+
"schema": {}
|
| 56 |
+
},
|
| 57 |
+
{
|
| 58 |
+
"name": "Domain Backlinks",
|
| 59 |
+
"url": "https://backlinks-and-keywords-fetcher.p.rapidapi.com/seolizer",
|
| 60 |
+
"description": "This endpoints provides backlinks against domain.",
|
| 61 |
+
"method": "POST",
|
| 62 |
+
"required_parameters": [],
|
| 63 |
+
"optional_parameters": [],
|
| 64 |
+
"code": "import requests\n\nurl = \"https://backlinks-and-keywords-fetcher.p.rapidapi.com/seolizer\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"backlinks-and-keywords-fetcher.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
|
| 65 |
+
"convert_code": "import requests\n\nurl = \"https://backlinks-and-keywords-fetcher.p.rapidapi.com/seolizer\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"backlinks-and-keywords-fetcher.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
|
| 66 |
+
"test_endpoint": "",
|
| 67 |
+
"statuscode": 1,
|
| 68 |
+
"schema": ""
|
| 69 |
+
}
|
| 70 |
+
]
|
| 71 |
+
}
|
toolbench/toolenv/tools/Data/barcode_lookup.json
ADDED
|
@@ -0,0 +1,363 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"tool_name":"Barcode Lookup",
|
| 3 |
+
"tool_description":"Lookup product data and pricing for over 800 million unique items by UPC, EAN, ISBN codes or search terms.",
|
| 4 |
+
"title":"Barcode Lookup",
|
| 5 |
+
"pricing":"FREEMIUM",
|
| 6 |
+
"score":{
|
| 7 |
+
"avgServiceLevel":100,
|
| 8 |
+
"avgLatency":279,
|
| 9 |
+
"avgSuccessRate":36,
|
| 10 |
+
"popularityScore":9.8,
|
| 11 |
+
"__typename":"Score"
|
| 12 |
+
},
|
| 13 |
+
"home_url":"https://rapidapi.com/barcodelookup/api/barcode-lookup/",
|
| 14 |
+
"host":"barcode-lookup.p.rapidapi.com",
|
| 15 |
+
"api_list":[
|
| 16 |
+
{
|
| 17 |
+
"name":"Product",
|
| 18 |
+
"url":"https://barcode-lookup.p.rapidapi.com/v3/products",
|
| 19 |
+
"description":"Endpoint to retrieve product data.",
|
| 20 |
+
"method":"GET",
|
| 21 |
+
"required_parameters":[],
|
| 22 |
+
"optional_parameters":[
|
| 23 |
+
{
|
| 24 |
+
"name":"page",
|
| 25 |
+
"type":"STRING",
|
| 26 |
+
"description":"Page number for any search query (10 results per page)",
|
| 27 |
+
"default":""
|
| 28 |
+
},
|
| 29 |
+
{
|
| 30 |
+
"name":"title",
|
| 31 |
+
"type":"STRING",
|
| 32 |
+
"description":"Product Name",
|
| 33 |
+
"default":""
|
| 34 |
+
},
|
| 35 |
+
{
|
| 36 |
+
"name":"asin",
|
| 37 |
+
"type":"STRING",
|
| 38 |
+
"description":"ASIN",
|
| 39 |
+
"default":""
|
| 40 |
+
},
|
| 41 |
+
{
|
| 42 |
+
"name":"barcode",
|
| 43 |
+
"type":"NUMBER",
|
| 44 |
+
"description":"UPC, EAN or ISBN number",
|
| 45 |
+
"default":"9780439625593"
|
| 46 |
+
},
|
| 47 |
+
{
|
| 48 |
+
"name":"search",
|
| 49 |
+
"type":"STRING",
|
| 50 |
+
"description":"Any search term or phrase",
|
| 51 |
+
"default":""
|
| 52 |
+
},
|
| 53 |
+
{
|
| 54 |
+
"name":"category",
|
| 55 |
+
"type":"STRING",
|
| 56 |
+
"description":"",
|
| 57 |
+
"default":""
|
| 58 |
+
},
|
| 59 |
+
{
|
| 60 |
+
"name":"mpn",
|
| 61 |
+
"type":"STRING",
|
| 62 |
+
"description":"Manufacturer Part Number",
|
| 63 |
+
"default":""
|
| 64 |
+
}
|
| 65 |
+
],
|
| 66 |
+
"code":"import requests\n\nurl = \"https://barcode-lookup.p.rapidapi.com/v3/products\"\nquerystring = {\"barcode\": barcode}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"barcode-lookup.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n",
|
| 67 |
+
"statuscode":200,
|
| 68 |
+
"body":{
|
| 69 |
+
"products":[
|
| 70 |
+
{
|
| 71 |
+
"barcode_number":"9780439625593",
|
| 72 |
+
"barcode_formats":"ISBN-10 0439625599, ISBN-13 9780439625593",
|
| 73 |
+
"mpn":"",
|
| 74 |
+
"model":"",
|
| 75 |
+
"asin":"",
|
| 76 |
+
"title":"Harry Potter and the Prisoner of Azkaban Deluxe Sticker Book",
|
| 77 |
+
"category":"Media > Books",
|
| 78 |
+
"manufacturer":"",
|
| 79 |
+
"brand":"Scholastic, Inc.",
|
| 80 |
+
"contributors":[
|
| 81 |
+
{
|
| 82 |
+
"role":"author",
|
| 83 |
+
"name":"J. K. Rowling"
|
| 84 |
+
},
|
| 85 |
+
{
|
| 86 |
+
"role":"publisher",
|
| 87 |
+
"name":"Scholastic, Incorporated"
|
| 88 |
+
}
|
| 89 |
+
],
|
| 90 |
+
"age_group":"",
|
| 91 |
+
"ingredients":"",
|
| 92 |
+
"nutrition_facts":"",
|
| 93 |
+
"energy_efficiency_class":"",
|
| 94 |
+
"color":"",
|
| 95 |
+
"gender":"",
|
| 96 |
+
"material":"",
|
| 97 |
+
"pattern":"",
|
| 98 |
+
"format":"",
|
| 99 |
+
"multipack":"",
|
| 100 |
+
"size":"",
|
| 101 |
+
"length":"",
|
| 102 |
+
"width":"",
|
| 103 |
+
"height":"",
|
| 104 |
+
"weight":"",
|
| 105 |
+
"release_date":"",
|
| 106 |
+
"description":"Three times the scares, three times the tears, third time's the charm - HARRY POTTER AND THE PRISONER OF AZKABAN, the third installment of the classic series, apparates into multiplexes this summer.Two spreads of four-color stickers -- 50 in all -- depict the characters, animals, and all the magical objects that appear in the book and the movie. Descriptive text provides all the details any kid could want about this amazing fantasy world.",
|
| 107 |
+
"features":[],
|
| 108 |
+
"images":[
|
| 109 |
+
"https://images.barcodelookup.com/2370/23709772-1.jpg"
|
| 110 |
+
],
|
| 111 |
+
"last_update":"2023-07-03 15:39:29",
|
| 112 |
+
"stores":[
|
| 113 |
+
{
|
| 114 |
+
"name":"BetterWorld.com - New, Used, Rare Books & Textbooks",
|
| 115 |
+
"country":"US",
|
| 116 |
+
"currency":"USD",
|
| 117 |
+
"currency_symbol":"$",
|
| 118 |
+
"price":"3.98",
|
| 119 |
+
"sale_price":"",
|
| 120 |
+
"tax":[],
|
| 121 |
+
"link":"https://www.BetterWorldBooks.com/product/detail/Harry-Potter-and-the-Prisoner-of-Azkaban-Deluxe-Sticker-Book-9780439625593?utm_source=CJ_feed",
|
| 122 |
+
"item_group_id":"",
|
| 123 |
+
"availability":"",
|
| 124 |
+
"condition":"",
|
| 125 |
+
"shipping":[],
|
| 126 |
+
"last_update":"2021-06-22 04:47:04"
|
| 127 |
+
},
|
| 128 |
+
{
|
| 129 |
+
"name":"Barnes & Noble",
|
| 130 |
+
"country":"US",
|
| 131 |
+
"currency":"USD",
|
| 132 |
+
"currency_symbol":"$",
|
| 133 |
+
"price":"6.99",
|
| 134 |
+
"sale_price":"",
|
| 135 |
+
"tax":[],
|
| 136 |
+
"link":"https://www.barnesandnoble.com/w/harry-potter-and-the-prizoner-of-azkaban-scholastic-staff/1113154590?ean=9780439625593",
|
| 137 |
+
"item_group_id":"",
|
| 138 |
+
"availability":"",
|
| 139 |
+
"condition":"",
|
| 140 |
+
"shipping":[],
|
| 141 |
+
"last_update":"2021-06-22 03:19:47"
|
| 142 |
+
},
|
| 143 |
+
{
|
| 144 |
+
"name":"ThriftBooks.com",
|
| 145 |
+
"country":"US",
|
| 146 |
+
"currency":"USD",
|
| 147 |
+
"currency_symbol":"$",
|
| 148 |
+
"price":"7.97",
|
| 149 |
+
"sale_price":"",
|
| 150 |
+
"tax":[],
|
| 151 |
+
"link":"https://www.thriftbooks.com/w/deluxe-sticker-book-harry-potter/8953252/#isbn=0439625599",
|
| 152 |
+
"item_group_id":"",
|
| 153 |
+
"availability":"",
|
| 154 |
+
"condition":"",
|
| 155 |
+
"shipping":[],
|
| 156 |
+
"last_update":"2021-06-22 02:42:26"
|
| 157 |
+
},
|
| 158 |
+
{
|
| 159 |
+
"name":"Indigo Books & Music",
|
| 160 |
+
"country":"CA",
|
| 161 |
+
"currency":"CAD",
|
| 162 |
+
"currency_symbol":"$",
|
| 163 |
+
"price":"10.99",
|
| 164 |
+
"sale_price":"",
|
| 165 |
+
"tax":[],
|
| 166 |
+
"link":"https://www.chapters.indigo.ca/en-ca/books/product/9780439625593-item.html",
|
| 167 |
+
"item_group_id":"",
|
| 168 |
+
"availability":"",
|
| 169 |
+
"condition":"",
|
| 170 |
+
"shipping":[],
|
| 171 |
+
"last_update":"2021-06-22 03:00:31"
|
| 172 |
+
},
|
| 173 |
+
{
|
| 174 |
+
"name":"AbeBooks",
|
| 175 |
+
"country":"US",
|
| 176 |
+
"currency":"USD",
|
| 177 |
+
"currency_symbol":"$",
|
| 178 |
+
"price":"13.98",
|
| 179 |
+
"sale_price":"",
|
| 180 |
+
"tax":[],
|
| 181 |
+
"link":"https://www.abebooks.com/servlet/BookDetailsPL?bi=31497411407",
|
| 182 |
+
"item_group_id":"",
|
| 183 |
+
"availability":"",
|
| 184 |
+
"condition":"used",
|
| 185 |
+
"shipping":[],
|
| 186 |
+
"last_update":"2023-07-03 15:39:29"
|
| 187 |
+
}
|
| 188 |
+
],
|
| 189 |
+
"reviews":[]
|
| 190 |
+
}
|
| 191 |
+
]
|
| 192 |
+
},
|
| 193 |
+
"headers":{},
|
| 194 |
+
"schema":{
|
| 195 |
+
"type":"object",
|
| 196 |
+
"properties":{
|
| 197 |
+
"products":{
|
| 198 |
+
"type":"array",
|
| 199 |
+
"items":{
|
| 200 |
+
"type":"object",
|
| 201 |
+
"properties":{
|
| 202 |
+
"barcode_number":{
|
| 203 |
+
"type":"string"
|
| 204 |
+
},
|
| 205 |
+
"barcode_formats":{
|
| 206 |
+
"type":"string"
|
| 207 |
+
},
|
| 208 |
+
"mpn":{
|
| 209 |
+
"type":"string"
|
| 210 |
+
},
|
| 211 |
+
"model":{
|
| 212 |
+
"type":"string"
|
| 213 |
+
},
|
| 214 |
+
"asin":{
|
| 215 |
+
"type":"string"
|
| 216 |
+
},
|
| 217 |
+
"title":{
|
| 218 |
+
"type":"string"
|
| 219 |
+
},
|
| 220 |
+
"category":{
|
| 221 |
+
"type":"string"
|
| 222 |
+
},
|
| 223 |
+
"manufacturer":{
|
| 224 |
+
"type":"string"
|
| 225 |
+
},
|
| 226 |
+
"brand":{
|
| 227 |
+
"type":"string"
|
| 228 |
+
},
|
| 229 |
+
"contributors":{
|
| 230 |
+
"type":"array",
|
| 231 |
+
"items":{
|
| 232 |
+
"type":"object",
|
| 233 |
+
"properties":{
|
| 234 |
+
"role":{
|
| 235 |
+
"type":"string"
|
| 236 |
+
},
|
| 237 |
+
"name":{
|
| 238 |
+
"type":"string"
|
| 239 |
+
}
|
| 240 |
+
}
|
| 241 |
+
}
|
| 242 |
+
},
|
| 243 |
+
"age_group":{
|
| 244 |
+
"type":"string"
|
| 245 |
+
},
|
| 246 |
+
"ingredients":{
|
| 247 |
+
"type":"string"
|
| 248 |
+
},
|
| 249 |
+
"nutrition_facts":{
|
| 250 |
+
"type":"string"
|
| 251 |
+
},
|
| 252 |
+
"energy_efficiency_class":{
|
| 253 |
+
"type":"string"
|
| 254 |
+
},
|
| 255 |
+
"color":{
|
| 256 |
+
"type":"string"
|
| 257 |
+
},
|
| 258 |
+
"gender":{
|
| 259 |
+
"type":"string"
|
| 260 |
+
},
|
| 261 |
+
"material":{
|
| 262 |
+
"type":"string"
|
| 263 |
+
},
|
| 264 |
+
"pattern":{
|
| 265 |
+
"type":"string"
|
| 266 |
+
},
|
| 267 |
+
"format":{
|
| 268 |
+
"type":"string"
|
| 269 |
+
},
|
| 270 |
+
"multipack":{
|
| 271 |
+
"type":"string"
|
| 272 |
+
},
|
| 273 |
+
"size":{
|
| 274 |
+
"type":"string"
|
| 275 |
+
},
|
| 276 |
+
"length":{
|
| 277 |
+
"type":"string"
|
| 278 |
+
},
|
| 279 |
+
"width":{
|
| 280 |
+
"type":"string"
|
| 281 |
+
},
|
| 282 |
+
"height":{
|
| 283 |
+
"type":"string"
|
| 284 |
+
},
|
| 285 |
+
"weight":{
|
| 286 |
+
"type":"string"
|
| 287 |
+
},
|
| 288 |
+
"release_date":{
|
| 289 |
+
"type":"string"
|
| 290 |
+
},
|
| 291 |
+
"description":{
|
| 292 |
+
"type":"string"
|
| 293 |
+
},
|
| 294 |
+
"features":{
|
| 295 |
+
"type":"array"
|
| 296 |
+
},
|
| 297 |
+
"images":{
|
| 298 |
+
"type":"array",
|
| 299 |
+
"items":{
|
| 300 |
+
"type":"string"
|
| 301 |
+
}
|
| 302 |
+
},
|
| 303 |
+
"last_update":{
|
| 304 |
+
"type":"string"
|
| 305 |
+
},
|
| 306 |
+
"stores":{
|
| 307 |
+
"type":"array",
|
| 308 |
+
"items":{
|
| 309 |
+
"type":"object",
|
| 310 |
+
"properties":{
|
| 311 |
+
"name":{
|
| 312 |
+
"type":"string"
|
| 313 |
+
},
|
| 314 |
+
"country":{
|
| 315 |
+
"type":"string"
|
| 316 |
+
},
|
| 317 |
+
"currency":{
|
| 318 |
+
"type":"string"
|
| 319 |
+
},
|
| 320 |
+
"currency_symbol":{
|
| 321 |
+
"type":"string"
|
| 322 |
+
},
|
| 323 |
+
"price":{
|
| 324 |
+
"type":"string"
|
| 325 |
+
},
|
| 326 |
+
"sale_price":{
|
| 327 |
+
"type":"string"
|
| 328 |
+
},
|
| 329 |
+
"tax":{
|
| 330 |
+
"type":"array"
|
| 331 |
+
},
|
| 332 |
+
"link":{
|
| 333 |
+
"type":"string"
|
| 334 |
+
},
|
| 335 |
+
"item_group_id":{
|
| 336 |
+
"type":"string"
|
| 337 |
+
},
|
| 338 |
+
"availability":{
|
| 339 |
+
"type":"string"
|
| 340 |
+
},
|
| 341 |
+
"condition":{
|
| 342 |
+
"type":"string"
|
| 343 |
+
},
|
| 344 |
+
"shipping":{
|
| 345 |
+
"type":"array"
|
| 346 |
+
},
|
| 347 |
+
"last_update":{
|
| 348 |
+
"type":"string"
|
| 349 |
+
}
|
| 350 |
+
}
|
| 351 |
+
}
|
| 352 |
+
},
|
| 353 |
+
"reviews":{
|
| 354 |
+
"type":"array"
|
| 355 |
+
}
|
| 356 |
+
}
|
| 357 |
+
}
|
| 358 |
+
}
|
| 359 |
+
}
|
| 360 |
+
}
|
| 361 |
+
}
|
| 362 |
+
]
|
| 363 |
+
}
|
toolbench/toolenv/tools/Data/barcode_lookup/api.py
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 product(page: str=None, title: str=None, asin: str=None, barcode: int=9780439625593, search: str=None, category: str=None, mpn: str=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 10 |
+
"""
|
| 11 |
+
"Endpoint to retrieve product data."
|
| 12 |
+
page: Page number for any search query (10 results per page)
|
| 13 |
+
title: Product Name
|
| 14 |
+
asin: ASIN
|
| 15 |
+
barcode: UPC, EAN or ISBN number
|
| 16 |
+
search: Any search term or phrase
|
| 17 |
+
mpn: Manufacturer Part Number
|
| 18 |
+
|
| 19 |
+
"""
|
| 20 |
+
url = f"https://barcode-lookup.p.rapidapi.com/v3/products"
|
| 21 |
+
querystring = {}
|
| 22 |
+
if page:
|
| 23 |
+
querystring['page'] = page
|
| 24 |
+
if title:
|
| 25 |
+
querystring['title'] = title
|
| 26 |
+
if asin:
|
| 27 |
+
querystring['asin'] = asin
|
| 28 |
+
if barcode:
|
| 29 |
+
querystring['barcode'] = barcode
|
| 30 |
+
if search:
|
| 31 |
+
querystring['search'] = search
|
| 32 |
+
if category:
|
| 33 |
+
querystring['category'] = category
|
| 34 |
+
if mpn:
|
| 35 |
+
querystring['mpn'] = mpn
|
| 36 |
+
|
| 37 |
+
headers = {
|
| 38 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 39 |
+
"X-RapidAPI-Host": "barcode-lookup.p.rapidapi.com"
|
| 40 |
+
}
|
| 41 |
+
|
| 42 |
+
|
| 43 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 44 |
+
try:
|
| 45 |
+
observation = response.json()
|
| 46 |
+
except:
|
| 47 |
+
observation = response.text
|
| 48 |
+
return observation
|
| 49 |
+
|
toolbench/toolenv/tools/Data/barcodes.json
ADDED
|
@@ -0,0 +1,105 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"tool_name":"Barcodes",
|
| 3 |
+
"tool_description":"Search over 500+ million products with UPC, EAN, JAN, ISBN barcodes.",
|
| 4 |
+
"title":"Barcodes",
|
| 5 |
+
"pricing":"FREEMIUM",
|
| 6 |
+
"score":{
|
| 7 |
+
"avgServiceLevel":92,
|
| 8 |
+
"avgLatency":2620,
|
| 9 |
+
"avgSuccessRate":90,
|
| 10 |
+
"popularityScore":9.8,
|
| 11 |
+
"__typename":"Score"
|
| 12 |
+
},
|
| 13 |
+
"home_url":"https://rapidapi.com/Glavier/api/barcodes1/",
|
| 14 |
+
"host":"barcodes1.p.rapidapi.com",
|
| 15 |
+
"api_list":[
|
| 16 |
+
{
|
| 17 |
+
"name":"Search & Product Details",
|
| 18 |
+
"url":"https://barcodes1.p.rapidapi.com/",
|
| 19 |
+
"description":"It returns product results if you enter a search term, and returns product details if you enter a barcode number.",
|
| 20 |
+
"method":"GET",
|
| 21 |
+
"required_parameters":[
|
| 22 |
+
{
|
| 23 |
+
"name":"query",
|
| 24 |
+
"type":"STRING",
|
| 25 |
+
"description":"**Barcode** or **search term**",
|
| 26 |
+
"default":""
|
| 27 |
+
}
|
| 28 |
+
],
|
| 29 |
+
"optional_parameters":[
|
| 30 |
+
{
|
| 31 |
+
"name":"page",
|
| 32 |
+
"type":"NUMBER",
|
| 33 |
+
"description":"If you want search results - **page number**\nIf you are querying for a barcode, leave it blank.\n\nIf you leave it blank (if you are querying for a search term), the first page will be returned.",
|
| 34 |
+
"default":""
|
| 35 |
+
}
|
| 36 |
+
],
|
| 37 |
+
"code":"import requests\n\nurl = \"https://barcodes1.p.rapidapi.com/\"\nquerystring = {\"query\": query}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"barcodes1.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n",
|
| 38 |
+
"statuscode":200,
|
| 39 |
+
"body":{
|
| 40 |
+
"product":{
|
| 41 |
+
"artist":null,
|
| 42 |
+
"attributes":{
|
| 43 |
+
"mpn":"MZ-V7S1T0B/AM",
|
| 44 |
+
"model":"MZ-V7S1T0B/AM",
|
| 45 |
+
"asin":"B07MFZY2F2",
|
| 46 |
+
"size":"1TB",
|
| 47 |
+
"dimensions":"0.87 inches (L) x 0.9 inches (W) x 3.15 inches (H)",
|
| 48 |
+
"weight":"0.12 pounds",
|
| 49 |
+
"release_date":"2019-02-10"
|
| 50 |
+
},
|
| 51 |
+
"barcode_formats":{
|
| 52 |
+
"ean_8":"06387266"
|
| 53 |
+
},
|
| 54 |
+
"brand":null,
|
| 55 |
+
"category":null,
|
| 56 |
+
"description":null,
|
| 57 |
+
"features":[
|
| 58 |
+
"INNOVATIVE V-NAND TECHNOLOGY: Powered by Samsung V-NAND Technology, the 970 EVO Plus SSD’s NVMe interface (PCIe Gen 3.0 x4 NVMe 1.3) offers enhanced bandwidth, low latency, and power efficiency ideal for tech enthusiasts, high end gamers, and 4K & 3D content designers",
|
| 59 |
+
"BREAKTHROUGH READ WRITE SPEEDS: Sequential read and write performance levels of up to 3,500MB s and 3,300MB s, respectively; Random Read (4KB, QD32): Up to 600,000 IOPS Random Read. Operating Temperature: 0 - 70 ℃",
|
| 60 |
+
"PERFORMANCE OPTIMIZATION AND DATA SECURITY: Seamless cloning and file transfers with Samsung Magician Software, the ideal SSD management solution for performance optimization and data security with automatic firmware updates",
|
| 61 |
+
"SUPERIOR HEAT DISSIPATION: Samsung’s Dynamic Thermal Guard automatically monitors and maintains optimal operating temperatures to minimize performance drops",
|
| 62 |
+
"5-YEAR LIMITED WARRANTY: 5-year limited warranty or 600 TBW (Terabytes Written). Power consumption (Idle) - Max. 30 mW Actual power consumption may vary depending on system hardware & configuration. Voltage - 3.3 V 5 % Allowable voltage",
|
| 63 |
+
"Note: Refer to the troubleshooting steps in product description."
|
| 64 |
+
],
|
| 65 |
+
"images":[
|
| 66 |
+
"https://images.barcodelookup.com/30612/306123498-1.jpg",
|
| 67 |
+
"https://images.barcodelookup.com/30612/306123498-10.jpg",
|
| 68 |
+
"https://images.barcodelookup.com/30612/306123498-11.jpg",
|
| 69 |
+
"https://images.barcodelookup.com/30612/306123498-2.jpg",
|
| 70 |
+
"https://images.barcodelookup.com/30612/306123498-3.jpg",
|
| 71 |
+
"https://images.barcodelookup.com/30612/306123498-4.jpg",
|
| 72 |
+
"https://images.barcodelookup.com/30612/306123498-5.jpg",
|
| 73 |
+
"https://images.barcodelookup.com/30612/306123498-6.jpg",
|
| 74 |
+
"https://images.barcodelookup.com/30612/306123498-7.jpg",
|
| 75 |
+
"https://images.barcodelookup.com/30612/306123498-8.jpg",
|
| 76 |
+
"https://images.barcodelookup.com/30612/306123498-9.jpg"
|
| 77 |
+
],
|
| 78 |
+
"ingredients":null,
|
| 79 |
+
"manufacturer":"Samsung",
|
| 80 |
+
"online_stores":[
|
| 81 |
+
{
|
| 82 |
+
"name":"Amazon.com",
|
| 83 |
+
"price":"$124.39",
|
| 84 |
+
"url":"https://www.amazon.com/dp/B07MFZY2F2?tag=barcodelookup.com-20&linkCode=osi&th=1&psc=1"
|
| 85 |
+
}
|
| 86 |
+
],
|
| 87 |
+
"title":"Samsung 970 EVO Plus 1TB SSD (MZ-V7S1T0B/AM)"
|
| 88 |
+
}
|
| 89 |
+
},
|
| 90 |
+
"headers":{
|
| 91 |
+
"access-control-allow-credentials":"true",
|
| 92 |
+
"access-control-allow-origin":"*",
|
| 93 |
+
"connection":"keep-alive",
|
| 94 |
+
"content-length":"2474",
|
| 95 |
+
"content-type":"application/json",
|
| 96 |
+
"date":"Tue, 05 Jul 2022 23:02:00 GMT",
|
| 97 |
+
"server":"RapidAPI-1.2.8",
|
| 98 |
+
"via":"1.1 vegur",
|
| 99 |
+
"x-rapidapi-region":"AWS - eu-central-1",
|
| 100 |
+
"x-rapidapi-version":"1.2.8"
|
| 101 |
+
},
|
| 102 |
+
"schema":{}
|
| 103 |
+
}
|
| 104 |
+
]
|
| 105 |
+
}
|
toolbench/toolenv/tools/Data/barcodes/api.py
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 search_product_details(query: str, page: int=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 10 |
+
"""
|
| 11 |
+
"It returns product results if you enter a search term, and returns product details if you enter a barcode number."
|
| 12 |
+
query: **Barcode** or **search term**
|
| 13 |
+
page: If you want search results - **page number**
|
| 14 |
+
If you are querying for a barcode, leave it blank.
|
| 15 |
+
|
| 16 |
+
If you leave it blank (if you are querying for a search term), the first page will be returned.
|
| 17 |
+
|
| 18 |
+
"""
|
| 19 |
+
url = f"https://barcodes1.p.rapidapi.com/"
|
| 20 |
+
querystring = {'query': query, }
|
| 21 |
+
if page:
|
| 22 |
+
querystring['page'] = page
|
| 23 |
+
|
| 24 |
+
headers = {
|
| 25 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 26 |
+
"X-RapidAPI-Host": "barcodes1.p.rapidapi.com"
|
| 27 |
+
}
|
| 28 |
+
|
| 29 |
+
|
| 30 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 31 |
+
try:
|
| 32 |
+
observation = response.json()
|
| 33 |
+
except:
|
| 34 |
+
observation = response.text
|
| 35 |
+
return observation
|
| 36 |
+
|
toolbench/toolenv/tools/Data/barcodes_lookup.json
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"tool_name":"Barcodes Lookup",
|
| 3 |
+
"tool_description":"Search over 500 million products with UPC, EAN, JAN, ISBN barcodes.",
|
| 4 |
+
"title":"Barcodes Lookup",
|
| 5 |
+
"pricing":"FREEMIUM",
|
| 6 |
+
"score":{
|
| 7 |
+
"avgServiceLevel":100,
|
| 8 |
+
"avgLatency":2664,
|
| 9 |
+
"avgSuccessRate":100,
|
| 10 |
+
"popularityScore":9.5,
|
| 11 |
+
"__typename":"Score"
|
| 12 |
+
},
|
| 13 |
+
"home_url":"https://rapidapi.com/UnlimitedAPI/api/barcodes-lookup/",
|
| 14 |
+
"host":"barcodes-lookup.p.rapidapi.com",
|
| 15 |
+
"api_list":[
|
| 16 |
+
{
|
| 17 |
+
"name":"Search & Product Details",
|
| 18 |
+
"url":"https://barcodes-lookup.p.rapidapi.com/",
|
| 19 |
+
"description":"It returns product results if you enter a search term, and returns product details if you enter a barcode number.",
|
| 20 |
+
"method":"GET",
|
| 21 |
+
"required_parameters":[
|
| 22 |
+
{
|
| 23 |
+
"name":"query",
|
| 24 |
+
"type":"STRING",
|
| 25 |
+
"description":"**Barcode** or **search term**",
|
| 26 |
+
"default":""
|
| 27 |
+
}
|
| 28 |
+
],
|
| 29 |
+
"optional_parameters":[
|
| 30 |
+
{
|
| 31 |
+
"name":"page",
|
| 32 |
+
"type":"NUMBER",
|
| 33 |
+
"description":"If you want search results - **page number**\nIf you are querying for a barcode, leave it blank.\n\nIf you leave it blank (if you are querying for a search term), the first page will be returned.",
|
| 34 |
+
"default":""
|
| 35 |
+
}
|
| 36 |
+
],
|
| 37 |
+
"code":"import requests\n\nurl = \"https://barcodes-lookup.p.rapidapi.com/\"\nquerystring = {\"query\": query}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"barcodes-lookup.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n",
|
| 38 |
+
"statuscode":200,
|
| 39 |
+
"body":{
|
| 40 |
+
"key1":"value",
|
| 41 |
+
"key2":"value"
|
| 42 |
+
},
|
| 43 |
+
"headers":{},
|
| 44 |
+
"schema":{}
|
| 45 |
+
}
|
| 46 |
+
]
|
| 47 |
+
}
|
toolbench/toolenv/tools/Data/barcodes_lookup/api.py
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 search_product_details(query: str, page: int=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 10 |
+
"""
|
| 11 |
+
"It returns product results if you enter a search term, and returns product details if you enter a barcode number."
|
| 12 |
+
query: **Barcode** or **search term**
|
| 13 |
+
page: If you want search results - **page number**
|
| 14 |
+
If you are querying for a barcode, leave it blank.
|
| 15 |
+
|
| 16 |
+
If you leave it blank (if you are querying for a search term), the first page will be returned.
|
| 17 |
+
|
| 18 |
+
"""
|
| 19 |
+
url = f"https://barcodes-lookup.p.rapidapi.com/"
|
| 20 |
+
querystring = {'query': query, }
|
| 21 |
+
if page:
|
| 22 |
+
querystring['page'] = page
|
| 23 |
+
|
| 24 |
+
headers = {
|
| 25 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 26 |
+
"X-RapidAPI-Host": "barcodes-lookup.p.rapidapi.com"
|
| 27 |
+
}
|
| 28 |
+
|
| 29 |
+
|
| 30 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 31 |
+
try:
|
| 32 |
+
observation = response.json()
|
| 33 |
+
except:
|
| 34 |
+
observation = response.text
|
| 35 |
+
return observation
|
| 36 |
+
|
toolbench/toolenv/tools/Data/baseconverterapi.json
ADDED
|
@@ -0,0 +1,76 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"product_id": "api_13099791-7db0-4b6b-8fee-fb43f0eab791",
|
| 3 |
+
"tool_description": "An API that converts a number from one base to another",
|
| 4 |
+
"home_url": "https://rapidapi.com/FilippoLizzi/api/baseconverterapi/",
|
| 5 |
+
"name": "BaseConverterAPI",
|
| 6 |
+
"title": "BaseConverterAPI",
|
| 7 |
+
"pricing": "FREE",
|
| 8 |
+
"tool_name": "BaseConverterAPI",
|
| 9 |
+
"score": {
|
| 10 |
+
"avgServiceLevel": 100,
|
| 11 |
+
"avgLatency": 1449,
|
| 12 |
+
"avgSuccessRate": 100,
|
| 13 |
+
"popularityScore": 7,
|
| 14 |
+
"__typename": "Score"
|
| 15 |
+
},
|
| 16 |
+
"host": "baseconverterapi.p.rapidapi.com",
|
| 17 |
+
"api_list": [
|
| 18 |
+
{
|
| 19 |
+
"name": "getAlphabets",
|
| 20 |
+
"url": "https://baseconverterapi.p.rapidapi.com/alphabets",
|
| 21 |
+
"description": "This endpoint is used for getting all the alphabets",
|
| 22 |
+
"method": "GET",
|
| 23 |
+
"required_parameters": [],
|
| 24 |
+
"optional_parameters": [],
|
| 25 |
+
"code": "import requests\n\nurl = \"https://baseconverterapi.p.rapidapi.com/alphabets\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"baseconverterapi.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n",
|
| 26 |
+
"convert_code": "import requests\n\nurl = \"https://baseconverterapi.p.rapidapi.com/alphabets\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"baseconverterapi.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n",
|
| 27 |
+
"test_endpoint": {
|
| 28 |
+
"binary": {
|
| 29 |
+
"0": 0,
|
| 30 |
+
"1": 1
|
| 31 |
+
},
|
| 32 |
+
"octal": {
|
| 33 |
+
"0": 0,
|
| 34 |
+
"1": 1,
|
| 35 |
+
"2": 2,
|
| 36 |
+
"3": 3,
|
| 37 |
+
"4": 4,
|
| 38 |
+
"5": 5,
|
| 39 |
+
"6": 6,
|
| 40 |
+
"7": 7
|
| 41 |
+
},
|
| 42 |
+
"hexadecimal": {
|
| 43 |
+
"0": 0,
|
| 44 |
+
"1": 1,
|
| 45 |
+
"2": 2,
|
| 46 |
+
"3": 3,
|
| 47 |
+
"4": 4,
|
| 48 |
+
"5": 5,
|
| 49 |
+
"6": 6,
|
| 50 |
+
"7": 7,
|
| 51 |
+
"8": 8,
|
| 52 |
+
"9": 9,
|
| 53 |
+
"A": 10,
|
| 54 |
+
"B": 11,
|
| 55 |
+
"C": 12,
|
| 56 |
+
"D": 13,
|
| 57 |
+
"E": 14,
|
| 58 |
+
"F": 15
|
| 59 |
+
},
|
| 60 |
+
"decimal": {
|
| 61 |
+
"0": 0,
|
| 62 |
+
"1": 1,
|
| 63 |
+
"2": 2,
|
| 64 |
+
"3": 3,
|
| 65 |
+
"4": 4,
|
| 66 |
+
"5": 5,
|
| 67 |
+
"6": 6,
|
| 68 |
+
"7": 7,
|
| 69 |
+
"8": 8,
|
| 70 |
+
"9": 9
|
| 71 |
+
}
|
| 72 |
+
}
|
| 73 |
+
}
|
| 74 |
+
],
|
| 75 |
+
"standardized_name": "baseconverterapi"
|
| 76 |
+
}
|
toolbench/toolenv/tools/Data/baseconverterapi/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 getalphabets(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 10 |
+
"""
|
| 11 |
+
"This endpoint is used for getting all the alphabets"
|
| 12 |
+
|
| 13 |
+
"""
|
| 14 |
+
url = f"https://baseconverterapi.p.rapidapi.com/alphabets"
|
| 15 |
+
querystring = {}
|
| 16 |
+
|
| 17 |
+
headers = {
|
| 18 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 19 |
+
"X-RapidAPI-Host": "baseconverterapi.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/Data/bc_real_time.json
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"product_id": "api_cf46c5cb-3b12-47a6-bafc-a9e6bc880629",
|
| 3 |
+
"tool_description": "Real Time services of Bourgarel Conseil",
|
| 4 |
+
"home_url": "https://rapidapi.com/bourgarel-conseil-bourgarel-conseil-default/api/bc-real-time/",
|
| 5 |
+
"name": "BC Real Time",
|
| 6 |
+
"title": "BC Real Time",
|
| 7 |
+
"pricing": "FREEMIUM",
|
| 8 |
+
"tool_name": "BC Real Time",
|
| 9 |
+
"score": {
|
| 10 |
+
"avgServiceLevel": 94,
|
| 11 |
+
"avgLatency": 3216,
|
| 12 |
+
"avgSuccessRate": 94,
|
| 13 |
+
"popularityScore": 8.8,
|
| 14 |
+
"__typename": "Score"
|
| 15 |
+
},
|
| 16 |
+
"host": "bc-real-time.p.rapidapi.com",
|
| 17 |
+
"api_list": [
|
| 18 |
+
{
|
| 19 |
+
"name": "Notion Service",
|
| 20 |
+
"url": "https://bc-real-time.p.rapidapi.com/bcTransferNotion/ddd",
|
| 21 |
+
"description": "Watch Notion database and launch Make.com scenario",
|
| 22 |
+
"method": "POST",
|
| 23 |
+
"required_parameters": [
|
| 24 |
+
{
|
| 25 |
+
"name": "Notion-database-Id",
|
| 26 |
+
"type": "string",
|
| 27 |
+
"description": "",
|
| 28 |
+
"default": "ddd"
|
| 29 |
+
}
|
| 30 |
+
],
|
| 31 |
+
"optional_parameters": [],
|
| 32 |
+
"code": "import requests\n\nurl = \"https://bc-real-time.p.rapidapi.com/bcTransferNotion/ddd\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"bc-real-time.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
|
| 33 |
+
"convert_code": "import requests\n\nurl = \"https://bc-real-time.p.rapidapi.com/bcTransferNotion/{notion_database_id}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"bc-real-time.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
|
| 34 |
+
"test_endpoint": "",
|
| 35 |
+
"statuscode": 200,
|
| 36 |
+
"schema": {
|
| 37 |
+
"type": "object",
|
| 38 |
+
"properties": {
|
| 39 |
+
"get": {
|
| 40 |
+
"type": "string"
|
| 41 |
+
},
|
| 42 |
+
"parameters": {
|
| 43 |
+
"type": "array"
|
| 44 |
+
},
|
| 45 |
+
"errors": {
|
| 46 |
+
"type": "array"
|
| 47 |
+
},
|
| 48 |
+
"results": {
|
| 49 |
+
"type": "integer"
|
| 50 |
+
},
|
| 51 |
+
"response": {
|
| 52 |
+
"type": "array",
|
| 53 |
+
"items": {
|
| 54 |
+
"type": "object"
|
| 55 |
+
}
|
| 56 |
+
}
|
| 57 |
+
}
|
| 58 |
+
}
|
| 59 |
+
}
|
| 60 |
+
]
|
| 61 |
+
}
|
toolbench/toolenv/tools/Data/bc_real_time_otter_ai.json
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"product_id": "api_dd0fe674-b34c-4809-9f45-08f76afe8840",
|
| 3 |
+
"tool_description": "Set your webhook url via the Keepalive endpoint, and you will receive a webhook on that url each time your Otter.ai account transcribes a conversation. \nThe webhook payload contains the full conversation transcription. \nAll data is securely encrypted.",
|
| 4 |
+
"home_url": "https://rapidapi.com/bourgarel-conseil-bourgarel-conseil-default/api/bc-real-time-otter-ai/",
|
| 5 |
+
"name": "BC Real Time Otter.ai",
|
| 6 |
+
"title": "BC Real Time Otter.ai",
|
| 7 |
+
"pricing": "FREEMIUM",
|
| 8 |
+
"tool_name": "BC Real Time Otter.ai",
|
| 9 |
+
"score": {
|
| 10 |
+
"avgServiceLevel": 98,
|
| 11 |
+
"avgLatency": 916,
|
| 12 |
+
"avgSuccessRate": 98,
|
| 13 |
+
"popularityScore": 9.2,
|
| 14 |
+
"__typename": "Score"
|
| 15 |
+
},
|
| 16 |
+
"host": "bc-real-time-otter-ai.p.rapidapi.com",
|
| 17 |
+
"api_list": [
|
| 18 |
+
{
|
| 19 |
+
"name": "bcOtteraiApi",
|
| 20 |
+
"url": "https://bc-real-time-otter-ai.p.rapidapi.com/bcOtteraiApi",
|
| 21 |
+
"description": "Calls internal Otter.ai Api, returns its raw result.",
|
| 22 |
+
"method": "POST",
|
| 23 |
+
"required_parameters": [],
|
| 24 |
+
"optional_parameters": [],
|
| 25 |
+
"code": "import requests\n\nurl = \"https://bc-real-time-otter-ai.p.rapidapi.com/bcOtteraiApi\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"bc-real-time-otter-ai.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
|
| 26 |
+
"convert_code": "import requests\n\nurl = \"https://bc-real-time-otter-ai.p.rapidapi.com/bcOtteraiApi\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"bc-real-time-otter-ai.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
|
| 27 |
+
"test_endpoint": ""
|
| 28 |
+
},
|
| 29 |
+
{
|
| 30 |
+
"name": "Keepalive",
|
| 31 |
+
"url": "https://bc-real-time-otter-ai.p.rapidapi.com/otterKeepAlive",
|
| 32 |
+
"description": "This endpoint must be called once every 7 days, so that the webhook service continues to operate.",
|
| 33 |
+
"method": "POST",
|
| 34 |
+
"required_parameters": [],
|
| 35 |
+
"optional_parameters": [],
|
| 36 |
+
"code": "import requests\n\nurl = \"https://bc-real-time-otter-ai.p.rapidapi.com/otterKeepAlive\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"bc-real-time-otter-ai.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
|
| 37 |
+
"convert_code": "import requests\n\nurl = \"https://bc-real-time-otter-ai.p.rapidapi.com/otterKeepAlive\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"bc-real-time-otter-ai.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
|
| 38 |
+
"test_endpoint": "",
|
| 39 |
+
"statuscode": 200,
|
| 40 |
+
"schema": {}
|
| 41 |
+
},
|
| 42 |
+
{
|
| 43 |
+
"name": "(Internal) Push webhook",
|
| 44 |
+
"url": "https://bc-real-time-otter-ai.p.rapidapi.com/bcForwardWebhookToClient",
|
| 45 |
+
"description": "This is an \"internal webhook\".\nIt should not be directly called.\nIt exists only for internal purposes, to push the right webhook at the right moment.",
|
| 46 |
+
"method": "POST",
|
| 47 |
+
"required_parameters": [],
|
| 48 |
+
"optional_parameters": [],
|
| 49 |
+
"code": "import requests\n\nurl = \"https://bc-real-time-otter-ai.p.rapidapi.com/bcForwardWebhookToClient\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"bc-real-time-otter-ai.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
|
| 50 |
+
"convert_code": "import requests\n\nurl = \"https://bc-real-time-otter-ai.p.rapidapi.com/bcForwardWebhookToClient\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"bc-real-time-otter-ai.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
|
| 51 |
+
"test_endpoint": ""
|
| 52 |
+
}
|
| 53 |
+
]
|
| 54 |
+
}
|
toolbench/toolenv/tools/Data/bc_real_time_pipedrive_com_filtering.json
ADDED
|
@@ -0,0 +1,100 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"product_id": "api_10cbbc51-727f-4b7d-94c7-6628c1d9bf19",
|
| 3 |
+
"tool_description": "BC Real Time Pipedrive.com filtering",
|
| 4 |
+
"home_url": "https://rapidapi.com/bourgarel-conseil-bourgarel-conseil-default/api/bc-real-time-pipedrive-com-filtering/",
|
| 5 |
+
"name": "BC Real Time Pipedrive.com filtering",
|
| 6 |
+
"title": "BC Real Time Pipedrive.com filtering",
|
| 7 |
+
"pricing": "FREEMIUM",
|
| 8 |
+
"tool_name": "BC Real Time Pipedrive.com filtering",
|
| 9 |
+
"score": {
|
| 10 |
+
"avgServiceLevel": 100,
|
| 11 |
+
"avgLatency": 2610,
|
| 12 |
+
"avgSuccessRate": 100,
|
| 13 |
+
"popularityScore": 8.5,
|
| 14 |
+
"__typename": "Score"
|
| 15 |
+
},
|
| 16 |
+
"host": "bc-real-time-pipedrive-com-filtering.p.rapidapi.com",
|
| 17 |
+
"api_list": [
|
| 18 |
+
{
|
| 19 |
+
"name": "keepalive",
|
| 20 |
+
"url": "https://bc-real-time-pipedrive-com-filtering.p.rapidapi.com/keepAlive",
|
| 21 |
+
"description": "This endpoint must be called once every 7 days, so that the webhook service continues to operate.",
|
| 22 |
+
"method": "POST",
|
| 23 |
+
"required_parameters": [],
|
| 24 |
+
"optional_parameters": [],
|
| 25 |
+
"code": "import requests\n\nurl = \"https://bc-real-time-pipedrive-com-filtering.p.rapidapi.com/keepAlive\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"bc-real-time-pipedrive-com-filtering.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
|
| 26 |
+
"convert_code": "import requests\n\nurl = \"https://bc-real-time-pipedrive-com-filtering.p.rapidapi.com/keepAlive\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"bc-real-time-pipedrive-com-filtering.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
|
| 27 |
+
"test_endpoint": "",
|
| 28 |
+
"statuscode": 200,
|
| 29 |
+
"schema": {
|
| 30 |
+
"type": "object",
|
| 31 |
+
"properties": {
|
| 32 |
+
"get": {
|
| 33 |
+
"type": "string"
|
| 34 |
+
},
|
| 35 |
+
"parameters": {
|
| 36 |
+
"type": "array"
|
| 37 |
+
},
|
| 38 |
+
"errors": {
|
| 39 |
+
"type": "array"
|
| 40 |
+
},
|
| 41 |
+
"results": {
|
| 42 |
+
"type": "integer"
|
| 43 |
+
},
|
| 44 |
+
"response": {
|
| 45 |
+
"type": "array",
|
| 46 |
+
"items": {
|
| 47 |
+
"type": "object"
|
| 48 |
+
}
|
| 49 |
+
}
|
| 50 |
+
}
|
| 51 |
+
}
|
| 52 |
+
},
|
| 53 |
+
{
|
| 54 |
+
"name": "(Internal) Push webhook",
|
| 55 |
+
"url": "https://bc-real-time-pipedrive-com-filtering.p.rapidapi.com/bcForwardWebhookToClient",
|
| 56 |
+
"description": "This is an \"internal webhook\". \nIt should not be directly called. \nIt exists only for internal purposes, to push the right webhook at the right moment.",
|
| 57 |
+
"method": "POST",
|
| 58 |
+
"required_parameters": [],
|
| 59 |
+
"optional_parameters": [],
|
| 60 |
+
"code": "import requests\n\nurl = \"https://bc-real-time-pipedrive-com-filtering.p.rapidapi.com/bcForwardWebhookToClient\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"bc-real-time-pipedrive-com-filtering.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
|
| 61 |
+
"convert_code": "import requests\n\nurl = \"https://bc-real-time-pipedrive-com-filtering.p.rapidapi.com/bcForwardWebhookToClient\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"bc-real-time-pipedrive-com-filtering.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
|
| 62 |
+
"test_endpoint": "",
|
| 63 |
+
"statuscode": 200,
|
| 64 |
+
"schema": {
|
| 65 |
+
"type": "object",
|
| 66 |
+
"properties": {
|
| 67 |
+
"get": {
|
| 68 |
+
"type": "string"
|
| 69 |
+
},
|
| 70 |
+
"parameters": {
|
| 71 |
+
"type": "array"
|
| 72 |
+
},
|
| 73 |
+
"errors": {
|
| 74 |
+
"type": "array"
|
| 75 |
+
},
|
| 76 |
+
"results": {
|
| 77 |
+
"type": "integer"
|
| 78 |
+
},
|
| 79 |
+
"response": {
|
| 80 |
+
"type": "array",
|
| 81 |
+
"items": {
|
| 82 |
+
"type": "object"
|
| 83 |
+
}
|
| 84 |
+
}
|
| 85 |
+
}
|
| 86 |
+
}
|
| 87 |
+
},
|
| 88 |
+
{
|
| 89 |
+
"name": "(Internal) Input event pc",
|
| 90 |
+
"url": "https://bc-real-time-pipedrive-com-filtering.p.rapidapi.com/bcInternalInputEvent",
|
| 91 |
+
"description": "This is an \"internal webhook\".\nIt should not be directly called.\nIt exists only for internal management purposes.",
|
| 92 |
+
"method": "POST",
|
| 93 |
+
"required_parameters": [],
|
| 94 |
+
"optional_parameters": [],
|
| 95 |
+
"code": "import requests\n\nurl = \"https://bc-real-time-pipedrive-com-filtering.p.rapidapi.com/bcInternalInputEvent\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"bc-real-time-pipedrive-com-filtering.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
|
| 96 |
+
"convert_code": "import requests\n\nurl = \"https://bc-real-time-pipedrive-com-filtering.p.rapidapi.com/bcInternalInputEvent\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"bc-real-time-pipedrive-com-filtering.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
|
| 97 |
+
"test_endpoint": ""
|
| 98 |
+
}
|
| 99 |
+
]
|
| 100 |
+
}
|
toolbench/toolenv/tools/Data/beautisoup_brasileira.json
ADDED
|
@@ -0,0 +1,149 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"product_id": "api_ca830884-47d6-45df-864c-2a7b795d1c22",
|
| 3 |
+
"tool_description": "Scrap de dados",
|
| 4 |
+
"home_url": "https://rapidapi.com/diegao-diegao-default/api/beautisoup-brasileira/",
|
| 5 |
+
"name": "Beautisoup Brasileira",
|
| 6 |
+
"title": "Beautisoup Brasileira",
|
| 7 |
+
"pricing": "FREEMIUM",
|
| 8 |
+
"tool_name": "Beautisoup Brasileira",
|
| 9 |
+
"score": {
|
| 10 |
+
"avgServiceLevel": 100,
|
| 11 |
+
"avgLatency": 1334,
|
| 12 |
+
"avgSuccessRate": 79,
|
| 13 |
+
"popularityScore": 9.2,
|
| 14 |
+
"__typename": "Score"
|
| 15 |
+
},
|
| 16 |
+
"host": "beautisoup-brasileira.p.rapidapi.com",
|
| 17 |
+
"api_list": [
|
| 18 |
+
{
|
| 19 |
+
"name": "Scraping de postagem",
|
| 20 |
+
"url": "https://beautisoup-brasileira.p.rapidapi.com/info-post",
|
| 21 |
+
"description": "Voc\u00ea precisa informas as classes de cada elemento que deseja capturar. Pode criar o valor de qualquer chave, e ao lado informar a classe dele, para o scraping fazer o resto.",
|
| 22 |
+
"method": "POST",
|
| 23 |
+
"required_parameters": [],
|
| 24 |
+
"optional_parameters": [],
|
| 25 |
+
"code": "import requests\n\nurl = \"https://beautisoup-brasileira.p.rapidapi.com/info-post\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"beautisoup-brasileira.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
|
| 26 |
+
"convert_code": "import requests\n\nurl = \"https://beautisoup-brasileira.p.rapidapi.com/info-post\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"beautisoup-brasileira.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
|
| 27 |
+
"test_endpoint": "",
|
| 28 |
+
"statuscode": 200,
|
| 29 |
+
"schema": {
|
| 30 |
+
"type": "object",
|
| 31 |
+
"properties": {
|
| 32 |
+
"url": {
|
| 33 |
+
"type": "string"
|
| 34 |
+
},
|
| 35 |
+
"titulo": {
|
| 36 |
+
"type": "string"
|
| 37 |
+
},
|
| 38 |
+
"descricao": {
|
| 39 |
+
"type": "string"
|
| 40 |
+
},
|
| 41 |
+
"imagem": {
|
| 42 |
+
"type": "string"
|
| 43 |
+
},
|
| 44 |
+
"direito-imagem": {
|
| 45 |
+
"type": "string"
|
| 46 |
+
},
|
| 47 |
+
"conteudo": {
|
| 48 |
+
"type": "string"
|
| 49 |
+
},
|
| 50 |
+
"favicon": {
|
| 51 |
+
"type": "string"
|
| 52 |
+
}
|
| 53 |
+
}
|
| 54 |
+
}
|
| 55 |
+
},
|
| 56 |
+
{
|
| 57 |
+
"name": "Portal de not\u00edcias",
|
| 58 |
+
"url": "https://beautisoup-brasileira.p.rapidapi.com/portal_noticia",
|
| 59 |
+
"description": "Esse endpoint \u00e9 especifico para grandes portais de not\u00edcias do Brasil",
|
| 60 |
+
"method": "POST",
|
| 61 |
+
"required_parameters": [],
|
| 62 |
+
"optional_parameters": [],
|
| 63 |
+
"code": "import requests\n\nurl = \"https://beautisoup-brasileira.p.rapidapi.com/portal_noticia\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"beautisoup-brasileira.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
|
| 64 |
+
"convert_code": "import requests\n\nurl = \"https://beautisoup-brasileira.p.rapidapi.com/portal_noticia\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"beautisoup-brasileira.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
|
| 65 |
+
"test_endpoint": "",
|
| 66 |
+
"statuscode": 200,
|
| 67 |
+
"schema": {
|
| 68 |
+
"type": "object",
|
| 69 |
+
"properties": {
|
| 70 |
+
"url": {
|
| 71 |
+
"type": "string"
|
| 72 |
+
},
|
| 73 |
+
"titulo": {
|
| 74 |
+
"type": "string"
|
| 75 |
+
},
|
| 76 |
+
"descricao": {
|
| 77 |
+
"type": "string"
|
| 78 |
+
},
|
| 79 |
+
"imagem": {
|
| 80 |
+
"type": "string"
|
| 81 |
+
},
|
| 82 |
+
"direito-imagem": {
|
| 83 |
+
"type": "string"
|
| 84 |
+
},
|
| 85 |
+
"conteudo": {
|
| 86 |
+
"type": "string"
|
| 87 |
+
},
|
| 88 |
+
"favicon": {
|
| 89 |
+
"type": "string"
|
| 90 |
+
}
|
| 91 |
+
}
|
| 92 |
+
}
|
| 93 |
+
},
|
| 94 |
+
{
|
| 95 |
+
"name": "Primeira mat\u00e9ria",
|
| 96 |
+
"url": "https://beautisoup-brasileira.p.rapidapi.com/primeira-materia",
|
| 97 |
+
"description": "Esse endpoint \u00e9 pra retornar apenas a primeira mat\u00e9ria da pesquisa, que no caso \u00e9 a mais recente.",
|
| 98 |
+
"method": "POST",
|
| 99 |
+
"required_parameters": [],
|
| 100 |
+
"optional_parameters": [],
|
| 101 |
+
"code": "import requests\n\nurl = \"https://beautisoup-brasileira.p.rapidapi.com/primeira-materia\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"beautisoup-brasileira.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
|
| 102 |
+
"convert_code": "import requests\n\nurl = \"https://beautisoup-brasileira.p.rapidapi.com/primeira-materia\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"beautisoup-brasileira.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
|
| 103 |
+
"test_endpoint": "",
|
| 104 |
+
"statuscode": 200,
|
| 105 |
+
"schema": {
|
| 106 |
+
"type": "object",
|
| 107 |
+
"properties": {
|
| 108 |
+
"url": {
|
| 109 |
+
"type": "string"
|
| 110 |
+
},
|
| 111 |
+
"parent_tag": {
|
| 112 |
+
"type": "string"
|
| 113 |
+
},
|
| 114 |
+
"parent_class": {
|
| 115 |
+
"type": "string"
|
| 116 |
+
},
|
| 117 |
+
"titulo": {
|
| 118 |
+
"type": "string"
|
| 119 |
+
},
|
| 120 |
+
"resumo": {
|
| 121 |
+
"type": "string"
|
| 122 |
+
},
|
| 123 |
+
"imagem": {
|
| 124 |
+
"type": "string"
|
| 125 |
+
},
|
| 126 |
+
"data": {
|
| 127 |
+
"type": "string"
|
| 128 |
+
},
|
| 129 |
+
"link": {
|
| 130 |
+
"type": "string"
|
| 131 |
+
}
|
| 132 |
+
}
|
| 133 |
+
}
|
| 134 |
+
},
|
| 135 |
+
{
|
| 136 |
+
"name": "Scraping de categorias",
|
| 137 |
+
"url": "https://beautisoup-brasileira.p.rapidapi.com/scrape_website",
|
| 138 |
+
"description": "Esse endpoint \u00e9 pra retornar a lista de postagens de uma p\u00e1gina, e n\u00e3o o conte\u00fado da m\u00e1teria.",
|
| 139 |
+
"method": "POST",
|
| 140 |
+
"required_parameters": [],
|
| 141 |
+
"optional_parameters": [],
|
| 142 |
+
"code": "import requests\n\nurl = \"https://beautisoup-brasileira.p.rapidapi.com/scrape_website\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"beautisoup-brasileira.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
|
| 143 |
+
"convert_code": "import requests\n\nurl = \"https://beautisoup-brasileira.p.rapidapi.com/scrape_website\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"beautisoup-brasileira.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
|
| 144 |
+
"test_endpoint": "",
|
| 145 |
+
"statuscode": 200,
|
| 146 |
+
"schema": {}
|
| 147 |
+
}
|
| 148 |
+
]
|
| 149 |
+
}
|
toolbench/toolenv/tools/Data/best_backlink_checker_api.json
ADDED
|
@@ -0,0 +1,117 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"tool_name":"Best Backlink checker API",
|
| 3 |
+
"tool_description":"Best Backlink checker, You can check Top backlinks, New backlinks, Poor Backlinks, etc",
|
| 4 |
+
"title":"Best Backlink checker API",
|
| 5 |
+
"pricing":"FREEMIUM",
|
| 6 |
+
"score":{
|
| 7 |
+
"avgServiceLevel":100,
|
| 8 |
+
"avgLatency":5597,
|
| 9 |
+
"avgSuccessRate":100,
|
| 10 |
+
"popularityScore":9.8,
|
| 11 |
+
"__typename":"Score"
|
| 12 |
+
},
|
| 13 |
+
"home_url":"https://rapidapi.com/ajithjojo1230/api/best-backlink-checker-api/",
|
| 14 |
+
"host":"best-backlink-checker-api.p.rapidapi.com",
|
| 15 |
+
"api_list":[
|
| 16 |
+
{
|
| 17 |
+
"name":"Exact URL (Non English)",
|
| 18 |
+
"url":"https://best-backlink-checker-api.p.rapidapi.com/excatbacklinks_noneng.php",
|
| 19 |
+
"description":"Get backlinks of a specific URL. Non English URL's only",
|
| 20 |
+
"method":"GET",
|
| 21 |
+
"required_parameters":[
|
| 22 |
+
{
|
| 23 |
+
"name":"domain",
|
| 24 |
+
"type":"STRING",
|
| 25 |
+
"description":"",
|
| 26 |
+
"default":"https://codeconia.com/2021/05/28/html-form-to-email-with-attachment-using-php/"
|
| 27 |
+
}
|
| 28 |
+
],
|
| 29 |
+
"optional_parameters":[],
|
| 30 |
+
"code":"import requests\n\nurl = \"https://best-backlink-checker-api.p.rapidapi.com/excatbacklinks_noneng.php\"\nquerystring = {\"domain\": domain}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"best-backlink-checker-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 |
+
"name":"New Backlinks",
|
| 38 |
+
"url":"https://best-backlink-checker-api.p.rapidapi.com/newbacklinks.php",
|
| 39 |
+
"description":"Get the list of top backlinks and counts",
|
| 40 |
+
"method":"GET",
|
| 41 |
+
"required_parameters":[
|
| 42 |
+
{
|
| 43 |
+
"name":"domain",
|
| 44 |
+
"type":"STRING",
|
| 45 |
+
"description":"",
|
| 46 |
+
"default":"getecz.com"
|
| 47 |
+
}
|
| 48 |
+
],
|
| 49 |
+
"optional_parameters":[],
|
| 50 |
+
"code":"import requests\n\nurl = \"https://best-backlink-checker-api.p.rapidapi.com/newbacklinks.php\"\nquerystring = {\"domain\": domain}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"best-backlink-checker-api.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n",
|
| 51 |
+
"statuscode":111,
|
| 52 |
+
"body":"",
|
| 53 |
+
"headers":"",
|
| 54 |
+
"schema":""
|
| 55 |
+
},
|
| 56 |
+
{
|
| 57 |
+
"name":"Poor Backlinks",
|
| 58 |
+
"url":"https://best-backlink-checker-api.p.rapidapi.com/poorbacklinks.php",
|
| 59 |
+
"description":"Get the list of top backlinks and counts",
|
| 60 |
+
"method":"GET",
|
| 61 |
+
"required_parameters":[
|
| 62 |
+
{
|
| 63 |
+
"name":"domain",
|
| 64 |
+
"type":"STRING",
|
| 65 |
+
"description":"",
|
| 66 |
+
"default":"getecz.com"
|
| 67 |
+
}
|
| 68 |
+
],
|
| 69 |
+
"optional_parameters":[],
|
| 70 |
+
"code":"import requests\n\nurl = \"https://best-backlink-checker-api.p.rapidapi.com/poorbacklinks.php\"\nquerystring = {\"domain\": domain}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"best-backlink-checker-api.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n",
|
| 71 |
+
"statuscode":111,
|
| 72 |
+
"body":"",
|
| 73 |
+
"headers":"",
|
| 74 |
+
"schema":""
|
| 75 |
+
},
|
| 76 |
+
{
|
| 77 |
+
"name":"Top Backlinks",
|
| 78 |
+
"url":"https://best-backlink-checker-api.p.rapidapi.com/backlinks.php",
|
| 79 |
+
"description":"Get the list of top backlinks and counts",
|
| 80 |
+
"method":"GET",
|
| 81 |
+
"required_parameters":[
|
| 82 |
+
{
|
| 83 |
+
"name":"domain",
|
| 84 |
+
"type":"STRING",
|
| 85 |
+
"description":"",
|
| 86 |
+
"default":"getecz.com"
|
| 87 |
+
}
|
| 88 |
+
],
|
| 89 |
+
"optional_parameters":[],
|
| 90 |
+
"code":"import requests\n\nurl = \"https://best-backlink-checker-api.p.rapidapi.com/backlinks.php\"\nquerystring = {\"domain\": domain}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"best-backlink-checker-api.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n",
|
| 91 |
+
"statuscode":111,
|
| 92 |
+
"body":"",
|
| 93 |
+
"headers":"",
|
| 94 |
+
"schema":""
|
| 95 |
+
},
|
| 96 |
+
{
|
| 97 |
+
"name":"Exact URL",
|
| 98 |
+
"url":"https://best-backlink-checker-api.p.rapidapi.com/excatbacklink.php",
|
| 99 |
+
"description":"Get backlinks of a specific URL.",
|
| 100 |
+
"method":"GET",
|
| 101 |
+
"required_parameters":[
|
| 102 |
+
{
|
| 103 |
+
"name":"domain",
|
| 104 |
+
"type":"STRING",
|
| 105 |
+
"description":"",
|
| 106 |
+
"default":"https://codeconia.com/2021/05/28/html-form-to-email-with-attachment-using-php/"
|
| 107 |
+
}
|
| 108 |
+
],
|
| 109 |
+
"optional_parameters":[],
|
| 110 |
+
"code":"import requests\n\nurl = \"https://best-backlink-checker-api.p.rapidapi.com/excatbacklink.php\"\nquerystring = {\"domain\": domain}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"best-backlink-checker-api.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n",
|
| 111 |
+
"statuscode":111,
|
| 112 |
+
"body":"",
|
| 113 |
+
"headers":"",
|
| 114 |
+
"schema":""
|
| 115 |
+
}
|
| 116 |
+
]
|
| 117 |
+
}
|
toolbench/toolenv/tools/Data/best_backlink_checker_api/api.py
ADDED
|
@@ -0,0 +1,113 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import requests
|
| 2 |
+
import json
|
| 3 |
+
from datetime import date, datetime, timedelta
|
| 4 |
+
import os
|
| 5 |
+
|
| 6 |
+
from typing import Optional, Dict, Union, List
|
| 7 |
+
|
| 8 |
+
|
| 9 |
+
def exact_url_non_english(domain: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 10 |
+
"""
|
| 11 |
+
"Get backlinks of a specific URL. Non English URL's only"
|
| 12 |
+
|
| 13 |
+
"""
|
| 14 |
+
url = f"https://best-backlink-checker-api.p.rapidapi.com/excatbacklinks_noneng.php"
|
| 15 |
+
querystring = {'domain': domain, }
|
| 16 |
+
|
| 17 |
+
headers = {
|
| 18 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 19 |
+
"X-RapidAPI-Host": "best-backlink-checker-api.p.rapidapi.com"
|
| 20 |
+
}
|
| 21 |
+
|
| 22 |
+
|
| 23 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 24 |
+
try:
|
| 25 |
+
observation = response.json()
|
| 26 |
+
except:
|
| 27 |
+
observation = response.text
|
| 28 |
+
return observation
|
| 29 |
+
|
| 30 |
+
def new_backlinks(domain: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 31 |
+
"""
|
| 32 |
+
"Get the list of top backlinks and counts"
|
| 33 |
+
|
| 34 |
+
"""
|
| 35 |
+
url = f"https://best-backlink-checker-api.p.rapidapi.com/newbacklinks.php"
|
| 36 |
+
querystring = {'domain': domain, }
|
| 37 |
+
|
| 38 |
+
headers = {
|
| 39 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 40 |
+
"X-RapidAPI-Host": "best-backlink-checker-api.p.rapidapi.com"
|
| 41 |
+
}
|
| 42 |
+
|
| 43 |
+
|
| 44 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 45 |
+
try:
|
| 46 |
+
observation = response.json()
|
| 47 |
+
except:
|
| 48 |
+
observation = response.text
|
| 49 |
+
return observation
|
| 50 |
+
|
| 51 |
+
def poor_backlinks(domain: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 52 |
+
"""
|
| 53 |
+
"Get the list of top backlinks and counts"
|
| 54 |
+
|
| 55 |
+
"""
|
| 56 |
+
url = f"https://best-backlink-checker-api.p.rapidapi.com/poorbacklinks.php"
|
| 57 |
+
querystring = {'domain': domain, }
|
| 58 |
+
|
| 59 |
+
headers = {
|
| 60 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 61 |
+
"X-RapidAPI-Host": "best-backlink-checker-api.p.rapidapi.com"
|
| 62 |
+
}
|
| 63 |
+
|
| 64 |
+
|
| 65 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 66 |
+
try:
|
| 67 |
+
observation = response.json()
|
| 68 |
+
except:
|
| 69 |
+
observation = response.text
|
| 70 |
+
return observation
|
| 71 |
+
|
| 72 |
+
def top_backlinks(domain: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 73 |
+
"""
|
| 74 |
+
"Get the list of top backlinks and counts"
|
| 75 |
+
|
| 76 |
+
"""
|
| 77 |
+
url = f"https://best-backlink-checker-api.p.rapidapi.com/backlinks.php"
|
| 78 |
+
querystring = {'domain': domain, }
|
| 79 |
+
|
| 80 |
+
headers = {
|
| 81 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 82 |
+
"X-RapidAPI-Host": "best-backlink-checker-api.p.rapidapi.com"
|
| 83 |
+
}
|
| 84 |
+
|
| 85 |
+
|
| 86 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 87 |
+
try:
|
| 88 |
+
observation = response.json()
|
| 89 |
+
except:
|
| 90 |
+
observation = response.text
|
| 91 |
+
return observation
|
| 92 |
+
|
| 93 |
+
def exact_url(domain: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 94 |
+
"""
|
| 95 |
+
"Get backlinks of a specific URL."
|
| 96 |
+
|
| 97 |
+
"""
|
| 98 |
+
url = f"https://best-backlink-checker-api.p.rapidapi.com/excatbacklink.php"
|
| 99 |
+
querystring = {'domain': domain, }
|
| 100 |
+
|
| 101 |
+
headers = {
|
| 102 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 103 |
+
"X-RapidAPI-Host": "best-backlink-checker-api.p.rapidapi.com"
|
| 104 |
+
}
|
| 105 |
+
|
| 106 |
+
|
| 107 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 108 |
+
try:
|
| 109 |
+
observation = response.json()
|
| 110 |
+
except:
|
| 111 |
+
observation = response.text
|
| 112 |
+
return observation
|
| 113 |
+
|
toolbench/toolenv/tools/Data/best_web_scraping_api.json
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"tool_name":"Best Web Scraping API",
|
| 3 |
+
"tool_description":"Best Web Scraping API is a reliable solution for retrieving HTML source code from any website. It offers fast and easy access to the source code, allowing developers to extract valuable data and information. It is perfect for web scraping projects, data analysis, and website development.",
|
| 4 |
+
"title":"Best Web Scraping API",
|
| 5 |
+
"pricing":"FREEMIUM",
|
| 6 |
+
"score":null,
|
| 7 |
+
"home_url":"https://rapidapi.com/zyla-labs-zyla-labs-default/api/best-web-scraping-api1/",
|
| 8 |
+
"host":"best-web-scraping-api1.p.rapidapi.com",
|
| 9 |
+
"api_list":[
|
| 10 |
+
{
|
| 11 |
+
"name":"Scrape",
|
| 12 |
+
"url":"https://best-web-scraping-api1.p.rapidapi.com/scrape",
|
| 13 |
+
"description":"Pass the URL of your choice, and extract the HTML code within it. Easy as that.",
|
| 14 |
+
"method":"GET",
|
| 15 |
+
"required_parameters":[
|
| 16 |
+
{
|
| 17 |
+
"name":"url",
|
| 18 |
+
"type":"STRING",
|
| 19 |
+
"description":"",
|
| 20 |
+
"default":"https://getwoord.com"
|
| 21 |
+
}
|
| 22 |
+
],
|
| 23 |
+
"optional_parameters":[],
|
| 24 |
+
"code":"import requests\n\nurl = \"https://best-web-scraping-api1.p.rapidapi.com/scrape\"\nquerystring = {\"url\": url}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"best-web-scraping-api1.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n",
|
| 25 |
+
"statuscode":111,
|
| 26 |
+
"body":"",
|
| 27 |
+
"headers":"",
|
| 28 |
+
"schema":""
|
| 29 |
+
}
|
| 30 |
+
]
|
| 31 |
+
}
|
toolbench/toolenv/tools/Data/best_web_scraping_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 scrape(url: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 10 |
+
"""
|
| 11 |
+
"Pass the URL of your choice, and extract the HTML code within it. Easy as that."
|
| 12 |
+
|
| 13 |
+
"""
|
| 14 |
+
url = f"https://best-web-scraping-api1.p.rapidapi.com/scrape"
|
| 15 |
+
querystring = {'url': url, }
|
| 16 |
+
|
| 17 |
+
headers = {
|
| 18 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 19 |
+
"X-RapidAPI-Host": "best-web-scraping-api1.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/Data/bible_memory_verse_flashcard.json
ADDED
|
@@ -0,0 +1,533 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"tool_name":"Bible Memory Verse Flashcard",
|
| 3 |
+
"tool_description":"This KJV Bible API v2 allows users to retrieve verses/chapters in 1 of 8 formats.",
|
| 4 |
+
"title":"Bible Memory Verse Flashcard",
|
| 5 |
+
"pricing":"FREE",
|
| 6 |
+
"score":{
|
| 7 |
+
"avgServiceLevel":100,
|
| 8 |
+
"avgLatency":1006,
|
| 9 |
+
"avgSuccessRate":98,
|
| 10 |
+
"popularityScore":9.5,
|
| 11 |
+
"__typename":"Score"
|
| 12 |
+
},
|
| 13 |
+
"home_url":"https://rapidapi.com/curtistaylor/api/bible-memory-verse-flashcard/",
|
| 14 |
+
"host":"bible-memory-verse-flashcard.p.rapidapi.com",
|
| 15 |
+
"api_list":[
|
| 16 |
+
{
|
| 17 |
+
"name":"Get Verses Starting With Search Term",
|
| 18 |
+
"url":"https://bible-memory-verse-flashcard.p.rapidapi.com/search_term/get_verses_starting_with_search_term",
|
| 19 |
+
"description":"Returns verses starting with search term(s)",
|
| 20 |
+
"method":"GET",
|
| 21 |
+
"required_parameters":[
|
| 22 |
+
{
|
| 23 |
+
"name":"term1",
|
| 24 |
+
"type":"STRING",
|
| 25 |
+
"description":"",
|
| 26 |
+
"default":"For"
|
| 27 |
+
},
|
| 28 |
+
{
|
| 29 |
+
"name":"first_book",
|
| 30 |
+
"type":"STRING",
|
| 31 |
+
"description":"",
|
| 32 |
+
"default":"numbers"
|
| 33 |
+
}
|
| 34 |
+
],
|
| 35 |
+
"optional_parameters":[
|
| 36 |
+
{
|
| 37 |
+
"name":"not_sub_word_search_mode",
|
| 38 |
+
"type":"BOOLEAN",
|
| 39 |
+
"description":"",
|
| 40 |
+
"default":"true"
|
| 41 |
+
},
|
| 42 |
+
{
|
| 43 |
+
"name":"uppercase_mode",
|
| 44 |
+
"type":"BOOLEAN",
|
| 45 |
+
"description":"",
|
| 46 |
+
"default":"false"
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"name":"term4",
|
| 50 |
+
"type":"STRING",
|
| 51 |
+
"description":"",
|
| 52 |
+
"default":""
|
| 53 |
+
},
|
| 54 |
+
{
|
| 55 |
+
"name":"second_book",
|
| 56 |
+
"type":"STRING",
|
| 57 |
+
"description":"",
|
| 58 |
+
"default":"job"
|
| 59 |
+
},
|
| 60 |
+
{
|
| 61 |
+
"name":"term2",
|
| 62 |
+
"type":"STRING",
|
| 63 |
+
"description":"",
|
| 64 |
+
"default":"with"
|
| 65 |
+
},
|
| 66 |
+
{
|
| 67 |
+
"name":"term3",
|
| 68 |
+
"type":"STRING",
|
| 69 |
+
"description":"",
|
| 70 |
+
"default":""
|
| 71 |
+
},
|
| 72 |
+
{
|
| 73 |
+
"name":"text_mode",
|
| 74 |
+
"type":"STRING",
|
| 75 |
+
"description":"",
|
| 76 |
+
"default":"full"
|
| 77 |
+
}
|
| 78 |
+
],
|
| 79 |
+
"code":"import requests\n\nurl = \"https://bible-memory-verse-flashcard.p.rapidapi.com/search_term/get_verses_starting_with_search_term\"\nquerystring = {\"not_sub_word_search_mode\": not_sub_word_search_mode, \"uppercase_mode\": uppercase_mode, \"term1\": term1, \"second_book\": second_book, \"first_book\": first_book, \"term2\": term2, \"text_mode\": text_mode}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"bible-memory-verse-flashcard.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n",
|
| 80 |
+
"statuscode":111,
|
| 81 |
+
"body":"",
|
| 82 |
+
"headers":"",
|
| 83 |
+
"schema":""
|
| 84 |
+
},
|
| 85 |
+
{
|
| 86 |
+
"name":"Search Term - Verse Address Summary",
|
| 87 |
+
"url":"https://bible-memory-verse-flashcard.p.rapidapi.com/search_term/chapter_summary",
|
| 88 |
+
"description":"Returns a summary for verse addresses that contain term criteria.\n\n** CAN SEARCH A RANGE OF BOOKS. \n(first_book = 'matthew' , second_book = 'john' MEANS ENDPOINT SEARCHES 'matthew' 'mark' 'luke' 'john') **",
|
| 89 |
+
"method":"GET",
|
| 90 |
+
"required_parameters":[
|
| 91 |
+
{
|
| 92 |
+
"name":"first_book",
|
| 93 |
+
"type":"STRING",
|
| 94 |
+
"description":"",
|
| 95 |
+
"default":"matthew"
|
| 96 |
+
},
|
| 97 |
+
{
|
| 98 |
+
"name":"term1",
|
| 99 |
+
"type":"STRING",
|
| 100 |
+
"description":"",
|
| 101 |
+
"default":"temple"
|
| 102 |
+
}
|
| 103 |
+
],
|
| 104 |
+
"optional_parameters":[
|
| 105 |
+
{
|
| 106 |
+
"name":"word_search_mode",
|
| 107 |
+
"type":"BOOLEAN",
|
| 108 |
+
"description":"",
|
| 109 |
+
"default":"true"
|
| 110 |
+
},
|
| 111 |
+
{
|
| 112 |
+
"name":"term_filter_operator",
|
| 113 |
+
"type":"STRING",
|
| 114 |
+
"description":"",
|
| 115 |
+
"default":"and"
|
| 116 |
+
},
|
| 117 |
+
{
|
| 118 |
+
"name":"term5",
|
| 119 |
+
"type":"STRING",
|
| 120 |
+
"description":"",
|
| 121 |
+
"default":""
|
| 122 |
+
},
|
| 123 |
+
{
|
| 124 |
+
"name":"second_book",
|
| 125 |
+
"type":"STRING",
|
| 126 |
+
"description":"",
|
| 127 |
+
"default":"revelation"
|
| 128 |
+
},
|
| 129 |
+
{
|
| 130 |
+
"name":"term2",
|
| 131 |
+
"type":"STRING",
|
| 132 |
+
"description":"",
|
| 133 |
+
"default":"fire"
|
| 134 |
+
},
|
| 135 |
+
{
|
| 136 |
+
"name":"term3",
|
| 137 |
+
"type":"STRING",
|
| 138 |
+
"description":"",
|
| 139 |
+
"default":""
|
| 140 |
+
},
|
| 141 |
+
{
|
| 142 |
+
"name":"term4",
|
| 143 |
+
"type":"STRING",
|
| 144 |
+
"description":"",
|
| 145 |
+
"default":""
|
| 146 |
+
}
|
| 147 |
+
],
|
| 148 |
+
"code":"import requests\n\nurl = \"https://bible-memory-verse-flashcard.p.rapidapi.com/search_term/chapter_summary\"\nquerystring = {\"word_search_mode\": word_search_mode, \"term_filter_operator\": term_filter_operator, \"second_book\": second_book, \"term2\": term2, \"first_book\": first_book, \"term1\": term1}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"bible-memory-verse-flashcard.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n",
|
| 149 |
+
"statuscode":111,
|
| 150 |
+
"body":"",
|
| 151 |
+
"headers":"",
|
| 152 |
+
"schema":""
|
| 153 |
+
},
|
| 154 |
+
{
|
| 155 |
+
"name":"Search Term - Chapter Address Summary",
|
| 156 |
+
"url":"https://bible-memory-verse-flashcard.p.rapidapi.com/search_term/chapter_summary",
|
| 157 |
+
"description":"Returns a summary for chapter addresses that contain term criteria. A dictionary is returned using Bible book names as keys. Under each key, is a list of the chapters(in numerical form) that contains the term(s).\n\n** CAN SEARCH A RANGE OF BOOKS. \n(first_book = 'matthew' , second_book = 'john' MEANS ENDPOINT SEARCHES 'matthew' 'mark' 'luke' 'john') **",
|
| 158 |
+
"method":"GET",
|
| 159 |
+
"required_parameters":[
|
| 160 |
+
{
|
| 161 |
+
"name":"first_book",
|
| 162 |
+
"type":"STRING",
|
| 163 |
+
"description":"",
|
| 164 |
+
"default":"matthew"
|
| 165 |
+
},
|
| 166 |
+
{
|
| 167 |
+
"name":"term1",
|
| 168 |
+
"type":"STRING",
|
| 169 |
+
"description":"",
|
| 170 |
+
"default":"temple"
|
| 171 |
+
}
|
| 172 |
+
],
|
| 173 |
+
"optional_parameters":[
|
| 174 |
+
{
|
| 175 |
+
"name":"term_filter_operator",
|
| 176 |
+
"type":"STRING",
|
| 177 |
+
"description":"",
|
| 178 |
+
"default":"and"
|
| 179 |
+
},
|
| 180 |
+
{
|
| 181 |
+
"name":"word_search_mode",
|
| 182 |
+
"type":"BOOLEAN",
|
| 183 |
+
"description":"",
|
| 184 |
+
"default":"true"
|
| 185 |
+
},
|
| 186 |
+
{
|
| 187 |
+
"name":"term4",
|
| 188 |
+
"type":"STRING",
|
| 189 |
+
"description":"",
|
| 190 |
+
"default":""
|
| 191 |
+
},
|
| 192 |
+
{
|
| 193 |
+
"name":"term5",
|
| 194 |
+
"type":"STRING",
|
| 195 |
+
"description":"",
|
| 196 |
+
"default":""
|
| 197 |
+
},
|
| 198 |
+
{
|
| 199 |
+
"name":"term2",
|
| 200 |
+
"type":"STRING",
|
| 201 |
+
"description":"",
|
| 202 |
+
"default":"fire"
|
| 203 |
+
},
|
| 204 |
+
{
|
| 205 |
+
"name":"term3",
|
| 206 |
+
"type":"STRING",
|
| 207 |
+
"description":"",
|
| 208 |
+
"default":""
|
| 209 |
+
},
|
| 210 |
+
{
|
| 211 |
+
"name":"second_book",
|
| 212 |
+
"type":"STRING",
|
| 213 |
+
"description":"",
|
| 214 |
+
"default":"revelation"
|
| 215 |
+
}
|
| 216 |
+
],
|
| 217 |
+
"code":"import requests\n\nurl = \"https://bible-memory-verse-flashcard.p.rapidapi.com/search_term/chapter_summary\"\nquerystring = {\"first_book\": first_book, \"term_filter_operator\": term_filter_operator, \"word_search_mode\": word_search_mode, \"term2\": term2, \"second_book\": second_book, \"term1\": term1}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"bible-memory-verse-flashcard.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n",
|
| 218 |
+
"statuscode":111,
|
| 219 |
+
"body":"",
|
| 220 |
+
"headers":"",
|
| 221 |
+
"schema":""
|
| 222 |
+
},
|
| 223 |
+
{
|
| 224 |
+
"name":"Search Term - Count occurrences of terms found in text",
|
| 225 |
+
"url":"https://bible-memory-verse-flashcard.p.rapidapi.com/search_term/counter",
|
| 226 |
+
"description":"** CAN SEARCH A RANGE OF BOOKS. \n(first_book = 'matthew' , second_book = 'john' MEANS ENDPOINT SEARCHES 'matthew' 'mark' 'luke' 'john') **",
|
| 227 |
+
"method":"GET",
|
| 228 |
+
"required_parameters":[
|
| 229 |
+
{
|
| 230 |
+
"name":"term1",
|
| 231 |
+
"type":"STRING",
|
| 232 |
+
"description":"",
|
| 233 |
+
"default":"temple"
|
| 234 |
+
},
|
| 235 |
+
{
|
| 236 |
+
"name":"first_book",
|
| 237 |
+
"type":"STRING",
|
| 238 |
+
"description":"",
|
| 239 |
+
"default":"genesis"
|
| 240 |
+
}
|
| 241 |
+
],
|
| 242 |
+
"optional_parameters":[
|
| 243 |
+
{
|
| 244 |
+
"name":"term4",
|
| 245 |
+
"type":"STRING",
|
| 246 |
+
"description":"",
|
| 247 |
+
"default":""
|
| 248 |
+
},
|
| 249 |
+
{
|
| 250 |
+
"name":"term7",
|
| 251 |
+
"type":"STRING",
|
| 252 |
+
"description":"",
|
| 253 |
+
"default":""
|
| 254 |
+
},
|
| 255 |
+
{
|
| 256 |
+
"name":"term5",
|
| 257 |
+
"type":"STRING",
|
| 258 |
+
"description":"",
|
| 259 |
+
"default":""
|
| 260 |
+
},
|
| 261 |
+
{
|
| 262 |
+
"name":"term3",
|
| 263 |
+
"type":"STRING",
|
| 264 |
+
"description":"",
|
| 265 |
+
"default":""
|
| 266 |
+
},
|
| 267 |
+
{
|
| 268 |
+
"name":"second_book",
|
| 269 |
+
"type":"STRING",
|
| 270 |
+
"description":"",
|
| 271 |
+
"default":"job"
|
| 272 |
+
},
|
| 273 |
+
{
|
| 274 |
+
"name":"term2",
|
| 275 |
+
"type":"STRING",
|
| 276 |
+
"description":"",
|
| 277 |
+
"default":""
|
| 278 |
+
},
|
| 279 |
+
{
|
| 280 |
+
"name":"term6",
|
| 281 |
+
"type":"STRING",
|
| 282 |
+
"description":"",
|
| 283 |
+
"default":""
|
| 284 |
+
}
|
| 285 |
+
],
|
| 286 |
+
"code":"import requests\n\nurl = \"https://bible-memory-verse-flashcard.p.rapidapi.com/search_term/counter\"\nquerystring = {\"term1\": term1, \"first_book\": first_book, \"second_book\": second_book}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"bible-memory-verse-flashcard.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n",
|
| 287 |
+
"statuscode":111,
|
| 288 |
+
"body":"",
|
| 289 |
+
"headers":"",
|
| 290 |
+
"schema":""
|
| 291 |
+
},
|
| 292 |
+
{
|
| 293 |
+
"name":"Search for Chapters containing Terms",
|
| 294 |
+
"url":"https://bible-memory-verse-flashcard.p.rapidapi.com/search_term/chapters",
|
| 295 |
+
"description":"Takes term(s) and returns chapters that contain term(s). Terms are not case sensitive. Books, operators etc. are NOT CASE SENSITIVE.\n\n** ONLY SEARCHES 2 BOOKS (NO RANGE FUNCTION) **",
|
| 296 |
+
"method":"GET",
|
| 297 |
+
"required_parameters":[
|
| 298 |
+
{
|
| 299 |
+
"name":"term1",
|
| 300 |
+
"type":"STRING",
|
| 301 |
+
"description":"",
|
| 302 |
+
"default":"bread"
|
| 303 |
+
},
|
| 304 |
+
{
|
| 305 |
+
"name":"first_book",
|
| 306 |
+
"type":"STRING",
|
| 307 |
+
"description":"",
|
| 308 |
+
"default":"matthew"
|
| 309 |
+
}
|
| 310 |
+
],
|
| 311 |
+
"optional_parameters":[
|
| 312 |
+
{
|
| 313 |
+
"name":"uppercase_mode",
|
| 314 |
+
"type":"BOOLEAN",
|
| 315 |
+
"description":"",
|
| 316 |
+
"default":"false"
|
| 317 |
+
},
|
| 318 |
+
{
|
| 319 |
+
"name":"word_search_mode",
|
| 320 |
+
"type":"BOOLEAN",
|
| 321 |
+
"description":"",
|
| 322 |
+
"default":"true"
|
| 323 |
+
},
|
| 324 |
+
{
|
| 325 |
+
"name":"second_book",
|
| 326 |
+
"type":"STRING",
|
| 327 |
+
"description":"",
|
| 328 |
+
"default":""
|
| 329 |
+
},
|
| 330 |
+
{
|
| 331 |
+
"name":"term_filter_operator",
|
| 332 |
+
"type":"STRING",
|
| 333 |
+
"description":"",
|
| 334 |
+
"default":"and"
|
| 335 |
+
},
|
| 336 |
+
{
|
| 337 |
+
"name":"term2",
|
| 338 |
+
"type":"STRING",
|
| 339 |
+
"description":"",
|
| 340 |
+
"default":"light"
|
| 341 |
+
},
|
| 342 |
+
{
|
| 343 |
+
"name":"term3",
|
| 344 |
+
"type":"STRING",
|
| 345 |
+
"description":"",
|
| 346 |
+
"default":""
|
| 347 |
+
},
|
| 348 |
+
{
|
| 349 |
+
"name":"term4",
|
| 350 |
+
"type":"STRING",
|
| 351 |
+
"description":"",
|
| 352 |
+
"default":""
|
| 353 |
+
},
|
| 354 |
+
{
|
| 355 |
+
"name":"text_mode",
|
| 356 |
+
"type":"STRING",
|
| 357 |
+
"description":"",
|
| 358 |
+
"default":"bionic"
|
| 359 |
+
}
|
| 360 |
+
],
|
| 361 |
+
"code":"import requests\n\nurl = \"https://bible-memory-verse-flashcard.p.rapidapi.com/search_term/chapters\"\nquerystring = {\"uppercase_mode\": uppercase_mode, \"word_search_mode\": word_search_mode, \"term_filter_operator\": term_filter_operator, \"term2\": term2, \"term1\": term1, \"text_mode\": text_mode, \"first_book\": first_book}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"bible-memory-verse-flashcard.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n",
|
| 362 |
+
"statuscode":111,
|
| 363 |
+
"body":"",
|
| 364 |
+
"headers":"",
|
| 365 |
+
"schema":""
|
| 366 |
+
},
|
| 367 |
+
{
|
| 368 |
+
"name":"Search for Verses containing Terms",
|
| 369 |
+
"url":"https://bible-memory-verse-flashcard.p.rapidapi.com/search_term/verses",
|
| 370 |
+
"description":"Takes term(s) and returns verses that contain term(s). Terms are not case sensitive. \nBooks, operators etc. are NOT CASE SENSITIVE\n\n** CAN SEARCH A RANGE OF BOOKS. \n(first_book = 'matthew' , second_book = 'john' MEANS ENDPOINT SEARCHES 'matthew' 'mark' 'luke' 'john') **",
|
| 371 |
+
"method":"GET",
|
| 372 |
+
"required_parameters":[
|
| 373 |
+
{
|
| 374 |
+
"name":"first_book",
|
| 375 |
+
"type":"STRING",
|
| 376 |
+
"description":"",
|
| 377 |
+
"default":"genesis"
|
| 378 |
+
},
|
| 379 |
+
{
|
| 380 |
+
"name":"term1",
|
| 381 |
+
"type":"STRING",
|
| 382 |
+
"description":"",
|
| 383 |
+
"default":"fire"
|
| 384 |
+
}
|
| 385 |
+
],
|
| 386 |
+
"optional_parameters":[
|
| 387 |
+
{
|
| 388 |
+
"name":"uppercase_mode",
|
| 389 |
+
"type":"BOOLEAN",
|
| 390 |
+
"description":"",
|
| 391 |
+
"default":"false"
|
| 392 |
+
},
|
| 393 |
+
{
|
| 394 |
+
"name":"term_filter_operator",
|
| 395 |
+
"type":"STRING",
|
| 396 |
+
"description":"",
|
| 397 |
+
"default":"or"
|
| 398 |
+
},
|
| 399 |
+
{
|
| 400 |
+
"name":"word_search_mode",
|
| 401 |
+
"type":"BOOLEAN",
|
| 402 |
+
"description":"",
|
| 403 |
+
"default":"true"
|
| 404 |
+
},
|
| 405 |
+
{
|
| 406 |
+
"name":"second_book",
|
| 407 |
+
"type":"STRING",
|
| 408 |
+
"description":"",
|
| 409 |
+
"default":"numbers"
|
| 410 |
+
},
|
| 411 |
+
{
|
| 412 |
+
"name":"term2",
|
| 413 |
+
"type":"STRING",
|
| 414 |
+
"description":"",
|
| 415 |
+
"default":""
|
| 416 |
+
},
|
| 417 |
+
{
|
| 418 |
+
"name":"term3",
|
| 419 |
+
"type":"STRING",
|
| 420 |
+
"description":"",
|
| 421 |
+
"default":""
|
| 422 |
+
},
|
| 423 |
+
{
|
| 424 |
+
"name":"text_mode",
|
| 425 |
+
"type":"STRING",
|
| 426 |
+
"description":"",
|
| 427 |
+
"default":"full"
|
| 428 |
+
},
|
| 429 |
+
{
|
| 430 |
+
"name":"term4",
|
| 431 |
+
"type":"STRING",
|
| 432 |
+
"description":"",
|
| 433 |
+
"default":""
|
| 434 |
+
}
|
| 435 |
+
],
|
| 436 |
+
"code":"import requests\n\nurl = \"https://bible-memory-verse-flashcard.p.rapidapi.com/search_term/verses\"\nquerystring = {\"uppercase_mode\": uppercase_mode, \"term_filter_operator\": term_filter_operator, \"first_book\": first_book, \"word_search_mode\": word_search_mode, \"second_book\": second_book, \"text_mode\": text_mode, \"term1\": term1}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"bible-memory-verse-flashcard.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n",
|
| 437 |
+
"statuscode":111,
|
| 438 |
+
"body":"",
|
| 439 |
+
"headers":"",
|
| 440 |
+
"schema":""
|
| 441 |
+
},
|
| 442 |
+
{
|
| 443 |
+
"name":"Get Chapter",
|
| 444 |
+
"url":"https://bible-memory-verse-flashcard.p.rapidapi.com/get_chapter",
|
| 445 |
+
"description":"Takes parameters and returns one chapter for chosen bookname (ex: genesis, job, etc. )",
|
| 446 |
+
"method":"GET",
|
| 447 |
+
"required_parameters":[
|
| 448 |
+
{
|
| 449 |
+
"name":"book_name",
|
| 450 |
+
"type":"STRING",
|
| 451 |
+
"description":"",
|
| 452 |
+
"default":"genesis"
|
| 453 |
+
}
|
| 454 |
+
],
|
| 455 |
+
"optional_parameters":[
|
| 456 |
+
{
|
| 457 |
+
"name":"uppercase_mode",
|
| 458 |
+
"type":"BOOLEAN",
|
| 459 |
+
"description":"",
|
| 460 |
+
"default":"false"
|
| 461 |
+
},
|
| 462 |
+
{
|
| 463 |
+
"name":"text_mode",
|
| 464 |
+
"type":"STRING",
|
| 465 |
+
"description":"",
|
| 466 |
+
"default":"vowels"
|
| 467 |
+
},
|
| 468 |
+
{
|
| 469 |
+
"name":"chapter",
|
| 470 |
+
"type":"NUMBER",
|
| 471 |
+
"description":"",
|
| 472 |
+
"default":"1"
|
| 473 |
+
}
|
| 474 |
+
],
|
| 475 |
+
"code":"import requests\n\nurl = \"https://bible-memory-verse-flashcard.p.rapidapi.com/get_chapter\"\nquerystring = {\"uppercase_mode\": uppercase_mode, \"text_mode\": text_mode, \"book_name\": book_name, \"chapter\": chapter}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"bible-memory-verse-flashcard.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n",
|
| 476 |
+
"statuscode":111,
|
| 477 |
+
"body":"",
|
| 478 |
+
"headers":"",
|
| 479 |
+
"schema":""
|
| 480 |
+
},
|
| 481 |
+
{
|
| 482 |
+
"name":"Get Verses",
|
| 483 |
+
"url":"https://bible-memory-verse-flashcard.p.rapidapi.com/get_verses",
|
| 484 |
+
"description":"Takes parameters and returns requested verse OR Range of Verses in one of 8 text formats. \nExample: verse_num1 = 1 , verse_num2 = 5 will return verses( 1, 2, 3, 4, 5)",
|
| 485 |
+
"method":"GET",
|
| 486 |
+
"required_parameters":[
|
| 487 |
+
{
|
| 488 |
+
"name":"text_mode",
|
| 489 |
+
"type":"STRING",
|
| 490 |
+
"description":"",
|
| 491 |
+
"default":"half"
|
| 492 |
+
},
|
| 493 |
+
{
|
| 494 |
+
"name":"book_name",
|
| 495 |
+
"type":"STRING",
|
| 496 |
+
"description":"",
|
| 497 |
+
"default":"John"
|
| 498 |
+
}
|
| 499 |
+
],
|
| 500 |
+
"optional_parameters":[
|
| 501 |
+
{
|
| 502 |
+
"name":"uppercase_mode",
|
| 503 |
+
"type":"BOOLEAN",
|
| 504 |
+
"description":"",
|
| 505 |
+
"default":"false"
|
| 506 |
+
},
|
| 507 |
+
{
|
| 508 |
+
"name":"verse_num2",
|
| 509 |
+
"type":"NUMBER",
|
| 510 |
+
"description":"",
|
| 511 |
+
"default":"5"
|
| 512 |
+
},
|
| 513 |
+
{
|
| 514 |
+
"name":"verse_num1",
|
| 515 |
+
"type":"NUMBER",
|
| 516 |
+
"description":"",
|
| 517 |
+
"default":"1"
|
| 518 |
+
},
|
| 519 |
+
{
|
| 520 |
+
"name":"chapter",
|
| 521 |
+
"type":"NUMBER",
|
| 522 |
+
"description":"",
|
| 523 |
+
"default":"1"
|
| 524 |
+
}
|
| 525 |
+
],
|
| 526 |
+
"code":"import requests\n\nurl = \"https://bible-memory-verse-flashcard.p.rapidapi.com/get_verses\"\nquerystring = {\"text_mode\": text_mode, \"uppercase_mode\": uppercase_mode, \"verse_num2\": verse_num2, \"verse_num1\": verse_num1, \"chapter\": chapter, \"book_name\": book_name}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"bible-memory-verse-flashcard.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n",
|
| 527 |
+
"statuscode":111,
|
| 528 |
+
"body":"",
|
| 529 |
+
"headers":"",
|
| 530 |
+
"schema":""
|
| 531 |
+
}
|
| 532 |
+
]
|
| 533 |
+
}
|
toolbench/toolenv/tools/Data/bible_memory_verse_flashcard/api.py
ADDED
|
@@ -0,0 +1,292 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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_verses_starting_with_search_term(term1: str, first_book: str, not_sub_word_search_mode: bool=None, uppercase_mode: bool=None, term4: str=None, second_book: str='job', term2: str='with', term3: str=None, text_mode: str='full', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 10 |
+
"""
|
| 11 |
+
"Returns verses starting with search term(s)"
|
| 12 |
+
|
| 13 |
+
"""
|
| 14 |
+
url = f"https://bible-memory-verse-flashcard.p.rapidapi.com/search_term/get_verses_starting_with_search_term"
|
| 15 |
+
querystring = {'term1': term1, 'first_book': first_book, }
|
| 16 |
+
if not_sub_word_search_mode:
|
| 17 |
+
querystring['not_sub_word_search_mode'] = not_sub_word_search_mode
|
| 18 |
+
if uppercase_mode:
|
| 19 |
+
querystring['uppercase_mode'] = uppercase_mode
|
| 20 |
+
if term4:
|
| 21 |
+
querystring['term4'] = term4
|
| 22 |
+
if second_book:
|
| 23 |
+
querystring['second_book'] = second_book
|
| 24 |
+
if term2:
|
| 25 |
+
querystring['term2'] = term2
|
| 26 |
+
if term3:
|
| 27 |
+
querystring['term3'] = term3
|
| 28 |
+
if text_mode:
|
| 29 |
+
querystring['text_mode'] = text_mode
|
| 30 |
+
|
| 31 |
+
headers = {
|
| 32 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 33 |
+
"X-RapidAPI-Host": "bible-memory-verse-flashcard.p.rapidapi.com"
|
| 34 |
+
}
|
| 35 |
+
|
| 36 |
+
|
| 37 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 38 |
+
try:
|
| 39 |
+
observation = response.json()
|
| 40 |
+
except:
|
| 41 |
+
observation = response.text
|
| 42 |
+
return observation
|
| 43 |
+
|
| 44 |
+
def search_term_verse_address_summary(first_book: str, term1: str, word_search_mode: bool=None, term_filter_operator: str='and', term5: str=None, second_book: str='revelation', term2: str='fire', term3: str=None, term4: str=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 45 |
+
"""
|
| 46 |
+
"Returns a summary for verse addresses that contain term criteria.
|
| 47 |
+
|
| 48 |
+
** CAN SEARCH A RANGE OF BOOKS.
|
| 49 |
+
(first_book = 'matthew' , second_book = 'john' MEANS ENDPOINT SEARCHES 'matthew' 'mark' 'luke' 'john') **"
|
| 50 |
+
|
| 51 |
+
"""
|
| 52 |
+
url = f"https://bible-memory-verse-flashcard.p.rapidapi.com/search_term/chapter_summary"
|
| 53 |
+
querystring = {'first_book': first_book, 'term1': term1, }
|
| 54 |
+
if word_search_mode:
|
| 55 |
+
querystring['word_search_mode'] = word_search_mode
|
| 56 |
+
if term_filter_operator:
|
| 57 |
+
querystring['term_filter_operator'] = term_filter_operator
|
| 58 |
+
if term5:
|
| 59 |
+
querystring['term5'] = term5
|
| 60 |
+
if second_book:
|
| 61 |
+
querystring['second_book'] = second_book
|
| 62 |
+
if term2:
|
| 63 |
+
querystring['term2'] = term2
|
| 64 |
+
if term3:
|
| 65 |
+
querystring['term3'] = term3
|
| 66 |
+
if term4:
|
| 67 |
+
querystring['term4'] = term4
|
| 68 |
+
|
| 69 |
+
headers = {
|
| 70 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 71 |
+
"X-RapidAPI-Host": "bible-memory-verse-flashcard.p.rapidapi.com"
|
| 72 |
+
}
|
| 73 |
+
|
| 74 |
+
|
| 75 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 76 |
+
try:
|
| 77 |
+
observation = response.json()
|
| 78 |
+
except:
|
| 79 |
+
observation = response.text
|
| 80 |
+
return observation
|
| 81 |
+
|
| 82 |
+
def search_term_chapter_address_summary(first_book: str, term1: str, term_filter_operator: str='and', word_search_mode: bool=None, term4: str=None, term5: str=None, term2: str='fire', term3: str=None, second_book: str='revelation', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 83 |
+
"""
|
| 84 |
+
"Returns a summary for chapter addresses that contain term criteria. A dictionary is returned using Bible book names as keys. Under each key, is a list of the chapters(in numerical form) that contains the term(s).
|
| 85 |
+
|
| 86 |
+
** CAN SEARCH A RANGE OF BOOKS.
|
| 87 |
+
(first_book = 'matthew' , second_book = 'john' MEANS ENDPOINT SEARCHES 'matthew' 'mark' 'luke' 'john') **"
|
| 88 |
+
|
| 89 |
+
"""
|
| 90 |
+
url = f"https://bible-memory-verse-flashcard.p.rapidapi.com/search_term/chapter_summary"
|
| 91 |
+
querystring = {'first_book': first_book, 'term1': term1, }
|
| 92 |
+
if term_filter_operator:
|
| 93 |
+
querystring['term_filter_operator'] = term_filter_operator
|
| 94 |
+
if word_search_mode:
|
| 95 |
+
querystring['word_search_mode'] = word_search_mode
|
| 96 |
+
if term4:
|
| 97 |
+
querystring['term4'] = term4
|
| 98 |
+
if term5:
|
| 99 |
+
querystring['term5'] = term5
|
| 100 |
+
if term2:
|
| 101 |
+
querystring['term2'] = term2
|
| 102 |
+
if term3:
|
| 103 |
+
querystring['term3'] = term3
|
| 104 |
+
if second_book:
|
| 105 |
+
querystring['second_book'] = second_book
|
| 106 |
+
|
| 107 |
+
headers = {
|
| 108 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 109 |
+
"X-RapidAPI-Host": "bible-memory-verse-flashcard.p.rapidapi.com"
|
| 110 |
+
}
|
| 111 |
+
|
| 112 |
+
|
| 113 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 114 |
+
try:
|
| 115 |
+
observation = response.json()
|
| 116 |
+
except:
|
| 117 |
+
observation = response.text
|
| 118 |
+
return observation
|
| 119 |
+
|
| 120 |
+
def search_term_count_occurrences_of_terms_found_in_text(term1: str, first_book: str, term4: str=None, term7: str=None, term5: str=None, term3: str=None, second_book: str='job', term2: str=None, term6: str=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 121 |
+
"""
|
| 122 |
+
"** CAN SEARCH A RANGE OF BOOKS.
|
| 123 |
+
(first_book = 'matthew' , second_book = 'john' MEANS ENDPOINT SEARCHES 'matthew' 'mark' 'luke' 'john') **"
|
| 124 |
+
|
| 125 |
+
"""
|
| 126 |
+
url = f"https://bible-memory-verse-flashcard.p.rapidapi.com/search_term/counter"
|
| 127 |
+
querystring = {'term1': term1, 'first_book': first_book, }
|
| 128 |
+
if term4:
|
| 129 |
+
querystring['term4'] = term4
|
| 130 |
+
if term7:
|
| 131 |
+
querystring['term7'] = term7
|
| 132 |
+
if term5:
|
| 133 |
+
querystring['term5'] = term5
|
| 134 |
+
if term3:
|
| 135 |
+
querystring['term3'] = term3
|
| 136 |
+
if second_book:
|
| 137 |
+
querystring['second_book'] = second_book
|
| 138 |
+
if term2:
|
| 139 |
+
querystring['term2'] = term2
|
| 140 |
+
if term6:
|
| 141 |
+
querystring['term6'] = term6
|
| 142 |
+
|
| 143 |
+
headers = {
|
| 144 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 145 |
+
"X-RapidAPI-Host": "bible-memory-verse-flashcard.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 search_for_chapters_containing_terms(term1: str, first_book: str, uppercase_mode: bool=None, word_search_mode: bool=None, second_book: str=None, term_filter_operator: str='and', term2: str='light', term3: str=None, term4: str=None, text_mode: str='bionic', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 157 |
+
"""
|
| 158 |
+
"Takes term(s) and returns chapters that contain term(s). Terms are not case sensitive. Books, operators etc. are NOT CASE SENSITIVE.
|
| 159 |
+
|
| 160 |
+
** ONLY SEARCHES 2 BOOKS (NO RANGE FUNCTION) **"
|
| 161 |
+
|
| 162 |
+
"""
|
| 163 |
+
url = f"https://bible-memory-verse-flashcard.p.rapidapi.com/search_term/chapters"
|
| 164 |
+
querystring = {'term1': term1, 'first_book': first_book, }
|
| 165 |
+
if uppercase_mode:
|
| 166 |
+
querystring['uppercase_mode'] = uppercase_mode
|
| 167 |
+
if word_search_mode:
|
| 168 |
+
querystring['word_search_mode'] = word_search_mode
|
| 169 |
+
if second_book:
|
| 170 |
+
querystring['second_book'] = second_book
|
| 171 |
+
if term_filter_operator:
|
| 172 |
+
querystring['term_filter_operator'] = term_filter_operator
|
| 173 |
+
if term2:
|
| 174 |
+
querystring['term2'] = term2
|
| 175 |
+
if term3:
|
| 176 |
+
querystring['term3'] = term3
|
| 177 |
+
if term4:
|
| 178 |
+
querystring['term4'] = term4
|
| 179 |
+
if text_mode:
|
| 180 |
+
querystring['text_mode'] = text_mode
|
| 181 |
+
|
| 182 |
+
headers = {
|
| 183 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 184 |
+
"X-RapidAPI-Host": "bible-memory-verse-flashcard.p.rapidapi.com"
|
| 185 |
+
}
|
| 186 |
+
|
| 187 |
+
|
| 188 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 189 |
+
try:
|
| 190 |
+
observation = response.json()
|
| 191 |
+
except:
|
| 192 |
+
observation = response.text
|
| 193 |
+
return observation
|
| 194 |
+
|
| 195 |
+
def search_for_verses_containing_terms(first_book: str, term1: str, uppercase_mode: bool=None, term_filter_operator: str='or', word_search_mode: bool=None, second_book: str='numbers', term2: str=None, term3: str=None, text_mode: str='full', term4: str=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 196 |
+
"""
|
| 197 |
+
"Takes term(s) and returns verses that contain term(s). Terms are not case sensitive.
|
| 198 |
+
Books, operators etc. are NOT CASE SENSITIVE
|
| 199 |
+
|
| 200 |
+
** CAN SEARCH A RANGE OF BOOKS.
|
| 201 |
+
(first_book = 'matthew' , second_book = 'john' MEANS ENDPOINT SEARCHES 'matthew' 'mark' 'luke' 'john') **"
|
| 202 |
+
|
| 203 |
+
"""
|
| 204 |
+
url = f"https://bible-memory-verse-flashcard.p.rapidapi.com/search_term/verses"
|
| 205 |
+
querystring = {'first_book': first_book, 'term1': term1, }
|
| 206 |
+
if uppercase_mode:
|
| 207 |
+
querystring['uppercase_mode'] = uppercase_mode
|
| 208 |
+
if term_filter_operator:
|
| 209 |
+
querystring['term_filter_operator'] = term_filter_operator
|
| 210 |
+
if word_search_mode:
|
| 211 |
+
querystring['word_search_mode'] = word_search_mode
|
| 212 |
+
if second_book:
|
| 213 |
+
querystring['second_book'] = second_book
|
| 214 |
+
if term2:
|
| 215 |
+
querystring['term2'] = term2
|
| 216 |
+
if term3:
|
| 217 |
+
querystring['term3'] = term3
|
| 218 |
+
if text_mode:
|
| 219 |
+
querystring['text_mode'] = text_mode
|
| 220 |
+
if term4:
|
| 221 |
+
querystring['term4'] = term4
|
| 222 |
+
|
| 223 |
+
headers = {
|
| 224 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 225 |
+
"X-RapidAPI-Host": "bible-memory-verse-flashcard.p.rapidapi.com"
|
| 226 |
+
}
|
| 227 |
+
|
| 228 |
+
|
| 229 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 230 |
+
try:
|
| 231 |
+
observation = response.json()
|
| 232 |
+
except:
|
| 233 |
+
observation = response.text
|
| 234 |
+
return observation
|
| 235 |
+
|
| 236 |
+
def get_chapter(book_name: str, uppercase_mode: bool=None, text_mode: str='vowels', chapter: int=1, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 237 |
+
"""
|
| 238 |
+
"Takes parameters and returns one chapter for chosen bookname (ex: genesis, job, etc. )"
|
| 239 |
+
|
| 240 |
+
"""
|
| 241 |
+
url = f"https://bible-memory-verse-flashcard.p.rapidapi.com/get_chapter"
|
| 242 |
+
querystring = {'book_name': book_name, }
|
| 243 |
+
if uppercase_mode:
|
| 244 |
+
querystring['uppercase_mode'] = uppercase_mode
|
| 245 |
+
if text_mode:
|
| 246 |
+
querystring['text_mode'] = text_mode
|
| 247 |
+
if chapter:
|
| 248 |
+
querystring['chapter'] = chapter
|
| 249 |
+
|
| 250 |
+
headers = {
|
| 251 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 252 |
+
"X-RapidAPI-Host": "bible-memory-verse-flashcard.p.rapidapi.com"
|
| 253 |
+
}
|
| 254 |
+
|
| 255 |
+
|
| 256 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 257 |
+
try:
|
| 258 |
+
observation = response.json()
|
| 259 |
+
except:
|
| 260 |
+
observation = response.text
|
| 261 |
+
return observation
|
| 262 |
+
|
| 263 |
+
def get_verses(text_mode: str, book_name: str, uppercase_mode: bool=None, verse_num2: int=5, verse_num1: int=1, chapter: int=1, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 264 |
+
"""
|
| 265 |
+
"Takes parameters and returns requested verse OR Range of Verses in one of 8 text formats.
|
| 266 |
+
Example: verse_num1 = 1 , verse_num2 = 5 will return verses( 1, 2, 3, 4, 5)"
|
| 267 |
+
|
| 268 |
+
"""
|
| 269 |
+
url = f"https://bible-memory-verse-flashcard.p.rapidapi.com/get_verses"
|
| 270 |
+
querystring = {'text_mode': text_mode, 'book_name': book_name, }
|
| 271 |
+
if uppercase_mode:
|
| 272 |
+
querystring['uppercase_mode'] = uppercase_mode
|
| 273 |
+
if verse_num2:
|
| 274 |
+
querystring['verse_num2'] = verse_num2
|
| 275 |
+
if verse_num1:
|
| 276 |
+
querystring['verse_num1'] = verse_num1
|
| 277 |
+
if chapter:
|
| 278 |
+
querystring['chapter'] = chapter
|
| 279 |
+
|
| 280 |
+
headers = {
|
| 281 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 282 |
+
"X-RapidAPI-Host": "bible-memory-verse-flashcard.p.rapidapi.com"
|
| 283 |
+
}
|
| 284 |
+
|
| 285 |
+
|
| 286 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 287 |
+
try:
|
| 288 |
+
observation = response.json()
|
| 289 |
+
except:
|
| 290 |
+
observation = response.text
|
| 291 |
+
return observation
|
| 292 |
+
|
toolbench/toolenv/tools/Data/bible_search.json
ADDED
|
@@ -0,0 +1,587 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"tool_name":"Bible Search",
|
| 3 |
+
"tool_description":"Retrieve chapters and verses from the Old Testament and New Testament of the KJV. This API does not include the false gnostic books of the bible called the Pauline and Petrine epistles.",
|
| 4 |
+
"title":"Bible Search",
|
| 5 |
+
"pricing":"FREE",
|
| 6 |
+
"score":{
|
| 7 |
+
"avgServiceLevel":99,
|
| 8 |
+
"avgLatency":768,
|
| 9 |
+
"avgSuccessRate":95,
|
| 10 |
+
"popularityScore":9.7,
|
| 11 |
+
"__typename":"Score"
|
| 12 |
+
},
|
| 13 |
+
"home_url":"https://rapidapi.com/joyfulnoiseforyahshua/api/bible-search/",
|
| 14 |
+
"host":"bible-search.p.rapidapi.com",
|
| 15 |
+
"api_list":[
|
| 16 |
+
{
|
| 17 |
+
"name":"Get Book By Name",
|
| 18 |
+
"url":"https://bible-search.p.rapidapi.com/books-by-name",
|
| 19 |
+
"description":"Returns a book of the Bible.",
|
| 20 |
+
"method":"GET",
|
| 21 |
+
"required_parameters":[
|
| 22 |
+
{
|
| 23 |
+
"name":"bookName",
|
| 24 |
+
"type":"STRING",
|
| 25 |
+
"description":"Name of the book.",
|
| 26 |
+
"default":"Isaiah"
|
| 27 |
+
}
|
| 28 |
+
],
|
| 29 |
+
"optional_parameters":[],
|
| 30 |
+
"code":"import requests\n\nurl = \"https://bible-search.p.rapidapi.com/books-by-name\"\nquerystring = {\"bookName\": bookname}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"bible-search.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n",
|
| 31 |
+
"statuscode":200,
|
| 32 |
+
"body":{
|
| 33 |
+
"key1":"value",
|
| 34 |
+
"key2":"value"
|
| 35 |
+
},
|
| 36 |
+
"headers":{},
|
| 37 |
+
"schema":{
|
| 38 |
+
"type":"array",
|
| 39 |
+
"items":{
|
| 40 |
+
"type":"object",
|
| 41 |
+
"properties":{
|
| 42 |
+
"chapter":{
|
| 43 |
+
"type":"integer"
|
| 44 |
+
},
|
| 45 |
+
"verse":{
|
| 46 |
+
"type":"integer"
|
| 47 |
+
},
|
| 48 |
+
"text":{
|
| 49 |
+
"type":"string"
|
| 50 |
+
},
|
| 51 |
+
"book_id":{
|
| 52 |
+
"type":"string"
|
| 53 |
+
},
|
| 54 |
+
"book_name":{
|
| 55 |
+
"type":"string"
|
| 56 |
+
},
|
| 57 |
+
"tags":{
|
| 58 |
+
"type":"array",
|
| 59 |
+
"items":{
|
| 60 |
+
"type":"string"
|
| 61 |
+
}
|
| 62 |
+
}
|
| 63 |
+
}
|
| 64 |
+
}
|
| 65 |
+
}
|
| 66 |
+
},
|
| 67 |
+
{
|
| 68 |
+
"name":"Get Chapter by BookName",
|
| 69 |
+
"url":"https://bible-search.p.rapidapi.com/books-by-name/chapter",
|
| 70 |
+
"description":"Returns a chapter of a book in the Bible.",
|
| 71 |
+
"method":"GET",
|
| 72 |
+
"required_parameters":[
|
| 73 |
+
{
|
| 74 |
+
"name":"bookName",
|
| 75 |
+
"type":"STRING",
|
| 76 |
+
"description":"Name of the book.",
|
| 77 |
+
"default":"John"
|
| 78 |
+
},
|
| 79 |
+
{
|
| 80 |
+
"name":"chapterId",
|
| 81 |
+
"type":"NUMBER",
|
| 82 |
+
"description":"Chapter number.",
|
| 83 |
+
"default":"3"
|
| 84 |
+
}
|
| 85 |
+
],
|
| 86 |
+
"optional_parameters":[],
|
| 87 |
+
"code":"import requests\n\nurl = \"https://bible-search.p.rapidapi.com/books-by-name/chapter\"\nquerystring = {\"bookName\": bookname, \"chapterId\": chapterid}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"bible-search.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n",
|
| 88 |
+
"statuscode":200,
|
| 89 |
+
"body":{
|
| 90 |
+
"key1":"value",
|
| 91 |
+
"key2":"value"
|
| 92 |
+
},
|
| 93 |
+
"headers":{},
|
| 94 |
+
"schema":{
|
| 95 |
+
"type":"array",
|
| 96 |
+
"items":{
|
| 97 |
+
"type":"object",
|
| 98 |
+
"properties":{
|
| 99 |
+
"chapter":{
|
| 100 |
+
"type":"integer"
|
| 101 |
+
},
|
| 102 |
+
"verse":{
|
| 103 |
+
"type":"integer"
|
| 104 |
+
},
|
| 105 |
+
"text":{
|
| 106 |
+
"type":"string"
|
| 107 |
+
},
|
| 108 |
+
"book_id":{
|
| 109 |
+
"type":"string"
|
| 110 |
+
},
|
| 111 |
+
"book_name":{
|
| 112 |
+
"type":"string"
|
| 113 |
+
},
|
| 114 |
+
"tags":{
|
| 115 |
+
"type":"array",
|
| 116 |
+
"items":{
|
| 117 |
+
"type":"string"
|
| 118 |
+
}
|
| 119 |
+
}
|
| 120 |
+
}
|
| 121 |
+
}
|
| 122 |
+
}
|
| 123 |
+
},
|
| 124 |
+
{
|
| 125 |
+
"name":"Get Verse by BookName",
|
| 126 |
+
"url":"https://bible-search.p.rapidapi.com/books-by-name/verse",
|
| 127 |
+
"description":"Returns a verse of the Bible.",
|
| 128 |
+
"method":"GET",
|
| 129 |
+
"required_parameters":[
|
| 130 |
+
{
|
| 131 |
+
"name":"verseId",
|
| 132 |
+
"type":"NUMBER",
|
| 133 |
+
"description":"Verse number.",
|
| 134 |
+
"default":"1"
|
| 135 |
+
},
|
| 136 |
+
{
|
| 137 |
+
"name":"bookName",
|
| 138 |
+
"type":"STRING",
|
| 139 |
+
"description":"Name of the book.",
|
| 140 |
+
"default":"Revelation"
|
| 141 |
+
},
|
| 142 |
+
{
|
| 143 |
+
"name":"chapterId",
|
| 144 |
+
"type":"NUMBER",
|
| 145 |
+
"description":"Chapter number.",
|
| 146 |
+
"default":"12"
|
| 147 |
+
}
|
| 148 |
+
],
|
| 149 |
+
"optional_parameters":[],
|
| 150 |
+
"code":"import requests\n\nurl = \"https://bible-search.p.rapidapi.com/books-by-name/verse\"\nquerystring = {\"verseId\": verseid, \"bookName\": bookname, \"chapterId\": chapterid}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"bible-search.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n",
|
| 151 |
+
"statuscode":200,
|
| 152 |
+
"body":{
|
| 153 |
+
"key1":"value",
|
| 154 |
+
"key2":"value"
|
| 155 |
+
},
|
| 156 |
+
"headers":{},
|
| 157 |
+
"schema":{
|
| 158 |
+
"type":"array",
|
| 159 |
+
"items":{
|
| 160 |
+
"type":"object",
|
| 161 |
+
"properties":{
|
| 162 |
+
"chapter":{
|
| 163 |
+
"type":"integer"
|
| 164 |
+
},
|
| 165 |
+
"verse":{
|
| 166 |
+
"type":"integer"
|
| 167 |
+
},
|
| 168 |
+
"text":{
|
| 169 |
+
"type":"string"
|
| 170 |
+
},
|
| 171 |
+
"book_id":{
|
| 172 |
+
"type":"string"
|
| 173 |
+
},
|
| 174 |
+
"book_name":{
|
| 175 |
+
"type":"string"
|
| 176 |
+
},
|
| 177 |
+
"tags":{
|
| 178 |
+
"type":"array",
|
| 179 |
+
"items":{
|
| 180 |
+
"type":"string"
|
| 181 |
+
}
|
| 182 |
+
}
|
| 183 |
+
}
|
| 184 |
+
}
|
| 185 |
+
}
|
| 186 |
+
},
|
| 187 |
+
{
|
| 188 |
+
"name":"Get Verses by BookName",
|
| 189 |
+
"url":"https://bible-search.p.rapidapi.com/books-by-name/verses",
|
| 190 |
+
"description":"Get a range of verses of the Bible.",
|
| 191 |
+
"method":"GET",
|
| 192 |
+
"required_parameters":[
|
| 193 |
+
{
|
| 194 |
+
"name":"chapterId",
|
| 195 |
+
"type":"NUMBER",
|
| 196 |
+
"description":"Chapter number.",
|
| 197 |
+
"default":"3"
|
| 198 |
+
},
|
| 199 |
+
{
|
| 200 |
+
"name":"bookName",
|
| 201 |
+
"type":"STRING",
|
| 202 |
+
"description":"Name of the book.",
|
| 203 |
+
"default":"Revelation"
|
| 204 |
+
},
|
| 205 |
+
{
|
| 206 |
+
"name":"verseStart",
|
| 207 |
+
"type":"NUMBER",
|
| 208 |
+
"description":"Beginning verse.",
|
| 209 |
+
"default":"7"
|
| 210 |
+
},
|
| 211 |
+
{
|
| 212 |
+
"name":"verseEnd",
|
| 213 |
+
"type":"NUMBER",
|
| 214 |
+
"description":"End verse.",
|
| 215 |
+
"default":"11"
|
| 216 |
+
}
|
| 217 |
+
],
|
| 218 |
+
"optional_parameters":[],
|
| 219 |
+
"code":"import requests\n\nurl = \"https://bible-search.p.rapidapi.com/books-by-name/verses\"\nquerystring = {\"chapterId\": chapterid, \"bookName\": bookname, \"verseStart\": versestart, \"verseEnd\": verseend}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"bible-search.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n",
|
| 220 |
+
"statuscode":200,
|
| 221 |
+
"body":{
|
| 222 |
+
"key1":"value",
|
| 223 |
+
"key2":"value"
|
| 224 |
+
},
|
| 225 |
+
"headers":{},
|
| 226 |
+
"schema":{
|
| 227 |
+
"type":"array",
|
| 228 |
+
"items":{
|
| 229 |
+
"type":"object",
|
| 230 |
+
"properties":{
|
| 231 |
+
"chapter":{
|
| 232 |
+
"type":"integer"
|
| 233 |
+
},
|
| 234 |
+
"verse":{
|
| 235 |
+
"type":"integer"
|
| 236 |
+
},
|
| 237 |
+
"text":{
|
| 238 |
+
"type":"string"
|
| 239 |
+
},
|
| 240 |
+
"book_id":{
|
| 241 |
+
"type":"string"
|
| 242 |
+
},
|
| 243 |
+
"book_name":{
|
| 244 |
+
"type":"string"
|
| 245 |
+
},
|
| 246 |
+
"tags":{
|
| 247 |
+
"type":"array",
|
| 248 |
+
"items":{
|
| 249 |
+
"type":"string"
|
| 250 |
+
}
|
| 251 |
+
}
|
| 252 |
+
}
|
| 253 |
+
}
|
| 254 |
+
}
|
| 255 |
+
},
|
| 256 |
+
{
|
| 257 |
+
"name":"Get Book by Id",
|
| 258 |
+
"url":"https://bible-search.p.rapidapi.com/books-by-id",
|
| 259 |
+
"description":"Returns a book of the Bible.",
|
| 260 |
+
"method":"GET",
|
| 261 |
+
"required_parameters":[
|
| 262 |
+
{
|
| 263 |
+
"name":"bookId",
|
| 264 |
+
"type":"STRING",
|
| 265 |
+
"description":"Id of the book.",
|
| 266 |
+
"default":"Amos"
|
| 267 |
+
}
|
| 268 |
+
],
|
| 269 |
+
"optional_parameters":[],
|
| 270 |
+
"code":"import requests\n\nurl = \"https://bible-search.p.rapidapi.com/books-by-id\"\nquerystring = {\"bookId\": bookid}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"bible-search.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n",
|
| 271 |
+
"statuscode":200,
|
| 272 |
+
"body":{
|
| 273 |
+
"key1":"value",
|
| 274 |
+
"key2":"value"
|
| 275 |
+
},
|
| 276 |
+
"headers":{},
|
| 277 |
+
"schema":{
|
| 278 |
+
"type":"array",
|
| 279 |
+
"items":{
|
| 280 |
+
"type":"object",
|
| 281 |
+
"properties":{
|
| 282 |
+
"chapter":{
|
| 283 |
+
"type":"integer"
|
| 284 |
+
},
|
| 285 |
+
"verse":{
|
| 286 |
+
"type":"integer"
|
| 287 |
+
},
|
| 288 |
+
"text":{
|
| 289 |
+
"type":"string"
|
| 290 |
+
},
|
| 291 |
+
"book_id":{
|
| 292 |
+
"type":"string"
|
| 293 |
+
},
|
| 294 |
+
"book_name":{
|
| 295 |
+
"type":"string"
|
| 296 |
+
},
|
| 297 |
+
"tags":{
|
| 298 |
+
"type":"array",
|
| 299 |
+
"items":{
|
| 300 |
+
"type":"string"
|
| 301 |
+
}
|
| 302 |
+
}
|
| 303 |
+
}
|
| 304 |
+
}
|
| 305 |
+
}
|
| 306 |
+
},
|
| 307 |
+
{
|
| 308 |
+
"name":"Get Chapter by BookId",
|
| 309 |
+
"url":"https://bible-search.p.rapidapi.com/books-by-id/chapter",
|
| 310 |
+
"description":"Returns a chapter of a book in the Bible.",
|
| 311 |
+
"method":"GET",
|
| 312 |
+
"required_parameters":[
|
| 313 |
+
{
|
| 314 |
+
"name":"bookId",
|
| 315 |
+
"type":"STRING",
|
| 316 |
+
"description":"Id of the book.",
|
| 317 |
+
"default":"Mal"
|
| 318 |
+
},
|
| 319 |
+
{
|
| 320 |
+
"name":"chapterId",
|
| 321 |
+
"type":"NUMBER",
|
| 322 |
+
"description":"Chapter number.",
|
| 323 |
+
"default":"2"
|
| 324 |
+
}
|
| 325 |
+
],
|
| 326 |
+
"optional_parameters":[],
|
| 327 |
+
"code":"import requests\n\nurl = \"https://bible-search.p.rapidapi.com/books-by-id/chapter\"\nquerystring = {\"bookId\": bookid, \"chapterId\": chapterid}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"bible-search.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n",
|
| 328 |
+
"statuscode":200,
|
| 329 |
+
"body":{
|
| 330 |
+
"key1":"value",
|
| 331 |
+
"key2":"value"
|
| 332 |
+
},
|
| 333 |
+
"headers":{},
|
| 334 |
+
"schema":{
|
| 335 |
+
"type":"array",
|
| 336 |
+
"items":{
|
| 337 |
+
"type":"object",
|
| 338 |
+
"properties":{
|
| 339 |
+
"chapter":{
|
| 340 |
+
"type":"integer"
|
| 341 |
+
},
|
| 342 |
+
"verse":{
|
| 343 |
+
"type":"integer"
|
| 344 |
+
},
|
| 345 |
+
"text":{
|
| 346 |
+
"type":"string"
|
| 347 |
+
},
|
| 348 |
+
"book_id":{
|
| 349 |
+
"type":"string"
|
| 350 |
+
},
|
| 351 |
+
"book_name":{
|
| 352 |
+
"type":"string"
|
| 353 |
+
},
|
| 354 |
+
"tags":{
|
| 355 |
+
"type":"array",
|
| 356 |
+
"items":{
|
| 357 |
+
"type":"string"
|
| 358 |
+
}
|
| 359 |
+
}
|
| 360 |
+
}
|
| 361 |
+
}
|
| 362 |
+
}
|
| 363 |
+
},
|
| 364 |
+
{
|
| 365 |
+
"name":"Get Verse by BookId",
|
| 366 |
+
"url":"https://bible-search.p.rapidapi.com/books-by-id/verse",
|
| 367 |
+
"description":"Returns a verse of the Bible.",
|
| 368 |
+
"method":"GET",
|
| 369 |
+
"required_parameters":[
|
| 370 |
+
{
|
| 371 |
+
"name":"chapterId",
|
| 372 |
+
"type":"NUMBER",
|
| 373 |
+
"description":"Chapter number.",
|
| 374 |
+
"default":"3"
|
| 375 |
+
},
|
| 376 |
+
{
|
| 377 |
+
"name":"bookId",
|
| 378 |
+
"type":"STRING",
|
| 379 |
+
"description":"Id of the book.",
|
| 380 |
+
"default":"Hab"
|
| 381 |
+
},
|
| 382 |
+
{
|
| 383 |
+
"name":"verseId",
|
| 384 |
+
"type":"NUMBER",
|
| 385 |
+
"description":"Verse number.",
|
| 386 |
+
"default":"1"
|
| 387 |
+
}
|
| 388 |
+
],
|
| 389 |
+
"optional_parameters":[],
|
| 390 |
+
"code":"import requests\n\nurl = \"https://bible-search.p.rapidapi.com/books-by-id/verse\"\nquerystring = {\"chapterId\": chapterid, \"bookId\": bookid, \"verseId\": verseid}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"bible-search.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n",
|
| 391 |
+
"statuscode":200,
|
| 392 |
+
"body":{
|
| 393 |
+
"key1":"value",
|
| 394 |
+
"key2":"value"
|
| 395 |
+
},
|
| 396 |
+
"headers":{},
|
| 397 |
+
"schema":{
|
| 398 |
+
"type":"array",
|
| 399 |
+
"items":{
|
| 400 |
+
"type":"object",
|
| 401 |
+
"properties":{
|
| 402 |
+
"chapter":{
|
| 403 |
+
"type":"integer"
|
| 404 |
+
},
|
| 405 |
+
"verse":{
|
| 406 |
+
"type":"integer"
|
| 407 |
+
},
|
| 408 |
+
"text":{
|
| 409 |
+
"type":"string"
|
| 410 |
+
},
|
| 411 |
+
"book_id":{
|
| 412 |
+
"type":"string"
|
| 413 |
+
},
|
| 414 |
+
"book_name":{
|
| 415 |
+
"type":"string"
|
| 416 |
+
},
|
| 417 |
+
"tags":{
|
| 418 |
+
"type":"array",
|
| 419 |
+
"items":{
|
| 420 |
+
"type":"string"
|
| 421 |
+
}
|
| 422 |
+
}
|
| 423 |
+
}
|
| 424 |
+
}
|
| 425 |
+
}
|
| 426 |
+
},
|
| 427 |
+
{
|
| 428 |
+
"name":"Search Text",
|
| 429 |
+
"url":"https://bible-search.p.rapidapi.com/search",
|
| 430 |
+
"description":"Return all verses from the bible by text parameter.",
|
| 431 |
+
"method":"GET",
|
| 432 |
+
"required_parameters":[
|
| 433 |
+
{
|
| 434 |
+
"name":"text",
|
| 435 |
+
"type":"STRING",
|
| 436 |
+
"description":"Text to be searched.",
|
| 437 |
+
"default":"Melchizedek"
|
| 438 |
+
}
|
| 439 |
+
],
|
| 440 |
+
"optional_parameters":[],
|
| 441 |
+
"code":"import requests\n\nurl = \"https://bible-search.p.rapidapi.com/search\"\nquerystring = {\"text\": text}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"bible-search.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n",
|
| 442 |
+
"statuscode":200,
|
| 443 |
+
"body":{
|
| 444 |
+
"key1":"value",
|
| 445 |
+
"key2":"value"
|
| 446 |
+
},
|
| 447 |
+
"headers":{},
|
| 448 |
+
"schema":{
|
| 449 |
+
"type":"array",
|
| 450 |
+
"items":{
|
| 451 |
+
"type":"object",
|
| 452 |
+
"properties":{
|
| 453 |
+
"chapter":{
|
| 454 |
+
"type":"integer"
|
| 455 |
+
},
|
| 456 |
+
"verse":{
|
| 457 |
+
"type":"integer"
|
| 458 |
+
},
|
| 459 |
+
"text":{
|
| 460 |
+
"type":"string"
|
| 461 |
+
},
|
| 462 |
+
"book_id":{
|
| 463 |
+
"type":"string"
|
| 464 |
+
},
|
| 465 |
+
"book_name":{
|
| 466 |
+
"type":"string"
|
| 467 |
+
},
|
| 468 |
+
"tags":{
|
| 469 |
+
"type":"array",
|
| 470 |
+
"items":{
|
| 471 |
+
"type":"string"
|
| 472 |
+
}
|
| 473 |
+
}
|
| 474 |
+
}
|
| 475 |
+
}
|
| 476 |
+
}
|
| 477 |
+
},
|
| 478 |
+
{
|
| 479 |
+
"name":"Get Books",
|
| 480 |
+
"url":"https://bible-search.p.rapidapi.com/books",
|
| 481 |
+
"description":"Returns a list of the books in the Bible.",
|
| 482 |
+
"method":"GET",
|
| 483 |
+
"required_parameters":[],
|
| 484 |
+
"optional_parameters":[],
|
| 485 |
+
"code":"import requests\n\nurl = \"https://bible-search.p.rapidapi.com/books\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"bible-search.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n",
|
| 486 |
+
"statuscode":200,
|
| 487 |
+
"body":{
|
| 488 |
+
"key1":"value",
|
| 489 |
+
"key2":"value"
|
| 490 |
+
},
|
| 491 |
+
"headers":{},
|
| 492 |
+
"schema":{
|
| 493 |
+
"The_Old_Testament":[
|
| 494 |
+
"Genesis",
|
| 495 |
+
"Exodus",
|
| 496 |
+
"Leviticus",
|
| 497 |
+
"Numbers",
|
| 498 |
+
"Deuteronomy",
|
| 499 |
+
"Joshua",
|
| 500 |
+
"Judges",
|
| 501 |
+
"1 Samuel",
|
| 502 |
+
"2 Samuel",
|
| 503 |
+
"1 Kings",
|
| 504 |
+
"2 Kings",
|
| 505 |
+
"1 Chronicles",
|
| 506 |
+
"2 Chronicles",
|
| 507 |
+
"Ezra",
|
| 508 |
+
"Nehemiah",
|
| 509 |
+
"Job",
|
| 510 |
+
"Psalms",
|
| 511 |
+
"Proverbs",
|
| 512 |
+
"Ecclesiastes",
|
| 513 |
+
"Song of Solomon",
|
| 514 |
+
"Isaiah",
|
| 515 |
+
"Jeremiah",
|
| 516 |
+
"Lamentations",
|
| 517 |
+
"Ezekiel",
|
| 518 |
+
"Daniel",
|
| 519 |
+
"Hosea",
|
| 520 |
+
"Joel",
|
| 521 |
+
"Amos",
|
| 522 |
+
"Obadiah",
|
| 523 |
+
"Jonah",
|
| 524 |
+
"Micah",
|
| 525 |
+
"Nahum",
|
| 526 |
+
"Habakkuk",
|
| 527 |
+
"Zephaniah",
|
| 528 |
+
"Haggai",
|
| 529 |
+
"Zechariah",
|
| 530 |
+
"Malachi"
|
| 531 |
+
],
|
| 532 |
+
"The_New_Testament":[
|
| 533 |
+
"John",
|
| 534 |
+
"2 John",
|
| 535 |
+
"Revelation"
|
| 536 |
+
]
|
| 537 |
+
}
|
| 538 |
+
},
|
| 539 |
+
{
|
| 540 |
+
"name":"Random Verse",
|
| 541 |
+
"url":"https://bible-search.p.rapidapi.com/random-verse",
|
| 542 |
+
"description":"Returns a random verse of the bible.",
|
| 543 |
+
"method":"GET",
|
| 544 |
+
"required_parameters":[],
|
| 545 |
+
"optional_parameters":[],
|
| 546 |
+
"code":"import requests\n\nurl = \"https://bible-search.p.rapidapi.com/random-verse\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"bible-search.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n",
|
| 547 |
+
"statuscode":200,
|
| 548 |
+
"body":{
|
| 549 |
+
"key1":"value",
|
| 550 |
+
"key2":"value"
|
| 551 |
+
},
|
| 552 |
+
"headers":{},
|
| 553 |
+
"schema":{
|
| 554 |
+
"type":"array",
|
| 555 |
+
"items":{
|
| 556 |
+
"type":"object",
|
| 557 |
+
"properties":{
|
| 558 |
+
"chapter":{
|
| 559 |
+
"type":"integer"
|
| 560 |
+
},
|
| 561 |
+
"verse":{
|
| 562 |
+
"type":"integer"
|
| 563 |
+
},
|
| 564 |
+
"text":{
|
| 565 |
+
"type":"string"
|
| 566 |
+
},
|
| 567 |
+
"translation_id":{
|
| 568 |
+
"type":"string"
|
| 569 |
+
},
|
| 570 |
+
"book_id":{
|
| 571 |
+
"type":"string"
|
| 572 |
+
},
|
| 573 |
+
"book_name":{
|
| 574 |
+
"type":"string"
|
| 575 |
+
},
|
| 576 |
+
"tags":{
|
| 577 |
+
"type":"array",
|
| 578 |
+
"items":{
|
| 579 |
+
"type":"string"
|
| 580 |
+
}
|
| 581 |
+
}
|
| 582 |
+
}
|
| 583 |
+
}
|
| 584 |
+
}
|
| 585 |
+
}
|
| 586 |
+
]
|
| 587 |
+
}
|
toolbench/toolenv/tools/Data/bible_search/api.py
ADDED
|
@@ -0,0 +1,235 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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_book_by_name(bookname: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 10 |
+
"""
|
| 11 |
+
"Returns a book of the Bible."
|
| 12 |
+
bookname: Name of the book.
|
| 13 |
+
|
| 14 |
+
"""
|
| 15 |
+
url = f"https://bible-search.p.rapidapi.com/books-by-name"
|
| 16 |
+
querystring = {'bookName': bookname, }
|
| 17 |
+
|
| 18 |
+
headers = {
|
| 19 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 20 |
+
"X-RapidAPI-Host": "bible-search.p.rapidapi.com"
|
| 21 |
+
}
|
| 22 |
+
|
| 23 |
+
|
| 24 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 25 |
+
try:
|
| 26 |
+
observation = response.json()
|
| 27 |
+
except:
|
| 28 |
+
observation = response.text
|
| 29 |
+
return observation
|
| 30 |
+
|
| 31 |
+
def get_chapter_by_bookname(bookname: str, chapterid: int, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 32 |
+
"""
|
| 33 |
+
"Returns a chapter of a book in the Bible."
|
| 34 |
+
bookname: Name of the book.
|
| 35 |
+
chapterid: Chapter number.
|
| 36 |
+
|
| 37 |
+
"""
|
| 38 |
+
url = f"https://bible-search.p.rapidapi.com/books-by-name/chapter"
|
| 39 |
+
querystring = {'bookName': bookname, 'chapterId': chapterid, }
|
| 40 |
+
|
| 41 |
+
headers = {
|
| 42 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 43 |
+
"X-RapidAPI-Host": "bible-search.p.rapidapi.com"
|
| 44 |
+
}
|
| 45 |
+
|
| 46 |
+
|
| 47 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 48 |
+
try:
|
| 49 |
+
observation = response.json()
|
| 50 |
+
except:
|
| 51 |
+
observation = response.text
|
| 52 |
+
return observation
|
| 53 |
+
|
| 54 |
+
def get_verse_by_bookname(verseid: int, bookname: str, chapterid: int, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 55 |
+
"""
|
| 56 |
+
"Returns a verse of the Bible."
|
| 57 |
+
verseid: Verse number.
|
| 58 |
+
bookname: Name of the book.
|
| 59 |
+
chapterid: Chapter number.
|
| 60 |
+
|
| 61 |
+
"""
|
| 62 |
+
url = f"https://bible-search.p.rapidapi.com/books-by-name/verse"
|
| 63 |
+
querystring = {'verseId': verseid, 'bookName': bookname, 'chapterId': chapterid, }
|
| 64 |
+
|
| 65 |
+
headers = {
|
| 66 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 67 |
+
"X-RapidAPI-Host": "bible-search.p.rapidapi.com"
|
| 68 |
+
}
|
| 69 |
+
|
| 70 |
+
|
| 71 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 72 |
+
try:
|
| 73 |
+
observation = response.json()
|
| 74 |
+
except:
|
| 75 |
+
observation = response.text
|
| 76 |
+
return observation
|
| 77 |
+
|
| 78 |
+
def get_verses_by_bookname(chapterid: int, bookname: str, versestart: int, verseend: int, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 79 |
+
"""
|
| 80 |
+
"Get a range of verses of the Bible."
|
| 81 |
+
chapterid: Chapter number.
|
| 82 |
+
bookname: Name of the book.
|
| 83 |
+
versestart: Beginning verse.
|
| 84 |
+
verseend: End verse.
|
| 85 |
+
|
| 86 |
+
"""
|
| 87 |
+
url = f"https://bible-search.p.rapidapi.com/books-by-name/verses"
|
| 88 |
+
querystring = {'chapterId': chapterid, 'bookName': bookname, 'verseStart': versestart, 'verseEnd': verseend, }
|
| 89 |
+
|
| 90 |
+
headers = {
|
| 91 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 92 |
+
"X-RapidAPI-Host": "bible-search.p.rapidapi.com"
|
| 93 |
+
}
|
| 94 |
+
|
| 95 |
+
|
| 96 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 97 |
+
try:
|
| 98 |
+
observation = response.json()
|
| 99 |
+
except:
|
| 100 |
+
observation = response.text
|
| 101 |
+
return observation
|
| 102 |
+
|
| 103 |
+
def get_book_by_id(bookid: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 104 |
+
"""
|
| 105 |
+
"Returns a book of the Bible."
|
| 106 |
+
bookid: Id of the book.
|
| 107 |
+
|
| 108 |
+
"""
|
| 109 |
+
url = f"https://bible-search.p.rapidapi.com/books-by-id"
|
| 110 |
+
querystring = {'bookId': bookid, }
|
| 111 |
+
|
| 112 |
+
headers = {
|
| 113 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 114 |
+
"X-RapidAPI-Host": "bible-search.p.rapidapi.com"
|
| 115 |
+
}
|
| 116 |
+
|
| 117 |
+
|
| 118 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 119 |
+
try:
|
| 120 |
+
observation = response.json()
|
| 121 |
+
except:
|
| 122 |
+
observation = response.text
|
| 123 |
+
return observation
|
| 124 |
+
|
| 125 |
+
def get_chapter_by_bookid(bookid: str, chapterid: int, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 126 |
+
"""
|
| 127 |
+
"Returns a chapter of a book in the Bible."
|
| 128 |
+
bookid: Id of the book.
|
| 129 |
+
chapterid: Chapter number.
|
| 130 |
+
|
| 131 |
+
"""
|
| 132 |
+
url = f"https://bible-search.p.rapidapi.com/books-by-id/chapter"
|
| 133 |
+
querystring = {'bookId': bookid, 'chapterId': chapterid, }
|
| 134 |
+
|
| 135 |
+
headers = {
|
| 136 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 137 |
+
"X-RapidAPI-Host": "bible-search.p.rapidapi.com"
|
| 138 |
+
}
|
| 139 |
+
|
| 140 |
+
|
| 141 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 142 |
+
try:
|
| 143 |
+
observation = response.json()
|
| 144 |
+
except:
|
| 145 |
+
observation = response.text
|
| 146 |
+
return observation
|
| 147 |
+
|
| 148 |
+
def get_verse_by_bookid(chapterid: int, bookid: str, verseid: int, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 149 |
+
"""
|
| 150 |
+
"Returns a verse of the Bible."
|
| 151 |
+
chapterid: Chapter number.
|
| 152 |
+
bookid: Id of the book.
|
| 153 |
+
verseid: Verse number.
|
| 154 |
+
|
| 155 |
+
"""
|
| 156 |
+
url = f"https://bible-search.p.rapidapi.com/books-by-id/verse"
|
| 157 |
+
querystring = {'chapterId': chapterid, 'bookId': bookid, 'verseId': verseid, }
|
| 158 |
+
|
| 159 |
+
headers = {
|
| 160 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 161 |
+
"X-RapidAPI-Host": "bible-search.p.rapidapi.com"
|
| 162 |
+
}
|
| 163 |
+
|
| 164 |
+
|
| 165 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 166 |
+
try:
|
| 167 |
+
observation = response.json()
|
| 168 |
+
except:
|
| 169 |
+
observation = response.text
|
| 170 |
+
return observation
|
| 171 |
+
|
| 172 |
+
def search_text(text: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 173 |
+
"""
|
| 174 |
+
"Return all verses from the bible by text parameter."
|
| 175 |
+
text: Text to be searched.
|
| 176 |
+
|
| 177 |
+
"""
|
| 178 |
+
url = f"https://bible-search.p.rapidapi.com/search"
|
| 179 |
+
querystring = {'text': text, }
|
| 180 |
+
|
| 181 |
+
headers = {
|
| 182 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 183 |
+
"X-RapidAPI-Host": "bible-search.p.rapidapi.com"
|
| 184 |
+
}
|
| 185 |
+
|
| 186 |
+
|
| 187 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 188 |
+
try:
|
| 189 |
+
observation = response.json()
|
| 190 |
+
except:
|
| 191 |
+
observation = response.text
|
| 192 |
+
return observation
|
| 193 |
+
|
| 194 |
+
def get_books(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 195 |
+
"""
|
| 196 |
+
"Returns a list of the books in the Bible."
|
| 197 |
+
|
| 198 |
+
"""
|
| 199 |
+
url = f"https://bible-search.p.rapidapi.com/books"
|
| 200 |
+
querystring = {}
|
| 201 |
+
|
| 202 |
+
headers = {
|
| 203 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 204 |
+
"X-RapidAPI-Host": "bible-search.p.rapidapi.com"
|
| 205 |
+
}
|
| 206 |
+
|
| 207 |
+
|
| 208 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 209 |
+
try:
|
| 210 |
+
observation = response.json()
|
| 211 |
+
except:
|
| 212 |
+
observation = response.text
|
| 213 |
+
return observation
|
| 214 |
+
|
| 215 |
+
def random_verse(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 216 |
+
"""
|
| 217 |
+
"Returns a random verse of the bible."
|
| 218 |
+
|
| 219 |
+
"""
|
| 220 |
+
url = f"https://bible-search.p.rapidapi.com/random-verse"
|
| 221 |
+
querystring = {}
|
| 222 |
+
|
| 223 |
+
headers = {
|
| 224 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 225 |
+
"X-RapidAPI-Host": "bible-search.p.rapidapi.com"
|
| 226 |
+
}
|
| 227 |
+
|
| 228 |
+
|
| 229 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 230 |
+
try:
|
| 231 |
+
observation = response.json()
|
| 232 |
+
except:
|
| 233 |
+
observation = response.text
|
| 234 |
+
return observation
|
| 235 |
+
|
toolbench/toolenv/tools/Data/bible_verse_of_the_day.json
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"tool_name":"Bible Verse of the Day",
|
| 3 |
+
"tool_description":"An API showing Bible verse of the day",
|
| 4 |
+
"title":"Bible Verse of the Day",
|
| 5 |
+
"pricing":"FREEMIUM",
|
| 6 |
+
"score":{
|
| 7 |
+
"avgServiceLevel":100,
|
| 8 |
+
"avgLatency":2738,
|
| 9 |
+
"avgSuccessRate":100,
|
| 10 |
+
"popularityScore":8.1,
|
| 11 |
+
"__typename":"Score"
|
| 12 |
+
},
|
| 13 |
+
"home_url":"https://rapidapi.com/traviscarr20--bJguAgh4N2/api/bible-verse-of-the-day/",
|
| 14 |
+
"host":"bible-verse-of-the-day.p.rapidapi.com",
|
| 15 |
+
"api_list":[
|
| 16 |
+
{
|
| 17 |
+
"name":"Get Bible Verse of the day",
|
| 18 |
+
"url":"https://bible-verse-of-the-day.p.rapidapi.com/verse",
|
| 19 |
+
"description":"This endpoint will return Bible verse of the day",
|
| 20 |
+
"method":"GET",
|
| 21 |
+
"required_parameters":[],
|
| 22 |
+
"optional_parameters":[],
|
| 23 |
+
"code":"import requests\n\nurl = \"https://bible-verse-of-the-day.p.rapidapi.com/verse\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"bible-verse-of-the-day.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n",
|
| 24 |
+
"statuscode":111,
|
| 25 |
+
"body":"",
|
| 26 |
+
"headers":"",
|
| 27 |
+
"schema":""
|
| 28 |
+
}
|
| 29 |
+
]
|
| 30 |
+
}
|
toolbench/toolenv/tools/Data/bible_verse_of_the_day/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_bible_verse_of_the_day(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 10 |
+
"""
|
| 11 |
+
"This endpoint will return Bible verse of the day"
|
| 12 |
+
|
| 13 |
+
"""
|
| 14 |
+
url = f"https://bible-verse-of-the-day.p.rapidapi.com/verse"
|
| 15 |
+
querystring = {}
|
| 16 |
+
|
| 17 |
+
headers = {
|
| 18 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 19 |
+
"X-RapidAPI-Host": "bible-verse-of-the-day.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/Data/bibtexsearch_com/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 search_q_query(query: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 10 |
+
"""
|
| 11 |
+
""
|
| 12 |
+
|
| 13 |
+
"""
|
| 14 |
+
url = f"https://jamesjardine-bibtexsearch-com-v1.p.rapidapi.com/search?q={query}"
|
| 15 |
+
querystring = {}
|
| 16 |
+
|
| 17 |
+
headers = {
|
| 18 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 19 |
+
"X-RapidAPI-Host": "jamesjardine-bibtexsearch-com-v1.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/Data/bigbox.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|