diff --git a/toolbench/toolenv/tools/Text_Analysis/text_sentiment_analysis.json b/toolbench/toolenv/tools/Text_Analysis/text_sentiment_analysis.json new file mode 100644 index 0000000000000000000000000000000000000000..84ed8aaf4b774f515002aed6710093e8e06dc06e --- /dev/null +++ b/toolbench/toolenv/tools/Text_Analysis/text_sentiment_analysis.json @@ -0,0 +1,32 @@ +{ + "product_id": "api_f2e96509-50f3-4438-a050-448bff25892d", + "tool_description": "Analyze and determine the sentiment (positive or negative) expressed in text data. With this API, you can integrate sentiment analysis capabilities into your applications, platforms, or services, allowing you to gain insights into the emotions, opinions, or attitudes conveyed within textual content.", + "home_url": "https://rapidapi.com/evlar-evlar-default/api/text-sentiment-analysis5/", + "name": "Text Sentiment Analysis", + "title": "Text Sentiment Analysis", + "pricing": "FREEMIUM", + "tool_name": "Text Sentiment Analysis", + "score": { + "avgServiceLevel": 100, + "avgLatency": 1447, + "avgSuccessRate": 100, + "popularityScore": 8.6, + "__typename": "Score" + }, + "host": "text-sentiment-analysis5.p.rapidapi.com", + "api_list": [ + { + "name": "Detect Sentiment", + "url": "https://text-sentiment-analysis5.p.rapidapi.com/detect", + "description": "Detect Sentiment", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://text-sentiment-analysis5.p.rapidapi.com/detect\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"text-sentiment-analysis5.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://text-sentiment-analysis5.p.rapidapi.com/detect\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"text-sentiment-analysis5.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": {} + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Text_Analysis/text_sentiment_analyzer.json b/toolbench/toolenv/tools/Text_Analysis/text_sentiment_analyzer.json new file mode 100644 index 0000000000000000000000000000000000000000..a0e4d1536334c37fbe98444dcea39229e6530cc8 --- /dev/null +++ b/toolbench/toolenv/tools/Text_Analysis/text_sentiment_analyzer.json @@ -0,0 +1,33 @@ +{ + "product_id": "api_a73ff515-ae0c-4ada-a846-f488f067b896", + "tool_description": "Text Sentiment Analyzer inspects the given text or URL and identifies the prevailing emotional opinion within the text, especially to determine a writer's attitude as positive, negative, or neutral. Sentiment analysis is performed through a specifically trained AI.", + "home_url": "https://rapidapi.com/inspot/api/text-sentiment-analyzer/", + "name": "Text Sentiment Analyzer", + "title": "Text Sentiment Analyzer", + "pricing": "PAID", + "tool_name": "Text Sentiment Analyzer", + "score": null, + "host": "text-sentiment-analyzer.p.rapidapi.com", + "api_list": [ + { + "name": "Text Sentiment Analyzer", + "url": "https://text-sentiment-analyzer.p.rapidapi.com/text_sentiment_analyzer", + "description": "Text Sentiment Analyzer inspects the given text and identifies the prevailing emotional opinion within the text, especially to determine a writer's attitude as positive, negative, or neutral. Sentiment analysis is performed through a specifically trained AI.", + "method": "POST", + "required_parameters": [ + { + "name": "text", + "type": "STRING", + "description": "", + "default": "Never give up, life goes on and the road does not end. Raise your head and believe in your abilities. You will always attain what you propose to yourself if you really want it." + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://text-sentiment-analyzer.p.rapidapi.com/text_sentiment_analyzer\"\nquerystring = {\"text\": \"Never give up, life goes on and the road does not end. Raise your head and believe in your abilities. You will always attain what you propose to yourself if you really want it.\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"text-sentiment-analyzer.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://text-sentiment-analyzer.p.rapidapi.com/text_sentiment_analyzer\"\nquerystring = {\"text\": \"Never give up, life goes on and the road does not end. Raise your head and believe in your abilities. You will always attain what you propose to yourself if you really want it.\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"text-sentiment-analyzer.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Text_Analysis/text_sentiment_analyzer_api.json b/toolbench/toolenv/tools/Text_Analysis/text_sentiment_analyzer_api.json new file mode 100644 index 0000000000000000000000000000000000000000..360765262b9bac8543d2bfc48d17667f3a843fdd --- /dev/null +++ b/toolbench/toolenv/tools/Text_Analysis/text_sentiment_analyzer_api.json @@ -0,0 +1,37 @@ +{ + "product_id": "api_8a3bf80d-3eb1-4417-8895-698b448ed839", + "tool_description": "The Text Sentiment Analyzer API is a tool for analyzing the sentiment of textual data. It uses advanced natural language processing techniques to determine the emotional tone of the text, providing insight into whether the text is positive, negative, or neutral. This API can be used in various applications such as social media monitoring, customer feedback analysis, and market research.", + "home_url": "https://rapidapi.com/zyla-labs-zyla-labs-default/api/text-sentiment-analyzer-api1/", + "name": "Text Sentiment Analyzer API", + "title": "Text Sentiment Analyzer API", + "pricing": "FREEMIUM", + "tool_name": "Text Sentiment Analyzer API", + "score": { + "avgServiceLevel": 0, + "avgLatency": 994, + "avgSuccessRate": 0, + "popularityScore": 0, + "__typename": "Score" + }, + "host": "text-sentiment-analyzer-api1.p.rapidapi.com", + "api_list": [ + { + "name": "Sentiment Analyzer", + "url": "https://text-sentiment-analyzer-api1.p.rapidapi.com/sentiment", + "description": "Pass any text and receive its sentiment score.", + "method": "POST", + "required_parameters": [ + { + "name": "text", + "type": "STRING", + "description": "", + "default": "I've been using this API for some time now. I must say that its performance its excellent. I will recommend this tool" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://text-sentiment-analyzer-api1.p.rapidapi.com/sentiment\"\nquerystring = {\"text\": \"I've been using this API for some time now. I must say that its performance its excellent. I will recommend this tool\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"text-sentiment-analyzer-api1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://text-sentiment-analyzer-api1.p.rapidapi.com/sentiment\"\nquerystring = {\"text\": \"I've been using this API for some time now. I must say that its performance its excellent. I will recommend this tool\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"text-sentiment-analyzer-api1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Text_Analysis/text_sentiment_api.json b/toolbench/toolenv/tools/Text_Analysis/text_sentiment_api.json new file mode 100644 index 0000000000000000000000000000000000000000..0c54f0aed80920893fe86cd06f31f853a8b515fe --- /dev/null +++ b/toolbench/toolenv/tools/Text_Analysis/text_sentiment_api.json @@ -0,0 +1,31 @@ +{ + "product_id": "api_62777a3d-5775-44f6-a2b2-3f66245ea921", + "tool_description": "The Text Sentiment API on RapidAPI is one of the fastest and most robust sentiment analysis APIs. It returns values of POSITIVE, NEGATIVE, NEUTRAL, or MIXED and the associated probabilities (confidence) that a text has these sentiments. You can read more about the APi in this blog post: https://jj-espinoza-la.medium.com/the-benefits-and-uses-of-sentiment-analysis-apis-810de5f40fce", + "home_url": "https://rapidapi.com/jjespinozala/api/text-sentiment-api/", + "name": "Text Sentiment API", + "title": "Text Sentiment API", + "pricing": "FREEMIUM", + "tool_name": "Text Sentiment API", + "score": null, + "host": "text-sentiment-api.p.rapidapi.com", + "api_list": [ + { + "name": "sentiment", + "url": "https://text-sentiment-api.p.rapidapi.com/sentiment", + "description": "This endpoint returns the sentiment of a given text.", + "method": "POST", + "required_parameters": [ + { + "name": "text", + "type": "STRING", + "description": "", + "default": "Negative is greater than the sum of its flawed parts." + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://text-sentiment-api.p.rapidapi.com/sentiment\"\nquerystring = {\"text\": \"Negative is greater than the sum of its flawed parts.\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"text-sentiment-api.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://text-sentiment-api.p.rapidapi.com/sentiment\"\nquerystring = {\"text\": \"Negative is greater than the sum of its flawed parts.\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"text-sentiment-api.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Text_Analysis/text_similarity.json b/toolbench/toolenv/tools/Text_Analysis/text_similarity.json new file mode 100644 index 0000000000000000000000000000000000000000..a1924947048147fd7df7b4660c187681088d08d9 --- /dev/null +++ b/toolbench/toolenv/tools/Text_Analysis/text_similarity.json @@ -0,0 +1,174 @@ +{ + "tool_name": "Text Similarity", + "tool_description": "Evaluate the similarity of two words, sentences, or paragraphs", + "title": "Text Similarity", + "pricing": "FREEMIUM", + "score": { + "avgServiceLevel": 100, + "avgLatency": 180, + "avgSuccessRate": 100, + "popularityScore": 9.8, + "__typename": "Score" + }, + "home_url": "https://rapidapi.com/twinword/api/text-similarity/", + "host": "twinword-text-similarity-v1.p.rapidapi.com", + "api_list": [ + { + "name": "Text Similarity (get)", + "url": "https://twinword-text-similarity-v1.p.rapidapi.com/similarity/", + "description": "Evaluate the similarity of two words, sentences, or paragraphs.", + "method": "GET", + "required_parameters": [ + { + "name": "text1", + "type": "STRING", + "description": "Input the first text to compare.", + "default": "The hippocampus is a major component of the brains of humans and other vertebrates. It belongs to the limbic system and plays important roles in the consolidation of information from short-term memory to long-term memory and spatial navigation. Humans and other mammals have two hippocampi, one in each side of the brain. The hippocampus is a part of the cerebral cortex; and in primates it is located in the medial temporal lobe, underneath the cortical surface. It contains two main interlocking parts: Ammon's horn and the dentate gyrus." + }, + { + "name": "text2", + "type": "STRING", + "description": "Input a second text to compare its similarity with the first text.", + "default": "An important part of the brains of humans and other vertebrates is the hippocampus. It's part of the limbic system and moves information from short-term to long-term memory. It also helps us move around. Humans and other mammals have two hippocampi, one on each side. The hippocampus is a part of the cerebral cortex; and in primates it is found in the medial temporal lobe, beneathe the cortical surface. It has two main interlocking parts: Ammon's horn and the dentate gyrus." + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://twinword-text-similarity-v1.p.rapidapi.com/similarity/\"\nquerystring = {\"text1\": text1, \"text2\": text2}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"twinword-text-similarity-v1.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode": 200, + "body": { + "similarity": 0.90790287408326, + "value": 185511.27238341, + "version": "4.0.0", + "author": "twinword inc.", + "email": "feedback@twinword.com", + "result_code": "200", + "result_msg": "Success" + }, + "headers": { + "alt-svc": "h3-27=\":443\"; ma=86400, h3-25=\":443\"; ma=86400, h3-24=\":443\"; ma=86400, h3-23=\":443\"; ma=86400", + "cf-cache-status": "DYNAMIC", + "cf-ray": "599e9ee73ecdef59-NRT", + "cf-request-id": "02f701a4840000ef59580ef200000001", + "content-type": "application/json", + "date": "Wed, 27 May 2020 09:13:35 GMT", + "expect-ct": "max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\"", + "server": "RapidAPI-1.1.7", + "set-cookie": [ + "__cfduid=da2ca46aa5b3559ce34814b65580e4bfd1590570814; expires=Fri, 26-Jun-20 09:13:34 GMT; path=/; domain=.twinword.com; HttpOnly; SameSite=Lax; Secure" + ], + "strict-transport-security": "max-age=15552000; includeSubDomains; preload", + "x-content-type-options": "nosniff", + "x-rapidapi-region": "AWS - ap-northeast-1", + "x-rapidapi-version": "1.1.7", + "content-length": "169", + "connection": "Close" + }, + "schema": { + "properties": { + "author": { + "type": "string" + }, + "email": { + "format": "email", + "type": "string" + }, + "result_code": { + "format": "color", + "type": "string" + }, + "result_msg": { + "type": "string" + }, + "similarity": { + "type": "number" + }, + "value": { + "type": "number" + }, + "version": { + "type": "string" + } + }, + "type": "object" + } + }, + { + "name": "Text Similarity (post)", + "url": "https://twinword-text-similarity-v1.p.rapidapi.com/similarity/", + "description": "Evaluate the similarity of two words, sentences, or paragraphs.", + "method": "POST", + "required_parameters": [ + { + "name": "text1", + "type": "STRING", + "description": "Enter the first text to compare.", + "default": "The hippocampus is a major component of the brains of humans and other vertebrates. It belongs to the limbic system and plays important roles in the consolidation of information from short-term memory to long-term memory and spatial navigation. Humans and other mammals have two hippocampi, one in each side of the brain. The hippocampus is a part of the cerebral cortex; and in primates it is located in the medial temporal lobe, underneath the cortical surface. It contains two main interlocking parts: Ammon's horn and the dentate gyrus." + }, + { + "name": "text2", + "type": "STRING", + "description": "Input a second text to compare its similarity with the first text.", + "default": "An important part of the brains of humans and other vertebrates is the hippocampus. It's part of the limbic system and moves information from short-term to long-term memory. It also helps us move around. Humans and other mammals have two hippocampi, one on each side. The hippocampus is a part of the cerebral cortex; and in primates it is found in the medial temporal lobe, beneathe the cortical surface. It has two main interlocking parts: Ammon's horn and the dentate gyrus." + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://twinword-text-similarity-v1.p.rapidapi.com/similarity/\"\nquerystring = {\"text1\": text1, \"text2\": text2}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"twinword-text-similarity-v1.p.rapidapi.com\"\n}\n\nresponse = requests.post(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode": 200, + "body": { + "author": "twinword inc.", + "email": "help@twinword.com", + "result_code": "200", + "result_msg": "Success", + "similarity": 0.86882813106215, + "value": 2463079.7207981, + "version": "4.0.0" + }, + "headers": { + "alt-svc": "h3-27=\":443\"; ma=86400, h3-25=\":443\"; ma=86400, h3-24=\":443\"; ma=86400, h3-23=\":443\"; ma=86400", + "cf-cache-status": "DYNAMIC", + "cf-ray": "599e9f585cb8f8df-NRT", + "cf-request-id": "02f701eb330000f8df1834c200000001", + "content-type": "application/json", + "date": "Wed, 27 May 2020 09:13:53 GMT", + "expect-ct": "max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\"", + "server": "RapidAPI-1.1.7", + "set-cookie": [ + "__cfduid=dd09c4ecef586b6933065e5fbc454cdff1590570832; expires=Fri, 26-Jun-20 09:13:52 GMT; path=/; domain=.twinword.com; HttpOnly; SameSite=Lax; Secure" + ], + "strict-transport-security": "max-age=15552000; includeSubDomains; preload", + "x-content-type-options": "nosniff", + "x-rapidapi-region": "AWS - ap-northeast-1", + "x-rapidapi-version": "1.1.7", + "content-length": "169", + "connection": "Close" + }, + "schema": {} + }, + { + "name": "Text Similarity (post)", + "url": "https://twinword-text-similarity-v1.p.rapidapi.com/similarity/", + "description": "Evaluate the similarity of two words, sentences, or paragraphs.", + "method": "POST", + "required_parameters": [ + { + "name": "text1", + "type": "STRING", + "description": "Enter the first text to compare.", + "default": "The hippocampus is a major component of the brains of humans and other vertebrates. It belongs to the limbic system and plays important roles in the consolidation of information from short-term memory to long-term memory and spatial navigation. Humans and other mammals have two hippocampi, one in each side of the brain. The hippocampus is a part of the cerebral cortex; and in primates it is located in the medial temporal lobe, underneath the cortical surface. It contains two main interlocking parts: Ammon's horn and the dentate gyrus." + }, + { + "name": "text2", + "type": "STRING", + "description": "Input a second text to compare its similarity with the first text.", + "default": "An important part of the brains of humans and other vertebrates is the hippocampus. It's part of the limbic system and moves information from short-term to long-term memory. It also helps us move around. Humans and other mammals have two hippocampi, one on each side. The hippocampus is a part of the cerebral cortex; and in primates it is found in the medial temporal lobe, beneathe the cortical surface. It has two main interlocking parts: Ammon's horn and the dentate gyrus." + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://twinword-text-similarity-v1.p.rapidapi.com/similarity/\"\nquerystring = {\"text1\": \"The hippocampus is a major component of the brains of humans and other vertebrates. It belongs to the limbic system and plays important roles in the consolidation of information from short-term memory to long-term memory and spatial navigation. Humans and other mammals have two hippocampi, one in each side of the brain. The hippocampus is a part of the cerebral cortex; and in primates it is located in the medial temporal lobe, underneath the cortical surface. It contains two main interlocking parts: Ammon's horn and the dentate gyrus.\", \"text2\": \"An important part of the brains of humans and other vertebrates is the hippocampus. It's part of the limbic system and moves information from short-term to long-term memory. It also helps us move around. Humans and other mammals have two hippocampi, one on each side. The hippocampus is a part of the cerebral cortex; and in primates it is found in the medial temporal lobe, beneathe the cortical surface. It has two main interlocking parts: Ammon's horn and the dentate gyrus.\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"twinword-text-similarity-v1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://twinword-text-similarity-v1.p.rapidapi.com/similarity/\"\nquerystring = {\"text1\": \"The hippocampus is a major component of the brains of humans and other vertebrates. It belongs to the limbic system and plays important roles in the consolidation of information from short-term memory to long-term memory and spatial navigation. Humans and other mammals have two hippocampi, one in each side of the brain. The hippocampus is a part of the cerebral cortex; and in primates it is located in the medial temporal lobe, underneath the cortical surface. It contains two main interlocking parts: Ammon's horn and the dentate gyrus.\", \"text2\": \"An important part of the brains of humans and other vertebrates is the hippocampus. It's part of the limbic system and moves information from short-term to long-term memory. It also helps us move around. Humans and other mammals have two hippocampi, one on each side. The hippocampus is a part of the cerebral cortex; and in primates it is found in the medial temporal lobe, beneathe the cortical surface. It has two main interlocking parts: Ammon's horn and the dentate gyrus.\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"twinword-text-similarity-v1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": {} + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Text_Analysis/text_similarity/api.py b/toolbench/toolenv/tools/Text_Analysis/text_similarity/api.py new file mode 100644 index 0000000000000000000000000000000000000000..a1d61b1039f5a35c7c7c1e1e7542a855837b7a83 --- /dev/null +++ b/toolbench/toolenv/tools/Text_Analysis/text_similarity/api.py @@ -0,0 +1,31 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def text_similarity_get(text1: str, text2: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Evaluate the similarity of two words, sentences, or paragraphs." + text1: Input the first text to compare. + text2: Input a second text to compare its similarity with the first text. + + """ + url = f"https://twinword-text-similarity-v1.p.rapidapi.com/similarity/" + querystring = {'text1': text1, 'text2': text2, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "twinword-text-similarity-v1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Text_Analysis/text_summarization.json b/toolbench/toolenv/tools/Text_Analysis/text_summarization.json new file mode 100644 index 0000000000000000000000000000000000000000..a023ff8b8f092be649ef175fbd622c0676fd98d8 --- /dev/null +++ b/toolbench/toolenv/tools/Text_Analysis/text_summarization.json @@ -0,0 +1,30 @@ +{ + "product_id": "api_62b5d0f9-2a7f-405e-8a60-1d06fc3fcfdf", + "tool_description": "Summarizes text, in almost abstractive way. ", + "home_url": "https://rapidapi.com/lakinekaki7/api/text-summarization8/", + "name": "Text Summarization", + "title": "Text Summarization", + "pricing": "FREEMIUM", + "tool_name": "Text Summarization", + "score": { + "avgServiceLevel": 100, + "avgLatency": 838, + "avgSuccessRate": 100, + "popularityScore": 8.2, + "__typename": "Score" + }, + "host": "text-summarization8.p.rapidapi.com", + "api_list": [ + { + "name": "Text Summarization", + "url": "https://text-summarization8.p.rapidapi.com/summarize", + "description": "Summarizes a text with paraphrasing. It extracts the essential information and removes redundancies.", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://text-summarization8.p.rapidapi.com/summarize\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"text-summarization8.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://text-summarization8.p.rapidapi.com/summarize\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"text-summarization8.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Text_Analysis/text_summarizer.json b/toolbench/toolenv/tools/Text_Analysis/text_summarizer.json new file mode 100644 index 0000000000000000000000000000000000000000..81a8fa9fa2b9de0820a81e2d2c9a1bf981587b83 --- /dev/null +++ b/toolbench/toolenv/tools/Text_Analysis/text_summarizer.json @@ -0,0 +1,45 @@ +{ + "product_id": "api_6fe50519-e1b5-4c47-96b0-3ff1754b406b", + "tool_description": "Connexun's \"Text Summarizer\" API generates an extractive summary from any given text. Test our api for free and do not hesitate to reach us out for further information.", + "home_url": "https://rapidapi.com/connexun-srl-connexun-srl-default/api/text-summarizer1/", + "name": "Text Summarizer", + "title": "Text Summarizer", + "pricing": "FREEMIUM", + "tool_name": "Text Summarizer", + "score": { + "avgServiceLevel": 100, + "avgLatency": 1318, + "avgSuccessRate": 75, + "popularityScore": 9.2, + "__typename": "Score" + }, + "host": "text-summarizer1.p.rapidapi.com", + "api_list": [ + { + "name": "/summarize", + "url": "https://text-summarizer1.p.rapidapi.com/summarize", + "description": "Summarizes a valid input content and returns the highest ranked sentences from the text. These sentences in the order of appearence in the main text are then combined, which represents the most weighted sentences of the text also called summary.", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://text-summarizer1.p.rapidapi.com/summarize\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"text-summarizer1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://text-summarizer1.p.rapidapi.com/summarize\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"text-summarizer1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "/detect-language", + "url": "https://text-summarizer1.p.rapidapi.com/detect-language", + "description": "The endpoint takes as input the text that needs to be analyzed and returns with the probability the language in which the text is written. If the text contains multiple language, the response is an array of objects each specifying the language detected and the corresponding probability.", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://text-summarizer1.p.rapidapi.com/detect-language\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"text-summarizer1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://text-summarizer1.p.rapidapi.com/detect-language\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"text-summarizer1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Text_Analysis/text_summarizer_api.json b/toolbench/toolenv/tools/Text_Analysis/text_summarizer_api.json new file mode 100644 index 0000000000000000000000000000000000000000..7ca969035c7e7e9a26ba0cd5c25cadb4f43f1a19 --- /dev/null +++ b/toolbench/toolenv/tools/Text_Analysis/text_summarizer_api.json @@ -0,0 +1,37 @@ +{ + "product_id": "api_bf3e42aa-cdde-4230-aaad-81b2c24e534d", + "tool_description": "The Text Summarizer API is a tool that automatically creates brief, condensed versions of the original text. This API can be used in various applications such as news aggregation, content curation, and educational materials.", + "home_url": "https://rapidapi.com/zyla-labs-zyla-labs-default/api/text-summarizer-api/", + "name": "Text Summarizer API", + "title": "Text Summarizer API", + "pricing": "FREEMIUM", + "tool_name": "Text Summarizer API", + "score": null, + "host": "text-summarizer-api.p.rapidapi.com", + "api_list": [ + { + "name": "Summarizer", + "url": "https://text-summarizer-api.p.rapidapi.com/summarizer", + "description": "With this Endpoint, you will be able to summarize your text. Select what percentage of the words you want to summarize, and you will be retrieved with the general idea of your text or article!", + "method": "POST", + "required_parameters": [ + { + "name": "text", + "type": "STRING", + "description": "The text string you want to summarize.", + "default": "In the modern digital environment, content that is quick, comprehensible, and simple to read is essential. You want your material to be reader-friendly whether you are presenting a learning module for a class, writing about a product or service, or simply journaling your most recent exploits. Many individuals prefer things to be tidy, succinct, and straightforward. So, tools for paraphrasing can be useful in this situation." + }, + { + "name": "output_percent", + "type": "STRING", + "description": "Percent of the original text to be returned. Values range from 10 to 100", + "default": "40" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://text-summarizer-api.p.rapidapi.com/summarizer\"\nquerystring = {\"text\": \"In the modern digital environment, content that is quick, comprehensible, and simple to read is essential. You want your material to be reader-friendly whether you are presenting a learning module for a class, writing about a product or service, or simply journaling your most recent exploits. Many individuals prefer things to be tidy, succinct, and straightforward. So, tools for paraphrasing can be useful in this situation.\", \"output_percent\": \"40\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"text-summarizer-api.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://text-summarizer-api.p.rapidapi.com/summarizer\"\nquerystring = {\"text\": \"In the modern digital environment, content that is quick, comprehensible, and simple to read is essential. You want your material to be reader-friendly whether you are presenting a learning module for a class, writing about a product or service, or simply journaling your most recent exploits. Many individuals prefer things to be tidy, succinct, and straightforward. So, tools for paraphrasing can be useful in this situation.\", \"output_percent\": \"40\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"text-summarizer-api.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Text_Analysis/text_summarizer_v4/api.py b/toolbench/toolenv/tools/Text_Analysis/text_summarizer_v4/api.py new file mode 100644 index 0000000000000000000000000000000000000000..0dc419c142c11952041522e65c9897b57da26d13 --- /dev/null +++ b/toolbench/toolenv/tools/Text_Analysis/text_summarizer_v4/api.py @@ -0,0 +1,29 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def ping(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "check if the service is alive" + + """ + url = f"https://text-summarizer6.p.rapidapi.com/ping" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "text-summarizer6.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Text_Analysis/text_summerizer.json b/toolbench/toolenv/tools/Text_Analysis/text_summerizer.json new file mode 100644 index 0000000000000000000000000000000000000000..0627d01a5524aae9a0923c9c68d0929c3e4416e6 --- /dev/null +++ b/toolbench/toolenv/tools/Text_Analysis/text_summerizer.json @@ -0,0 +1,30 @@ +{ + "product_id": "api_a0978a3a-0d86-44bc-9174-f28906e65f62", + "tool_description": "Summerizes text", + "home_url": "https://rapidapi.com/meziecjo-rPJ-00A9UcR/api/text-summerizer1/", + "name": "Text summerizer", + "title": "Text summerizer", + "pricing": "FREE", + "tool_name": "Text summerizer", + "score": { + "avgServiceLevel": 100, + "avgLatency": 793, + "avgSuccessRate": 0, + "popularityScore": 0, + "__typename": "Score" + }, + "host": "text-summerizer1.p.rapidapi.com", + "api_list": [ + { + "name": "Text", + "url": "https://text-summerizer1.p.rapidapi.com/text", + "description": "Endpoint that accepts a text string", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://text-summerizer1.p.rapidapi.com/text\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"text-summerizer1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://text-summerizer1.p.rapidapi.com/text\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"text-summerizer1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Text_Analysis/text_talking_point_api.json b/toolbench/toolenv/tools/Text_Analysis/text_talking_point_api.json new file mode 100644 index 0000000000000000000000000000000000000000..57337e97510b18cfcae5e3fdd909e501ac914ade --- /dev/null +++ b/toolbench/toolenv/tools/Text_Analysis/text_talking_point_api.json @@ -0,0 +1,31 @@ +{ + "product_id": "api_9e25e5ac-3d9f-4db9-91a9-388dcd48f511", + "tool_description": "A key phrase is a string containing a noun phrase that describes a particular thing. It generally consists of a noun and the modifiers that distinguish it. For example, \"day\" is a noun; \"a beautiful day\" is a noun phrase that includes an article (\"a\") and an adjective (\"beautiful\"). You can read more about this API in this blog post: https://jj-espinoza-la.medium.com/the-future-of-document-management-how-ai-is-transforming-the-way-we-store-and-retrieve-information-ebff526f83c6", + "home_url": "https://rapidapi.com/jjespinozala/api/text-talking-point-api/", + "name": "Text Talking Point API", + "title": "Text Talking Point API", + "pricing": "FREEMIUM", + "tool_name": "Text Talking Point API", + "score": null, + "host": "text-talking-point-api.p.rapidapi.com", + "api_list": [ + { + "name": "talking-points", + "url": "https://text-talking-point-api.p.rapidapi.com/", + "description": "This returns the talking points from a set of text.", + "method": "POST", + "required_parameters": [ + { + "name": "text", + "type": "STRING", + "description": "", + "default": "The importance of the presidency of the General Assembly can best be understood within the context of the Organization\u2019s founding ideals and inestimable contributions to human progress. The global reach of the United Nations makes it not only the most representative intergovernmental body on earth, but also the world\u2019s best hope for peace and security, sustainable development and the promotion and protection of human rights and social progress. Its membership, drawn from all corners of the globe, gives it the legitimacy that enables it to speak authoritatively as the voice and conscience of the international community, and to take on complex and daunting global challenges\u2014from intra- and inter-State armed conflicts to natural disasters and massive population displacement\u2014, in the service of humanity. In accordance with the provisions of its Charter, the United Nations is committed to human progress and the preservation of the environment\u2014our collective home. As we all know, our primary mandate, as prescribed in Article 1 of the Charter, is to \u201cmaintain international peace and security, and to that end: to take effective collective measures for the prevention and removal of threats to the peace, and for the suppression of acts of aggression or other breaches of the peace\u201d. In this noble undertaking, cooperation, collaboration, unity and solidarity must be the light we should seek and follow. To its credit, the United Nations has championed human progress on many fronts, including peace operations, human rights, non-discrimination, decolonization, gender equality and sustainable development. The Organization has also supported regional and subregional organizations in initiatives such as the African Union Agenda 2063. The Organization also continues to collaborate with other intergovernmental organizations and civil society in furtherance of its disarmament agenda and in tackling international terrorism, human trafficking, toxic waste dumping, and combating deadly diseases and health pandemics. The Sustainable Development Goals, launched in 2015, as well as the Paris Climate Agreement, capped the Organization\u2019s list of achievements in recent years. Of course, tension over norms and methods and policy differences have also marked exchanges and deliberations in the Organization, sometimes blocking meaningful action when it is most critical. Indeed, some of the more difficult and long-lasting matters of war and peace play out here in the United Nations, quite often pitting countries against each other and getting in the way of the coherent operation of the main organs and other entities of the United Nations. As the most representative of the Organization\u2019s main organs, the General Assembly is a unique forum for promoting multilateralism in the full spectrum of international issues before the Organization. It must never relent in its efforts to bridge gaps and act for the common good. No matter the gravity of the challenge, we are most likely to prevail when all parties work together. Facilitating this will be my foremost objective. In particular, we must continue efforts to strengthen the relationship between the General Assembly and the Security Council and the Economic and Social Council, based on the principle of mutual understanding and respect, in order to ensure the requisite synergy and coherence to better serve the Organization and the world." + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://text-talking-point-api.p.rapidapi.com/\"\nquerystring = {\"text\": \"The importance of the presidency of the General Assembly can best be understood within the context of the Organization\u2019s founding ideals and inestimable contributions to human progress. The global reach of the United Nations makes it not only the most representative intergovernmental body on earth, but also the world\u2019s best hope for peace and security, sustainable development and the promotion and protection of human rights and social progress. Its membership, drawn from all corners of the globe, gives it the legitimacy that enables it to speak authoritatively as the voice and conscience of the international community, and to take on complex and daunting global challenges\u2014from intra- and inter-State armed conflicts to natural disasters and massive population displacement\u2014, in the service of humanity. In accordance with the provisions of its Charter, the United Nations is committed to human progress and the preservation of the environment\u2014our collective home. As we all know, our primary mandate, as prescribed in Article 1 of the Charter, is to \u201cmaintain international peace and security, and to that end: to take effective collective measures for the prevention and removal of threats to the peace, and for the suppression of acts of aggression or other breaches of the peace\u201d. In this noble undertaking, cooperation, collaboration, unity and solidarity must be the light we should seek and follow. To its credit, the United Nations has championed human progress on many fronts, including peace operations, human rights, non-discrimination, decolonization, gender equality and sustainable development. The Organization has also supported regional and subregional organizations in initiatives such as the African Union Agenda 2063. The Organization also continues to collaborate with other intergovernmental organizations and civil society in furtherance of its disarmament agenda and in tackling international terrorism, human trafficking, toxic waste dumping, and combating deadly diseases and health pandemics. The Sustainable Development Goals, launched in 2015, as well as the Paris Climate Agreement, capped the Organization\u2019s list of achievements in recent years. Of course, tension over norms and methods and policy differences have also marked exchanges and deliberations in the Organization, sometimes blocking meaningful action when it is most critical. Indeed, some of the more difficult and long-lasting matters of war and peace play out here in the United Nations, quite often pitting countries against each other and getting in the way of the coherent operation of the main organs and other entities of the United Nations. As the most representative of the Organization\u2019s main organs, the General Assembly is a unique forum for promoting multilateralism in the full spectrum of international issues before the Organization. It must never relent in its efforts to bridge gaps and act for the common good. No matter the gravity of the challenge, we are most likely to prevail when all parties work together. Facilitating this will be my foremost objective. In particular, we must continue efforts to strengthen the relationship between the General Assembly and the Security Council and the Economic and Social Council, based on the principle of mutual understanding and respect, in order to ensure the requisite synergy and coherence to better serve the Organization and the world.\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"text-talking-point-api.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://text-talking-point-api.p.rapidapi.com/\"\nquerystring = {\"text\": \"The importance of the presidency of the General Assembly can best be understood within the context of the Organization\u2019s founding ideals and inestimable contributions to human progress. The global reach of the United Nations makes it not only the most representative intergovernmental body on earth, but also the world\u2019s best hope for peace and security, sustainable development and the promotion and protection of human rights and social progress. Its membership, drawn from all corners of the globe, gives it the legitimacy that enables it to speak authoritatively as the voice and conscience of the international community, and to take on complex and daunting global challenges\u2014from intra- and inter-State armed conflicts to natural disasters and massive population displacement\u2014, in the service of humanity. In accordance with the provisions of its Charter, the United Nations is committed to human progress and the preservation of the environment\u2014our collective home. As we all know, our primary mandate, as prescribed in Article 1 of the Charter, is to \u201cmaintain international peace and security, and to that end: to take effective collective measures for the prevention and removal of threats to the peace, and for the suppression of acts of aggression or other breaches of the peace\u201d. In this noble undertaking, cooperation, collaboration, unity and solidarity must be the light we should seek and follow. To its credit, the United Nations has championed human progress on many fronts, including peace operations, human rights, non-discrimination, decolonization, gender equality and sustainable development. The Organization has also supported regional and subregional organizations in initiatives such as the African Union Agenda 2063. The Organization also continues to collaborate with other intergovernmental organizations and civil society in furtherance of its disarmament agenda and in tackling international terrorism, human trafficking, toxic waste dumping, and combating deadly diseases and health pandemics. The Sustainable Development Goals, launched in 2015, as well as the Paris Climate Agreement, capped the Organization\u2019s list of achievements in recent years. Of course, tension over norms and methods and policy differences have also marked exchanges and deliberations in the Organization, sometimes blocking meaningful action when it is most critical. Indeed, some of the more difficult and long-lasting matters of war and peace play out here in the United Nations, quite often pitting countries against each other and getting in the way of the coherent operation of the main organs and other entities of the United Nations. As the most representative of the Organization\u2019s main organs, the General Assembly is a unique forum for promoting multilateralism in the full spectrum of international issues before the Organization. It must never relent in its efforts to bridge gaps and act for the common good. No matter the gravity of the challenge, we are most likely to prevail when all parties work together. Facilitating this will be my foremost objective. In particular, we must continue efforts to strengthen the relationship between the General Assembly and the Security Council and the Economic and Social Council, based on the principle of mutual understanding and respect, in order to ensure the requisite synergy and coherence to better serve the Organization and the world.\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"text-talking-point-api.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Text_Analysis/text_to_emotions.json b/toolbench/toolenv/tools/Text_Analysis/text_to_emotions.json new file mode 100644 index 0000000000000000000000000000000000000000..d5bc0b57623c4342cd727dd654dcdb2a5669b377 --- /dev/null +++ b/toolbench/toolenv/tools/Text_Analysis/text_to_emotions.json @@ -0,0 +1,65 @@ +{ + "product_id": "api_6ae26e73-e4d4-4d34-bb78-af9a769580bc", + "tool_description": "Text To Emotions API, a powerful text analysis tool designed to unveil the underlying emotions in any given text. This innovative API takes textual input and processes it to provide a comprehensive emotional profile with values ranging from 0 to 1, enabling a more nuanced understanding of the emotions conveyed.", + "home_url": "https://rapidapi.com/fletcherrippon/api/text-to-emotions2/", + "name": "Text To Emotions", + "title": "Text To Emotions", + "pricing": "FREEMIUM", + "tool_name": "Text To Emotions", + "score": null, + "host": "text-to-emotions2.p.rapidapi.com", + "api_list": [ + { + "name": "predict_predict_emotion_post", + "url": "https://text-to-emotions2.p.rapidapi.com/predict-emotion", + "description": " ", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://text-to-emotions2.p.rapidapi.com/predict-emotion\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"text-to-emotions2.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://text-to-emotions2.p.rapidapi.com/predict-emotion\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"text-to-emotions2.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "predictMany_predict_emotion_many_post", + "url": "https://text-to-emotions2.p.rapidapi.com/predict-emotion-many", + "description": " ", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://text-to-emotions2.p.rapidapi.com/predict-emotion-many\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"text-to-emotions2.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://text-to-emotions2.p.rapidapi.com/predict-emotion-many\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"text-to-emotions2.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "Predict Emotions", + "url": "https://text-to-emotions2.p.rapidapi.com/predict-emotions", + "description": "Predict emotions for input", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://text-to-emotions2.p.rapidapi.com/predict-emotions\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"text-to-emotions2.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://text-to-emotions2.p.rapidapi.com/predict-emotions\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"text-to-emotions2.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": {} + }, + { + "name": "predictMany_predict_emotions_many_post", + "url": "https://text-to-emotions2.p.rapidapi.com/predict-emotions-many", + "description": " ", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://text-to-emotions2.p.rapidapi.com/predict-emotions-many\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"text-to-emotions2.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://text-to-emotions2.p.rapidapi.com/predict-emotions-many\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"text-to-emotions2.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Text_Analysis/text_to_emotions/api.py b/toolbench/toolenv/tools/Text_Analysis/text_to_emotions/api.py new file mode 100644 index 0000000000000000000000000000000000000000..a337c56309e0ca12ad948ae0842427f97ca361cd --- /dev/null +++ b/toolbench/toolenv/tools/Text_Analysis/text_to_emotions/api.py @@ -0,0 +1,113 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def read_root_get(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + " " + + """ + url = f"https://text-to-emotions2.p.rapidapi.com/" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "text-to-emotions2.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def predict_predict_emotions_text_get(text: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + " " + + """ + url = f"https://text-to-emotions2.p.rapidapi.com/predict-emotions/:{text}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "text-to-emotions2.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def predictmany_predict_emotions_many_texts_get(texts: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + " " + + """ + url = f"https://text-to-emotions2.p.rapidapi.com/predict-emotions-many/:{texts}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "text-to-emotions2.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def predict_predict_emotion_text_get(text: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + " " + + """ + url = f"https://text-to-emotions2.p.rapidapi.com/predict-emotion/:{text}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "text-to-emotions2.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def predictmany_predict_emotion_many_texts_get(texts: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + " " + + """ + url = f"https://text-to-emotions2.p.rapidapi.com/predict-emotion-many/:{texts}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "text-to-emotions2.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Text_Analysis/text_to_speech.json b/toolbench/toolenv/tools/Text_Analysis/text_to_speech.json new file mode 100644 index 0000000000000000000000000000000000000000..05944e669aeba28049f1d34d2a21e40f049b1e94 --- /dev/null +++ b/toolbench/toolenv/tools/Text_Analysis/text_to_speech.json @@ -0,0 +1,24 @@ +{ + "product_id": "api_072ceab6-542d-4a3f-abef-bdd51cf39861", + "tool_description": "Ultra fast text-to-speech API for text and SSML conversion to audio files or binary data streams based on Amazon Polly. ", + "home_url": "https://rapidapi.com/akafui/api/text-to-speech37/", + "name": "Text-To-Speech", + "title": "Text-To-Speech", + "pricing": "FREEMIUM", + "tool_name": "Text-To-Speech", + "score": null, + "host": "text-to-speech37.p.rapidapi.com", + "api_list": [ + { + "name": "text-to-speech", + "url": "https://text-to-speech37.p.rapidapi.com/prod/kynesys-tts", + "description": "Post text or SSML to this endpoint and get back either an mp3 file download link or an binary audio data.", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://text-to-speech37.p.rapidapi.com/prod/kynesys-tts\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"text-to-speech37.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://text-to-speech37.p.rapidapi.com/prod/kynesys-tts\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"text-to-speech37.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Text_Analysis/text_translate.json b/toolbench/toolenv/tools/Text_Analysis/text_translate.json new file mode 100644 index 0000000000000000000000000000000000000000..1e164017354d18aa499084427eefbad0a76de469 --- /dev/null +++ b/toolbench/toolenv/tools/Text_Analysis/text_translate.json @@ -0,0 +1,74 @@ +{ + "tool_name": "Text Translate", + "tool_description": "Real-time text translation with over 100+ supported languages.", + "title": "Text Translate", + "pricing": "FREEMIUM", + "score": null, + "home_url": "https://rapidapi.com/grimaceape/api/text-translate3/", + "host": "text-translate3.p.rapidapi.com", + "api_list": [ + { + "name": "translate", + "url": "https://text-translate3.p.rapidapi.com/translate", + "description": "Translate text", + "method": "POST", + "required_parameters": [ + { + "name": "to", + "type": "STRING", + "description": "The destination language", + "default": "zh-Hans" + }, + { + "name": "from", + "type": "STRING", + "description": "The source language", + "default": "en" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://text-translate3.p.rapidapi.com/translate\"\nquerystring = {\"to\": to, \"from\": is_from}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"text-translate3.p.rapidapi.com\"\n}\n\nresponse = requests.post(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode": 111, + "body": "", + "headers": "", + "schema": "" + }, + { + "name": "languages", + "url": "https://text-translate3.p.rapidapi.com/languages", + "description": "Get supported languages", + "method": "GET", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://text-translate3.p.rapidapi.com/languages\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"text-translate3.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 111, + "body": "", + "headers": "", + "schema": "" + }, + { + "name": "translate", + "url": "https://text-translate3.p.rapidapi.com/translate", + "description": "Translate text", + "method": "POST", + "required_parameters": [ + { + "name": "to", + "type": "STRING", + "description": "The destination language", + "default": "zh-Hans" + }, + { + "name": "from", + "type": "STRING", + "description": "The source language", + "default": "en" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://text-translate3.p.rapidapi.com/translate\"\nquerystring = {\"to\": \"zh-Hans\", \"from\": \"en\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"text-translate3.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://text-translate3.p.rapidapi.com/translate\"\nquerystring = {\"to\": \"zh-Hans\", \"from\": \"en\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"text-translate3.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Text_Analysis/text_translate/api.py b/toolbench/toolenv/tools/Text_Analysis/text_translate/api.py new file mode 100644 index 0000000000000000000000000000000000000000..2bb34ae3d901aa2d812b305d679c753f32e8ea46 --- /dev/null +++ b/toolbench/toolenv/tools/Text_Analysis/text_translate/api.py @@ -0,0 +1,29 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def languages(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get supported languages" + + """ + url = f"https://text-translate3.p.rapidapi.com/languages" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "text-translate3.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Text_Analysis/text_url_pdf_summarization.json b/toolbench/toolenv/tools/Text_Analysis/text_url_pdf_summarization.json new file mode 100644 index 0000000000000000000000000000000000000000..29f188cceefe888e2f16dda256e67e68c22b45ea --- /dev/null +++ b/toolbench/toolenv/tools/Text_Analysis/text_url_pdf_summarization.json @@ -0,0 +1,52 @@ +{ + "product_id": "api_3b526213-a90f-4e71-99be-e82e68aac916", + "tool_description": "Text URL PDF Summarization API With our api you will be able to extract the most important parts of copied texts, web texts and texts from pdf files.Our API Works with artificial intelligence and is very easy to use.Basically, you will have three apis in one. Text summaries, urls and pdfs.", + "home_url": "https://rapidapi.com/micaelbh/api/text-url-pdf-summarization/", + "name": "text-url-pdf-summarization", + "title": "text-url-pdf-summarization", + "pricing": "FREEMIUM", + "tool_name": "text-url-pdf-summarization", + "score": { + "avgServiceLevel": 76, + "avgLatency": 3140, + "avgSuccessRate": 76, + "popularityScore": 8.8, + "__typename": "Score" + }, + "host": "text-url-pdf-summarization.p.rapidapi.com", + "api_list": [ + { + "name": "url text", + "url": "https://text-url-pdf-summarization.p.rapidapi.com/urls", + "description": "In this method the text is extracted from up to 10 urls at once.\n\nThe parameters are:\nurls: address of the urls to be summarized\nPercent: percentage (0.2 to 0.8) representing 20% to 80%\nLang:\nenglish\nspanish\narabic\nazerbaijani\nBengali\ndanish\ndutch\nfinnish\nfrench\ngerman\ngreek\nhungarian\nindonesian\nitalian\nkazakh\nnepali\nnonwegian\nportuguese\nromanian\nrussian\nslovene\nswedish\ntajik\nturkish\n\nThe results come in json as:\n\ntitle: if the url has a title, our algorithm can recognize it and return this data.\n\nmarked_text: Text with html markings giving the most important parts according to percentage.\n\noriginal_text: text without abstract, but can be used for other purposes.\n\nsummary: Just the text summary.\n\ntext_url: url of the summarized text.", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://text-url-pdf-summarization.p.rapidapi.com/urls\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"text-url-pdf-summarization.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://text-url-pdf-summarization.p.rapidapi.com/urls\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"text-url-pdf-summarization.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "pdf file", + "url": "https://text-url-pdf-summarization.p.rapidapi.com/pdfs", + "description": "In this method the pdf file must be in a url...\nFor example:\ndomain . com / file.pdf\n\nThe parameters are:\nurl: url fo the pdf file. \nPercent: percentage (0.2 to 0.8) representing 20% to 80%\nLang:\nenglish\nspanish\narabic\nazerbaijani\nBengali\ndanish\ndutch\nfinnish\nfrench\ngerman\ngreek\nhungarian\nindonesian\nitalian\nkazakh\nnepali\nnonwegian\nportuguese\nromanian\nrussian\nslovene\nswedish\ntajik\nturkish\n\nThe results come in json as:\n\nmarked_text: Text with html markings giving the most important parts according to percentage.\n\nsummary_text: here you only have the summary", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://text-url-pdf-summarization.p.rapidapi.com/pdfs\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"text-url-pdf-summarization.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://text-url-pdf-summarization.p.rapidapi.com/pdfs\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"text-url-pdf-summarization.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "simple text", + "url": "https://text-url-pdf-summarization.p.rapidapi.com/simplesummary", + "description": "In this method the text to be summarized must already be extracted from somewhere.\n\nThe parameters are:\nOriginal_Text: Text to be summarized\nPercent: percentage (0.2 to 0.8) representing 20% to 80%\nLang:\nenglish\nspanish\narabic\nazerbaijani\nBengali\ndanish\ndutch\nfinnish\nfrench\ngerman\ngreek\nhungarian\nindonesian\nitalian\nkazakh\nnepali\nnonwegian\nportuguese\nromanian\nrussian\nslovene\nswedish\ntajik\nturkish\n\nThe results come in json as:\n\nmarked_text: Text with html markings giving the most important parts according to percentage.\n\noriginal_text: text without abstract, but can be used for other purposes.\n\nsummary_text: here you only have the summary", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://text-url-pdf-summarization.p.rapidapi.com/simplesummary\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"text-url-pdf-summarization.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://text-url-pdf-summarization.p.rapidapi.com/simplesummary\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"text-url-pdf-summarization.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Text_Analysis/textanalysisapi.json b/toolbench/toolenv/tools/Text_Analysis/textanalysisapi.json new file mode 100644 index 0000000000000000000000000000000000000000..5128f98325a4d1e2c5ec28d06e97a5ba9aa8da0e --- /dev/null +++ b/toolbench/toolenv/tools/Text_Analysis/textanalysisapi.json @@ -0,0 +1,350 @@ +{ + "tool_name": "TextAnalysisAPI", + "tool_description": "Natural Language API provides natural language understanding technologies to developers, including sentiment analysis, entity analysis, entity sentiment analysis, content classification, and syntax analysis.", + "title": "TextAnalysisAPI", + "pricing": "FREEMIUM", + "score": null, + "home_url": "https://rapidapi.com/beslogic-ai-inc-beslogic-ai-inc-default/api/textanalysisapi/", + "host": "textanalysisapi.p.rapidapi.com", + "api_list": [ + { + "name": "Language Detection", + "url": "https://textanalysisapi.p.rapidapi.com/proxy/qaapi/detect-language/", + "description": "Detects one or many languages a document is written in and returns it in ISO 639-1 format, from among 62 different languages.", + "method": "POST", + "required_parameters": [ + { + "name": "txt", + "type": "STRING", + "description": "", + "default": " Aucun autre d\u00e9tail sur les circonstances entourant cette mort suspecte n\u2019a \u00e9t\u00e9 d\u00e9voil\u00e9" + }, + { + "name": "txt", + "type": "STRING", + "description": "", + "default": "hello" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://textanalysisapi.p.rapidapi.com/proxy/qaapi/detect-language/\"\nquerystring = {\"txt\": txt}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"textanalysisapi.p.rapidapi.com\"\n}\n\nresponse = requests.post(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode": 200, + "body": [ + { + "code": "fr ", + "confidence": 98, + "name": "French ", + "read bytes": 968 + }, + { + "code": "un ", + "confidence": 0, + "name": "un ", + "read bytes": 0 + }, + { + "code": "un ", + "confidence": 0, + "name": "un ", + "read bytes": 0 + } + ], + "headers": { + "access-control-allow-origin": "*", + "content-type": "application/json", + "date": "Sun, 16 May 2021 15:49:08 GMT", + "server": "RapidAPI-1.2.8", + "x-rapidapi-region": "AWS - us-east-1", + "x-rapidapi-version": "1.2.8", + "content-length": "332", + "connection": "Close" + }, + "schema": {} + }, + { + "name": "Entity", + "url": "https://textanalysisapi.p.rapidapi.com/proxy/ner/ner_tag_mix_out_post", + "description": "Entity Extraction or Named Entity Recognition (NER) classifies tokens in text into up to 18 predefined categories (tags), such as person names, quantity expressions, percentage expressions, location names, organization names, time expressions, and currency. It also features a multilingual model that is available in 104 languages. NER Beslogic may be used as a knowledge extractor when there is a need to derive specific information from text.", + "method": "POST", + "required_parameters": [ + { + "name": "txt", + "type": "STRING", + "description": "", + "default": " Hello from Montreal ." + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://textanalysisapi.p.rapidapi.com/proxy/ner/ner_tag_mix_out_post\"\nquerystring = {\"txt\": txt}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"textanalysisapi.p.rapidapi.com\"\n}\n\nresponse = requests.post(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode": 200, + "body": { + "NER_OUT_TAGS_ONLY": { + "B-CARDINAL": [], + "B-DATE": [], + "B-EVENT": [], + "B-FAC": [], + "B-GPE": [ + "Montreal" + ], + "B-LANGUAGE": [], + "B-LAW": [], + "B-LOC": [], + "B-MONEY": [], + "B-NORP": [], + "B-ORDINAL": [], + "B-ORG": [], + "B-PERCENT": [], + "B-PERSON": [], + "B-PRODUCT": [], + "B-QUANTITY": [], + "B-TIME": [], + "B-WORK_OF_ART": [] + }, + "NER_OUT_TOKEN": [ + [ + "Hello", + "O" + ], + [ + "from", + "O" + ], + [ + "Montreal", + "B-GPE" + ], + [ + ".", + "O" + ] + ] + }, + "headers": { + "content-type": "application/json", + "date": "Tue, 18 May 2021 20:25:52 GMT", + "server": "RapidAPI-1.2.8", + "x-rapidapi-region": "AWS - us-east-1", + "x-rapidapi-version": "1.2.8", + "content-length": "609", + "connection": "Close" + }, + "schema": { + "type": "object", + "properties": { + "NER_OUT_TAGS_ONLY": { + "type": "object", + "properties": { + "B-CARDINAL": { + "type": "array" + }, + "B-DATE": { + "type": "array" + }, + "B-EVENT": { + "type": "array" + }, + "B-FAC": { + "type": "array" + }, + "B-GPE": { + "type": "array", + "items": { + "type": "string" + } + }, + "B-LANGUAGE": { + "type": "array" + }, + "B-LAW": { + "type": "array" + }, + "B-LOC": { + "type": "array" + }, + "B-MONEY": { + "type": "array" + }, + "B-NORP": { + "type": "array" + }, + "B-ORDINAL": { + "type": "array" + }, + "B-ORG": { + "type": "array" + }, + "B-PERCENT": { + "type": "array" + }, + "B-PERSON": { + "type": "array" + }, + "B-PRODUCT": { + "type": "array" + }, + "B-QUANTITY": { + "type": "array" + }, + "B-TIME": { + "type": "array" + }, + "B-WORK_OF_ART": { + "type": "array" + } + } + }, + "NER_OUT_TOKEN": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + } + } + } + } + }, + { + "name": "Similarity", + "url": "https://textanalysisapi.p.rapidapi.com/proxy/qaapi/get-similar/{word}", + "description": "Returns phrases related to the provided unigram, or bigram.", + "method": "GET", + "required_parameters": [ + { + "name": "word", + "type": "string", + "description": "", + "default": "dog" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://textanalysisapi.p.rapidapi.com/proxy/qaapi/get-similar/{word}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"textanalysisapi.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 111, + "body": "", + "headers": "", + "schema": "" + }, + { + "name": "Language Detection", + "url": "https://textanalysisapi.p.rapidapi.com/proxy/qaapi/detect-language/", + "description": "Detects one or many languages a document is written in and returns it in ISO 639-1 format, from among 62 different languages.", + "method": "POST", + "required_parameters": [ + { + "name": "txt", + "type": "STRING", + "description": "", + "default": " Aucun autre d\u00e9tail sur les circonstances entourant cette mort suspecte n\u2019a \u00e9t\u00e9 d\u00e9voil\u00e9" + }, + { + "name": "txt", + "type": "STRING", + "description": "", + "default": "hello" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://textanalysisapi.p.rapidapi.com/proxy/qaapi/detect-language/\"\nquerystring = {\"txt\": \"hello\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"textanalysisapi.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://textanalysisapi.p.rapidapi.com/proxy/qaapi/detect-language/\"\nquerystring = {\"txt\": \"hello\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"textanalysisapi.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": {} + }, + { + "name": "Entity", + "url": "https://textanalysisapi.p.rapidapi.com/proxy/ner/ner_tag_mix_out_post", + "description": "Entity Extraction or Named Entity Recognition (NER) classifies tokens in text into up to 18 predefined categories (tags), such as person names, quantity expressions, percentage expressions, location names, organization names, time expressions, and currency. It also features a multilingual model that is available in 104 languages. NER Beslogic may be used as a knowledge extractor when there is a need to derive specific information from text.", + "method": "POST", + "required_parameters": [ + { + "name": "txt", + "type": "STRING", + "description": "", + "default": " Hello from Montreal ." + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://textanalysisapi.p.rapidapi.com/proxy/ner/ner_tag_mix_out_post\"\nquerystring = {\"txt\": \" Hello from Montreal .\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"textanalysisapi.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://textanalysisapi.p.rapidapi.com/proxy/ner/ner_tag_mix_out_post\"\nquerystring = {\"txt\": \" Hello from Montreal .\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"textanalysisapi.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "NER_OUT_TAGS_ONLY": { + "type": "object", + "properties": { + "B-CARDINAL": { + "type": "array" + }, + "B-DATE": { + "type": "array" + }, + "B-EVENT": { + "type": "array" + }, + "B-FAC": { + "type": "array" + }, + "B-GPE": { + "type": "array", + "items": { + "type": "string" + } + }, + "B-LANGUAGE": { + "type": "array" + }, + "B-LAW": { + "type": "array" + }, + "B-LOC": { + "type": "array" + }, + "B-MONEY": { + "type": "array" + }, + "B-NORP": { + "type": "array" + }, + "B-ORDINAL": { + "type": "array" + }, + "B-ORG": { + "type": "array" + }, + "B-PERCENT": { + "type": "array" + }, + "B-PERSON": { + "type": "array" + }, + "B-PRODUCT": { + "type": "array" + }, + "B-QUANTITY": { + "type": "array" + }, + "B-TIME": { + "type": "array" + }, + "B-WORK_OF_ART": { + "type": "array" + } + } + }, + "NER_OUT_TOKEN": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + } + } + } + } + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Text_Analysis/textanalysisapi/api.py b/toolbench/toolenv/tools/Text_Analysis/textanalysisapi/api.py new file mode 100644 index 0000000000000000000000000000000000000000..fbfa736c095cbdaa9fcfefc6c65359464ea292c3 --- /dev/null +++ b/toolbench/toolenv/tools/Text_Analysis/textanalysisapi/api.py @@ -0,0 +1,29 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def similarity(word: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Returns phrases related to the provided unigram, or bigram." + + """ + url = f"https://textanalysisapi.p.rapidapi.com/proxy/qaapi/get-similar/{word}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "textanalysisapi.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Text_Analysis/textapi.json b/toolbench/toolenv/tools/Text_Analysis/textapi.json new file mode 100644 index 0000000000000000000000000000000000000000..772838ae843dd1c9fc0b2e296e2ec973a5cb49de --- /dev/null +++ b/toolbench/toolenv/tools/Text_Analysis/textapi.json @@ -0,0 +1,265 @@ +{ + "tool_name": "TextAPI", + "tool_description": "A text extraction, manipulation, and analysis api. Putting the power of natural language processing (nlp) in every developers hands.", + "title": "TextAPI", + "pricing": "FREEMIUM", + "score": { + "avgServiceLevel": 100, + "avgLatency": 28394, + "avgSuccessRate": 97, + "popularityScore": 9.6, + "__typename": "Score" + }, + "home_url": "https://rapidapi.com/textapi/api/textapi/", + "host": "textapis.p.rapidapi.com", + "api_list": [ + { + "name": "Display Entities", + "url": "https://textapis.p.rapidapi.com/ner/display", + "description": "Renders the extracted entity types on submitted text or spans defined manually.", + "method": "GET", + "required_parameters": [ + { + "name": "text", + "type": "STRING", + "description": "", + "default": "An October post from Dylan that may be saving you a Google search." + } + ], + "optional_parameters": [ + { + "name": "model", + "type": "STRING", + "description": "", + "default": "" + }, + { + "name": "spans", + "type": "STRING", + "description": "", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://textapis.p.rapidapi.com/ner/display\"\nquerystring = {\"text\": text}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"textapis.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode": 111, + "body": "", + "headers": "", + "schema": "" + }, + { + "name": "Extract Entities", + "url": "https://textapis.p.rapidapi.com/ner", + "description": "Extracts named entities from text.", + "method": "GET", + "required_parameters": [ + { + "name": "text", + "type": "STRING", + "description": "", + "default": "U.S. stocks rallied Thursday, with the Dow Jones Industrial Average up 2.9% in a tempestuous first half of the year." + } + ], + "optional_parameters": [ + { + "name": "model", + "type": "STRING", + "description": "", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://textapis.p.rapidapi.com/ner\"\nquerystring = {\"text\": text}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"textapis.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode": 111, + "body": "", + "headers": "", + "schema": "" + }, + { + "name": "Extract Entities (POST)", + "url": "https://textapis.p.rapidapi.com/ner", + "description": "Extracts named entities from text.", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://textapis.p.rapidapi.com/ner\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"textapis.p.rapidapi.com\"\n}\n\nresponse = requests.post(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 111, + "body": "", + "headers": "", + "schema": "" + }, + { + "name": "Sentiment", + "url": "https://textapis.p.rapidapi.com/sentiment", + "description": "Get the sentiment of submitted text using VADER (Valence Aware Dictionary and sEntiment Reasoner) is a lexicon and rule-based sentiment analysis tool that is specifically attuned to sentiments expressed in social media.", + "method": "GET", + "required_parameters": [ + { + "name": "text", + "type": "STRING", + "description": "", + "default": "I really hate this!" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://textapis.p.rapidapi.com/sentiment\"\nquerystring = {\"text\": text}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"textapis.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode": 111, + "body": "", + "headers": "", + "schema": "" + }, + { + "name": "Sentiment (POST)", + "url": "https://textapis.p.rapidapi.com/sentiment", + "description": "Get the sentiment of submitted text using VADER (Valence Aware Dictionary and sEntiment Reasoner) is a lexicon and rule-based sentiment analysis tool that is specifically attuned to sentiments expressed in social media.", + "method": "POST", + "required_parameters": [ + { + "name": "Content-Type", + "type": "STRING", + "description": "", + "default": "application/json" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://textapis.p.rapidapi.com/sentiment\"\nquerystring = {\"Content-Type\": content_type}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"textapis.p.rapidapi.com\"\n}\n\nresponse = requests.post(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode": 111, + "body": "", + "headers": "", + "schema": "" + }, + { + "name": "Extract Text [From Webpage] (POST)", + "url": "https://textapis.p.rapidapi.com/text", + "description": "Extract text from the webpage linked with the url query parameter.", + "method": "POST", + "required_parameters": [ + { + "name": "Content-Type", + "type": "STRING", + "description": "", + "default": "application/json" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://textapis.p.rapidapi.com/text\"\nquerystring = {\"Content-Type\": content_type}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"textapis.p.rapidapi.com\"\n}\n\nresponse = requests.post(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode": 111, + "body": "", + "headers": "", + "schema": "" + }, + { + "name": "Extract Text [From Webpage]", + "url": "https://textapis.p.rapidapi.com/text", + "description": "Extract text from the webpage linked with the url query parameter.", + "method": "GET", + "required_parameters": [ + { + "name": "url", + "type": "STRING", + "description": "", + "default": "https://www.theguardian.com/world/2020/oct/24/thousands-join-poland-protests-against-strict-abortion-laws" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://textapis.p.rapidapi.com/text\"\nquerystring = {\"url\": url}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"textapis.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode": 111, + "body": "", + "headers": "", + "schema": "" + }, + { + "name": "Display Entities (POST)", + "url": "https://textapis.p.rapidapi.com/ner/display", + "description": "Renders the extracted entity types on submitted text or spans defined manually.", + "method": "POST", + "required_parameters": [], + "optional_parameters": [ + { + "name": "text", + "type": "STRING", + "description": "", + "default": "" + }, + { + "name": "spans", + "type": "STRING", + "description": "", + "default": "" + }, + { + "name": "model", + "type": "STRING", + "description": "", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://textapis.p.rapidapi.com/ner/display\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"textapis.p.rapidapi.com\"\n}\n\nresponse = requests.post(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 111, + "body": "", + "headers": "", + "schema": "" + }, + { + "name": "Extract Entities (POST)", + "url": "https://textapis.p.rapidapi.com/ner", + "description": "Extracts named entities from text.", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://textapis.p.rapidapi.com/ner\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"textapis.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://textapis.p.rapidapi.com/ner\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"textapis.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "Sentiment (POST)", + "url": "https://textapis.p.rapidapi.com/sentiment", + "description": "Get the sentiment of submitted text using VADER (Valence Aware Dictionary and sEntiment Reasoner) is a lexicon and rule-based sentiment analysis tool that is specifically attuned to sentiments expressed in social media.", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://textapis.p.rapidapi.com/sentiment\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"textapis.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://textapis.p.rapidapi.com/sentiment\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"textapis.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "Extract Text [From Webpage] (POST)", + "url": "https://textapis.p.rapidapi.com/text", + "description": "Extract text from the webpage linked with the url query parameter.", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://textapis.p.rapidapi.com/text\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"textapis.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://textapis.p.rapidapi.com/text\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"textapis.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "Display Entities (POST)", + "url": "https://textapis.p.rapidapi.com/ner/display", + "description": "Renders the extracted entity types on submitted text or spans defined manually.", + "method": "POST", + "required_parameters": [], + "optional_parameters": [ + { + "name": "text", + "type": "STRING", + "description": "", + "default": "" + }, + { + "name": "spans", + "type": "STRING", + "description": "", + "default": "" + }, + { + "name": "model", + "type": "STRING", + "description": "", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://textapis.p.rapidapi.com/ner/display\"\nquerystring = {\"text\": \"\", \"spans\": \"\", \"model\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"textapis.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://textapis.p.rapidapi.com/ner/display\"\nquerystring = {\"text\": \"\", \"spans\": \"\", \"model\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"textapis.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Text_Analysis/textapi/api.py b/toolbench/toolenv/tools/Text_Analysis/textapi/api.py new file mode 100644 index 0000000000000000000000000000000000000000..7f58c719ed2b49fce01e37a67751e0af755d36d2 --- /dev/null +++ b/toolbench/toolenv/tools/Text_Analysis/textapi/api.py @@ -0,0 +1,98 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def display_entities(text: str, model: str=None, spans: str=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Renders the extracted entity types on submitted text or spans defined manually." + + """ + url = f"https://textapis.p.rapidapi.com/ner/display" + querystring = {'text': text, } + if model: + querystring['model'] = model + if spans: + querystring['spans'] = spans + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "textapis.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def extract_entities(text: str, model: str=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Extracts named entities from text." + + """ + url = f"https://textapis.p.rapidapi.com/ner" + querystring = {'text': text, } + if model: + querystring['model'] = model + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "textapis.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def sentiment(text: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get the sentiment of submitted text using VADER (Valence Aware Dictionary and sEntiment Reasoner) is a lexicon and rule-based sentiment analysis tool that is specifically attuned to sentiments expressed in social media." + + """ + url = f"https://textapis.p.rapidapi.com/sentiment" + querystring = {'text': text, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "textapis.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def extract_text_from_webpage(url: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Extract text from the webpage linked with the url query parameter." + + """ + url = f"https://textapis.p.rapidapi.com/text" + querystring = {'url': url, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "textapis.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Text_Analysis/textdiff_text_documents_comparison_api.json b/toolbench/toolenv/tools/Text_Analysis/textdiff_text_documents_comparison_api.json new file mode 100644 index 0000000000000000000000000000000000000000..680f3c2a8fb36ad73f39b0162ab8805bdb709fae --- /dev/null +++ b/toolbench/toolenv/tools/Text_Analysis/textdiff_text_documents_comparison_api.json @@ -0,0 +1,89 @@ +{ + "product_id": "api_b4a0b056-01ab-4fbb-b958-cb31e145e5c5", + "tool_description": "TextDiff API allows you to compare text documents at the word and line levels, highlighting added, removed, and identical segments. Simplify document analysis, version control, and content management with this powerful text comparison tool.", + "home_url": "https://rapidapi.com/Morax/api/textdiff-text-documents-comparison-api/", + "name": "TextDiff: Text Documents Comparison API", + "title": "TextDiff: Text Documents Comparison API", + "pricing": "FREEMIUM", + "tool_name": "TextDiff: Text Documents Comparison API", + "score": { + "avgServiceLevel": 100, + "avgLatency": 186, + "avgSuccessRate": 100, + "popularityScore": 8.7, + "__typename": "Score" + }, + "host": "textdiff-text-documents-comparison-api.p.rapidapi.com", + "api_list": [ + { + "name": "Compare Words", + "url": "https://textdiff-text-documents-comparison-api.p.rapidapi.com/api/v1/compare/words", + "description": "# TextDiff: Text Documents Comparison API\n\nThe TextDiff API is a powerful tool that allows you to compare text documents at both the word and line levels, providing detailed insights into the differences between them. Whether you're analyzing documents, managing content, or implementing version control systems, the TextDiff API simplifies the process by streamlining text comparison operations.\n\n## Features\n\n- **Word Comparison**: Compare the words in two text documents and highlight the differences between them.\n- **Line Comparison**: Detect differences between the lines in two text documents.\n- **Granular Results**: Get detailed information about added, removed, and identical segments within the texts.\n- **Easy Integration**: Utilize the API in your own applications or systems with ease.\n\n## Endpoints\n\nThe TextDiff API exposes the following endpoints:\n\n- `POST /compare/words`: Compare the words in two text documents.\n- `POST /compare/lines`: Compare the lines in two text documents.\n\n## Request Format\n\nBoth endpoints expect a JSON payload with the following structure:\n\n```json\n{\n \"text1\": \"Text content of the first document\",\n \"text2\": \"Text content of the second document\"\n}\n```\n\n## Response Format\n```json\n[\n {\n \"value\": \"Segment value\",\n \"added\": false,\n \"removed\": false,\n \"identical\": true\n },\n ...\n]\n```\n\n- value: The value of the text segment.\n- added: Indicates whether the segment was added in the second document (true) or not (false).\n- removed: Indicates whether the segment was removed from the first document (true) or not (false).\n- identical: Indicates whether the segment is identical between the documents (true) or not (false).\n\n## Example Response by Words\n```json\n[\n {\n \"value\": \"This\",\n \"added\": false,\n \"removed\": false,\n \"identical\": true\n },\n {\n \"value\": \"is\",\n \"added\": false,\n \"removed\": false,\n \"identical\": true\n },\n {\n \"value\": \"a\",\n \"added\": false,\n \"removed\": false,\n \"identical\": true\n },\n {\n \"value\": \"sample\",\n \"added\": true,\n \"removed\": false,\n \"identical\": false\n },\n {\n \"value\": \"text\",\n \"added\": false,\n \"removed\": false,\n \"identical\": true\n },\n {\n \"value\": \"document\",\n \"added\": false,\n \"removed\": false,\n \"identical\": true\n }\n]\n```\n\n\n## Error Handling\nIf the request payload is missing the text1 or text2 field, the API will respond with a 400 Bad Request status code and an error message.", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://textdiff-text-documents-comparison-api.p.rapidapi.com/api/v1/compare/words\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"textdiff-text-documents-comparison-api.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://textdiff-text-documents-comparison-api.p.rapidapi.com/api/v1/compare/words\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"textdiff-text-documents-comparison-api.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "get": { + "type": "string" + }, + "parameters": { + "type": "array" + }, + "errors": { + "type": "array" + }, + "results": { + "type": "integer" + }, + "response": { + "type": "array", + "items": { + "type": "object" + } + } + } + } + }, + { + "name": "Compare Lines", + "url": "https://textdiff-text-documents-comparison-api.p.rapidapi.com/api/v1/compare/lines", + "description": "# TextDiff: Text Documents Comparison API\n\nThe TextDiff API is a powerful tool that allows you to compare text documents at both the word and line levels, providing detailed insights into the differences between them. Whether you're analyzing documents, managing content, or implementing version control systems, the TextDiff API simplifies the process by streamlining text comparison operations.\n\n## Features\n\n- **Word Comparison**: Compare the words in two text documents and highlight the differences between them.\n- **Line Comparison**: Detect differences between the lines in two text documents.\n- **Granular Results**: Get detailed information about added, removed, and identical segments within the texts.\n- **Easy Integration**: Utilize the API in your own applications or systems with ease.\n\n## Endpoints\n\nThe TextDiff API exposes the following endpoints:\n\n- `POST /compare/words`: Compare the words in two text documents.\n- `POST /compare/lines`: Compare the lines in two text documents.\n\n## Request Format\n\nBoth endpoints expect a JSON payload with the following structure:\n\n```json\n{\n \"text1\": \"Text content of the first document\",\n \"text2\": \"Text content of the second document\"\n}\n```\n\n## Response Format\n```json\n[\n {\n \"value\": \"Segment value\",\n \"added\": false,\n \"removed\": false,\n \"identical\": true\n },\n ...\n]\n```\n\n- value: The value of the text segment.\n- added: Indicates whether the segment was added in the second document (true) or not (false).\n- removed: Indicates whether the segment was removed from the first document (true) or not (false).\n- identical: Indicates whether the segment is identical between the documents (true) or not (false).\n\n## Example Response by Words\n```json\n[\n {\n \"value\": \"This\",\n \"added\": false,\n \"removed\": false,\n \"identical\": true\n },\n {\n \"value\": \"is\",\n \"added\": false,\n \"removed\": false,\n \"identical\": true\n },\n {\n \"value\": \"a\",\n \"added\": false,\n \"removed\": false,\n \"identical\": true\n },\n {\n \"value\": \"sample\",\n \"added\": true,\n \"removed\": false,\n \"identical\": false\n },\n {\n \"value\": \"text\",\n \"added\": false,\n \"removed\": false,\n \"identical\": true\n },\n {\n \"value\": \"document\",\n \"added\": false,\n \"removed\": false,\n \"identical\": true\n }\n]\n```\n\n\n## Error Handling\nIf the request payload is missing the text1 or text2 field, the API will respond with a 400 Bad Request status code and an error message.", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://textdiff-text-documents-comparison-api.p.rapidapi.com/api/v1/compare/lines\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"textdiff-text-documents-comparison-api.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://textdiff-text-documents-comparison-api.p.rapidapi.com/api/v1/compare/lines\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"textdiff-text-documents-comparison-api.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "get": { + "type": "string" + }, + "parameters": { + "type": "array" + }, + "errors": { + "type": "array" + }, + "results": { + "type": "integer" + }, + "response": { + "type": "array", + "items": { + "type": "object" + } + } + } + } + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Text_Analysis/textgears.json b/toolbench/toolenv/tools/Text_Analysis/textgears.json new file mode 100644 index 0000000000000000000000000000000000000000..a3c6fb9a7076685d5e961f319ff548ac3be0a09b --- /dev/null +++ b/toolbench/toolenv/tools/Text_Analysis/textgears.json @@ -0,0 +1,396 @@ +{ + "product_id": "576da662e4b0bd97e2279a31", + "tool_description": "AI-empowered spelling and grammar checker with automatic correction. Text summarization and keyword extraction. Language detection. Readability calculator.", + "home_url": "https://rapidapi.com/Textgears/api/textgears/", + "name": "TextGears", + "title": "TextGears", + "pricing": "FREEMIUM", + "tool_name": "TextGears", + "score": { + "avgServiceLevel": 100, + "avgLatency": 857, + "avgSuccessRate": 100, + "popularityScore": 9.8, + "__typename": "Score" + }, + "host": "textgears-textgears-v1.p.rapidapi.com", + "api_list": [ + { + "name": "Grammar check", + "url": "https://textgears-textgears-v1.p.rapidapi.com/grammar", + "description": "The method allows you to check the text for grammatical, spelling, punctuation and stylistic errors. Supported languages: English, French, German, Portuguese, Italian, Spanish, Japanese, Chinese, Greek.\nProvides error description and fix suggestions.", + "method": "POST", + "required_parameters": [ + { + "name": "text", + "type": "STRING", + "description": "", + "default": "My mother are a doctor, but my father is a angeneer. I has a gun." + } + ], + "optional_parameters": [ + { + "name": "dictionary_id", + "type": "STRING", + "description": "", + "default": "" + }, + { + "name": "language", + "type": "ENUM", + "description": "Language code. It\u2019s an optional parameter, and the default value is *en-US*.\nSupported languages and dialects: en-US, en-GB, en-ZA, en-AU, en-NZ, fr-FR, de-DE, de-AT, de-CH, pt-PT, pt-BR, it-IT, es-ES, ja-JP, zh-CN, el-GR", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://textgears-textgears-v1.p.rapidapi.com/grammar\"\nquerystring = {\"dictionary_id\": \"\", \"text\": \"My mother are a doctor, but my father is a angeneer. I has a gun.\", \"language\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"textgears-textgears-v1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://textgears-textgears-v1.p.rapidapi.com/grammar\"\nquerystring = {\"dictionary_id\": \"\", \"text\": \"My mother are a doctor, but my father is a angeneer. I has a gun.\", \"language\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"textgears-textgears-v1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "properties": { + "response": { + "type": "object" + }, + "status ": { + "type": "boolean" + } + }, + "type": "object" + } + }, + { + "name": "Delete exception", + "url": "https://textgears-textgears-v1.p.rapidapi.com/custom/deleteexception", + "description": "Delete exception by id", + "method": "POST", + "required_parameters": [ + { + "name": "id", + "type": "STRING", + "description": "", + "default": "" + } + ], + "optional_parameters": [ + { + "name": "dictionary_id", + "type": "STRING", + "description": "", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://textgears-textgears-v1.p.rapidapi.com/custom/deleteexception\"\nquerystring = {\"id\": \"\", \"dictionary_id\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"textgears-textgears-v1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://textgears-textgears-v1.p.rapidapi.com/custom/deleteexception\"\nquerystring = {\"id\": \"\", \"dictionary_id\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"textgears-textgears-v1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "Delete dictionary", + "url": "https://textgears-textgears-v1.p.rapidapi.com/custom/deletedictionary", + "description": "Delete custom dictionary. id can be a number, a string or even null. Default dictionary has id === null", + "method": "POST", + "required_parameters": [], + "optional_parameters": [ + { + "name": "id", + "type": "STRING", + "description": "", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://textgears-textgears-v1.p.rapidapi.com/custom/deletedictionary\"\nquerystring = {\"id\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"textgears-textgears-v1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://textgears-textgears-v1.p.rapidapi.com/custom/deletedictionary\"\nquerystring = {\"id\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"textgears-textgears-v1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": {} + }, + { + "name": "Create exception", + "url": "https://textgears-textgears-v1.p.rapidapi.com/custom/addexception", + "description": "Create. custom exception", + "method": "POST", + "required_parameters": [ + { + "name": "lang", + "type": "STRING", + "description": "", + "default": "en" + }, + { + "name": "text", + "type": "STRING", + "description": "", + "default": "aaa" + }, + { + "name": "type", + "type": "NUMBER", + "description": "", + "default": "1" + } + ], + "optional_parameters": [ + { + "name": "suggestions", + "type": "STRING", + "description": "", + "default": "bbb,ccc" + }, + { + "name": "description", + "type": "STRING", + "description": "", + "default": "" + }, + { + "name": "dictionary_id", + "type": "STRING", + "description": "", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://textgears-textgears-v1.p.rapidapi.com/custom/addexception\"\nquerystring = {\"lang\": \"en\", \"text\": \"aaa\", \"suggestions\": \"bbb,ccc\", \"type\": \"1\", \"description\": \"\", \"dictionary_id\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"textgears-textgears-v1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://textgears-textgears-v1.p.rapidapi.com/custom/addexception\"\nquerystring = {\"lang\": \"en\", \"text\": \"aaa\", \"suggestions\": \"bbb,ccc\", \"type\": \"1\", \"description\": \"\", \"dictionary_id\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"textgears-textgears-v1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": {} + }, + { + "name": "Edit dictionary", + "url": "https://textgears-textgears-v1.p.rapidapi.com/custom/updatedictionary", + "description": "Edit dictionary params. id can be a number, a string or even null. Default dictionary has id === null", + "method": "POST", + "required_parameters": [], + "optional_parameters": [ + { + "name": "id", + "type": "STRING", + "description": "", + "default": "" + }, + { + "name": "title", + "type": "STRING", + "description": "", + "default": "New title" + } + ], + "code": "import requests\n\nurl = \"https://textgears-textgears-v1.p.rapidapi.com/custom/updatedictionary\"\nquerystring = {\"id\": \"\", \"title\": \"New title\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"textgears-textgears-v1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://textgears-textgears-v1.p.rapidapi.com/custom/updatedictionary\"\nquerystring = {\"id\": \"\", \"title\": \"New title\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"textgears-textgears-v1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": {} + }, + { + "name": "Create dictionary", + "url": "https://textgears-textgears-v1.p.rapidapi.com/custom/createdictionary", + "description": "If you need a flexible setting for checking text for errors, use the custom exceptions setting. This will be especially useful for companies working with texts that are full of words from a special vocabulary. Mark words or phrases as \"correct\" so that the system stops considering them mistakes. You can also use it to allow the system to find mistakes according to the list of specific words.\n\nid parameter can be a number, a string or even null. Default dictionary has id === null. It will be filled with exceptions created without dictionary_id parameter.", + "method": "POST", + "required_parameters": [], + "optional_parameters": [ + { + "name": "title", + "type": "STRING", + "description": "", + "default": "Test" + }, + { + "name": "id", + "type": "STRING", + "description": "", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://textgears-textgears-v1.p.rapidapi.com/custom/createdictionary\"\nquerystring = {\"title\": \"Test\", \"id\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"textgears-textgears-v1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://textgears-textgears-v1.p.rapidapi.com/custom/createdictionary\"\nquerystring = {\"title\": \"Test\", \"id\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"textgears-textgears-v1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": {} + }, + { + "name": "Language detection", + "url": "https://textgears-textgears-v1.p.rapidapi.com/detect", + "description": "Determination of the language of the text and the assumption of its dialect. The method returns an array of probable options for each language. If it is not possible to unambiguously identify the language, the language field returns null.", + "method": "POST", + "required_parameters": [ + { + "name": "text", + "type": "STRING", + "description": "", + "default": "Readability (legibility) is a feature of the text that represents ease of its perception by the reader, as well as the evaluation of its simplicity. The two main factors of readability are the printing and linguistic features of the text. The Flesch Kinkaid Score is the most popular way to measure the readability of English text. It works on the principle of \u201cthe fewer words in the text, and the fewer syllables in them, the easier it is to perceive\u201d and is most often used for checking essays in schools and universities. The higher the index value on a 100-point scale, the better the readability of the text. Smart human-trained search algorithms evaluate all site content for completeness of topic disclosure, and in a form that is understandable to the reader. For this purpose, readability indexes are used. In other words, pages containing simple and clear text get higher positions in the search results. Improving the text in terms of its printing and linguistic qualities will increase the user's viewing time. It turns out that the readability significantly affects the ranking of sites in the search engine." + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://textgears-textgears-v1.p.rapidapi.com/detect\"\nquerystring = {\"text\": \"Readability (legibility) is a feature of the text that represents ease of its perception by the reader, as well as the evaluation of its simplicity. The two main factors of readability are the printing and linguistic features of the text. The Flesch Kinkaid Score is the most popular way to measure the readability of English text. It works on the principle of \u201cthe fewer words in the text, and the fewer syllables in them, the easier it is to perceive\u201d and is most often used for checking essays in schools and universities. The higher the index value on a 100-point scale, the better the readability of the text. Smart human-trained search algorithms evaluate all site content for completeness of topic disclosure, and in a form that is understandable to the reader. For this purpose, readability indexes are used. In other words, pages containing simple and clear text get higher positions in the search results. Improving the text in terms of its printing and linguistic qualities will increase the user's viewing time. It turns out that the readability significantly affects the ranking of sites in the search engine.\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"textgears-textgears-v1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://textgears-textgears-v1.p.rapidapi.com/detect\"\nquerystring = {\"text\": \"Readability (legibility) is a feature of the text that represents ease of its perception by the reader, as well as the evaluation of its simplicity. The two main factors of readability are the printing and linguistic features of the text. The Flesch Kinkaid Score is the most popular way to measure the readability of English text. It works on the principle of \u201cthe fewer words in the text, and the fewer syllables in them, the easier it is to perceive\u201d and is most often used for checking essays in schools and universities. The higher the index value on a 100-point scale, the better the readability of the text. Smart human-trained search algorithms evaluate all site content for completeness of topic disclosure, and in a form that is understandable to the reader. For this purpose, readability indexes are used. In other words, pages containing simple and clear text get higher positions in the search results. Improving the text in terms of its printing and linguistic qualities will increase the user's viewing time. It turns out that the readability significantly affects the ranking of sites in the search engine.\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"textgears-textgears-v1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "properties": { + "response": { + "type": "object" + }, + "status ": { + "type": "boolean" + } + }, + "type": "object" + } + }, + { + "name": "Readability", + "url": "https://textgears-textgears-v1.p.rapidapi.com/readability", + "description": "Calculates readability and other text metrics.\n\n**Important!**\nWhen determining text metrics, accuracy is directly related to the size of the text. Determining the readability or other parameters of the text for a two-word sentence is meaningless. It is recommended to check texts that has at least 30 words. The more the better.", + "method": "POST", + "required_parameters": [ + { + "name": "text", + "type": "STRING", + "description": "", + "default": "Readability (legibility) is a feature of the text that represents ease of its perception by the reader, as well as the evaluation of its simplicity. The two main factors of readability are the printing and linguistic features of the text. The Flesch Kinkaid Score is the most popular way to measure the readability of English text. It works on the principle of \u201cthe fewer words in the text, and the fewer syllables in them, the easier it is to perceive\u201d and is most often used for checking essays in schools and universities. The higher the index value on a 100-point scale, the better the readability of the text. Smart human-trained search algorithms evaluate all site content for completeness of topic disclosure, and in a form that is understandable to the reader. For this purpose, readability indexes are used. In other words, pages containing simple and clear text get higher positions in the search results. Improving the text in terms of its printing and linguistic qualities will increase the user's viewing time. It turns out that the readability significantly affects the ranking of sites in the search engine." + } + ], + "optional_parameters": [ + { + "name": "language", + "type": "ENUM", + "description": "", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://textgears-textgears-v1.p.rapidapi.com/readability\"\nquerystring = {\"language\": \"\", \"text\": \"Readability (legibility) is a feature of the text that represents ease of its perception by the reader, as well as the evaluation of its simplicity. The two main factors of readability are the printing and linguistic features of the text. The Flesch Kinkaid Score is the most popular way to measure the readability of English text. It works on the principle of \u201cthe fewer words in the text, and the fewer syllables in them, the easier it is to perceive\u201d and is most often used for checking essays in schools and universities. The higher the index value on a 100-point scale, the better the readability of the text. Smart human-trained search algorithms evaluate all site content for completeness of topic disclosure, and in a form that is understandable to the reader. For this purpose, readability indexes are used. In other words, pages containing simple and clear text get higher positions in the search results. Improving the text in terms of its printing and linguistic qualities will increase the user's viewing time. It turns out that the readability significantly affects the ranking of sites in the search engine.\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"textgears-textgears-v1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://textgears-textgears-v1.p.rapidapi.com/readability\"\nquerystring = {\"language\": \"\", \"text\": \"Readability (legibility) is a feature of the text that represents ease of its perception by the reader, as well as the evaluation of its simplicity. The two main factors of readability are the printing and linguistic features of the text. The Flesch Kinkaid Score is the most popular way to measure the readability of English text. It works on the principle of \u201cthe fewer words in the text, and the fewer syllables in them, the easier it is to perceive\u201d and is most often used for checking essays in schools and universities. The higher the index value on a 100-point scale, the better the readability of the text. Smart human-trained search algorithms evaluate all site content for completeness of topic disclosure, and in a form that is understandable to the reader. For this purpose, readability indexes are used. In other words, pages containing simple and clear text get higher positions in the search results. Improving the text in terms of its printing and linguistic qualities will increase the user's viewing time. It turns out that the readability significantly affects the ranking of sites in the search engine.\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"textgears-textgears-v1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "properties": { + "response": { + "type": "object" + }, + "status ": { + "type": "boolean" + } + }, + "type": "object" + } + }, + { + "name": "Spell checker", + "url": "https://textgears-textgears-v1.p.rapidapi.com/spelling", + "description": "Checks the text for typos in English, French, German, Portuguese, Italian, Spanish, Japanese, Chinese, Greek", + "method": "POST", + "required_parameters": [ + { + "name": "text", + "type": "STRING", + "description": "", + "default": "My mother are a doctor, but my father is a angeneer. I has a gun." + } + ], + "optional_parameters": [ + { + "name": "language", + "type": "ENUM", + "description": "Language code. It\u2019s an optional parameter, and the default value is *en-US*.\nSupported languages and dialects: en-US, en-GB, en-ZA, en-AU, en-NZ, fr-FR, de-DE, de-AT, de-CH, pt-PT, pt-BR, it-IT, es-ES, ja-JP, zh-CN, el-GR", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://textgears-textgears-v1.p.rapidapi.com/spelling\"\nquerystring = {\"text\": \"My mother are a doctor, but my father is a angeneer. I has a gun.\", \"language\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"textgears-textgears-v1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://textgears-textgears-v1.p.rapidapi.com/spelling\"\nquerystring = {\"text\": \"My mother are a doctor, but my father is a angeneer. I has a gun.\", \"language\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"textgears-textgears-v1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "properties": { + "response": { + "properties": { + "errors": { + "items": { + "properties": { + "bad": { + "type": "string" + }, + "better": { + "items": { + "type": "string" + }, + "type": "array" + }, + "description": { + "properties": { + "en": { + "type": "string" + } + }, + "type": "object" + }, + "id": { + "type": "string" + }, + "length": { + "type": "integer" + }, + "offset": { + "type": "integer" + }, + "type": { + "type": "string" + } + }, + "type": "object" + }, + "type": "array" + } + }, + "type": "object" + }, + "status": { + "type": "boolean" + } + }, + "type": "object" + } + }, + { + "name": "Summarization and keywords extraction", + "url": "https://textgears-textgears-v1.p.rapidapi.com/summarize", + "description": "Automatic text summarization and keywords extraction. API returns a summary and a highlight. What's the difference? \n\n- Summary contains the most important sentences of text. Summary describes a text content the best way. \n- Highlight is the most important paragraph starting with the most important sentence.\n\nKeywords array is ordered by importance.\nBy default summary size depends on source text length. To limit the number of sentences set *max_sentences* parameter.", + "method": "POST", + "required_parameters": [ + { + "name": "text", + "type": "STRING", + "description": "", + "default": "Readability (legibility) is a feature of the text that represents ease of its perception by the reader, as well as the evaluation of its simplicity. The two main factors of readability are the printing and linguistic features of the text. The Flesch Kinkaid Score is the most popular way to measure the readability of English text. It works on the principle of \u201cthe fewer words in the text, and the fewer syllables in them, the easier it is to perceive\u201d and is most often used for checking essays in schools and universities. The higher the index value on a 100-point scale, the better the readability of the text. Smart human-trained search algorithms evaluate all site content for completeness of topic disclosure, and in a form that is understandable to the reader. For this purpose, readability indexes are used. In other words, pages containing simple and clear text get higher positions in the search results. Improving the text in terms of its printing and linguistic qualities will increase the user's viewing time. It turns out that the readability significantly affects the ranking of sites in the search engine." + } + ], + "optional_parameters": [ + { + "name": "max_sentences", + "type": "NUMBER", + "description": "", + "default": "3" + }, + { + "name": "language", + "type": "ENUM", + "description": "", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://textgears-textgears-v1.p.rapidapi.com/summarize\"\nquerystring = {\"text\": \"Readability (legibility) is a feature of the text that represents ease of its perception by the reader, as well as the evaluation of its simplicity. The two main factors of readability are the printing and linguistic features of the text. The Flesch Kinkaid Score is the most popular way to measure the readability of English text. It works on the principle of \u201cthe fewer words in the text, and the fewer syllables in them, the easier it is to perceive\u201d and is most often used for checking essays in schools and universities. The higher the index value on a 100-point scale, the better the readability of the text. Smart human-trained search algorithms evaluate all site content for completeness of topic disclosure, and in a form that is understandable to the reader. For this purpose, readability indexes are used. In other words, pages containing simple and clear text get higher positions in the search results. Improving the text in terms of its printing and linguistic qualities will increase the user's viewing time. It turns out that the readability significantly affects the ranking of sites in the search engine.\", \"max_sentences\": \"3\", \"language\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"textgears-textgears-v1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://textgears-textgears-v1.p.rapidapi.com/summarize\"\nquerystring = {\"text\": \"Readability (legibility) is a feature of the text that represents ease of its perception by the reader, as well as the evaluation of its simplicity. The two main factors of readability are the printing and linguistic features of the text. The Flesch Kinkaid Score is the most popular way to measure the readability of English text. It works on the principle of \u201cthe fewer words in the text, and the fewer syllables in them, the easier it is to perceive\u201d and is most often used for checking essays in schools and universities. The higher the index value on a 100-point scale, the better the readability of the text. Smart human-trained search algorithms evaluate all site content for completeness of topic disclosure, and in a form that is understandable to the reader. For this purpose, readability indexes are used. In other words, pages containing simple and clear text get higher positions in the search results. Improving the text in terms of its printing and linguistic qualities will increase the user's viewing time. It turns out that the readability significantly affects the ranking of sites in the search engine.\", \"max_sentences\": \"3\", \"language\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"textgears-textgears-v1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "properties": { + "response": { + "type": "object" + }, + "status ": { + "type": "boolean" + } + }, + "type": "object" + } + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Text_Analysis/textmind.json b/toolbench/toolenv/tools/Text_Analysis/textmind.json new file mode 100644 index 0000000000000000000000000000000000000000..2528caaaf0a5a58ba46d1f06c64f18d0a029246a --- /dev/null +++ b/toolbench/toolenv/tools/Text_Analysis/textmind.json @@ -0,0 +1,26 @@ +{ + "product_id": "api_4c192fac-98d6-41e9-bde2-56ac4f5cc0f9", + "tool_description": "TextMind offers a suite of NLP currently includes sentiment analysis.", + "home_url": "https://rapidapi.com/numen-numen-default/api/textmind/", + "name": "TextMind", + "title": "TextMind", + "pricing": "FREEMIUM", + "tool_name": "TextMind", + "score": null, + "host": "textmind.p.rapidapi.com", + "api_list": [ + { + "name": "SentimentalAnalysis", + "url": "https://textmind.p.rapidapi.com/api/SentimentalAnalysis", + "description": "Overview\n-------\nSentiment Analysis API endpoint is a service that allows developers to programmatically analyze the sentiment of a given text. It uses natural language processing and machine learning algorithms to determine the emotional tone of the text, such as positive, negative, or neutral. The API typically takes a string of text as input and returns a sentiment label. Additionally you can get sentiments of each of the statement in a paragraph. It can be used in a variety of applications such as social media monitoring, customer feedback analysis, and more.\n\nImportant\n-------\n\n- It is important to be aware that billing for this service is calculated based on the number of characters per 1000. For example, if the requested message contains 999 characters, it will be considered as one \"KCharacter\" unit. Conversely, a message containing 4100 characters would be calculated as five \"KCharacter\" units.\n- Maximum text request is of 5120 characters.\n\nList of supported languages with language code\n----------\nAfrikaans\taf\nAlbanian\tsq\nAmharic\tam\nArabic\tar\nArmenian\thy\nAssamese\tas\nAzerbaijani\taz\nBasque\teu\nBelarusian \tbe\nBengali\tbn\nBosnian\tbs\nBreton \tbr\nBulgarian\tbg\nBurmese\tmy\nCatalan\tca\nChinese (Simplified)\tzh-hans\nChinese (Traditional)\tzh-hant\nCroatian\thr\nCzech\tcs\nDanish\tda\nDutch\tnl\nEnglish\ten\nEsperanto \teo\nEstonian\tet\nFilipino\tfil\nFinnish\tfi\nFrench\tfr\nGalician\tgl\nGeorgian\tka\nGerman\tde\nGreek\tel\nGujarati\tgu\nHausa \tha\nHebrew\the\nHindi\thi\nHungarian\thu\nIndonesian\tid\nIrish\tga\nItalian\tit\nJapanese\tja\nJavanese \tjv\nKannada\tkn\nKazakh\tkk\nKhmer\tkm\nKorean\tko\nKurdish (Kurmanji)\tku\nKyrgyz\tky\nLao\tlo\nLatin \tla\nLatvian\tlv\nLithuanian\tlt\nMacedonian\tmk\nMalagasy\tmg\nMalay\tms\nMalayalam\tml\nMarathi\tmr\nMongolian\tmn\nNepali\tne\nNorwegian\tno\nOdia\tor\nOromo \tom\nPashto\tps\nPersian\tfa\nPolish\tpl\nPortuguese (Portugal)\tpt-PT\nPortuguese (Brazil)\tpt-BR\nPunjabi\tpa\nRomanian\tro\nRussian\tru\nSanskrit \tsa\nScottish Gaelic \tgd\nSerbian\tsr\nSindhi \tsd\nSinhala \tsi\nSlovak\tsk\nSlovenian\tsl\nSomali\tso\nSpanish\tes\nSundanese \tsu\nSwahili\tsw\nSwedish\tsv\nTamil\tta\nTelugu\tte\nThai\tth\nTurkish\ttr\nUkrainian\tuk\nUrdu\tur\nUyghur\tug\nUzbek\tuz\nVietnamese\tvi\nWelsh\tcy\nWestern Frisian \tfy\nXhosa \txh\nYiddish \tyi", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://textmind.p.rapidapi.com/api/SentimentalAnalysis\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"textmind.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://textmind.p.rapidapi.com/api/SentimentalAnalysis\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"textmind.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": {} + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Text_Analysis/textnerd_io.json b/toolbench/toolenv/tools/Text_Analysis/textnerd_io.json new file mode 100644 index 0000000000000000000000000000000000000000..a1db2cb01978eab2e232c5ade0325f63a2f29c8e --- /dev/null +++ b/toolbench/toolenv/tools/Text_Analysis/textnerd_io.json @@ -0,0 +1,247 @@ +{ + "product_id": "api_76867d02-a249-4a73-9bce-c9c01f67403a", + "tool_description": "Convert case and count characters, words, sentences, paragraphs and spaces.", + "home_url": "https://rapidapi.com/melbatista76/api/textnerd-io/", + "name": "TextNerd.io", + "title": "TextNerd.io", + "pricing": "FREEMIUM", + "tool_name": "TextNerd.io", + "score": { + "avgServiceLevel": 100, + "avgLatency": 123, + "avgSuccessRate": 99, + "popularityScore": 9, + "__typename": "Score" + }, + "host": "textnerd-io.p.rapidapi.com", + "api_list": [ + { + "name": "Sentencecase Text", + "url": "https://textnerd-io.p.rapidapi.com/api/sentencecase", + "description": "Convert first letter of a sentence to uppercase.\nExample: 'the road warrior. a man of mistery.' => 'The road warrior. A man of mistery.'\n\nFor more information on Sentence Case please review the Tutorial tab.\n\nSee the About page for more information and limits.", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://textnerd-io.p.rapidapi.com/api/sentencecase\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"textnerd-io.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://textnerd-io.p.rapidapi.com/api/sentencecase\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"textnerd-io.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "inputText": { + "type": "string" + }, + "sentencecaseText": { + "type": "string" + }, + "sentencecaseTextLenght": { + "type": "integer" + }, + "sentencecaseWordCount": { + "type": "integer" + }, + "sentencecaseSentenceCount": { + "type": "integer" + }, + "sentencecaseParagraphCoun": { + "type": "integer" + }, + "sentencecaseSpaceCount": { + "type": "integer" + } + } + } + }, + { + "name": "Alternatecase Text", + "url": "https://textnerd-io.p.rapidapi.com/api/alternatecase", + "description": "Alternalte case in every letter, starting with uppercase letter.\nExample: 'the road warrior' => 'ThE RoAd wArRiOr'\n\nSee the About page for more information and limits.", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://textnerd-io.p.rapidapi.com/api/alternatecase\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"textnerd-io.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://textnerd-io.p.rapidapi.com/api/alternatecase\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"textnerd-io.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "inputText": { + "type": "string" + }, + "alternatecaseText": { + "type": "string" + }, + "alternatecaseTextLenght": { + "type": "integer" + }, + "alternatecaseWordCount": { + "type": "integer" + }, + "alternatecaseSentenceCount": { + "type": "integer" + }, + "alternatecaseParagraphCount": { + "type": "integer" + }, + "alternatecaseSpaceCount": { + "type": "integer" + } + } + } + }, + { + "name": "Invertedcase Text", + "url": "https://textnerd-io.p.rapidapi.com/api/invertedcase", + "description": "Invert case in every letter.\nExample 1: 'tHe rOaD WaRrIoR' => 'ThE RoAd wArRiOr'\nExample 2: 'ThE RoAd wArRiOr' => 'tHe rOaD WaRrIoR'\n\nSee the About page for more information and limits.", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://textnerd-io.p.rapidapi.com/api/invertedcase\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"textnerd-io.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://textnerd-io.p.rapidapi.com/api/invertedcase\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"textnerd-io.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "inputText": { + "type": "string" + }, + "invertedcaseText": { + "type": "string" + }, + "invertedcaseTextLenght": { + "type": "integer" + }, + "invertedcaseWordCount": { + "type": "integer" + }, + "invertedcaseSentenceCount": { + "type": "integer" + }, + "invertedcaseParagraphCount": { + "type": "integer" + }, + "invertedcaseSpaceCount": { + "type": "integer" + } + } + } + }, + { + "name": "Capcase Text", + "url": "https://textnerd-io.p.rapidapi.com/api/capcase", + "description": "Convert all words to capital case.\nExample: 'the road warrior' => 'The Road Warrior'\n\nSee the About page for more information and limits.", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://textnerd-io.p.rapidapi.com/api/capcase\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"textnerd-io.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://textnerd-io.p.rapidapi.com/api/capcase\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"textnerd-io.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "inputText": { + "type": "string" + }, + "capcaseText": { + "type": "string" + }, + "capcaseTextLenght": { + "type": "integer" + }, + "capcaseWordCount": { + "type": "integer" + }, + "capcaseSentenceCount": { + "type": "integer" + }, + "capcaseParagraphCount": { + "type": "integer" + }, + "capcaseSpaceCount": { + "type": "integer" + } + } + } + }, + { + "name": "Lowercase Text", + "url": "https://textnerd-io.p.rapidapi.com/api/lowercase", + "description": "Convert all letters in all words to lower case.\nExample: 'THE ROAD WARRIOR' => 'the road warrior'\n\nSee the About page for more information and limits.", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://textnerd-io.p.rapidapi.com/api/lowercase\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"textnerd-io.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://textnerd-io.p.rapidapi.com/api/lowercase\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"textnerd-io.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "inputText": { + "type": "string" + }, + "lowercaseText": { + "type": "string" + }, + "lowercaseTextLenght": { + "type": "integer" + }, + "lowercaseWordCount": { + "type": "integer" + }, + "lowercaseSentenceCount": { + "type": "integer" + }, + "lowercaseParagraphCount": { + "type": "integer" + }, + "lowercaseSpaceCount": { + "type": "integer" + } + } + } + }, + { + "name": "Uppercase Text", + "url": "https://textnerd-io.p.rapidapi.com/api/uppercase", + "description": "Convert all letters in all words to upper case.\nExample: 'the road warrior' => 'THE ROAD WARRIOR'\n\nSee the About page for more information and limits.", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://textnerd-io.p.rapidapi.com/api/uppercase\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"textnerd-io.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://textnerd-io.p.rapidapi.com/api/uppercase\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"textnerd-io.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "inputText": { + "type": "string" + }, + "uppercaseText": { + "type": "string" + }, + "uppercaseTextLenght": { + "type": "integer" + }, + "uppercaseWordCount": { + "type": "integer" + }, + "uppercaseSentenceCount": { + "type": "integer" + }, + "uppercaseParagraphCount": { + "type": "integer" + }, + "uppercaseSpaceCount": { + "type": "integer" + } + } + } + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Text_Analysis/textrewrite_com.json b/toolbench/toolenv/tools/Text_Analysis/textrewrite_com.json new file mode 100644 index 0000000000000000000000000000000000000000..ea14ea065e83722d1cf069416803b62016efbbd8 --- /dev/null +++ b/toolbench/toolenv/tools/Text_Analysis/textrewrite_com.json @@ -0,0 +1,90 @@ +{ + "tool_name": "TextRewrite.com", + "tool_description": "Rewrite text with our machine learning based technology. After sign-up you can use http://textrewrite.com/tool", + "title": "TextRewrite.com", + "pricing": "FREEMIUM", + "score": null, + "home_url": "https://rapidapi.com/microbrands/api/textrewrite-com/", + "host": "textrewrite-com.p.rapidapi.com", + "api_list": [ + { + "name": "Rewrite Text (GET for short texts)", + "url": "https://textrewrite-com.p.rapidapi.com/api.php", + "description": "Just insert your text and have it rewritten instantly.", + "method": "GET", + "required_parameters": [ + { + "name": "text", + "type": "STRING", + "description": "Text to be rewritten.", + "default": "A great day to give this API a try." + } + ], + "optional_parameters": [ + { + "name": "format", + "type": "ENUM", + "description": "Text format (optional). Can be `text` or `html`. Default is `text`.", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://textrewrite-com.p.rapidapi.com/api.php\"\nquerystring = {\"text\": text}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"textrewrite-com.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode": 111, + "body": "", + "headers": "", + "schema": "" + }, + { + "name": "Rewrite Text (POST)", + "url": "https://textrewrite-com.p.rapidapi.com/api.php", + "description": "Just insert your text and have it rewritten instantly.", + "method": "POST", + "required_parameters": [ + { + "name": "text", + "type": "STRING", + "description": "Text to be rewritten.", + "default": "A great day to give this API a try." + } + ], + "optional_parameters": [ + { + "name": "format", + "type": "ENUM", + "description": "Text format (optional). Can be `text` or `html`. Default is `text`.", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://textrewrite-com.p.rapidapi.com/api.php\"\nquerystring = {\"text\": text}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"textrewrite-com.p.rapidapi.com\"\n}\n\nresponse = requests.post(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode": 111, + "body": "", + "headers": "", + "schema": "" + }, + { + "name": "Rewrite Text (POST)", + "url": "https://textrewrite-com.p.rapidapi.com/api.php", + "description": "Just insert your text and have it rewritten instantly.", + "method": "POST", + "required_parameters": [ + { + "name": "text", + "type": "STRING", + "description": "Text to be rewritten.", + "default": "A great day to give this API a try." + } + ], + "optional_parameters": [ + { + "name": "format", + "type": "ENUM", + "description": "Text format (optional). Can be `text` or `html`. Default is `text`.", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://textrewrite-com.p.rapidapi.com/api.php\"\nquerystring = {\"format\": \"\", \"text\": \"A great day to give this API a try.\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"textrewrite-com.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://textrewrite-com.p.rapidapi.com/api.php\"\nquerystring = {\"format\": \"\", \"text\": \"A great day to give this API a try.\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"textrewrite-com.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Text_Analysis/textrewrite_com/api.py b/toolbench/toolenv/tools/Text_Analysis/textrewrite_com/api.py new file mode 100644 index 0000000000000000000000000000000000000000..6485ae367ef32673a5263c1d7c93cbe596401ede --- /dev/null +++ b/toolbench/toolenv/tools/Text_Analysis/textrewrite_com/api.py @@ -0,0 +1,33 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def rewrite_text_get_for_short_texts(text: str, format: str=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Just insert your text and have it rewritten instantly." + text: Text to be rewritten. + format: Text format (optional). Can be `text` or `html`. Default is `text`. + + """ + url = f"https://textrewrite-com.p.rapidapi.com/api.php" + querystring = {'text': text, } + if format: + querystring['format'] = format + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "textrewrite-com.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Text_Analysis/texttoimage.json b/toolbench/toolenv/tools/Text_Analysis/texttoimage.json new file mode 100644 index 0000000000000000000000000000000000000000..20d6fdd8a8092cdf876ace435c620d59b9129b6d --- /dev/null +++ b/toolbench/toolenv/tools/Text_Analysis/texttoimage.json @@ -0,0 +1,30 @@ +{ + "product_id": "api_db60049b-24c9-4cc1-b042-dec7c9daea1b", + "tool_description": "Converts text to relevant images", + "home_url": "https://rapidapi.com/texttoimage-api-texttoimage-api-default/api/texttoimage/", + "name": "TextToImage", + "title": "TextToImage", + "pricing": "FREEMIUM", + "tool_name": "TextToImage", + "score": { + "avgServiceLevel": 88, + "avgLatency": 2489, + "avgSuccessRate": 83, + "popularityScore": 9.4, + "__typename": "Score" + }, + "host": "texttoimage.p.rapidapi.com", + "api_list": [ + { + "name": "POST /Image", + "url": "https://texttoimage.p.rapidapi.com/image", + "description": "Submit source text and get up to 10 contextually relevant image based on Natural Language Processing (NLP) performed on provided search_text.", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://texttoimage.p.rapidapi.com/image\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"texttoimage.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://texttoimage.p.rapidapi.com/image\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"texttoimage.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Text_Analysis/the_best_keyword_density_analyzer_100_percent_accuracy_approved.json b/toolbench/toolenv/tools/Text_Analysis/the_best_keyword_density_analyzer_100_percent_accuracy_approved.json new file mode 100644 index 0000000000000000000000000000000000000000..c21fd077b5e47993880e3bd2a2f51613786173dd --- /dev/null +++ b/toolbench/toolenv/tools/Text_Analysis/the_best_keyword_density_analyzer_100_percent_accuracy_approved.json @@ -0,0 +1,26 @@ +{ + "product_id": "api_c86ce12f-7091-474a-98db-2772f6739555", + "tool_description": "A keyword density tool that is built for the fastest and 100% accurate response. Optimizing the keyword density will boost the visibility as well as the ranking on search engine results page. An analyzer like never before. Just tap, proceed and voila!", + "home_url": "https://rapidapi.com/Papersdrop/api/the-best-keyword-density-analyzer-100-percent-accuracy-approved/", + "name": "The Best Keyword Density Analyzer -100 percent accuracy approved", + "title": "The Best Keyword Density Analyzer -100 percent accuracy approved", + "pricing": "FREEMIUM", + "tool_name": "The Best Keyword Density Analyzer -100 percent accuracy approved", + "score": null, + "host": "the-best-keyword-density-analyzer-100-percent-accuracy-approved.p.rapidapi.com", + "api_list": [ + { + "name": "Keyword Density Analyzer", + "url": "https://the-best-keyword-density-analyzer-100-percent-accuracy-approved.p.rapidapi.com/blogs/kda", + "description": "Analyze keyword Density in the given Passage", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://the-best-keyword-density-analyzer-100-percent-accuracy-approved.p.rapidapi.com/blogs/kda\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"the-best-keyword-density-analyzer-100-percent-accuracy-approved.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://the-best-keyword-density-analyzer-100-percent-accuracy-approved.p.rapidapi.com/blogs/kda\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"the-best-keyword-density-analyzer-100-percent-accuracy-approved.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": {} + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Text_Analysis/thesaurus_multi_language_synonyms.json b/toolbench/toolenv/tools/Text_Analysis/thesaurus_multi_language_synonyms.json new file mode 100644 index 0000000000000000000000000000000000000000..758bd9fa0c9dd552fcb5e86cb2fcc5ddc2fc0163 --- /dev/null +++ b/toolbench/toolenv/tools/Text_Analysis/thesaurus_multi_language_synonyms.json @@ -0,0 +1,105 @@ +{ + "tool_name": "Thesaurus - Multi Language Synonyms", + "tool_description": "Get similar words in multiple languages. Largest web database @ 35 million synonyms in 26 languages.", + "title": "Thesaurus - Multi Language Synonyms", + "pricing": "FREEMIUM", + "score": { + "avgServiceLevel": 100, + "avgLatency": 397, + "avgSuccessRate": 100, + "popularityScore": 8.8, + "__typename": "Score" + }, + "home_url": "https://rapidapi.com/grantmk-3i5afngdA_Q/api/thesaurus-multi-language-synonyms/", + "host": "thesaurus-multi-language-synonyms.p.rapidapi.com", + "api_list": [ + { + "name": "Retrieve Synonym", + "url": "https://thesaurus-multi-language-synonyms.p.rapidapi.com/synonym", + "description": "Send a language, locale and word to get a full list of synonyms for that word.\n\n**POST request:**\n/synonym\n\n**Example body data in JSON:**\n{\n \"word\": \"table\",\n \"language\": \"EN\",\n \"locale\": \"US\"\n}\n\n**Languages and Locales:**\nAR/EG: Arabic(Egypt)\nBG/BG: Bulgarian\nCA/ES: Catalan\nCS/CZ: Czech\nDA/DK: Danish\nDE/CH: German(Swiss)\nDE/DE: German(Germany)\nEL/GR: Greek\nEN/US: English(US)\nES/ES: Spanish\nFR/FR: French\nGA/IE: Gaelic(Ireland)\nHU/HU: Hungarian\nIT/IT: Italian\nLB/LU: Luxembourgish\nNB/NO: Norwegian\nNE/NP: Nepali\nNL/NL: Dutch\nPL/PL: Polish\nPT/PT: Portuguese\nRO/RO: Romanian\nRU/RU: Russian\nSK/SK: Slovak\nSL/SL: Slovenian\nSV/SE: Swedish\nUK/UA: Ukranian", + "method": "POST", + "required_parameters": [ + { + "name": "locale", + "type": "STRING", + "description": "", + "default": "us" + }, + { + "name": "word", + "type": "STRING", + "description": "", + "default": "table" + }, + { + "name": "language", + "type": "STRING", + "description": "", + "default": "en" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://thesaurus-multi-language-synonyms.p.rapidapi.com/synonym\"\nquerystring = {\"locale\": locale, \"word\": word, \"language\": language}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"thesaurus-multi-language-synonyms.p.rapidapi.com\"\n}\n\nresponse = requests.post(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode": 111, + "body": "", + "headers": "", + "schema": "" + }, + { + "name": "Available Languages", + "url": "https://thesaurus-multi-language-synonyms.p.rapidapi.com/availablelanguages", + "description": "Return available languages for thesaurus", + "method": "GET", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://thesaurus-multi-language-synonyms.p.rapidapi.com/availablelanguages\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"thesaurus-multi-language-synonyms.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 111, + "body": "", + "headers": "", + "schema": "" + }, + { + "name": "Heartbeat", + "url": "https://thesaurus-multi-language-synonyms.p.rapidapi.com/heartbeat", + "description": "Return available languages for thesaurus", + "method": "GET", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://thesaurus-multi-language-synonyms.p.rapidapi.com/heartbeat\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"thesaurus-multi-language-synonyms.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 111, + "body": "", + "headers": "", + "schema": "" + }, + { + "name": "Retrieve Synonym", + "url": "https://thesaurus-multi-language-synonyms.p.rapidapi.com/synonym", + "description": "Send a language, locale and word to get a full list of synonyms for that word.\n\n**POST request:**\n/synonym\n\n**Example body data in JSON:**\n{\n \"word\": \"table\",\n \"language\": \"EN\",\n \"locale\": \"US\"\n}\n\n**Languages and Locales:**\nAR/EG: Arabic(Egypt)\nBG/BG: Bulgarian\nCA/ES: Catalan\nCS/CZ: Czech\nDA/DK: Danish\nDE/CH: German(Swiss)\nDE/DE: German(Germany)\nEL/GR: Greek\nEN/US: English(US)\nES/ES: Spanish\nFR/FR: French\nGA/IE: Gaelic(Ireland)\nHU/HU: Hungarian\nIT/IT: Italian\nLB/LU: Luxembourgish\nNB/NO: Norwegian\nNE/NP: Nepali\nNL/NL: Dutch\nPL/PL: Polish\nPT/PT: Portuguese\nRO/RO: Romanian\nRU/RU: Russian\nSK/SK: Slovak\nSL/SL: Slovenian\nSV/SE: Swedish\nUK/UA: Ukranian", + "method": "POST", + "required_parameters": [ + { + "name": "locale", + "type": "STRING", + "description": "", + "default": "us" + }, + { + "name": "word", + "type": "STRING", + "description": "", + "default": "table" + }, + { + "name": "language", + "type": "STRING", + "description": "", + "default": "en" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://thesaurus-multi-language-synonyms.p.rapidapi.com/synonym\"\nquerystring = {\"locale\": \"us\", \"word\": \"table\", \"language\": \"en\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"thesaurus-multi-language-synonyms.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://thesaurus-multi-language-synonyms.p.rapidapi.com/synonym\"\nquerystring = {\"locale\": \"us\", \"word\": \"table\", \"language\": \"en\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"thesaurus-multi-language-synonyms.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Text_Analysis/thesaurus_multi_language_synonyms/api.py b/toolbench/toolenv/tools/Text_Analysis/thesaurus_multi_language_synonyms/api.py new file mode 100644 index 0000000000000000000000000000000000000000..6c29f72c473471e206acd13d314a8d9940663de9 --- /dev/null +++ b/toolbench/toolenv/tools/Text_Analysis/thesaurus_multi_language_synonyms/api.py @@ -0,0 +1,50 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def available_languages(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Return available languages for thesaurus" + + """ + url = f"https://thesaurus-multi-language-synonyms.p.rapidapi.com/availablelanguages" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "thesaurus-multi-language-synonyms.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def heartbeat(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Return available languages for thesaurus" + + """ + url = f"https://thesaurus-multi-language-synonyms.p.rapidapi.com/heartbeat" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "thesaurus-multi-language-synonyms.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Text_Analysis/ticket_classification.json b/toolbench/toolenv/tools/Text_Analysis/ticket_classification.json new file mode 100644 index 0000000000000000000000000000000000000000..1d909ec55bc34debe5dfcfe5f201bc65cfcdd822 --- /dev/null +++ b/toolbench/toolenv/tools/Text_Analysis/ticket_classification.json @@ -0,0 +1,24 @@ +{ + "product_id": "api_b26660c7-f196-44aa-9555-d084ca792cda", + "tool_description": "This API predicts the category of a given ticket, for customer support domain.", + "home_url": "https://rapidapi.com/metatext-metatext-default/api/ticket-classification/", + "name": "Ticket Classification", + "title": "Ticket Classification", + "pricing": "PAID", + "tool_name": "Ticket Classification", + "score": null, + "host": "ticket-classification.p.rapidapi.com", + "api_list": [ + { + "name": "Ticket Classification", + "url": "https://ticket-classification.p.rapidapi.com/ticket-classification", + "description": "Support Ticket Classification.", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://ticket-classification.p.rapidapi.com/ticket-classification\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"ticket-classification.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://ticket-classification.p.rapidapi.com/ticket-classification\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"ticket-classification.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Text_Analysis/tigon_cv_parser.json b/toolbench/toolenv/tools/Text_Analysis/tigon_cv_parser.json new file mode 100644 index 0000000000000000000000000000000000000000..1bd7b224a2bc8311719f4e7fde58aca5fdd240f6 --- /dev/null +++ b/toolbench/toolenv/tools/Text_Analysis/tigon_cv_parser.json @@ -0,0 +1,37 @@ +{ + "product_id": "api_e471642f-ec0e-4aa3-a41a-47f8706e7131", + "tool_description": "Parsing Resume files accurately at scale", + "home_url": "https://rapidapi.com/danielgorlo/api/tigon-cv-parser/", + "name": "Tigon CV Parser", + "title": "Tigon CV Parser", + "pricing": "PAID", + "tool_name": "Tigon CV Parser", + "score": null, + "host": "tigon-cv-parser.p.rapidapi.com", + "api_list": [ + { + "name": "Parse CV", + "url": "https://tigon-cv-parser.p.rapidapi.com/api/cv/parse", + "description": "Parses a CV and returns all relevant fields on candidate", + "method": "POST", + "required_parameters": [ + { + "name": "apiKey", + "type": "STRING", + "description": "", + "default": "TEST_API_KEY" + }, + { + "name": "cv", + "type": "BINARY", + "description": "", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://tigon-cv-parser.p.rapidapi.com/api/cv/parse\"\nquerystring = {\"apiKey\": \"TEST_API_KEY\", \"cv\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"tigon-cv-parser.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://tigon-cv-parser.p.rapidapi.com/api/cv/parse\"\nquerystring = {\"apiKey\": \"TEST_API_KEY\", \"cv\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"tigon-cv-parser.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Text_Analysis/time_interpreter.json b/toolbench/toolenv/tools/Text_Analysis/time_interpreter.json new file mode 100644 index 0000000000000000000000000000000000000000..9a3bfd32de4541cc4657317c28b0d9c5fcc819bf --- /dev/null +++ b/toolbench/toolenv/tools/Text_Analysis/time_interpreter.json @@ -0,0 +1,54 @@ +{ + "product_id": "api_d8b7feef-88c6-4fa5-9d3c-feac04763fdd", + "tool_description": "This API is a powerful tool for converting human text into timestamps. With this Time Interpreter API, users can quickly and accurately convert natural language descriptions of time, such as \"yesterday at 3pm\" or \"next Friday at 7am,\" into precise timestamp values that can be used in a wide range of applications. Whether you're building a scheduling app or analyzing data, our API can help streamline your workflow and save you valuable time.\n\nIf you have issues with responses or questions plea...", + "home_url": "https://rapidapi.com/sid-technologies-llc-sid-technologies-llc-default/api/time-interpreter/", + "name": "Time Interpreter", + "title": "Time Interpreter", + "pricing": "FREEMIUM", + "tool_name": "Time Interpreter", + "score": { + "avgServiceLevel": 100, + "avgLatency": 727, + "avgSuccessRate": 100, + "popularityScore": 8.6, + "__typename": "Score" + }, + "host": "time-interpreter.p.rapidapi.com", + "api_list": [ + { + "name": "time interpreter endpoint", + "url": "https://time-interpreter.p.rapidapi.com/time", + "description": "main endpoint in which you POST a simple body `{ \"message\": \"tomorrow at 3pm\" }` and get a timestamp as a return object. The `time_zone` field is optional.", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://time-interpreter.p.rapidapi.com/time\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"time-interpreter.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://time-interpreter.p.rapidapi.com/time\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"time-interpreter.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "time_zone": { + "type": "string" + }, + "date_time": { + "type": "string" + }, + "start_time": { + "type": "string" + }, + "end_time": { + "type": "string" + }, + "message_grains": { + "type": "array", + "items": { + "type": "string" + } + } + } + } + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Text_Analysis/title_generation.json b/toolbench/toolenv/tools/Text_Analysis/title_generation.json new file mode 100644 index 0000000000000000000000000000000000000000..358e07f5fa03a15a5f847400f1a39192228b7336 --- /dev/null +++ b/toolbench/toolenv/tools/Text_Analysis/title_generation.json @@ -0,0 +1,24 @@ +{ + "product_id": "api_64cb0fb3-dc99-491f-ad3b-608bb8f66b60", + "tool_description": "Generate a unique title/topic for your article/news", + "home_url": "https://rapidapi.com/omer.arshad/api/title-generation/", + "name": "title generation", + "title": "title generation", + "pricing": "FREEMIUM", + "tool_name": "title generation", + "score": null, + "host": "title-generation.p.rapidapi.com", + "api_list": [ + { + "name": "title", + "url": "https://title-generation.p.rapidapi.com/title", + "description": "payload format for the api\n\n{\n \"article\": \"Simple English Wikipedia is an online encyclopedia aimed at English learners. Its articles are expected to contain fewer words and simpler grammar structures than those in their Main English Wikipedia counterpart. Much of the popularity of using Wikipedia for research in Simplification comes from publicly available sentence alignments between \u201cequivalent\u201d articles in Main and Simple English Wikipedia.\",\n \"is_diverse\":false,\n \"diversity\":1.4\n}", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://title-generation.p.rapidapi.com/title\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"title-generation.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://title-generation.p.rapidapi.com/title\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"title-generation.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Text_Analysis/tldr.json b/toolbench/toolenv/tools/Text_Analysis/tldr.json new file mode 100644 index 0000000000000000000000000000000000000000..33456126b9a3298c103f430078691b4c771da087 --- /dev/null +++ b/toolbench/toolenv/tools/Text_Analysis/tldr.json @@ -0,0 +1,31 @@ +{ + "product_id": "api_ac35bef6-7d73-4fb0-b038-0d41fd07eeb2", + "tool_description": "Summarize any text using state of the art artificial intelligence technology in a human-like manner.", + "home_url": "https://rapidapi.com/epicfortnitegamer0123456789/api/tldr2/", + "name": "TLDR", + "title": "TLDR", + "pricing": "FREEMIUM", + "tool_name": "TLDR", + "score": null, + "host": "tldr2.p.rapidapi.com", + "api_list": [ + { + "name": "summary", + "url": "https://tldr2.p.rapidapi.com/summary", + "description": "The API endpoint is /summary and it only accepts POST requests.\n\nProperties:\ntext (required): The text to be summarized. The length of the text should not exceed 2500 characters.", + "method": "POST", + "required_parameters": [ + { + "name": "text", + "type": "STRING", + "description": "", + "default": "This is some example text to summarize." + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://tldr2.p.rapidapi.com/summary\"\nquerystring = {\"text\": \"This is some example text to summarize.\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"tldr2.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://tldr2.p.rapidapi.com/summary\"\nquerystring = {\"text\": \"This is some example text to summarize.\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"tldr2.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Text_Analysis/tldr_summary.json b/toolbench/toolenv/tools/Text_Analysis/tldr_summary.json new file mode 100644 index 0000000000000000000000000000000000000000..52c3ecc6aac5ba43ca31652ba7b4b4685077de3d --- /dev/null +++ b/toolbench/toolenv/tools/Text_Analysis/tldr_summary.json @@ -0,0 +1,24 @@ +{ + "product_id": "api_c43fc9cc-f6d5-42e2-bc79-221a44dff387", + "tool_description": "Get extractive summaries for you textual data ", + "home_url": "https://rapidapi.com/santiagobassani96/api/tldr-summary/", + "name": "TLDR Summary", + "title": "TLDR Summary", + "pricing": "FREEMIUM", + "tool_name": "TLDR Summary", + "score": null, + "host": "tldr-summary.p.rapidapi.com", + "api_list": [ + { + "name": "Extractive Summary", + "url": "https://tldr-summary.p.rapidapi.com/api/v2/summary/", + "description": "Get a list of phrases extracted from the original text which best describe the keypoints.", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://tldr-summary.p.rapidapi.com/api/v2/summary/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"tldr-summary.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://tldr-summary.p.rapidapi.com/api/v2/summary/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"tldr-summary.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Text_Analysis/tldr_text_analysis.json b/toolbench/toolenv/tools/Text_Analysis/tldr_text_analysis.json new file mode 100644 index 0000000000000000000000000000000000000000..04359f46977560c1065d8fee3ccce893f0d344f0 --- /dev/null +++ b/toolbench/toolenv/tools/Text_Analysis/tldr_text_analysis.json @@ -0,0 +1,98 @@ +{ + "tool_name":"TLDR Text Analysis", + "tool_description":"TLDR (Too Long Didn't Read) is a Text Analysis API that allows you to extract summaries and ranked keywords from articles on web. ", + "title":"TLDR Text Analysis", + "pricing":"FREEMIUM", + "score":{ + "avgServiceLevel":98, + "avgLatency":781, + "avgSuccessRate":98, + "popularityScore":9.4, + "__typename":"Score" + }, + "home_url":"https://rapidapi.com/AmolMavuduru/api/tldr-text-analysis/", + "host":"tldr-text-analysis.p.rapidapi.com", + "api_list":[ + { + "name":"Summarize", + "url":"https://tldr-text-analysis.p.rapidapi.com/summarize/", + "description":"Summarizes an article by fetching text from a specified URL or reading the input text and generating a summary for a web article.", + "method":"GET", + "required_parameters":[ + { + "name":"text", + "type":"STRING", + "description":"This field contains the text input for the text summarization request. It can be either a URL or the raw text of an article.", + "default":"" + }, + { + "name":"max_sentences", + "type":"NUMBER", + "description":"", + "default":"5" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://tldr-text-analysis.p.rapidapi.com/summarize/\"\nquerystring = {\"text\": text, \"max_sentences\": max_sentences}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"tldr-text-analysis.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":200, + "body":{ + "key1":"value", + "key2":"value" + }, + "headers":{}, + "schema":{} + }, + { + "name":"Sentiment Analysis", + "url":"https://tldr-text-analysis.p.rapidapi.com/sentiment_analysis/", + "description":"Performs sentiment analysis on a web article or text input.", + "method":"GET", + "required_parameters":[ + { + "name":"text", + "type":"STRING", + "description":"This field contains the text input for the sentiment analysis request. It can be either a URL or the raw text of an article.", + "default":"" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://tldr-text-analysis.p.rapidapi.com/sentiment_analysis/\"\nquerystring = {\"text\": text}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"tldr-text-analysis.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":200, + "body":{ + "key1":"value", + "key2":"value" + }, + "headers":{}, + "schema":{} + }, + { + "name":"Extract Keywords", + "url":"https://tldr-text-analysis.p.rapidapi.com/keywords/", + "description":"Extracts keywords from an article given the URL for the article and the number of keywords to search for.", + "method":"GET", + "required_parameters":[ + { + "name":"n_keywords", + "type":"NUMBER", + "description":"", + "default":"5" + }, + { + "name":"text", + "type":"STRING", + "description":"This field contains the text input for the keyword extraction request. It can be either a URL or the raw text of an article.", + "default":"" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://tldr-text-analysis.p.rapidapi.com/keywords/\"\nquerystring = {\"n_keywords\": n_keywords, \"text\": text}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"tldr-text-analysis.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":200, + "body":{ + "key1":"value", + "key2":"value" + }, + "headers":{}, + "schema":{} + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Text_Analysis/tldr_text_analysis/api.py b/toolbench/toolenv/tools/Text_Analysis/tldr_text_analysis/api.py new file mode 100644 index 0000000000000000000000000000000000000000..1ec61f321bf588594e60e1f35df5afd806a80b9e --- /dev/null +++ b/toolbench/toolenv/tools/Text_Analysis/tldr_text_analysis/api.py @@ -0,0 +1,74 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def summarize(text: str, max_sentences: int, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Summarizes an article by fetching text from a specified URL or reading the input text and generating a summary for a web article." + text: This field contains the text input for the text summarization request. It can be either a URL or the raw text of an article. + + """ + url = f"https://tldr-text-analysis.p.rapidapi.com/summarize/" + querystring = {'text': text, 'max_sentences': max_sentences, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "tldr-text-analysis.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def sentiment_analysis(text: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Performs sentiment analysis on a web article or text input." + text: This field contains the text input for the sentiment analysis request. It can be either a URL or the raw text of an article. + + """ + url = f"https://tldr-text-analysis.p.rapidapi.com/sentiment_analysis/" + querystring = {'text': text, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "tldr-text-analysis.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def extract_keywords(n_keywords: int, text: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Extracts keywords from an article given the URL for the article and the number of keywords to search for." + text: This field contains the text input for the keyword extraction request. It can be either a URL or the raw text of an article. + + """ + url = f"https://tldr-text-analysis.p.rapidapi.com/keywords/" + querystring = {'n_keywords': n_keywords, 'text': text, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "tldr-text-analysis.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Text_Analysis/topic_tagging.json b/toolbench/toolenv/tools/Text_Analysis/topic_tagging.json new file mode 100644 index 0000000000000000000000000000000000000000..2b7d680315402fb1b45aad7270d12f574ecc95f3 --- /dev/null +++ b/toolbench/toolenv/tools/Text_Analysis/topic_tagging.json @@ -0,0 +1,263 @@ +{ + "tool_name": "Topic Tagging", + "tool_description": "Automatically generate topics and keywords for articles and blogs.", + "title": "Topic Tagging", + "pricing": "FREEMIUM", + "score": { + "avgServiceLevel": 100, + "avgLatency": 804, + "avgSuccessRate": 100, + "popularityScore": 9.7, + "__typename": "Score" + }, + "home_url": "https://rapidapi.com/twinword/api/topic-tagging/", + "host": "twinword-topic-tagging.p.rapidapi.com", + "api_list": [ + { + "name": "Generate (get)", + "url": "https://twinword-topic-tagging.p.rapidapi.com/generate/", + "description": "Detect and generate human like topics to the given text.", + "method": "GET", + "required_parameters": [ + { + "name": "text", + "type": "STRING", + "description": "Enter some text to generate topics", + "default": "Computer science is the scientific and practical approach to computation and its applications. It is the systematic study of the feasibility, structure, expression, and mechanization of the methodical procedures (or algorithms) that underlie the acquisition, representation, processing, storage, communication of, and access to information, whether such information is encoded as bits in a computer memory or transcribed in genes and protein structures in a biological cell. An alternate, more succinct definition of computer science is the study of automating algorithmic processes that scale. A computer scientist specializes in the theory of computation and the design of computational systems." + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://twinword-topic-tagging.p.rapidapi.com/generate/\"\nquerystring = {\"text\": text}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"twinword-topic-tagging.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode": 200, + "body": { + "keyword": { + "computer": 4, + "compute": 2, + "structure": 2, + "information": 2, + "study": 2, + "science": 2, + "cell": 1, + "alternate": 1, + "biological": 1, + "gene": 1 + }, + "topic": { + "computer science": 0.5010800744879, + "study": 0.30018621973929, + "human": 0.23091247672253, + "machine": 0.23091247672253, + "system": 0.23091247672253, + "art": 0.20782122905028, + "technology": 0.18472998137803, + "development": 0.18472998137803, + "number": 0.18472998137803 + }, + "version": "5.0.0", + "author": "twinword inc.", + "email": "feedback@twinword.com", + "result_code": "200", + "result_msg": "Success" + }, + "headers": { + "alt-svc": "h3-27=\":443\"; ma=86400, h3-25=\":443\"; ma=86400, h3-24=\":443\"; ma=86400, h3-23=\":443\"; ma=86400", + "cf-cache-status": "DYNAMIC", + "cf-ray": "599ea0fc6aff06b9-NRT", + "cf-request-id": "02f702f1c1000006b9b2a67200000001", + "content-type": "application/json", + "date": "Wed, 27 May 2020 09:15:00 GMT", + "expect-ct": "max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\"", + "server": "RapidAPI-1.1.7", + "set-cookie": [ + "__cfduid=d89318bb156c83115b899f4a1e45acdfe1590570899; expires=Fri, 26-Jun-20 09:14:59 GMT; path=/; domain=.twinword.com; HttpOnly; SameSite=Lax; Secure" + ], + "strict-transport-security": "max-age=15552000; includeSubDomains; preload", + "x-content-type-options": "nosniff", + "x-rapidapi-region": "AWS - ap-northeast-1", + "x-rapidapi-version": "1.1.7", + "x-ratelimit-requests-limit": "30000", + "x-ratelimit-requests-remaining": "29997", + "content-length": "506", + "connection": "Close" + }, + "schema": { + "properties": { + "author": { + "type": "string" + }, + "email": { + "format": "email", + "type": "string" + }, + "keyword": { + "properties": { + "alternate": { + "type": "integer" + }, + "biological": { + "type": "integer" + }, + "cell": { + "type": "integer" + }, + "compute": { + "type": "integer" + }, + "computer": { + "type": "integer" + }, + "gene": { + "type": "integer" + }, + "information": { + "type": "integer" + }, + "science": { + "type": "integer" + }, + "structure": { + "type": "integer" + }, + "study": { + "type": "integer" + } + }, + "type": "object" + }, + "result_code": { + "format": "color", + "type": "string" + }, + "result_msg": { + "type": "string" + }, + "topic": { + "properties": { + "art": { + "type": "number" + }, + "computer science": { + "type": "number" + }, + "development": { + "type": "number" + }, + "human": { + "type": "number" + }, + "machine": { + "type": "number" + }, + "number": { + "type": "number" + }, + "study": { + "type": "number" + }, + "system": { + "type": "number" + }, + "technology": { + "type": "number" + } + }, + "type": "object" + }, + "version": { + "type": "string" + } + }, + "type": "object" + } + }, + { + "name": "Generate (post)", + "url": "https://twinword-topic-tagging.p.rapidapi.com/generate/", + "description": "Detect and generate human like topics to the given text.", + "method": "POST", + "required_parameters": [ + { + "name": "text", + "type": "STRING", + "description": "Enter some text to generate topics", + "default": "Computer science is the scientific and practical approach to computation and its applications. It is the systematic study of the feasibility, structure, expression, and mechanization of the methodical procedures (or algorithms) that underlie the acquisition, representation, processing, storage, communication of, and access to information, whether such information is encoded as bits in a computer memory or transcribed in genes and protein structures in a biological cell. An alternate, more succinct definition of computer science is the study of automating algorithmic processes that scale. A computer scientist specializes in the theory of computation and the design of computational systems." + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://twinword-topic-tagging.p.rapidapi.com/generate/\"\nquerystring = {\"text\": text}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"twinword-topic-tagging.p.rapidapi.com\"\n}\n\nresponse = requests.post(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode": 200, + "body": { + "author": "twinword inc.", + "email": "help@twinword.com", + "keyword": { + "cell": 1, + "compute": 2, + "computer": 4, + "design": 1, + "information": 2, + "memory": 1, + "science": 2, + "structure": 2, + "study": 2, + "transcribe": 1 + }, + "result_code": "200", + "result_msg": "Success", + "topic": { + "art": 0.20782122905028, + "biology": 0.18472998137803, + "computer science": 0.5010800744879, + "human": 0.23091247672253, + "machine": 0.23091247672253, + "research": 0.18472998137803, + "study": 0.30018621973929, + "system": 0.23091247672253, + "technology": 0.18472998137803 + }, + "version": "5.0.0" + }, + "headers": { + "alt-svc": "h3-27=\":443\"; ma=86400, h3-25=\":443\"; ma=86400, h3-24=\":443\"; ma=86400, h3-23=\":443\"; ma=86400", + "cf-cache-status": "DYNAMIC", + "cf-ray": "599ea17fabcbd649-NRT", + "cf-request-id": "02f70343c70000d64911128200000001", + "content-type": "application/json", + "date": "Wed, 27 May 2020 09:15:21 GMT", + "expect-ct": "max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\"", + "server": "RapidAPI-1.1.7", + "set-cookie": [ + "__cfduid=dfbef479ec9fd1cd23e2df4d6f1e24a181590570920; expires=Fri, 26-Jun-20 09:15:20 GMT; path=/; domain=.twinword.com; HttpOnly; SameSite=Lax; Secure" + ], + "strict-transport-security": "max-age=15552000; includeSubDomains; preload", + "x-content-type-options": "nosniff", + "x-rapidapi-region": "AWS - ap-northeast-1", + "x-rapidapi-version": "1.1.7", + "x-ratelimit-requests-limit": "30000", + "x-ratelimit-requests-remaining": "29996", + "content-length": "506", + "connection": "Close" + }, + "schema": {} + }, + { + "name": "Generate (post)", + "url": "https://twinword-topic-tagging.p.rapidapi.com/generate/", + "description": "Detect and generate human like topics to the given text.", + "method": "POST", + "required_parameters": [ + { + "name": "text", + "type": "STRING", + "description": "Enter some text to generate topics", + "default": "Computer science is the scientific and practical approach to computation and its applications. It is the systematic study of the feasibility, structure, expression, and mechanization of the methodical procedures (or algorithms) that underlie the acquisition, representation, processing, storage, communication of, and access to information, whether such information is encoded as bits in a computer memory or transcribed in genes and protein structures in a biological cell. An alternate, more succinct definition of computer science is the study of automating algorithmic processes that scale. A computer scientist specializes in the theory of computation and the design of computational systems." + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://twinword-topic-tagging.p.rapidapi.com/generate/\"\nquerystring = {\"text\": \"Computer science is the scientific and practical approach to computation and its applications. It is the systematic study of the feasibility, structure, expression, and mechanization of the methodical procedures (or algorithms) that underlie the acquisition, representation, processing, storage, communication of, and access to information, whether such information is encoded as bits in a computer memory or transcribed in genes and protein structures in a biological cell. An alternate, more succinct definition of computer science is the study of automating algorithmic processes that scale. A computer scientist specializes in the theory of computation and the design of computational systems.\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"twinword-topic-tagging.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://twinword-topic-tagging.p.rapidapi.com/generate/\"\nquerystring = {\"text\": \"Computer science is the scientific and practical approach to computation and its applications. It is the systematic study of the feasibility, structure, expression, and mechanization of the methodical procedures (or algorithms) that underlie the acquisition, representation, processing, storage, communication of, and access to information, whether such information is encoded as bits in a computer memory or transcribed in genes and protein structures in a biological cell. An alternate, more succinct definition of computer science is the study of automating algorithmic processes that scale. A computer scientist specializes in the theory of computation and the design of computational systems.\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"twinword-topic-tagging.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": {} + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Text_Analysis/topic_tagging/api.py b/toolbench/toolenv/tools/Text_Analysis/topic_tagging/api.py new file mode 100644 index 0000000000000000000000000000000000000000..d03d75c811e5a28f7c174f2d8a9cd567e2dd34c4 --- /dev/null +++ b/toolbench/toolenv/tools/Text_Analysis/topic_tagging/api.py @@ -0,0 +1,30 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def generate_get(text: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Detect and generate human like topics to the given text." + text: Enter some text to generate topics + + """ + url = f"https://twinword-topic-tagging.p.rapidapi.com/generate/" + querystring = {'text': text, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "twinword-topic-tagging.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Text_Analysis/toxicity_profanity_detection_ai_hate_detection_on_comments.json b/toolbench/toolenv/tools/Text_Analysis/toxicity_profanity_detection_ai_hate_detection_on_comments.json new file mode 100644 index 0000000000000000000000000000000000000000..5e00c42023cebaa9cc0f561032d5649871a3e2b2 --- /dev/null +++ b/toolbench/toolenv/tools/Text_Analysis/toxicity_profanity_detection_ai_hate_detection_on_comments.json @@ -0,0 +1,100 @@ +{ + "tool_name":"Toxicity & Profanity Detection AI-Hate Detection on Comments", + "tool_description":"Detect Toxicity in your text via AI 🔥Hate Detection Profanity Filter ✨ Accurate, Fast, and Multi-Language Support ❄️ ", + "title":"Toxicity & Profanity Detection AI-Hate Detection on Comments", + "pricing":"FREEMIUM", + "score":{ + "avgServiceLevel":100, + "avgLatency":25526, + "avgSuccessRate":100, + "popularityScore":9.2, + "__typename":"Score" + }, + "home_url":"https://rapidapi.com/NextAPI/api/toxicity-profanity-detection-ai-hate-detection-on-comments3/", + "host":"toxicity-profanity-detection-ai-hate-detection-on-comments3.p.rapidapi.com", + "api_list":[ + { + "name":"Get Toxicity Score", + "url":"https://toxicity-profanity-detection-ai-hate-detection-on-comments3.p.rapidapi.com/moderation/", + "description":"Get the TOXICITY, SEVERE_TOXICITY, IDENTITY_ATTACK, INSULT, PROFANITY, & THREAT score for the given text. The score ranges from 0 to 1.\n\nYou can provide a language (recommended), or the language will be auto-detected.\n \nYou can provide the following languages, either the language itself or the language code: English (en), Spanish (es), Arabic (ar), Chinese (zh), Russian (ru), French (fr), German (de), Japanese (ja), Portuguese (pt), Italian (it), Korean (ko), Dutch (nl), Swedish (sv), Polish (pl), Indonesian (id), Czech (cs), Hindi (hi), Hinglish (hi-Latn)", + "method":"GET", + "required_parameters":[ + { + "name":"text", + "type":"STRING", + "description":"", + "default":"This is an example text." + } + ], + "optional_parameters":[ + { + "name":"language", + "type":"STRING", + "description":"", + "default":"english" + } + ], + "code":"import requests\n\nurl = \"https://toxicity-profanity-detection-ai-hate-detection-on-comments3.p.rapidapi.com/moderation/\"\nquerystring = {\"text\": text, \"language\": language}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"toxicity-profanity-detection-ai-hate-detection-on-comments3.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":200, + "body":{ + "attributes":{ + "IDENTITY_ATTACK":0.01857083, + "THREAT":0.0089712385, + "PROFANITY":0.40185395, + "TOXICITY":0.5885171, + "SEVERE_TOXICITY":0.023076924, + "INSULT":0.5130944 + }, + "languages":[ + "en" + ], + "detectedLanguages":[ + "en", + "es", + "ru" + ] + }, + "headers":{}, + "schema":{ + "type":"object", + "properties":{ + "attributes":{ + "type":"object", + "properties":{ + "IDENTITY_ATTACK":{ + "type":"number" + }, + "THREAT":{ + "type":"number" + }, + "PROFANITY":{ + "type":"number" + }, + "TOXICITY":{ + "type":"number" + }, + "SEVERE_TOXICITY":{ + "type":"number" + }, + "INSULT":{ + "type":"number" + } + } + }, + "languages":{ + "type":"array", + "items":{ + "type":"string" + } + }, + "detectedLanguages":{ + "type":"array", + "items":{ + "type":"string" + } + } + } + } + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Text_Analysis/toxicity_profanity_detection_ai_hate_detection_on_comments/api.py b/toolbench/toolenv/tools/Text_Analysis/toxicity_profanity_detection_ai_hate_detection_on_comments/api.py new file mode 100644 index 0000000000000000000000000000000000000000..2e242b71d05e64b0605dfe2351f0bf4b5e00efbc --- /dev/null +++ b/toolbench/toolenv/tools/Text_Analysis/toxicity_profanity_detection_ai_hate_detection_on_comments/api.py @@ -0,0 +1,35 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def get_toxicity_score(text: str, language: str='english', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get the TOXICITY, SEVERE_TOXICITY, IDENTITY_ATTACK, INSULT, PROFANITY, & THREAT score for the given text. The score ranges from 0 to 1. + + You can provide a language (recommended), or the language will be auto-detected. + + You can provide the following languages, either the language itself or the language code: English (en), Spanish (es), Arabic (ar), Chinese (zh), Russian (ru), French (fr), German (de), Japanese (ja), Portuguese (pt), Italian (it), Korean (ko), Dutch (nl), Swedish (sv), Polish (pl), Indonesian (id), Czech (cs), Hindi (hi), Hinglish (hi-Latn)" + + """ + url = f"https://toxicity-profanity-detection-ai-hate-detection-on-comments3.p.rapidapi.com/moderation/" + querystring = {'text': text, } + if language: + querystring['language'] = language + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "toxicity-profanity-detection-ai-hate-detection-on-comments3.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Text_Analysis/translator.json b/toolbench/toolenv/tools/Text_Analysis/translator.json new file mode 100644 index 0000000000000000000000000000000000000000..c58d97988aedf42412244c31300e77bb4f07514f --- /dev/null +++ b/toolbench/toolenv/tools/Text_Analysis/translator.json @@ -0,0 +1,70 @@ +{ + "product_id": "api_0d3bb6c6-9dc4-4c7e-b81f-6141d886c18e", + "tool_description": "Translate any text you want with our Translator; we support ~100 languages. Please note that the expected time for processing a request can be 10-30 seconds during the beta testing period.", + "home_url": "https://rapidapi.com/ayfie-ayfie-default/api/translator82/", + "name": "Translator", + "title": "Translator", + "pricing": "FREE", + "tool_name": "Translator", + "score": { + "avgServiceLevel": 99, + "avgLatency": 4958, + "avgSuccessRate": 97, + "popularityScore": 9.5, + "__typename": "Score" + }, + "host": "translator82.p.rapidapi.com", + "api_list": [ + { + "name": "translate_language", + "url": "https://translator82.p.rapidapi.com/api/translate", + "description": "Translate the provided text into the chosen language. The input language is auto-detected.", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://translator82.p.rapidapi.com/api/translate\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"translator82.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://translator82.p.rapidapi.com/api/translate\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"translator82.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "title": "Response", + "required": [ + "result", + "model_used", + "time" + ], + "type": "object", + "properties": { + "result": { + "title": "Result", + "anyOf": [ + { + "type": "string" + }, + { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + { + "type": "object", + "additionalProperties": { + "type": "object" + } + } + ] + }, + "model_used": { + "title": "Model Used", + "type": "string" + }, + "time": { + "title": "Time", + "type": "string" + } + } + } + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Text_Analysis/treediff.json b/toolbench/toolenv/tools/Text_Analysis/treediff.json new file mode 100644 index 0000000000000000000000000000000000000000..3ba8c17f4ae59bd2180162422a6cee47297956e1 --- /dev/null +++ b/toolbench/toolenv/tools/Text_Analysis/treediff.json @@ -0,0 +1,45 @@ +{ + "product_id": "api_9cb68b2a-09c6-4a16-a9d6-0566365d7c6c", + "tool_description": "Human-readable text comparisons, 2 and 3-way diff, merge and more.", + "home_url": "https://rapidapi.com/treediff-treediff-default/api/treediff/", + "name": "Treediff", + "title": "Treediff", + "pricing": "FREEMIUM", + "tool_name": "Treediff", + "score": { + "avgServiceLevel": 100, + "avgLatency": 832, + "avgSuccessRate": 100, + "popularityScore": 9, + "__typename": "Score" + }, + "host": "treediff.p.rapidapi.com", + "api_list": [ + { + "name": "merge", + "url": "https://treediff.p.rapidapi.com/merge", + "description": "Request the 3-way merge between a `head`, a `compare` and a `base` value.\nThe `base` value serves as the \"common ancestor\".", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://treediff.p.rapidapi.com/merge\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"treediff.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://treediff.p.rapidapi.com/merge\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"treediff.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": {} + }, + { + "name": "diff", + "url": "https://treediff.p.rapidapi.com/diff", + "description": "Request diffs between a `head` and a `compare` and optional `base` value.\nAdding a `base` param triggers the 3-way diff with `base` as the \"common ancestor\".", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://treediff.p.rapidapi.com/diff\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"treediff.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://treediff.p.rapidapi.com/diff\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"treediff.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": {} + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Text_Analysis/turbo_nlp.json b/toolbench/toolenv/tools/Text_Analysis/turbo_nlp.json new file mode 100644 index 0000000000000000000000000000000000000000..4e387baad6351aead06cffe7b365bb6200f9e2b5 --- /dev/null +++ b/toolbench/toolenv/tools/Text_Analysis/turbo_nlp.json @@ -0,0 +1,125 @@ +{ + "product_id": "api_bffbac58-cddb-47d9-9fb3-fc038d585e1c", + "tool_description": "Your Swiss army knife for NLP! Text summarization, sentiment check, text readability analysis, named entity extraction, segmentation, tokenization, SEO slug creation and much more.", + "home_url": "https://rapidapi.com/sharpcode/api/turbo-nlp/", + "name": "Turbo NLP", + "title": "Turbo NLP", + "pricing": "FREEMIUM", + "tool_name": "Turbo NLP", + "score": null, + "host": "turbo-nlp.p.rapidapi.com", + "api_list": [ + { + "name": "Check Sentiment", + "url": "https://turbo-nlp.p.rapidapi.com/CheckSentiment", + "description": "This endpoint checks sentiment of the provided text", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://turbo-nlp.p.rapidapi.com/CheckSentiment\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"turbo-nlp.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://turbo-nlp.p.rapidapi.com/CheckSentiment\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"turbo-nlp.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "NER", + "url": "https://turbo-nlp.p.rapidapi.com/NER", + "description": "Accurate named-entity recognition", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://turbo-nlp.p.rapidapi.com/NER\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"turbo-nlp.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://turbo-nlp.p.rapidapi.com/NER\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"turbo-nlp.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "Segment", + "url": "https://turbo-nlp.p.rapidapi.com/Segment", + "description": "Segment a text into senteces. Extremely accurate!", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://turbo-nlp.p.rapidapi.com/Segment\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"turbo-nlp.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://turbo-nlp.p.rapidapi.com/Segment\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"turbo-nlp.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "Tokenize", + "url": "https://turbo-nlp.p.rapidapi.com/Tokenize", + "description": "Tokenizes text including the non-word character spans.", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://turbo-nlp.p.rapidapi.com/Tokenize\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"turbo-nlp.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://turbo-nlp.p.rapidapi.com/Tokenize\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"turbo-nlp.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "Detect Language", + "url": "https://turbo-nlp.p.rapidapi.com/DetectLanguage", + "description": "This endpoint tries to detect language of a text", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://turbo-nlp.p.rapidapi.com/DetectLanguage\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"turbo-nlp.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://turbo-nlp.p.rapidapi.com/DetectLanguage\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"turbo-nlp.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "get": { + "type": "string" + }, + "parameters": { + "type": "array" + }, + "errors": { + "type": "array" + }, + "results": { + "type": "integer" + }, + "response": { + "type": "array", + "items": { + "type": "object" + } + } + } + } + }, + { + "name": "Create Slug", + "url": "https://turbo-nlp.p.rapidapi.com/CreateSlug", + "description": "Create a SEO-friendly slug from a headline", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://turbo-nlp.p.rapidapi.com/CreateSlug\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"turbo-nlp.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://turbo-nlp.p.rapidapi.com/CreateSlug\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"turbo-nlp.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "Test Readability", + "url": "https://turbo-nlp.p.rapidapi.com/TestReadability", + "description": "This endpoints take a text and returns readbility scores.", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://turbo-nlp.p.rapidapi.com/TestReadability\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"turbo-nlp.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://turbo-nlp.p.rapidapi.com/TestReadability\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"turbo-nlp.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "Summarize Text", + "url": "https://turbo-nlp.p.rapidapi.com/SummarizeText", + "description": "This endpoint takes a long text and creates a summary.", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://turbo-nlp.p.rapidapi.com/SummarizeText\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"turbo-nlp.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://turbo-nlp.p.rapidapi.com/SummarizeText\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"turbo-nlp.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Text_Analysis/twinword_text_analysis_bundle.json b/toolbench/toolenv/tools/Text_Analysis/twinword_text_analysis_bundle.json new file mode 100644 index 0000000000000000000000000000000000000000..19c63cba1b1e6ace9ff615ad49c7cd80bd89860f --- /dev/null +++ b/toolbench/toolenv/tools/Text_Analysis/twinword_text_analysis_bundle.json @@ -0,0 +1,300 @@ +{ + "product_id": "55389e16e4b082eab6ddd7f3", + "tool_description": "One API for all your text analysis needs. Sentiment Analysis, Topic Tagging, Lemmatizer, and much more. Various NLP tools all with one plan. Use natural language processing to analyze and understand human sentences.", + "home_url": "https://rapidapi.com/twinword/api/twinword-text-analysis-bundle/", + "name": "Twinword Text Analysis Bundle", + "title": "Twinword Text Analysis Bundle", + "pricing": "FREEMIUM", + "tool_name": "Twinword Text Analysis Bundle", + "score": { + "avgServiceLevel": 100, + "avgLatency": 240, + "avgSuccessRate": 100, + "popularityScore": 9.8, + "__typename": "Score" + }, + "host": "twinword-twinword-bundle-v1.p.rapidapi.com", + "api_list": [ + { + "name": "Recommend (post)", + "url": "https://twinword-twinword-bundle-v1.p.rapidapi.com/category_recommend/", + "description": "Recommend highly related categories for e-commerce and other uses.", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://twinword-twinword-bundle-v1.p.rapidapi.com/category_recommend/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"twinword-twinword-bundle-v1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://twinword-twinword-bundle-v1.p.rapidapi.com/category_recommend/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"twinword-twinword-bundle-v1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "properties": { + "author": { + "type": "string" + }, + "categories": { + "items": { + "type": "string" + }, + "type": "array" + }, + "categories_scored": { + "properties": { + "Coffee": { + "type": "integer" + }, + "Coffee Decanter Warmers": { + "type": "integer" + }, + "Coffee Decanters": { + "type": "integer" + }, + "Coffee Filter Baskets": { + "type": "integer" + }, + "Coffee Filters": { + "type": "integer" + }, + "Coffee Maker & Espresso Machine Accessories": { + "type": "integer" + }, + "Coffee Maker Water Filters": { + "type": "integer" + }, + "Coffee Pods": { + "type": "integer" + }, + "Frothing Pitchers": { + "type": "integer" + }, + "Stovetop Espresso Pot Parts": { + "type": "integer" + } + }, + "type": "object" + }, + "email": { + "format": "email", + "type": "string" + }, + "keywords": { + "items": { + "type": "string" + }, + "type": "array" + }, + "keywords_scored": { + "properties": { + "coffee": { + "type": "integer" + }, + "maker": { + "type": "integer" + } + }, + "type": "object" + }, + "result_code": { + "format": "color", + "type": "string" + }, + "result_msg": { + "type": "string" + }, + "taxonomy_set": { + "type": "string" + }, + "version": { + "type": "string" + } + }, + "type": "object" + } + }, + { + "name": "Extract (post)", + "url": "https://twinword-twinword-bundle-v1.p.rapidapi.com/lemma_extract/", + "description": "Return the root of a word or roots of a string of words.", + "method": "POST", + "required_parameters": [ + { + "name": "text", + "type": "STRING", + "description": "Enter some text to extract roots (maximum 200 words or 3,000 characters)", + "default": "The frogs hopped from rock to rock." + } + ], + "optional_parameters": [ + { + "name": "flag", + "type": "STRING", + "description": "Pass an optional flag to change output. If \"VALID_TOKENS_ONLY\" is passed, an array list is returned with only valid lemmas in the order found in the string passed in the text parameter. If \"VALID_TOKENS_ONLY_ORDER_BY_OCCURRENCE\" is passed, an array list is returned with only valid lemmas in the order of occurrence with the most occurring lemma first. If \"VALID_TOKENS_ONLY_ORDER_BY_OCCURRENCE_SHOW_COUNT\" (default) is passed, an array list is returned with only valid lemmas in the order of occurrence with the most occurring lemma first, but with the lemma in the key and the count in the value. If \"ALL_TOKENS\" is passed, an array list is returned with all the words in the string passed in the text parameter with words that could be lemmatized as lemmas and words that could not be lemmatized left as is. If \"ALL_TOKENS_INVALID_LOWERCASED\" is passed, an array list is returned with all the words in the string passed in the text parameter with words that could be lemmatized as lemmas and words that could not be lemmatized left as is, but lowercased. If \"ALL_TOKENS_INVALID_EMPTY_STRING\" is passed, an array list is returned with all the words in the string passed in the text parameter with words that could be lemmatized as lemmas and words that could not be lemmatized as empty-string items in the array. If \"ALL_TOKENS_INVALID_NEGATIVE_ONE\" is passed, an array list is returned with all the words in the string passed in the text parameter with words that could be lemmatized as lemmas and words that could not be lemmatized as -1. If \"ALL_TOKENS_ORDER_BY_OCCURRENCE\" is passed, an array list is returned with all the words in the string passed in the text parameter, with words that could be lemmatized as lemmas and words that could not be lemmatized left as is, all in the order of occurrence with the most occurring first. If \"ALL_TOKENS_ORDER_BY_OCCURRENCE_SHOW_COUNT\" is passed, an array list is returned with all the words in the string passed in the text parameter, with words that could be lemmatized as lemmas and words that could not be lemmatized left as is, all in the order of occurrence with the most occurring first, but with the words and lemmas in the key and the count in the value.", + "default": "" + }, + { + "name": "exclude_non_content_words", + "type": "BOOLEAN", + "description": "Optional boolean to exclude non content words (ie. \"the\", \"is\", \"take\")", + "default": false + } + ], + "code": "import requests\n\nurl = \"https://twinword-twinword-bundle-v1.p.rapidapi.com/lemma_extract/\"\nquerystring = {\"text\": \"The frogs hopped from rock to rock.\", \"flag\": \"\", \"exclude_non_content_words\": false}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"twinword-twinword-bundle-v1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://twinword-twinword-bundle-v1.p.rapidapi.com/lemma_extract/\"\nquerystring = {\"text\": \"The frogs hopped from rock to rock.\", \"flag\": \"\", \"exclude_non_content_words\": false}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"twinword-twinword-bundle-v1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": {} + }, + { + "name": "Classify (post)", + "url": "https://twinword-twinword-bundle-v1.p.rapidapi.com/text_classify/", + "description": "Classify text into product categories or contact us to customize and use your own category sets. Enter some text to find its related product categories:", + "method": "POST", + "required_parameters": [ + { + "name": "text", + "type": "STRING", + "description": "", + "default": "Protect your back with these ergonomic office chairs. These adjustable chairs are cushioned and molded to ensure comfort over long hours. Some options feature breathable backs that let air flow through to keep you cool and add to your comfort level on hot days." + } + ], + "optional_parameters": [ + { + "name": "title", + "type": "STRING", + "description": "Enter title of text (optional).", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://twinword-twinword-bundle-v1.p.rapidapi.com/text_classify/\"\nquerystring = {\"title\": \"\", \"text\": \"Protect your back with these ergonomic office chairs. These adjustable chairs are cushioned and molded to ensure comfort over long hours. Some options feature breathable backs that let air flow through to keep you cool and add to your comfort level on hot days.\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"twinword-twinword-bundle-v1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://twinword-twinword-bundle-v1.p.rapidapi.com/text_classify/\"\nquerystring = {\"title\": \"\", \"text\": \"Protect your back with these ergonomic office chairs. These adjustable chairs are cushioned and molded to ensure comfort over long hours. Some options feature breathable backs that let air flow through to keep you cool and add to your comfort level on hot days.\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"twinword-twinword-bundle-v1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": {} + }, + { + "name": "Analyze (post)", + "url": "https://twinword-twinword-bundle-v1.p.rapidapi.com/sentiment_analyze/", + "description": "Return sentiment analysis results with score for the given text.", + "method": "POST", + "required_parameters": [ + { + "name": "text", + "type": "STRING", + "description": "Enter some text to analyze (maximum 100 words or 1,500 characters)", + "default": "great value in its price range!" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://twinword-twinword-bundle-v1.p.rapidapi.com/sentiment_analyze/\"\nquerystring = {\"text\": \"great value in its price range!\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"twinword-twinword-bundle-v1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://twinword-twinword-bundle-v1.p.rapidapi.com/sentiment_analyze/\"\nquerystring = {\"text\": \"great value in its price range!\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"twinword-twinword-bundle-v1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": {} + }, + { + "name": "Generate (post)", + "url": "https://twinword-twinword-bundle-v1.p.rapidapi.com/topic_generate/", + "description": "Detect and generate human like topics to the given text.", + "method": "POST", + "required_parameters": [ + { + "name": "text", + "type": "STRING", + "description": "Enter some text to generate topics (maximum 200 words or 3,000 characters)", + "default": "Computer science is the scientific and practical approach to computation and its applications. It is the systematic study of the feasibility, structure, expression, and mechanization of the methodical procedures that underlie the acquisition, representation, processing, storage, communication of, and access to information." + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://twinword-twinword-bundle-v1.p.rapidapi.com/topic_generate/\"\nquerystring = {\"text\": \"Computer science is the scientific and practical approach to computation and its applications. It is the systematic study of the feasibility, structure, expression, and mechanization of the methodical procedures that underlie the acquisition, representation, processing, storage, communication of, and access to information.\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"twinword-twinword-bundle-v1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://twinword-twinword-bundle-v1.p.rapidapi.com/topic_generate/\"\nquerystring = {\"text\": \"Computer science is the scientific and practical approach to computation and its applications. It is the systematic study of the feasibility, structure, expression, and mechanization of the methodical procedures that underlie the acquisition, representation, processing, storage, communication of, and access to information.\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"twinword-twinword-bundle-v1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": {} + }, + { + "name": "Text (post)", + "url": "https://twinword-twinword-bundle-v1.p.rapidapi.com/score_text/", + "description": "Evaluate the difficulty level of a word, sentence, or paragraph.", + "method": "POST", + "required_parameters": [ + { + "name": "text", + "type": "STRING", + "description": "Input a some text to evaluate its difficulty level (maximum 200 words or 3,000 characters)", + "default": "The hippocampus is a major component of the brains of humans and other vertebrates. It belongs to the limbic system and plays important roles in the consolidation of information from short-term memory to long-term memory and spatial navigation. Humans and other mammals have two hippocampi, one in each side of the brain. The hippocampus is a part of the cerebral cortex; and in primates it is located in the medial temporal lobe, underneath the cortical surface. It contains two main interlocking parts: Ammon's horn and the dentate gyrus." + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://twinword-twinword-bundle-v1.p.rapidapi.com/score_text/\"\nquerystring = {\"text\": \"The hippocampus is a major component of the brains of humans and other vertebrates. It belongs to the limbic system and plays important roles in the consolidation of information from short-term memory to long-term memory and spatial navigation. Humans and other mammals have two hippocampi, one in each side of the brain. The hippocampus is a part of the cerebral cortex; and in primates it is located in the medial temporal lobe, underneath the cortical surface. It contains two main interlocking parts: Ammon's horn and the dentate gyrus.\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"twinword-twinword-bundle-v1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://twinword-twinword-bundle-v1.p.rapidapi.com/score_text/\"\nquerystring = {\"text\": \"The hippocampus is a major component of the brains of humans and other vertebrates. It belongs to the limbic system and plays important roles in the consolidation of information from short-term memory to long-term memory and spatial navigation. Humans and other mammals have two hippocampi, one in each side of the brain. The hippocampus is a part of the cerebral cortex; and in primates it is located in the medial temporal lobe, underneath the cortical surface. It contains two main interlocking parts: Ammon's horn and the dentate gyrus.\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"twinword-twinword-bundle-v1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": {} + }, + { + "name": "Text Similarity (post)", + "url": "https://twinword-twinword-bundle-v1.p.rapidapi.com/text_similarity/", + "description": "Evaluate the similarity of two words, sentences, or paragraphs.", + "method": "POST", + "required_parameters": [ + { + "name": "text2", + "type": "STRING", + "description": "Input a second text to compare its similarity with the first text.", + "default": "An important part of the brains of humans and other vertebrates is the hippocampus. It's part of the limbic system and moves information from short-term to long-term memory. It also helps us move around. Humans and other mammals have two hippocampi, one on each side. The hippocampus is a part of the cerebral cortex; and in primates it is found in the medial temporal lobe, beneathe the cortical surface. It has two main interlocking parts: Ammon's horn and the dentate gyrus." + }, + { + "name": "text1", + "type": "STRING", + "description": "Enter the first text to compare.", + "default": "The hippocampus is a major component of the brains of humans and other vertebrates. It belongs to the limbic system and plays important roles in the consolidation of information from short-term memory to long-term memory and spatial navigation. Humans and other mammals have two hippocampi, one in each side of the brain. The hippocampus is a part of the cerebral cortex; and in primates it is located in the medial temporal lobe, underneath the cortical surface. It contains two main interlocking parts: Ammon's horn and the dentate gyrus." + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://twinword-twinword-bundle-v1.p.rapidapi.com/text_similarity/\"\nquerystring = {\"text2\": \"An important part of the brains of humans and other vertebrates is the hippocampus. It's part of the limbic system and moves information from short-term to long-term memory. It also helps us move around. Humans and other mammals have two hippocampi, one on each side. The hippocampus is a part of the cerebral cortex; and in primates it is found in the medial temporal lobe, beneathe the cortical surface. It has two main interlocking parts: Ammon's horn and the dentate gyrus.\", \"text1\": \"The hippocampus is a major component of the brains of humans and other vertebrates. It belongs to the limbic system and plays important roles in the consolidation of information from short-term memory to long-term memory and spatial navigation. Humans and other mammals have two hippocampi, one in each side of the brain. The hippocampus is a part of the cerebral cortex; and in primates it is located in the medial temporal lobe, underneath the cortical surface. It contains two main interlocking parts: Ammon's horn and the dentate gyrus.\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"twinword-twinword-bundle-v1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://twinword-twinword-bundle-v1.p.rapidapi.com/text_similarity/\"\nquerystring = {\"text2\": \"An important part of the brains of humans and other vertebrates is the hippocampus. It's part of the limbic system and moves information from short-term to long-term memory. It also helps us move around. Humans and other mammals have two hippocampi, one on each side. The hippocampus is a part of the cerebral cortex; and in primates it is found in the medial temporal lobe, beneathe the cortical surface. It has two main interlocking parts: Ammon's horn and the dentate gyrus.\", \"text1\": \"The hippocampus is a major component of the brains of humans and other vertebrates. It belongs to the limbic system and plays important roles in the consolidation of information from short-term memory to long-term memory and spatial navigation. Humans and other mammals have two hippocampi, one in each side of the brain. The hippocampus is a part of the cerebral cortex; and in primates it is located in the medial temporal lobe, underneath the cortical surface. It contains two main interlocking parts: Ammon's horn and the dentate gyrus.\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"twinword-twinword-bundle-v1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": {} + }, + { + "name": "Word (post)", + "url": "https://twinword-twinword-bundle-v1.p.rapidapi.com/score_word/", + "description": "Evaluate the difficulty level of a word.", + "method": "POST", + "required_parameters": [ + { + "name": "entry", + "type": "STRING", + "description": "Input a word to evaluate its difficulty level", + "default": "sound" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://twinword-twinword-bundle-v1.p.rapidapi.com/score_word/\"\nquerystring = {\"entry\": \"sound\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"twinword-twinword-bundle-v1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://twinword-twinword-bundle-v1.p.rapidapi.com/score_word/\"\nquerystring = {\"entry\": \"sound\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"twinword-twinword-bundle-v1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": {} + }, + { + "name": "Word Associations (post)", + "url": "https://twinword-twinword-bundle-v1.p.rapidapi.com/word_associations/", + "description": "Get word associations with semantic distance score.", + "method": "POST", + "required_parameters": [ + { + "name": "entry", + "type": "STRING", + "description": "A word, phrase, or paragraph.", + "default": "sound" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://twinword-twinword-bundle-v1.p.rapidapi.com/word_associations/\"\nquerystring = {\"entry\": \"sound\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"twinword-twinword-bundle-v1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://twinword-twinword-bundle-v1.p.rapidapi.com/word_associations/\"\nquerystring = {\"entry\": \"sound\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"twinword-twinword-bundle-v1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": {} + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Text_Analysis/twinword_text_analysis_bundle/api.py b/toolbench/toolenv/tools/Text_Analysis/twinword_text_analysis_bundle/api.py new file mode 100644 index 0000000000000000000000000000000000000000..2b812686c01e698857858b3df6e07438a8580c90 --- /dev/null +++ b/toolbench/toolenv/tools/Text_Analysis/twinword_text_analysis_bundle/api.py @@ -0,0 +1,417 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def analyze_get(text: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Return sentiment analysis results with score for the given text." + text: Enter some text to analyze (maximum 100 words or 1,500 characters) + + """ + url = f"https://twinword-twinword-bundle-v1.p.rapidapi.com/sentiment_analyze/" + querystring = {'text': text, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "twinword-twinword-bundle-v1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def association(entry: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get the associations of a word." + entry: Type a word to get its associations + + """ + url = f"https://twinword-twinword-bundle-v1.p.rapidapi.com/word_association/" + querystring = {'entry': entry, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "twinword-twinword-bundle-v1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def classify_get(text: str, title: str=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Classify text into product categories or contact us to customize and use your own category sets. Enter some text to find its related product categories:" + text: Enter some text to find related categories. + title: Enter title of text (optional). + + """ + url = f"https://twinword-twinword-bundle-v1.p.rapidapi.com/text_classify/" + querystring = {'text': text, } + if title: + querystring['title'] = title + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "twinword-twinword-bundle-v1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def definition(entry: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get the definitions of a word." + entry: Type a word to get its definitions + + """ + url = f"https://twinword-twinword-bundle-v1.p.rapidapi.com/word_definition/" + querystring = {'entry': entry, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "twinword-twinword-bundle-v1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def definition_kr(entry: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get the Korean definitions of a word." + entry: Type a word to get its Korean definitions + + """ + url = f"https://twinword-twinword-bundle-v1.p.rapidapi.com/word_definition_kr/" + querystring = {'entry': entry, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "twinword-twinword-bundle-v1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def difficulty(entry: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get the difficulty level of a word." + entry: Type a word to get its difficulty level + + """ + url = f"https://twinword-twinword-bundle-v1.p.rapidapi.com/word_difficulty/" + querystring = {'entry': entry, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "twinword-twinword-bundle-v1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def exam_history(entry: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "See which exams a word has been on" + entry: Type a word to see which exams it has been on + + """ + url = f"https://twinword-twinword-bundle-v1.p.rapidapi.com/word_examhistory/" + querystring = {'entry': entry, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "twinword-twinword-bundle-v1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def example(entry: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "See examples of a word used in a sentence" + entry: Type a word to see examples of it used in a sentence + + """ + url = f"https://twinword-twinword-bundle-v1.p.rapidapi.com/word_example/" + querystring = {'entry': entry, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "twinword-twinword-bundle-v1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def extract_get(text: str, flag: str=None, exclude_non_content_words: bool=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Return the root of a word or roots of a string of words." + text: Enter some text to extract roots (maximum 200 words or 3,000 characters) + flag: Pass an optional flag to change output. If "VALID_TOKENS_ONLY" is passed, an array list is returned with only valid lemmas in the order found in the string passed in the text parameter. If "VALID_TOKENS_ONLY_ORDER_BY_OCCURRENCE" is passed, an array list is returned with only valid lemmas in the order of occurrence with the most occurring lemma first. If "VALID_TOKENS_ONLY_ORDER_BY_OCCURRENCE_SHOW_COUNT" (default) is passed, an array list is returned with only valid lemmas in the order of occurrence with the most occurring lemma first, but with the lemma in the key and the count in the value. If "ALL_TOKENS" is passed, an array list is returned with all the words in the string passed in the text parameter with words that could be lemmatized as lemmas and words that could not be lemmatized left as is. If "ALL_TOKENS_INVALID_LOWERCASED" is passed, an array list is returned with all the words in the string passed in the text parameter with words that could be lemmatized as lemmas and words that could not be lemmatized left as is, but lowercased. If "ALL_TOKENS_INVALID_EMPTY_STRING" is passed, an array list is returned with all the words in the string passed in the text parameter with words that could be lemmatized as lemmas and words that could not be lemmatized as empty-string items in the array. If "ALL_TOKENS_INVALID_NEGATIVE_ONE" is passed, an array list is returned with all the words in the string passed in the text parameter with words that could be lemmatized as lemmas and words that could not be lemmatized as -1. If "ALL_TOKENS_ORDER_BY_OCCURRENCE" is passed, an array list is returned with all the words in the string passed in the text parameter, with words that could be lemmatized as lemmas and words that could not be lemmatized left as is, all in the order of occurrence with the most occurring first. If "ALL_TOKENS_ORDER_BY_OCCURRENCE_SHOW_COUNT" is passed, an array list is returned with all the words in the string passed in the text parameter, with words that could be lemmatized as lemmas and words that could not be lemmatized left as is, all in the order of occurrence with the most occurring first, but with the words and lemmas in the key and the count in the value. + exclude_non_content_words: Optional boolean to exclude non content words (ie. "the", "is", "take") + + """ + url = f"https://twinword-twinword-bundle-v1.p.rapidapi.com/lemma_extract/" + querystring = {'text': text, } + if flag: + querystring['flag'] = flag + if exclude_non_content_words: + querystring['exclude_non_content_words'] = exclude_non_content_words + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "twinword-twinword-bundle-v1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def generate_get(text: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Detect and generate human like topics to the given text." + text: Enter some text to generate topics (maximum 200 words or 3,000 characters) + + """ + url = f"https://twinword-twinword-bundle-v1.p.rapidapi.com/topic_generate/" + querystring = {'text': text, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "twinword-twinword-bundle-v1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def recommend_get(text: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Recommend highly related categories for e-commerce and other uses." + text: Enter some text to find related categories: + + """ + url = f"https://twinword-twinword-bundle-v1.p.rapidapi.com/category_recommend/" + querystring = {'text': text, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "twinword-twinword-bundle-v1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def reference(entry: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get the broad terms, narrow terms, related terms, evocations, synonyms, associations, and derived terms of a word." + entry: Type a word to get its broad terms, narrow terms, related terms, evocations, synonyms, associations, and derived terms + + """ + url = f"https://twinword-twinword-bundle-v1.p.rapidapi.com/word_reference/" + querystring = {'entry': entry, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "twinword-twinword-bundle-v1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def text_get(text: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Evaluate the difficulty level of a word, sentence, or paragraph." + text: Input a some text to evaluate its difficulty level (maximum 200 words or 3,000 characters) + + """ + url = f"https://twinword-twinword-bundle-v1.p.rapidapi.com/score_text/" + querystring = {'text': text, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "twinword-twinword-bundle-v1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def text_similarity_get(text1: str, text2: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Evaluate the similarity of two words, sentences, or paragraphs." + text1: Input the first text to compare. + text2: Input a second text to compare its similarity with the first text. + + """ + url = f"https://twinword-twinword-bundle-v1.p.rapidapi.com/text_similarity/" + querystring = {'text1': text1, 'text2': text2, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "twinword-twinword-bundle-v1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def theme(entry: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get the themes of a word." + entry: Type a word to get its themes + + """ + url = f"https://twinword-twinword-bundle-v1.p.rapidapi.com/word_theme/" + querystring = {'entry': entry, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "twinword-twinword-bundle-v1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def type_1(level: int, area: str='sat', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Customized word association quiz for game and e-learning software." + level: Select the difficulty level of the test (1 - 10) + area: Select a test to generate quiz questions and answers (es, ms, hs, ksat, toeic, toefl, teps, sat, ielts, gre, gmat, overall) + + """ + url = f"https://twinword-twinword-bundle-v1.p.rapidapi.com/quiz_type1/" + querystring = {'level': level, } + if area: + querystring['area'] = area + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "twinword-twinword-bundle-v1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def word_get(entry: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Evaluate the difficulty level of a word." + entry: Input a word to evaluate its difficulty level + + """ + url = f"https://twinword-twinword-bundle-v1.p.rapidapi.com/score_word/" + querystring = {'entry': entry, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "twinword-twinword-bundle-v1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def word_associations_get(entry: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get word associations with semantic distance score." + entry: A word, phrase, or paragraph. + + """ + url = f"https://twinword-twinword-bundle-v1.p.rapidapi.com/word_associations/" + querystring = {'entry': entry, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "twinword-twinword-bundle-v1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Text_Analysis/udyog_aadhaar_ocr.json b/toolbench/toolenv/tools/Text_Analysis/udyog_aadhaar_ocr.json new file mode 100644 index 0000000000000000000000000000000000000000..9b0e9a24ec611ee029f4726fb4079eaaaf6e41b4 --- /dev/null +++ b/toolbench/toolenv/tools/Text_Analysis/udyog_aadhaar_ocr.json @@ -0,0 +1,30 @@ +{ + "product_id": "api_fdf4f324-657f-40eb-a4fc-4109290dc717", + "tool_description": "Extraction of details from image of an Udyog Aadhaar Certificate in real-time.", + "home_url": "https://rapidapi.com/idfy-idfy-default/api/udyog-aadhaar-ocr/", + "name": "Udyog Aadhaar OCR", + "title": "Udyog Aadhaar OCR", + "pricing": "FREEMIUM", + "tool_name": "Udyog Aadhaar OCR", + "score": { + "avgServiceLevel": 100, + "avgLatency": 1505, + "avgSuccessRate": 57, + "popularityScore": 8.7, + "__typename": "Score" + }, + "host": "udyog-aadhaar-ocr.p.rapidapi.com", + "api_list": [ + { + "name": "Udyog Aadhaar OCR", + "url": "https://udyog-aadhaar-ocr.p.rapidapi.com/v3/tasks/sync/extract/ind_udyog_aadhaar", + "description": "Extraction of details from image of an Udyog Aadhaar Certificate in real-time.", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://udyog-aadhaar-ocr.p.rapidapi.com/v3/tasks/sync/extract/ind_udyog_aadhaar\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"udyog-aadhaar-ocr.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://udyog-aadhaar-ocr.p.rapidapi.com/v3/tasks/sync/extract/ind_udyog_aadhaar\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"udyog-aadhaar-ocr.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Text_Analysis/ultimate_word_paraphraser_rephraser_article_fiesta.json b/toolbench/toolenv/tools/Text_Analysis/ultimate_word_paraphraser_rephraser_article_fiesta.json new file mode 100644 index 0000000000000000000000000000000000000000..77b0603285b70c9ea1261c98cc909fbd3b6d0ca6 --- /dev/null +++ b/toolbench/toolenv/tools/Text_Analysis/ultimate_word_paraphraser_rephraser_article_fiesta.json @@ -0,0 +1,26 @@ +{ + "product_id": "api_ccee27dd-ccf4-4bda-a9fd-ff5c4bade253", + "tool_description": "Create perfect paraphrases for any text. High quality, and easily defeats AI detection checks when using technologies like GPT", + "home_url": "https://rapidapi.com/expertdifficulty/api/ultimate-word-paraphraser-rephraser-article-fiesta/", + "name": "Ultimate Word Paraphraser / Rephraser - Article Fiesta", + "title": "Ultimate Word Paraphraser / Rephraser - Article Fiesta", + "pricing": "FREEMIUM", + "tool_name": "Ultimate Word Paraphraser / Rephraser - Article Fiesta", + "score": null, + "host": "ultimate-word-paraphraser-rephraser-article-fiesta.p.rapidapi.com", + "api_list": [ + { + "name": "Paraphrase", + "url": "https://ultimate-word-paraphraser-rephraser-article-fiesta.p.rapidapi.com/paraphrase", + "description": "This is the endpoint you use to get your paraphrased data back.\n\nUltimately this can accept inputs or any length, however the longer you have as input the longer it will take to paraphrase. I would suggest breaking it down into sentences, but its up to you.\n\nResults can be tweaked to provide multiple inline paraphrases, or you can opt for just a single one.", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://ultimate-word-paraphraser-rephraser-article-fiesta.p.rapidapi.com/paraphrase\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"ultimate-word-paraphraser-rephraser-article-fiesta.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://ultimate-word-paraphraser-rephraser-article-fiesta.p.rapidapi.com/paraphrase\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"ultimate-word-paraphraser-rephraser-article-fiesta.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": {} + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Text_Analysis/ultra_fast_translation.json b/toolbench/toolenv/tools/Text_Analysis/ultra_fast_translation.json new file mode 100644 index 0000000000000000000000000000000000000000..73513a8c52c7803bdf4fbd5f1e7f9c0d89173f0b --- /dev/null +++ b/toolbench/toolenv/tools/Text_Analysis/ultra_fast_translation.json @@ -0,0 +1,32 @@ +{ + "product_id": "api_3076178c-5cfc-4692-8c93-e5e3da3fd452", + "tool_description": "We developed a Ultra Fast Translation API that allow you translate multi texts in one fast query, wish help you improve response time and your service quality. \tThe Ultra Fast Translation API makes advantage of Google's neural machine translation technology to translate html, text, words, phrases, and paragraphs in real time across more than +100 languages. Example: https://codepen.io/oussamasibari/pen/JjLLxxv", + "home_url": "https://rapidapi.com/sibaridev/api/ultra-fast-translation/", + "name": "Ultra Fast Translation", + "title": "Ultra Fast Translation", + "pricing": "FREEMIUM", + "tool_name": "Ultra Fast Translation", + "score": { + "avgServiceLevel": 100, + "avgLatency": 142, + "avgSuccessRate": 100, + "popularityScore": 9.4, + "__typename": "Score" + }, + "host": "ultra-fast-translation.p.rapidapi.com", + "api_list": [ + { + "name": "Multi Line Super Fast", + "url": "https://ultra-fast-translation.p.rapidapi.com/t", + "description": "Multi Line Super Ultra Fast Translation", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://ultra-fast-translation.p.rapidapi.com/t\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"ultra-fast-translation.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://ultra-fast-translation.p.rapidapi.com/t\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"ultra-fast-translation.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": {} + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Text_Analysis/upload_image.json b/toolbench/toolenv/tools/Text_Analysis/upload_image.json new file mode 100644 index 0000000000000000000000000000000000000000..2cb5f6578f33b603995151fae3e9105cd19e1534 --- /dev/null +++ b/toolbench/toolenv/tools/Text_Analysis/upload_image.json @@ -0,0 +1,24 @@ +{ + "product_id": "api_f100cf95-45ee-4772-9ca2-f76b857d3d84", + "tool_description": "this is help to upload image", + "home_url": "https://rapidapi.com/amitkumar9717291746/api/upload_image/", + "name": "upload_image", + "title": "upload_image", + "pricing": "FREE", + "tool_name": "upload_image", + "score": null, + "host": "upload_image.p.rapidapi.com", + "api_list": [ + { + "name": "upload", + "url": "https://upload_image.p.rapidapi.comhttp://amit", + "description": "uploading Image", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://upload_image.p.rapidapi.comhttp://amit\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"upload_image.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://upload_image.p.rapidapi.comhttp://amit\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"upload_image.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Text_Analysis/urgency_ticket.json b/toolbench/toolenv/tools/Text_Analysis/urgency_ticket.json new file mode 100644 index 0000000000000000000000000000000000000000..e8dda938e98b280963f5abfcd79cf8943cd6df2d --- /dev/null +++ b/toolbench/toolenv/tools/Text_Analysis/urgency_ticket.json @@ -0,0 +1,24 @@ +{ + "product_id": "api_46c6f020-32ee-4984-ae58-162a30cce903", + "tool_description": "This API predicts if a given text ticket is urgent or not, for customer support domain.", + "home_url": "https://rapidapi.com/metatext-metatext-default/api/urgency-ticket/", + "name": "Urgency Ticket", + "title": "Urgency Ticket", + "pricing": "PAID", + "tool_name": "Urgency Ticket", + "score": null, + "host": "urgency-ticket.p.rapidapi.com", + "api_list": [ + { + "name": "Detect Ticket Urgency", + "url": "https://urgency-ticket.p.rapidapi.com/urgency", + "description": "Detects if a ticket is something urgent or not.", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://urgency-ticket.p.rapidapi.com/urgency\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"urgency-ticket.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://urgency-ticket.p.rapidapi.com/urgency\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"urgency-ticket.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Text_Analysis/url_expander.json b/toolbench/toolenv/tools/Text_Analysis/url_expander.json new file mode 100644 index 0000000000000000000000000000000000000000..0429f63192a416ba81bcef76a6bcdc9e5e5a5bc1 --- /dev/null +++ b/toolbench/toolenv/tools/Text_Analysis/url_expander.json @@ -0,0 +1,73 @@ +{ + "tool_name":"URL Expander", + "tool_description":"URL details, load-time, and title of target doc\nCheck for dead URLs", + "title":"URL Expander", + "pricing":"FREEMIUM", + "score":{ + "avgServiceLevel":99, + "avgLatency":1173, + "avgSuccessRate":99, + "popularityScore":9.4, + "__typename":"Score" + }, + "home_url":"https://rapidapi.com/logicione/api/url-expander1/", + "host":"url-expander1.p.rapidapi.com", + "api_list":[ + { + "name":"URL_Expander", + "url":"https://url-expander1.p.rapidapi.com/url_expander", + "description":"Provide short_url through Query Param.\nIf the target URL is no more active (or removed/moved) it will return \n{ target_url_alive : False }\nURL's response_time is in milliseconds", + "method":"GET", + "required_parameters":[ + { + "name":"short_url", + "type":"STRING", + "description":"Provide Shortened Url", + "default":"ihe.art/OauJBXD" + } + ], + "optional_parameters":[ + { + "name":"get_title", + "type":"STRING", + "description":"If get_title set to True, then the title of the document will be extracted from url.\nNote: Don't set this flag true if the title is not needed, to avoid slow-down", + "default":"True" + } + ], + "code":"import requests\n\nurl = \"https://url-expander1.p.rapidapi.com/url_expander\"\nquerystring = {\"get_title\": get_title, \"short_url\": short_url}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"url-expander1.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":200, + "body":{ + "target_url":"https://www.amazon.com/b/?node=3063530011&ref_=assoc_tag_ph_1394216334436&_encoding=UTF8&camp=1789&creative=9325&linkCode=pf4&tag=t3sev-20&linkId=21a4e5913f801b532c2b1546bdce17ce", + "target_url_alive":true + }, + "headers":{ + "content-type":"application/json", + "date":"Fri, 20 Nov 2020 08:57:09 GMT", + "server":"RapidAPI-1.2.6", + "via":"1.1 95302b545c6afc8c720d42e23a5b7437.cloudfront.net (CloudFront)", + "x-amz-apigw-id":"WTGz0F2lSK4FcWA=", + "x-amz-cf-id":"hegt24gz3l3bRf3ZwdepWKqimEiWbcvs5Km2_PgWjxSYfjw1W5S1cw==", + "x-amz-cf-pop":"HIO50-C2", + "x-amzn-remapped-content-length":"308", + "x-amzn-requestid":"601002bb-9562-4701-ba07-aa9f5290ae44", + "x-amzn-trace-id":"Root=1-5fb784e5-31f2368f3469456300dbf0ef;Sampled=0", + "x-cache":"Miss from cloudfront", + "x-rapidapi-region":"AWS - us-west-2", + "x-rapidapi-version":"1.2.6", + "content-length":"308", + "connection":"Close" + }, + "schema":{ + "properties":{ + "target_url":{ + "type":"string" + }, + "target_url_alive":{ + "type":"boolean" + } + }, + "type":"object" + } + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Text_Analysis/url_expander/api.py b/toolbench/toolenv/tools/Text_Analysis/url_expander/api.py new file mode 100644 index 0000000000000000000000000000000000000000..6669c986bd94f07476009f101cf17810a7af9d69 --- /dev/null +++ b/toolbench/toolenv/tools/Text_Analysis/url_expander/api.py @@ -0,0 +1,37 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def url_expander(short_url: str, get_title: str='True', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Provide short_url through Query Param. + If the target URL is no more active (or removed/moved) it will return + { target_url_alive : False } + URL's response_time is in milliseconds" + short_url: Provide Shortened Url + get_title: If get_title set to True, then the title of the document will be extracted from url. +Note: Don't set this flag true if the title is not needed, to avoid slow-down + + """ + url = f"https://url-expander1.p.rapidapi.com/url_expander" + querystring = {'short_url': short_url, } + if get_title: + querystring['get_title'] = get_title + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "url-expander1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Text_Analysis/url_metadata_opengraph.json b/toolbench/toolenv/tools/Text_Analysis/url_metadata_opengraph.json new file mode 100644 index 0000000000000000000000000000000000000000..ced12d877851db232d9f7d5bed6f1b6f1a49b1b2 --- /dev/null +++ b/toolbench/toolenv/tools/Text_Analysis/url_metadata_opengraph.json @@ -0,0 +1,49 @@ +{ + "product_id": "api_445620cb-2495-4e35-947f-0bfca9a006ae", + "tool_description": "Retrieve comprehensive site metadata effortlessly with our powerful Site Metadata API. Access a wealth of information about any web page, including OpenGraph tags, page title, description, author, image, and more. Whether you're building a content aggregator, social media tool, or SEO analytics platform, our API provides a streamlined solution to gather rich site metadata. Enrich your applications with valuable insights and enhance user experiences using our Site Metadata API.", + "home_url": "https://rapidapi.com/apicloudone/api/url-metadata-opengraph/", + "name": "Url Metadata: OpenGraph", + "title": "Url Metadata: OpenGraph", + "pricing": "FREEMIUM", + "tool_name": "Url Metadata: OpenGraph", + "score": { + "avgServiceLevel": 100, + "avgLatency": 1414, + "avgSuccessRate": 100, + "popularityScore": 8.1, + "__typename": "Score" + }, + "host": "url-metadata-opengraph.p.rapidapi.com", + "api_list": [ + { + "name": "parse", + "url": "https://url-metadata-opengraph.p.rapidapi.com/parse", + "description": " ", + "method": "GET", + "required_parameters": [ + { + "name": "url", + "type": "STRING", + "description": "Url / Endpoint", + "default": "https://example.com" + } + ], + "optional_parameters": [ + { + "name": "includeSource", + "type": "BOOLEAN", + "description": "Include downloaded website html source", + "default": true + } + ], + "code": "import requests\n\nurl = \"https://url-metadata-opengraph.p.rapidapi.com/parse\"\nquerystring = {\"includeSource\": true, \"url\": \"https://example.com\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"url-metadata-opengraph.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://url-metadata-opengraph.p.rapidapi.com/parse\"\nquerystring = {\"includeSource\": true, \"url\": \"https://example.com\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"url-metadata-opengraph.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object" + } + } + ], + "standardized_name": "url_metadata_opengraph" +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Text_Analysis/url_metadata_opengraph/api.py b/toolbench/toolenv/tools/Text_Analysis/url_metadata_opengraph/api.py new file mode 100644 index 0000000000000000000000000000000000000000..af43ef458f72a79007d104d06ad989529086d4ec --- /dev/null +++ b/toolbench/toolenv/tools/Text_Analysis/url_metadata_opengraph/api.py @@ -0,0 +1,33 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def parse(url: str, includesource: bool=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + " " + url: Url / Endpoint + includesource: Include downloaded website html source + + """ + url = f"https://url-metadata-opengraph.p.rapidapi.com/parse" + querystring = {'url': url, } + if includesource: + querystring['includeSource'] = includesource + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "url-metadata-opengraph.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Text_Analysis/url_shortener.json b/toolbench/toolenv/tools/Text_Analysis/url_shortener.json new file mode 100644 index 0000000000000000000000000000000000000000..f972b544c4bf1da28de7ccee0c358f9589f6936a --- /dev/null +++ b/toolbench/toolenv/tools/Text_Analysis/url_shortener.json @@ -0,0 +1,37 @@ +{ + "tool_name":"URL Shortener", + "tool_description":"URL Shortener shortens your URL, you just need to give your existing URL.", + "title":"URL Shortener", + "pricing":"FREE", + "score":{ + "avgServiceLevel":0, + "avgLatency":298, + "avgSuccessRate":0, + "popularityScore":0, + "__typename":"Score" + }, + "home_url":"https://rapidapi.com/adityapundir2k/api/url-shortener9/", + "host":"url-shortener9.p.rapidapi.com", + "api_list":[ + { + "name":"/shortener", + "url":"https://url-shortener9.p.rapidapi.com/", + "description":"This is the main endpoint where you will pass your original url in the query field \"prevURL=\" and you will get the shortened URL in text form.", + "method":"GET", + "required_parameters":[ + { + "name":"url", + "type":"STRING", + "description":"", + "default":"google.com" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://url-shortener9.p.rapidapi.com/\"\nquerystring = {\"url\": url}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"url-shortener9.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Text_Analysis/url_shortener/api.py b/toolbench/toolenv/tools/Text_Analysis/url_shortener/api.py new file mode 100644 index 0000000000000000000000000000000000000000..7f754ee3f61aceaecdf5829fa59723408099e3a6 --- /dev/null +++ b/toolbench/toolenv/tools/Text_Analysis/url_shortener/api.py @@ -0,0 +1,29 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def shortener(url: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "This is the main endpoint where you will pass your original url in the query field "prevURL=" and you will get the shortened URL in text form." + + """ + url = f"https://url-shortener9.p.rapidapi.com/" + querystring = {'url': url, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "url-shortener9.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Text_Analysis/urldetector.json b/toolbench/toolenv/tools/Text_Analysis/urldetector.json new file mode 100644 index 0000000000000000000000000000000000000000..fc06d264b84eb336dde90c0ea768c8159939cd3a --- /dev/null +++ b/toolbench/toolenv/tools/Text_Analysis/urldetector.json @@ -0,0 +1,300 @@ +{ + "tool_name": "UrlDetector", + "tool_description": "Better-than-regex, comprehensive and flexible detection of urls in text / HTML / JSON etc. Capable of parsing many schemes, domain formats and input text formats. Need higher usage, custom integration or additional features? Contact us for custom pricing.", + "title": "UrlDetector", + "pricing": "FREEMIUM", + "score": null, + "home_url": "https://rapidapi.com/integraatio/api/urldetector/", + "host": "urldetector.p.rapidapi.com", + "api_list": [ + { + "name": "List Url Detector Options", + "url": "https://urldetector.p.rapidapi.com/urls/list-options", + "description": "List the bitwise additive options for url detection", + "method": "GET", + "required_parameters": [ + { + "name": "Accept", + "type": "STRING", + "description": "Accept Header", + "default": "string" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://urldetector.p.rapidapi.com/urls/list-options\"\nquerystring = {\"Accept\": accept}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"urldetector.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode": 111, + "body": "", + "headers": "", + "schema": "" + }, + { + "name": "Detect Urls", + "url": "https://urldetector.p.rapidapi.com/urls/detect", + "description": "Parse a chunk of text and retrieve the urls detected. Default to 'Default' detection option, request can include multiple Detection Options to customize detection logic.", + "method": "POST", + "required_parameters": [ + { + "name": "Accept", + "type": "STRING", + "description": "Accept Header", + "default": "string" + }, + { + "name": "DetectionOptions", + "type": "STRING", + "description": "One or more bitwise enum labels, used to customize the url parsing logic detection rules.", + "default": "Default, HTML, Javascript" + }, + { + "name": "InputText", + "type": "STRING", + "description": "The text from which to detect urls", + "default": "var url = 'www.abc.com'; var url = \"www.def.com\"; and this is a google.com link that should really be http://127.0.0.1:8080?test=bolah linkedXnX.net " + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://urldetector.p.rapidapi.com/urls/detect\"\nquerystring = {\"Accept\": accept, \"DetectionOptions\": detectionoptions, \"InputText\": inputtext}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"urldetector.p.rapidapi.com\"\n}\n\nresponse = requests.post(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode": 200, + "body": { + "Total": 0, + "Offset": 0, + "Results": [ + { + "Scheme": "string", + "Username": "string", + "Password": "string", + "Host": "string", + "Port": 0, + "Path": "string", + "Query": "string", + "Fragment": "string", + "OriginalUrl": "string" + } + ], + "ResponseStatus": { + "ErrorCode": "string", + "Message": "string", + "StackTrace": "string", + "Errors": [ + { + "ErrorCode": "string", + "FieldName": "string", + "Message": "string", + "Meta": {} + } + ], + "Meta": {} + } + }, + "headers": { + "access-control-allow-credentials": "true", + "access-control-allow-headers": "Content-Type, Allow, Authorization, Origin, X-Args, X-RapidAPI-Proxy-Secret, X-RapidAPI-User", + "access-control-allow-methods": "GET", + "content-type": "application/json; charset=utf-8", + "date": "Wed, 09 Sep 2020 20:19:49 GMT", + "server": "RapidAPI-1.2.2", + "set-cookie": [ + "ss-pid=fBK0I7ka8zavwaqzM2qh; expires=Sun, 09 Sep 2040 20:19:49 GMT; path=/; secure; samesite=none; httponly", + "ss-id=ex0b9jkfo2rszcGXdryM; path=/; secure; samesite=none; httponly" + ], + "vary": "Accept", + "x-powered-by": "ServiceStack/5.92 NetCore/Windows, ASP.NET", + "x-rapidapi-region": "AWS - eu-central-1", + "x-rapidapi-version": "1.2.2", + "transfer-encoding": "chunked", + "connection": "Close" + }, + "schema": { + "properties": { + "Offset": { + "type": "integer" + }, + "ResponseStatus": { + "properties": { + "ErrorCode": { + "type": "string" + }, + "Errors": { + "items": { + "properties": { + "ErrorCode": { + "type": "string" + }, + "FieldName": { + "type": "string" + }, + "Message": { + "type": "string" + }, + "Meta": { + "type": "object" + } + }, + "type": "object" + }, + "type": "array" + }, + "Message": { + "type": "string" + }, + "Meta": { + "type": "object" + }, + "StackTrace": { + "type": "string" + } + }, + "type": "object" + }, + "Results": { + "items": { + "properties": { + "Fragment": { + "type": "string" + }, + "Host": { + "type": "string" + }, + "OriginalUrl": { + "type": "string" + }, + "Password": { + "type": "string" + }, + "Path": { + "type": "string" + }, + "Port": { + "type": "integer" + }, + "Query": { + "type": "string" + }, + "Scheme": { + "type": "string" + }, + "Username": { + "type": "string" + } + }, + "type": "object" + }, + "type": "array" + }, + "Total": { + "type": "integer" + } + }, + "type": "object" + } + }, + { + "name": "Detect Urls", + "url": "https://urldetector.p.rapidapi.com/urls/detect", + "description": "Parse a chunk of text and retrieve the urls detected. Default to 'Default' detection option, request can include multiple Detection Options to customize detection logic.", + "method": "POST", + "required_parameters": [ + { + "name": "DetectionOptions", + "type": "STRING", + "description": "One or more bitwise enum labels, used to customize the url parsing logic detection rules.", + "default": "Default, HTML, Javascript" + }, + { + "name": "InputText", + "type": "STRING", + "description": "The text from which to detect urls", + "default": "var url = 'www.abc.com'; var url = \"www.def.com\"; and this is a google.com link that should really be http://127.0.0.1:8080?test=bolah linkedXnX.net " + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://urldetector.p.rapidapi.com/urls/detect\"\nquerystring = {\"DetectionOptions\": \"Default, HTML, Javascript\", \"InputText\": \"var url = 'www.abc.com'; var url = \\\"www.def.com\\\"; and this is a google.com link that should really be http://127.0.0.1:8080?test=bolah linkedXnX.net \"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"urldetector.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://urldetector.p.rapidapi.com/urls/detect\"\nquerystring = {\"DetectionOptions\": \"Default, HTML, Javascript\", \"InputText\": \"var url = 'www.abc.com'; var url = \\\"www.def.com\\\"; and this is a google.com link that should really be http://127.0.0.1:8080?test=bolah linkedXnX.net \"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"urldetector.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "properties": { + "Offset": { + "type": "integer" + }, + "ResponseStatus": { + "properties": { + "ErrorCode": { + "type": "string" + }, + "Errors": { + "items": { + "properties": { + "ErrorCode": { + "type": "string" + }, + "FieldName": { + "type": "string" + }, + "Message": { + "type": "string" + }, + "Meta": { + "type": "object" + } + }, + "type": "object" + }, + "type": "array" + }, + "Message": { + "type": "string" + }, + "Meta": { + "type": "object" + }, + "StackTrace": { + "type": "string" + } + }, + "type": "object" + }, + "Results": { + "items": { + "properties": { + "Fragment": { + "type": "string" + }, + "Host": { + "type": "string" + }, + "OriginalUrl": { + "type": "string" + }, + "Password": { + "type": "string" + }, + "Path": { + "type": "string" + }, + "Port": { + "type": "integer" + }, + "Query": { + "type": "string" + }, + "Scheme": { + "type": "string" + }, + "Username": { + "type": "string" + } + }, + "type": "object" + }, + "type": "array" + }, + "Total": { + "type": "integer" + } + }, + "type": "object" + } + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Text_Analysis/urldetector/api.py b/toolbench/toolenv/tools/Text_Analysis/urldetector/api.py new file mode 100644 index 0000000000000000000000000000000000000000..670f2b4075462a84ceb8d407594ec6b559156fbb --- /dev/null +++ b/toolbench/toolenv/tools/Text_Analysis/urldetector/api.py @@ -0,0 +1,30 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def list_url_detector_options(accept: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "List the bitwise additive options for url detection" + accept: Accept Header + + """ + url = f"https://urldetector.p.rapidapi.com/urls/list-options" + querystring = {'Accept': accept, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "urldetector.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Text_Analysis/user_agent_parser.json b/toolbench/toolenv/tools/Text_Analysis/user_agent_parser.json new file mode 100644 index 0000000000000000000000000000000000000000..1e00e5efdd7d32165eb2669dce370c3a2eb7a179 --- /dev/null +++ b/toolbench/toolenv/tools/Text_Analysis/user_agent_parser.json @@ -0,0 +1,97 @@ +{ + "product_id": "api_76af7cf0-3bb6-4a46-bcd3-8c8d3a63ba1f", + "tool_description": "User Agent Parser API provides the accurate browser, device, and operating system details from a User Agent String.", + "home_url": "https://rapidapi.com/apicloudone/api/user-agent-parser8/", + "name": "User Agent Parser", + "title": "User Agent Parser", + "pricing": "FREEMIUM", + "tool_name": "User Agent Parser", + "score": { + "avgServiceLevel": 100, + "avgLatency": 187, + "avgSuccessRate": 100, + "popularityScore": 8.5, + "__typename": "Score" + }, + "host": "user-agent-parser8.p.rapidapi.com", + "api_list": [ + { + "name": "parse", + "url": "https://user-agent-parser8.p.rapidapi.com/", + "description": " ", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://user-agent-parser8.p.rapidapi.com/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"user-agent-parser8.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://user-agent-parser8.p.rapidapi.com/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"user-agent-parser8.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "ua": { + "type": "string" + }, + "browser": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "version": { + "type": "string" + }, + "major": { + "type": "string" + } + } + }, + "device": { + "type": "object", + "properties": { + "model": { + "type": "string" + }, + "vendor": { + "type": "string" + }, + "type": { + "type": "string" + } + } + }, + "engine": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "version": { + "type": "string" + } + } + }, + "cpu": { + "type": "object", + "properties": { + "architecture": { + "type": "string" + } + } + }, + "os": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "version": { + "type": "string" + } + } + } + } + } + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Text_Analysis/user_intent_recognition.json b/toolbench/toolenv/tools/Text_Analysis/user_intent_recognition.json new file mode 100644 index 0000000000000000000000000000000000000000..26bd2f1d58819441667ecc1a5bf4a3e833a4596b --- /dev/null +++ b/toolbench/toolenv/tools/Text_Analysis/user_intent_recognition.json @@ -0,0 +1,24 @@ +{ + "product_id": "api_099ce6f8-c54b-47d7-a4dd-121165f8760d", + "tool_description": "This API predicts user intents, for customer support domain.", + "home_url": "https://rapidapi.com/metatext-metatext-default/api/user-intent-recognition/", + "name": "User Intent Recognition", + "title": "User Intent Recognition", + "pricing": "PAID", + "tool_name": "User Intent Recognition", + "score": null, + "host": "user-intent-recognition.p.rapidapi.com", + "api_list": [ + { + "name": "Intent Recognition", + "url": "https://user-intent-recognition.p.rapidapi.com/intent-recognition", + "description": "User intent recognition for customer support.", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://user-intent-recognition.p.rapidapi.com/intent-recognition\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"user-intent-recognition.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://user-intent-recognition.p.rapidapi.com/intent-recognition\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"user-intent-recognition.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Text_Analysis/username_guardian.json b/toolbench/toolenv/tools/Text_Analysis/username_guardian.json new file mode 100644 index 0000000000000000000000000000000000000000..7ed003ee331df5c6ab45ccaee52f903dd618cdff --- /dev/null +++ b/toolbench/toolenv/tools/Text_Analysis/username_guardian.json @@ -0,0 +1,73 @@ +{ + "product_id": "api_308803f8-4878-4092-8bdc-c8839939c0ed", + "tool_description": "Integrate Samurai\u2019s automation for username moderation with your product seamlessly. Our well-documented and customizable API simplifies scalability. Understand precisely why Samurai is making a decision through its nuanced categories and detailed output.", + "home_url": "https://rapidapi.com/samurai-labs-samurai-labs-default/api/username-guardian1/", + "name": "Username Guardian", + "title": "Username Guardian", + "pricing": "FREEMIUM", + "tool_name": "Username Guardian", + "score": { + "avgServiceLevel": 100, + "avgLatency": 167, + "avgSuccessRate": 100, + "popularityScore": 9.5, + "__typename": "Score" + }, + "host": "username-guardian1.p.rapidapi.com", + "api_list": [ + { + "name": "username", + "url": "https://username-guardian1.p.rapidapi.com/username", + "description": "An API endpoint which returns a linguistic analysis of a given username with regard to toxicity.", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://username-guardian1.p.rapidapi.com/username\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"username-guardian1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://username-guardian1.p.rapidapi.com/username\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"username-guardian1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "username": { + "type": "string", + "description": "Verified username" + }, + "result": { + "type": "object", + "description": "Classification result", + "properties": { + "toxic": { + "type": "integer", + "description": "Username toxicity" + }, + "details": { + "type": "object", + "description": "Detection details", + "properties": { + "en": { + "type": "object", + "description": "Detected language", + "properties": { + "exact": { + "type": "integer", + "description": "0 - offensive phrase is embedded into another phrase; 1 - offensive phrase is clearly distinguished in the username" + }, + "categories": { + "type": "array", + "description": "Detected categories", + "items": { + "type": "string" + } + } + } + } + } + } + } + } + } + } + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Text_Analysis/utf8_fix_encoding.json b/toolbench/toolenv/tools/Text_Analysis/utf8_fix_encoding.json new file mode 100644 index 0000000000000000000000000000000000000000..2d96ece3da5c601bba69338e28c4b9284e997345 --- /dev/null +++ b/toolbench/toolenv/tools/Text_Analysis/utf8_fix_encoding.json @@ -0,0 +1,24 @@ +{ + "product_id": "api_3909d3f3-22c9-4efb-9291-062eadb90c86", + "tool_description": "Corrects UFT8 encoding problems. If you have some wrong characters ...\"\u00c3\u00a9\" instead of \"\u00e9\" for example (this concerns special and accentuated characters) and that you cannot correct, this may come from a problem of encoding between the file and part of its content, often following problems when creating the file. Send your texts with errors to the API and a corrected text will be returned to you.", + "home_url": "https://rapidapi.com/amelys-ltd-amelys-ltd-default/api/utf8-fix-encoding/", + "name": "UTF8 fix encoding", + "title": "UTF8 fix encoding", + "pricing": "FREEMIUM", + "tool_name": "UTF8 fix encoding", + "score": null, + "host": "utf8-fix-encoding.p.rapidapi.com", + "api_list": [ + { + "name": "UTF8FixEncoding", + "url": "https://utf8-fix-encoding.p.rapidapi.com/UTF8FixEncoding", + "description": "Returns the corrected text. Fixes problems encoding Ansi text containing Unicode characters.", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://utf8-fix-encoding.p.rapidapi.com/UTF8FixEncoding\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"utf8-fix-encoding.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://utf8-fix-encoding.p.rapidapi.com/UTF8FixEncoding\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"utf8-fix-encoding.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Text_Analysis/v2t_voicetotext.json b/toolbench/toolenv/tools/Text_Analysis/v2t_voicetotext.json new file mode 100644 index 0000000000000000000000000000000000000000..af28135b88425f86ae177ba7fd63ee9ad4a96b6d --- /dev/null +++ b/toolbench/toolenv/tools/Text_Analysis/v2t_voicetotext.json @@ -0,0 +1,45 @@ +{ + "product_id": "api_426a58fe-0907-4e36-8a35-255cbd8f2610", + "tool_description": "Easily convert an audio file to text", + "home_url": "https://rapidapi.com/nflorez94/api/v2t-voicetotext/", + "name": "V2T-VoiceToText", + "title": "V2T-VoiceToText", + "pricing": "FREE", + "tool_name": "V2T-VoiceToText", + "score": { + "avgServiceLevel": 0, + "avgLatency": 23, + "avgSuccessRate": 0, + "popularityScore": 0, + "__typename": "Score" + }, + "host": "v2t-voicetotext.p.rapidapi.com", + "api_list": [ + { + "name": "TranscriptAudio", + "url": "https://v2t-voicetotext.p.rapidapi.com/SpeechText/TranscriptAudio", + "description": "Upload an audio file and select from one of the languages of the list, send the audio by body and the language code in the url\n**Languages list: **\nAfrikaans (South Africa): af-ZA,\nAmharic (Ethiopia): am-ET,\nArabic (Algeria): ar-DZ,\nArabic (Bahrain), modern standard: ar-BH,\nArabic (Egypt): ar-EG,\nArabic (Iraq): ar-IQ,\nArabic (Israel): ar-IL,\nArabic (Jordan): ar-JO,\nArabic (Kuwait): ar-KW,\nArabic (Lebanon): ar-LB,\nArabic (Libya): ar-LY,\nArabic (Morocco): ar-MA,\nArabic (Oman): ar-OM,\nArabic (Palestinian Authority): ar-PS,\nArabic (Qatar): ar-QA,\nArabic (Saudi Arabia): ar-SA,\nArabic (Syria): ar-SY,\nArabic (Tunisia): ar-TN,\nArabic (United Arab Emirates): ar-AE,\nArabic (Yemen): ar-YE,\nBengali (India): bn-IN,\nBulgarian (Bulgaria): bg-BG,\nBurmese (Myanmar): my-MM,\nCatalan (Spain): ca-ES,\nChinese (Cantonese, Traditional): zh-HK,\nChinese (Mandarin, Simplified): zh-CN,\nChinese (Taiwanese Mandarin): zh-TW,\nCroatian (Croatia): hr-HR,\nCzech (Czech): cs-CZ,\nDanish (Denmark): da-DK,\nDutch (Belgium): nl-BE,\nDutch (Netherlands): nl-NL,\nEnglish (Australia): en-AU,\nEnglish (Canada): en-CA,\nEnglish (Ghana): en-GH,\nEnglish (Hong Kong): en-HK,\nEnglish (India): en-IN,\nEnglish (Ireland): en-IE,\nEnglish (Kenya): en-KE,\nEnglish (New Zealand): en-NZ,\nEnglish (Nigeria): en-NG,\nEnglish (Philippines): en-PH,\nEnglish (Singapore): en-SG,\nEnglish (South Africa): en-ZA,\nEnglish (Tanzania): en-TZ,\nEnglish (United Kingdom): en-GB,\nEnglish (United States): en-US,\nEstonian (Estonia): et-EE,\nFilipino (Philippines): fil-PH,\nFinnish (Finland): fi-FI,\nFrench (Belgium): fr-BE,\nFrench (Canada): fr-CA,\nFrench (France): fr-FR,\nFrench (Switzerland): fr-CH,\nGerman (Austria): de-AT,\nGerman (Germany): de-DE,\nGerman (Switzerland): de-CH,\nGreek (Greece): el-GR,\nGujarati (Indian): gu-IN,\nHebrew (Israel): he-IL,\nHindi (India): hi-IN,\nHungarian (Hungary): hu-HU,\nIcelandic (Iceland): is-IS,\nIndonesian (Indonesia): id-ID,\nIrish (Ireland): ga-IE,\nItalian (Italy): it-IT,\nJapanese (Japan): ja-JP,\nJavanese (Indonesia): jv-ID,\nKannada (India): kn-IN,\nKhmer (Cambodia): km-KH,\nKorean (Korea): ko-KR,\nLao (Laos): lo-LA,\nLatvian (Latvia): lv-LV,\nLithuanian (Lithuania): lt-LT,\nMacedonian (North Macedonia): mk-MK,\nMalay (Malaysia): ms-MY,\nMaltese (Malta): mt-MT,\nMarathi (India): mr-IN,\nNorwegian (Bokm\ufffdl, Norway): nb-NO,\nPersian (Iran): fa-IR,\nPolish (Poland): pl-PL,\nPortuguese (Brazil): pt-BR,\nPortuguese (Portugal): pt-PT,\nRomanian (Romania): ro-RO,\nRussian (Russia): ru-RU,\nSerbian (Serbia): sr-RS,\nSinhala (Sri Lanka): si-LK,\nSlovak (Slovakia): sk-SK,\nSlovenian (Slovenia): sl-SI,\nSpanish (Argentina): es-AR,\nSpanish (Bolivia): es-BO,\nSpanish (Chile): es-CL,\nSpanish (Colombia): es-CO,\nSpanish (Costa Rica): es-CR,\nSpanish (Cuba): es-CU,\nSpanish (Dominican Republic): es-DO,\nSpanish (Ecuador): es-EC,\nSpanish (El Salvador): es-SV,\nSpanish (Equatorial Guinea): es-GQ,\nSpanish (Guatemala): es-GT,\nSpanish (Honduras): es-HN,\nSpanish (Mexico): es-MX,\nSpanish (Nicaragua): es-NI,\nSpanish (Panama): es-PA,\nSpanish (Paraguay): es-PY,\nSpanish (Peru): es-PE,\nSpanish (Puerto Rico): es-PR,\nSpanish (Spain): es-ES,\nSpanish (Uruguay): es-UY,\nSpanish (USA): es-US,\nSpanish (Venezuela): es-VE,\nSwahili (Kenya): sw-KE,\nSwahili (Tanzania): sw-TZ,\nSwedish (Sweden): sv-SE,\nTamil (India): ta-IN,\nTelugu (India): te-IN,\nThai (Thailand): th-TH,\nTurkish (Turkey): tr-TR,\nUkrainian (Ukraine): uk-UA,\nUzbek (Uzbekistan): uz-UZ,\nVietnamese (Vietnam): vi-VN,\nZulu (South Africa): zu-ZA", + "method": "POST", + "required_parameters": [ + { + "name": "audio", + "type": "BINARY", + "description": "", + "default": "" + }, + { + "name": "audioLanguaje", + "type": "STRING", + "description": "", + "default": "en-US" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://v2t-voicetotext.p.rapidapi.com/SpeechText/TranscriptAudio\"\nquerystring = {\"audio\": \"\", \"audioLanguaje\": \"en-US\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"v2t-voicetotext.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://v2t-voicetotext.p.rapidapi.com/SpeechText/TranscriptAudio\"\nquerystring = {\"audio\": \"\", \"audioLanguaje\": \"en-US\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"v2t-voicetotext.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": {} + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Text_Analysis/veille_techno.json b/toolbench/toolenv/tools/Text_Analysis/veille_techno.json new file mode 100644 index 0000000000000000000000000000000000000000..93af1bb852a1c6e50fefe307273902219a60121c --- /dev/null +++ b/toolbench/toolenv/tools/Text_Analysis/veille_techno.json @@ -0,0 +1,24 @@ +{ + "product_id": "api_fd808b2f-80f4-45a6-bf8c-297891d2ae8c", + "tool_description": "Veiille techno", + "home_url": "https://rapidapi.com/epsi.altb3a.erebor/api/veille-techno/", + "name": "Veille Techno", + "title": "Veille Techno", + "pricing": "FREE", + "tool_name": "Veille Techno", + "score": null, + "host": "veille-techno.p.rapidapi.com", + "api_list": [ + { + "name": "Summarize", + "url": "https://veille-techno.p.rapidapi.com/", + "description": "summarize a long text", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://veille-techno.p.rapidapi.com/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"veille-techno.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://veille-techno.p.rapidapi.com/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"veille-techno.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Text_Analysis/visual_context_graph.json b/toolbench/toolenv/tools/Text_Analysis/visual_context_graph.json new file mode 100644 index 0000000000000000000000000000000000000000..11211ff535c297267d897034c01501b60175066f --- /dev/null +++ b/toolbench/toolenv/tools/Text_Analysis/visual_context_graph.json @@ -0,0 +1,4166 @@ +{ + "tool_name": "Visual Context Graph", + "tool_description": "Build a graph with words connected to other words. Diagram information for visualizing concepts or mind maps.", + "title": "Visual Context Graph", + "pricing": "FREEMIUM", + "score": { + "avgServiceLevel": 100, + "avgLatency": 1987, + "avgSuccessRate": 100, + "popularityScore": 8.7, + "__typename": "Score" + }, + "home_url": "https://rapidapi.com/twinword/api/visual-context-graph/", + "host": "twinword-visual-context-graph.p.rapidapi.com", + "api_list": [ + { + "name": "Visualize (post)", + "url": "https://twinword-visual-context-graph.p.rapidapi.com/visualize/", + "description": "Diagram information for visualizing concepts or mind maps.", + "method": "POST", + "required_parameters": [ + { + "name": "entry", + "type": "STRING", + "description": "", + "default": "sound" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://twinword-visual-context-graph.p.rapidapi.com/visualize/\"\nquerystring = {\"entry\": entry}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"twinword-visual-context-graph.p.rapidapi.com\"\n}\n\nresponse = requests.post(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode": 200, + "body": { + "author": "twinword inc.", + "context": [ + "audio", + "echo", + "music", + "recording", + "voice" + ], + "email": "help@twinword.com", + "entry": "sound", + "relation": [ + { + "acoustic": "guitar" + }, + { + "acoustic": "hearing" + }, + { + "acoustic": "music" + }, + { + "acoustic": "musical" + }, + { + "acoustic": "performance" + }, + { + "acoustic": "sound" + }, + { + "acoustics": "acoustic" + }, + { + "acoustics": "musical" + }, + { + "acoustics": "noise" + }, + { + "acoustics": "radio" + }, + { + "acoustics": "sound" + }, + { + "alarm": "dismay" + }, + { + "alarm": "bell" + }, + { + "alarm": "fright" + }, + { + "alarm": "horror" + }, + { + "alarm": "sound" + }, + { + "alarm": "terror" + }, + { + "alert": "attentive" + }, + { + "alert": "clear" + }, + { + "alert": "noise" + }, + { + "alert": "sound" + }, + { + "alert": "vigilant" + }, + { + "alert": "watchful" + }, + { + "amplifier": "loud" + }, + { + "amplifier": "machine" + }, + { + "amplifier": "noise" + }, + { + "amplifier": "sound" + }, + { + "amplifier": "transistor" + }, + { + "amplitude": "ample" + }, + { + "amplitude": "frequency" + }, + { + "amplitude": "peak" + }, + { + "amplitude": "sound" + }, + { + "amplitude": "wave" + }, + { + "attune": "accustom" + }, + { + "attune": "adjust" + }, + { + "attune": "sound" + }, + { + "audio": "cassette" + }, + { + "audio": "digital" + }, + { + "audio": "recording" + }, + { + "audio": "sound" + }, + { + "audio": "video" + }, + { + "auditory": "audition" + }, + { + "auditory": "ear" + }, + { + "auditory": "hearing" + }, + { + "auditory": "sound" + }, + { + "auditory": "stimulus" + }, + { + "auditory": "voice" + }, + { + "beep": "honk" + }, + { + "beep": "noise" + }, + { + "beep": "sound" + }, + { + "beep": "toot" + }, + { + "beep": "whistle" + }, + { + "bell": "doorbell" + }, + { + "bell": "chime" + }, + { + "bell": "hear" + }, + { + "bell": "jingle" + }, + { + "bell": "sound" + }, + { + "bell": "telephone" + }, + { + "blare": "din" + }, + { + "blare": "honk" + }, + { + "blare": "sound" + }, + { + "blare": "toot" + }, + { + "blare": "warning" + }, + { + "blowing": "blast" + }, + { + "blowing": "conch" + }, + { + "blowing": "gale" + }, + { + "blowing": "noise" + }, + { + "blowing": "sound" + }, + { + "blowing": "whistle" + }, + { + "brassy": "brass" + }, + { + "brassy": "annoying" + }, + { + "brassy": "din" + }, + { + "brassy": "loud" + }, + { + "brassy": "racket" + }, + { + "brassy": "sound" + }, + { + "brassy": "voice" + }, + { + "bray": "cry" + }, + { + "bray": "laughter" + }, + { + "bray": "sound" + }, + { + "bray": "sing" + }, + { + "breaking": "cipher" + }, + { + "breaking": "code" + }, + { + "breaking": "destroy" + }, + { + "breaking": "news" + }, + { + "breaking": "sound" + }, + { + "breaking": "tone" + }, + { + "cacophonous": "inharmonious" + }, + { + "cacophonous": "cacophony" + }, + { + "cacophonous": "raucous" + }, + { + "cacophonous": "rough" + }, + { + "cacophonous": "sound" + }, + { + "cacophonous": "strident" + }, + { + "cacophonous": "tool" + }, + { + "chirp": "buzz" + }, + { + "chirp": "sound" + }, + { + "chirp": "squeak" + }, + { + "chirp": "twitter" + }, + { + "chirp": "warble" + }, + { + "chord": "guitar" + }, + { + "chord": "harmonize" + }, + { + "chord": "melody" + }, + { + "chord": "music" + }, + { + "chord": "playing" + }, + { + "chord": "sound" + }, + { + "click": "button" + }, + { + "click": "camera" + }, + { + "click": "penetrate" + }, + { + "click": "snap" + }, + { + "click": "sound" + }, + { + "click": "understand" + }, + { + "cassette": "tape" + }, + { + "cassette": "audio" + }, + { + "cassette": "recorder" + }, + { + "cassette": "vcr" + }, + { + "commentary": "audio" + }, + { + "commentary": "broadcast" + }, + { + "commentary": "television" + }, + { + "commentary": "text" + }, + { + "converter": "audio" + }, + { + "converter": "change" + }, + { + "converter": "currency" + }, + { + "converter": "digital" + }, + { + "converter": "plug" + }, + { + "dubbing": "audio" + }, + { + "dubbing": "language" + }, + { + "dubbing": "subtitle" + }, + { + "dubbing": "voice" + }, + { + "playback": "audio" + }, + { + "playback": "recording" + }, + { + "playback": "video" + }, + { + "recorder": "audio" + }, + { + "recorder": "sound" + }, + { + "recorder": "tape" + }, + { + "recorder": "video" + }, + { + "recorder": "voice" + }, + { + "recording": "audio" + }, + { + "recording": "sound" + }, + { + "recording": "studio" + }, + { + "recording": "transcription" + }, + { + "sonic": "audio" + }, + { + "sonic": "hear" + }, + { + "sonic": "noise" + }, + { + "sonic": "physics" + }, + { + "sonic": "sound" + }, + { + "studio": "art" + }, + { + "studio": "audio" + }, + { + "studio": "musician" + }, + { + "studio": "recording" + }, + { + "studio": "school" + }, + { + "studio": "video" + }, + { + "subtitle": "audio" + }, + { + "subtitle": "dubbing" + }, + { + "subtitle": "english" + }, + { + "subtitle": "language" + }, + { + "subtitle": "learning" + }, + { + "tape": "audio" + }, + { + "tape": "recorder" + }, + { + "tape": "video" + }, + { + "tape": "voice" + }, + { + "transcription": "audio" + }, + { + "transcription": "document" + }, + { + "transcription": "record" + }, + { + "transcription": "recording" + }, + { + "transcription": "studio" + }, + { + "transcription": "text" + }, + { + "video": "audio" + }, + { + "video": "camera" + }, + { + "video": "clip" + }, + { + "video": "film" + }, + { + "video": "tv" + }, + { + "video": "watch" + }, + { + "voice": "audio" + }, + { + "voice": "hear" + }, + { + "voice": "music" + }, + { + "voice": "radio" + }, + { + "voice": "recorder" + }, + { + "voice": "sound" + }, + { + "ditto": "ape" + }, + { + "ditto": "echo" + }, + { + "ditto": "equal" + }, + { + "ditto": "same" + }, + { + "ditto": "say" + }, + { + "ditto": "similar" + }, + { + "earshot": "acoustic" + }, + { + "earshot": "echo" + }, + { + "earshot": "hearing" + }, + { + "echo": "imitate" + }, + { + "echo": "reverberation" + }, + { + "echo": "noise" + }, + { + "echo": "reflect" + }, + { + "echo": "resonate" + }, + { + "echo": "resound" + }, + { + "echo": "sound" + }, + { + "echo": "voice" + }, + { + "hearing": "audience" + }, + { + "hearing": "deaf" + }, + { + "hearing": "echo" + }, + { + "hearing": "listening" + }, + { + "hearing": "speaking" + }, + { + "iterate": "reiterate" + }, + { + "iterate": "echo" + }, + { + "iterate": "repeat" + }, + { + "iterate": "restate" + }, + { + "iterate": "say" + }, + { + "mimic": "imitate" + }, + { + "mimic": "mime" + }, + { + "mimic": "copy" + }, + { + "mimic": "echo" + }, + { + "mimic": "imitation" + }, + { + "repeat": "repeatedly" + }, + { + "repeat": "duplicate" + }, + { + "repeat": "again" + }, + { + "repeat": "echo" + }, + { + "repeat": "reiterate" + }, + { + "repeat": "repetition" + }, + { + "repeat": "restate" + }, + { + "repeat": "say" + }, + { + "repeatedly": "repeat" + }, + { + "repeatedly": "again" + }, + { + "repeatedly": "deny" + }, + { + "repeatedly": "echo" + }, + { + "repeatedly": "restate" + }, + { + "repeatedly": "speak" + }, + { + "repeatedly": "warn" + }, + { + "resonance": "resonate" + }, + { + "resonance": "echo" + }, + { + "resonance": "ringing" + }, + { + "resonance": "sonority" + }, + { + "resonance": "sound" + }, + { + "resonate": "digress" + }, + { + "resonate": "echo" + }, + { + "resonate": "reflect" + }, + { + "resonate": "resounding" + }, + { + "resonate": "sound" + }, + { + "resound": "echo" + }, + { + "resound": "noise" + }, + { + "resound": "reverberate" + }, + { + "resound": "spread" + }, + { + "reverberate": "reverberation" + }, + { + "reverberate": "echo" + }, + { + "reverberate": "noise" + }, + { + "reverberate": "resound" + }, + { + "reverberate": "ring" + }, + { + "reverberation": "acoustic" + }, + { + "reverberation": "echo" + }, + { + "reverberation": "hearing" + }, + { + "reverberation": "ring" + }, + { + "sonar": "data" + }, + { + "sonar": "echo" + }, + { + "sonar": "equipment" + }, + { + "accompaniment": "complement" + }, + { + "accompaniment": "escort" + }, + { + "accompaniment": "music" + }, + { + "accompaniment": "piano" + }, + { + "accompaniment": "playing" + }, + { + "accompaniment": "support" + }, + { + "album": "copyright" + }, + { + "album": "debut" + }, + { + "album": "download" + }, + { + "album": "music" + }, + { + "album": "photo" + }, + { + "aria": "cantata" + }, + { + "aria": "choral" + }, + { + "aria": "chorus" + }, + { + "aria": "music" + }, + { + "artist": "artistic" + }, + { + "artist": "draw" + }, + { + "artist": "gallery" + }, + { + "artist": "music" + }, + { + "artist": "musician" + }, + { + "artist": "photography" + }, + { + "artist": "writer" + }, + { + "artistic": "aesthetic" + }, + { + "artistic": "esthetic" + }, + { + "artistic": "music" + }, + { + "artistic": "painting" + }, + { + "artistic": "photography" + }, + { + "artistic": "tasteful" + }, + { + "atonal": "composition" + }, + { + "atonal": "music" + }, + { + "atonal": "tonality" + }, + { + "atonal": "undistinguished" + }, + { + "ballroom": "ballet" + }, + { + "ballroom": "choreographer" + }, + { + "ballroom": "dance" + }, + { + "ballroom": "dancing" + }, + { + "ballroom": "music" + }, + { + "ballroom": "party" + }, + { + "blandness": "appropriate" + }, + { + "blandness": "general" + }, + { + "blandness": "music" + }, + { + "blues": "guitar" + }, + { + "blues": "music" + }, + { + "blues": "singer" + }, + { + "cantata": "aria" + }, + { + "cantata": "choir" + }, + { + "cantata": "music" + }, + { + "cantata": "oratorio" + }, + { + "cantata": "singing" + }, + { + "cantata": "sonata" + }, + { + "cello": "violoncello" + }, + { + "cello": "harp" + }, + { + "cello": "music" + }, + { + "cello": "violin" + }, + { + "choreograph": "choreographer" + }, + { + "choreograph": "art" + }, + { + "choreograph": "ballet" + }, + { + "choreograph": "dance" + }, + { + "choreograph": "music" + }, + { + "choreography": "artistic" + }, + { + "choreography": "ballet" + }, + { + "choreography": "dance" + }, + { + "choreography": "dancer" + }, + { + "choreography": "music" + }, + { + "chorus": "choir" + }, + { + "chorus": "music" + }, + { + "chorus": "sing" + }, + { + "chorus": "vocal" + }, + { + "chromatic": "diatonic" + }, + { + "chromatic": "harmony" + }, + { + "chromatic": "octave" + }, + { + "chromatic": "music" + }, + { + "chromatic": "tune" + }, + { + "classical": "ancient" + }, + { + "classical": "antiquity" + }, + { + "classical": "architecture" + }, + { + "classical": "indian" + }, + { + "classical": "literature" + }, + { + "classical": "music" + }, + { + "compose": "composer" + }, + { + "compose": "compound" + }, + { + "compose": "compile" + }, + { + "compose": "indite" + }, + { + "compose": "makeup" + }, + { + "compose": "music" + }, + { + "compose": "write" + }, + { + "composer": "lyricist" + }, + { + "composer": "music" + }, + { + "composer": "musician" + }, + { + "composer": "piano" + }, + { + "composer": "singer" + }, + { + "barograph": "pressure" + }, + { + "barograph": "record" + }, + { + "barograph": "recording" + }, + { + "barometer": "air" + }, + { + "barometer": "pressure" + }, + { + "barometer": "record" + }, + { + "barometer": "recording" + }, + { + "barometer": "weather" + }, + { + "gramophone": "phonograph" + }, + { + "gramophone": "hear" + }, + { + "gramophone": "recording" + }, + { + "gramophone": "sound" + }, + { + "phonograph": "gramophone" + }, + { + "phonograph": "machine" + }, + { + "phonograph": "record" + }, + { + "phonograph": "recording" + }, + { + "phonograph": "show" + }, + { + "subliminal": "advertising" + }, + { + "subliminal": "message" + }, + { + "subliminal": "recording" + }, + { + "accent": "dialect" + }, + { + "accent": "highlight" + }, + { + "accent": "pronunciation" + }, + { + "accent": "stress" + }, + { + "accent": "voice" + }, + { + "aloud": "read" + }, + { + "aloud": "recite" + }, + { + "aloud": "spoken" + }, + { + "aloud": "speak" + }, + { + "aloud": "voice" + }, + { + "alto": "baritone" + }, + { + "alto": "choir" + }, + { + "alto": "low" + }, + { + "alto": "tenor" + }, + { + "alto": "voice" + }, + { + "audible": "audio" + }, + { + "audible": "hear" + }, + { + "audible": "hearing" + }, + { + "audible": "listen" + }, + { + "audible": "sonic" + }, + { + "audible": "voice" + }, + { + "baritone": "alto" + }, + { + "baritone": "low" + }, + { + "baritone": "tenor" + }, + { + "baritone": "voice" + }, + { + "cackle": "laugh" + }, + { + "cackle": "loud" + }, + { + "cackle": "scream" + }, + { + "cackle": "voice" + }, + { + "dupe": "bogus" + }, + { + "dupe": "charlatan" + }, + { + "dupe": "fool" + }, + { + "dupe": "hack" + }, + { + "dupe": "voice" + }, + { + "dysphonia": "disease" + }, + { + "dysphonia": "muscle" + }, + { + "dysphonia": "syndrome" + }, + { + "dysphonia": "vocal" + }, + { + "dysphonia": "voice" + }, + { + "effeminate": "camp" + }, + { + "effeminate": "effeminacy" + }, + { + "effeminate": "female" + }, + { + "effeminate": "feminine" + }, + { + "effeminate": "gesture" + }, + { + "effeminate": "girl" + }, + { + "effeminate": "voice" + }, + { + "effeminate": "woman" + }, + { + "emotionless": "cold" + }, + { + "emotionless": "impassive" + }, + { + "emotionless": "indifferent" + }, + { + "emotionless": "phlegmatic" + }, + { + "emotionless": "tone" + }, + { + "emotionless": "voice" + }, + { + "gruff": "cacophonous" + }, + { + "gruff": "hoarse" + }, + { + "gruff": "husky" + }, + { + "gruff": "voice" + }, + { + "hoarse": "gruff" + }, + { + "hoarse": "husky" + }, + { + "hoarse": "sound" + }, + { + "hoarse": "voice" + }, + { + "homophonic": "harmony" + }, + { + "homophonic": "polyphony" + }, + { + "homophonic": "same" + }, + { + "homophonic": "sound" + }, + { + "homophonic": "voice" + }, + { + "husky": "cacophonous" + }, + { + "husky": "gruff" + }, + { + "husky": "hoarse" + }, + { + "husky": "robust" + }, + { + "husky": "tough" + }, + { + "husky": "voice" + }, + { + "impersonate": "embody" + }, + { + "impersonate": "accent" + }, + { + "impersonate": "assume" + }, + { + "impersonate": "dupe" + }, + { + "impersonate": "simulate" + }, + { + "impersonate": "voice" + }, + { + "intrusive": "intrusion" + }, + { + "intrusive": "interfering" + }, + { + "intrusive": "invade" + }, + { + "intrusive": "invasive" + }, + { + "intrusive": "meddling" + }, + { + "intrusive": "voice" + } + ], + "request": "sound", + "response": "sound", + "result_code": "200", + "result_msg": "Success", + "version": "4.0.0" + }, + "headers": { + "alt-svc": "h3-27=\":443\"; ma=86400, h3-25=\":443\"; ma=86400, h3-24=\":443\"; ma=86400, h3-23=\":443\"; ma=86400", + "cf-cache-status": "DYNAMIC", + "cf-ray": "599ea4d5399bf8b7-NRT", + "cf-request-id": "02f70559460000f8b79b847200000001", + "content-type": "application/json", + "date": "Wed, 27 May 2020 09:17:38 GMT", + "expect-ct": "max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\"", + "server": "RapidAPI-1.1.7", + "set-cookie": [ + "__cfduid=dd9e7dabd0faaa84eb92c7932d8e9de7d1590571057; expires=Fri, 26-Jun-20 09:17:37 GMT; path=/; domain=.twinword.com; HttpOnly; SameSite=Lax; Secure" + ], + "strict-transport-security": "max-age=15552000; includeSubDomains; preload", + "x-content-type-options": "nosniff", + "x-rapidapi-region": "AWS - ap-northeast-1", + "x-rapidapi-version": "1.1.7", + "x-ratelimit-requests-limit": "30000", + "x-ratelimit-requests-remaining": "29983", + "content-length": "9828", + "connection": "Close" + }, + "schema": {} + }, + { + "name": "Visualize (get)", + "url": "https://twinword-visual-context-graph.p.rapidapi.com/visualize/", + "description": "Diagram information for visualizing concepts or mind maps.", + "method": "GET", + "required_parameters": [ + { + "name": "entry", + "type": "STRING", + "description": "Type a word to see the words connected to it", + "default": "sound" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://twinword-visual-context-graph.p.rapidapi.com/visualize/\"\nquerystring = {\"entry\": entry}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"twinword-visual-context-graph.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode": 200, + "body": { + "entry": "sound", + "context": [ + "audio", + "echo", + "music", + "recording", + "voice" + ], + "relation": [ + { + "acoustic": "guitar" + }, + { + "acoustic": "hearing" + }, + { + "acoustic": "music" + }, + { + "acoustic": "musical" + }, + { + "acoustic": "performance" + }, + { + "acoustic": "sound" + }, + { + "acoustics": "acoustic" + }, + { + "acoustics": "musical" + }, + { + "acoustics": "noise" + }, + { + "acoustics": "radio" + }, + { + "acoustics": "sound" + }, + { + "alarm": "dismay" + }, + { + "alarm": "fright" + }, + { + "alarm": "horror" + }, + { + "alarm": "terror" + }, + { + "alarm": "bell" + }, + { + "alarm": "sound" + }, + { + "alert": "attentive" + }, + { + "alert": "vigilant" + }, + { + "alert": "watchful" + }, + { + "alert": "clear" + }, + { + "alert": "noise" + }, + { + "alert": "sound" + }, + { + "amplifier": "machine" + }, + { + "amplifier": "sound" + }, + { + "amplifier": "transistor" + }, + { + "amplifier": "loud" + }, + { + "amplifier": "noise" + }, + { + "amplitude": "ample" + }, + { + "amplitude": "peak" + }, + { + "amplitude": "sound" + }, + { + "amplitude": "wave" + }, + { + "amplitude": "frequency" + }, + { + "attune": "accustom" + }, + { + "attune": "adjust" + }, + { + "attune": "sound" + }, + { + "audio": "cassette" + }, + { + "audio": "digital" + }, + { + "audio": "recording" + }, + { + "audio": "sound" + }, + { + "audio": "video" + }, + { + "auditory": "audition" + }, + { + "auditory": "ear" + }, + { + "auditory": "hearing" + }, + { + "auditory": "sound" + }, + { + "auditory": "stimulus" + }, + { + "auditory": "voice" + }, + { + "beep": "honk" + }, + { + "beep": "noise" + }, + { + "beep": "sound" + }, + { + "beep": "toot" + }, + { + "beep": "whistle" + }, + { + "bell": "doorbell" + }, + { + "bell": "chime" + }, + { + "bell": "hear" + }, + { + "bell": "jingle" + }, + { + "bell": "sound" + }, + { + "bell": "telephone" + }, + { + "blare": "din" + }, + { + "blare": "honk" + }, + { + "blare": "sound" + }, + { + "blare": "toot" + }, + { + "blare": "warning" + }, + { + "blowing": "blast" + }, + { + "blowing": "conch" + }, + { + "blowing": "gale" + }, + { + "blowing": "noise" + }, + { + "blowing": "sound" + }, + { + "blowing": "whistle" + }, + { + "brassy": "brass" + }, + { + "brassy": "loud" + }, + { + "brassy": "sound" + }, + { + "brassy": "voice" + }, + { + "brassy": "annoying" + }, + { + "brassy": "din" + }, + { + "brassy": "racket" + }, + { + "bray": "cry" + }, + { + "bray": "laughter" + }, + { + "bray": "sing" + }, + { + "bray": "sound" + }, + { + "breaking": "cipher" + }, + { + "breaking": "code" + }, + { + "breaking": "destroy" + }, + { + "breaking": "news" + }, + { + "breaking": "sound" + }, + { + "breaking": "tone" + }, + { + "cacophonous": "inharmonious" + }, + { + "cacophonous": "cacophony" + }, + { + "cacophonous": "raucous" + }, + { + "cacophonous": "rough" + }, + { + "cacophonous": "sound" + }, + { + "cacophonous": "strident" + }, + { + "cacophonous": "tool" + }, + { + "chirp": "buzz" + }, + { + "chirp": "sound" + }, + { + "chirp": "squeak" + }, + { + "chirp": "twitter" + }, + { + "chirp": "warble" + }, + { + "chord": "guitar" + }, + { + "chord": "harmonize" + }, + { + "chord": "melody" + }, + { + "chord": "music" + }, + { + "chord": "playing" + }, + { + "chord": "sound" + }, + { + "click": "penetrate" + }, + { + "click": "snap" + }, + { + "click": "understand" + }, + { + "click": "button" + }, + { + "click": "camera" + }, + { + "click": "sound" + }, + { + "cassette": "tape" + }, + { + "cassette": "audio" + }, + { + "cassette": "recorder" + }, + { + "cassette": "vcr" + }, + { + "commentary": "audio" + }, + { + "commentary": "television" + }, + { + "commentary": "text" + }, + { + "commentary": "broadcast" + }, + { + "converter": "audio" + }, + { + "converter": "change" + }, + { + "converter": "currency" + }, + { + "converter": "digital" + }, + { + "converter": "plug" + }, + { + "dubbing": "audio" + }, + { + "dubbing": "language" + }, + { + "dubbing": "subtitle" + }, + { + "dubbing": "voice" + }, + { + "playback": "audio" + }, + { + "playback": "recording" + }, + { + "playback": "video" + }, + { + "recorder": "tape" + }, + { + "recorder": "video" + }, + { + "recorder": "voice" + }, + { + "recorder": "audio" + }, + { + "recorder": "sound" + }, + { + "recording": "audio" + }, + { + "recording": "sound" + }, + { + "recording": "studio" + }, + { + "recording": "transcription" + }, + { + "sonic": "audio" + }, + { + "sonic": "hear" + }, + { + "sonic": "physics" + }, + { + "sonic": "noise" + }, + { + "sonic": "sound" + }, + { + "studio": "art" + }, + { + "studio": "audio" + }, + { + "studio": "musician" + }, + { + "studio": "recording" + }, + { + "studio": "school" + }, + { + "studio": "video" + }, + { + "subtitle": "dubbing" + }, + { + "subtitle": "english" + }, + { + "subtitle": "language" + }, + { + "subtitle": "audio" + }, + { + "subtitle": "learning" + }, + { + "tape": "audio" + }, + { + "tape": "recorder" + }, + { + "tape": "video" + }, + { + "tape": "voice" + }, + { + "transcription": "audio" + }, + { + "transcription": "document" + }, + { + "transcription": "record" + }, + { + "transcription": "recording" + }, + { + "transcription": "studio" + }, + { + "transcription": "text" + }, + { + "video": "clip" + }, + { + "video": "tv" + }, + { + "video": "watch" + }, + { + "video": "audio" + }, + { + "video": "camera" + }, + { + "video": "film" + }, + { + "voice": "audio" + }, + { + "voice": "hear" + }, + { + "voice": "music" + }, + { + "voice": "radio" + }, + { + "voice": "recorder" + }, + { + "voice": "sound" + }, + { + "ditto": "ape" + }, + { + "ditto": "echo" + }, + { + "ditto": "equal" + }, + { + "ditto": "same" + }, + { + "ditto": "say" + }, + { + "ditto": "similar" + }, + { + "earshot": "acoustic" + }, + { + "earshot": "echo" + }, + { + "earshot": "hearing" + }, + { + "echo": "imitate" + }, + { + "echo": "reverberation" + }, + { + "echo": "noise" + }, + { + "echo": "reflect" + }, + { + "echo": "resonate" + }, + { + "echo": "resound" + }, + { + "echo": "sound" + }, + { + "echo": "voice" + }, + { + "hearing": "audience" + }, + { + "hearing": "deaf" + }, + { + "hearing": "listening" + }, + { + "hearing": "echo" + }, + { + "hearing": "speaking" + }, + { + "iterate": "reiterate" + }, + { + "iterate": "echo" + }, + { + "iterate": "repeat" + }, + { + "iterate": "restate" + }, + { + "iterate": "say" + }, + { + "mimic": "imitate" + }, + { + "mimic": "mime" + }, + { + "mimic": "copy" + }, + { + "mimic": "echo" + }, + { + "mimic": "imitation" + }, + { + "repeat": "repeatedly" + }, + { + "repeat": "duplicate" + }, + { + "repeat": "again" + }, + { + "repeat": "echo" + }, + { + "repeat": "reiterate" + }, + { + "repeat": "repetition" + }, + { + "repeat": "restate" + }, + { + "repeat": "say" + }, + { + "repeatedly": "repeat" + }, + { + "repeatedly": "again" + }, + { + "repeatedly": "deny" + }, + { + "repeatedly": "echo" + }, + { + "repeatedly": "restate" + }, + { + "repeatedly": "speak" + }, + { + "repeatedly": "warn" + }, + { + "resonance": "resonate" + }, + { + "resonance": "echo" + }, + { + "resonance": "ringing" + }, + { + "resonance": "sonority" + }, + { + "resonance": "sound" + }, + { + "resonate": "digress" + }, + { + "resonate": "echo" + }, + { + "resonate": "reflect" + }, + { + "resonate": "resounding" + }, + { + "resonate": "sound" + }, + { + "resound": "echo" + }, + { + "resound": "noise" + }, + { + "resound": "reverberate" + }, + { + "resound": "spread" + }, + { + "reverberate": "reverberation" + }, + { + "reverberate": "echo" + }, + { + "reverberate": "resound" + }, + { + "reverberate": "ring" + }, + { + "reverberate": "noise" + }, + { + "reverberation": "acoustic" + }, + { + "reverberation": "echo" + }, + { + "reverberation": "hearing" + }, + { + "reverberation": "ring" + }, + { + "sonar": "data" + }, + { + "sonar": "echo" + }, + { + "sonar": "equipment" + }, + { + "accompaniment": "complement" + }, + { + "accompaniment": "escort" + }, + { + "accompaniment": "support" + }, + { + "accompaniment": "music" + }, + { + "accompaniment": "piano" + }, + { + "accompaniment": "playing" + }, + { + "album": "debut" + }, + { + "album": "download" + }, + { + "album": "photo" + }, + { + "album": "copyright" + }, + { + "album": "music" + }, + { + "aria": "cantata" + }, + { + "aria": "chorus" + }, + { + "aria": "music" + }, + { + "aria": "choral" + }, + { + "artist": "artistic" + }, + { + "artist": "draw" + }, + { + "artist": "gallery" + }, + { + "artist": "music" + }, + { + "artist": "musician" + }, + { + "artist": "photography" + }, + { + "artist": "writer" + }, + { + "artistic": "aesthetic" + }, + { + "artistic": "esthetic" + }, + { + "artistic": "music" + }, + { + "artistic": "painting" + }, + { + "artistic": "photography" + }, + { + "artistic": "tasteful" + }, + { + "atonal": "composition" + }, + { + "atonal": "music" + }, + { + "atonal": "tonality" + }, + { + "atonal": "undistinguished" + }, + { + "ballroom": "ballet" + }, + { + "ballroom": "choreographer" + }, + { + "ballroom": "dance" + }, + { + "ballroom": "dancing" + }, + { + "ballroom": "music" + }, + { + "ballroom": "party" + }, + { + "blandness": "appropriate" + }, + { + "blandness": "general" + }, + { + "blandness": "music" + }, + { + "blues": "guitar" + }, + { + "blues": "music" + }, + { + "blues": "singer" + }, + { + "cantata": "aria" + }, + { + "cantata": "oratorio" + }, + { + "cantata": "sonata" + }, + { + "cantata": "choir" + }, + { + "cantata": "music" + }, + { + "cantata": "singing" + }, + { + "cello": "violoncello" + }, + { + "cello": "harp" + }, + { + "cello": "music" + }, + { + "cello": "violin" + }, + { + "choreograph": "choreographer" + }, + { + "choreograph": "art" + }, + { + "choreograph": "ballet" + }, + { + "choreograph": "dance" + }, + { + "choreograph": "music" + }, + { + "choreography": "ballet" + }, + { + "choreography": "dancer" + }, + { + "choreography": "music" + }, + { + "choreography": "artistic" + }, + { + "choreography": "dance" + }, + { + "chorus": "choir" + }, + { + "chorus": "music" + }, + { + "chorus": "sing" + }, + { + "chorus": "vocal" + }, + { + "chromatic": "diatonic" + }, + { + "chromatic": "harmony" + }, + { + "chromatic": "octave" + }, + { + "chromatic": "music" + }, + { + "chromatic": "tune" + }, + { + "classical": "antiquity" + }, + { + "classical": "indian" + }, + { + "classical": "literature" + }, + { + "classical": "ancient" + }, + { + "classical": "architecture" + }, + { + "classical": "music" + }, + { + "compose": "composer" + }, + { + "compose": "compound" + }, + { + "compose": "indite" + }, + { + "compose": "makeup" + }, + { + "compose": "write" + }, + { + "compose": "compile" + }, + { + "compose": "music" + }, + { + "composer": "lyricist" + }, + { + "composer": "musician" + }, + { + "composer": "piano" + }, + { + "composer": "music" + }, + { + "composer": "singer" + }, + { + "barograph": "pressure" + }, + { + "barograph": "record" + }, + { + "barograph": "recording" + }, + { + "barometer": "air" + }, + { + "barometer": "pressure" + }, + { + "barometer": "record" + }, + { + "barometer": "recording" + }, + { + "barometer": "weather" + }, + { + "gramophone": "phonograph" + }, + { + "gramophone": "recording" + }, + { + "gramophone": "sound" + }, + { + "gramophone": "hear" + }, + { + "phonograph": "gramophone" + }, + { + "phonograph": "record" + }, + { + "phonograph": "recording" + }, + { + "phonograph": "machine" + }, + { + "phonograph": "show" + }, + { + "subliminal": "advertising" + }, + { + "subliminal": "message" + }, + { + "subliminal": "recording" + }, + { + "accent": "dialect" + }, + { + "accent": "highlight" + }, + { + "accent": "pronunciation" + }, + { + "accent": "stress" + }, + { + "accent": "voice" + }, + { + "aloud": "read" + }, + { + "aloud": "recite" + }, + { + "aloud": "spoken" + }, + { + "aloud": "speak" + }, + { + "aloud": "voice" + }, + { + "alto": "baritone" + }, + { + "alto": "choir" + }, + { + "alto": "tenor" + }, + { + "alto": "low" + }, + { + "alto": "voice" + }, + { + "audible": "audio" + }, + { + "audible": "hear" + }, + { + "audible": "hearing" + }, + { + "audible": "listen" + }, + { + "audible": "sonic" + }, + { + "audible": "voice" + }, + { + "baritone": "alto" + }, + { + "baritone": "low" + }, + { + "baritone": "tenor" + }, + { + "baritone": "voice" + }, + { + "cackle": "laugh" + }, + { + "cackle": "loud" + }, + { + "cackle": "scream" + }, + { + "cackle": "voice" + }, + { + "dupe": "bogus" + }, + { + "dupe": "charlatan" + }, + { + "dupe": "fool" + }, + { + "dupe": "hack" + }, + { + "dupe": "voice" + }, + { + "dysphonia": "disease" + }, + { + "dysphonia": "muscle" + }, + { + "dysphonia": "syndrome" + }, + { + "dysphonia": "vocal" + }, + { + "dysphonia": "voice" + }, + { + "effeminate": "camp" + }, + { + "effeminate": "effeminacy" + }, + { + "effeminate": "feminine" + }, + { + "effeminate": "gesture" + }, + { + "effeminate": "voice" + }, + { + "effeminate": "female" + }, + { + "effeminate": "girl" + }, + { + "effeminate": "woman" + }, + { + "emotionless": "cold" + }, + { + "emotionless": "tone" + }, + { + "emotionless": "voice" + }, + { + "emotionless": "impassive" + }, + { + "emotionless": "indifferent" + }, + { + "emotionless": "phlegmatic" + }, + { + "gruff": "cacophonous" + }, + { + "gruff": "hoarse" + }, + { + "gruff": "husky" + }, + { + "gruff": "voice" + }, + { + "hoarse": "gruff" + }, + { + "hoarse": "husky" + }, + { + "hoarse": "voice" + }, + { + "hoarse": "sound" + }, + { + "homophonic": "harmony" + }, + { + "homophonic": "polyphony" + }, + { + "homophonic": "voice" + }, + { + "homophonic": "same" + }, + { + "homophonic": "sound" + }, + { + "husky": "cacophonous" + }, + { + "husky": "gruff" + }, + { + "husky": "hoarse" + }, + { + "husky": "robust" + }, + { + "husky": "tough" + }, + { + "husky": "voice" + }, + { + "impersonate": "embody" + }, + { + "impersonate": "accent" + }, + { + "impersonate": "assume" + }, + { + "impersonate": "dupe" + }, + { + "impersonate": "simulate" + }, + { + "impersonate": "voice" + }, + { + "intrusive": "intrusion" + }, + { + "intrusive": "interfering" + }, + { + "intrusive": "invade" + }, + { + "intrusive": "invasive" + }, + { + "intrusive": "meddling" + }, + { + "intrusive": "voice" + } + ], + "result_code": "200", + "result_msg": "Success" + }, + "headers": { + "alt-svc": "h3-27=\":443\"; ma=86400, h3-25=\":443\"; ma=86400, h3-24=\":443\"; ma=86400, h3-23=\":443\"; ma=86400", + "cf-cache-status": "DYNAMIC", + "cf-ray": "599ea44a1a55d645-NRT", + "cf-request-id": "02f70502510000d64545a1f200000001", + "content-type": "application/json", + "date": "Wed, 27 May 2020 09:17:16 GMT", + "expect-ct": "max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\"", + "server": "RapidAPI-1.1.7", + "set-cookie": [ + "__cfduid=d11e7412603a03a770941d7388c82caee1590571035; expires=Fri, 26-Jun-20 09:17:15 GMT; path=/; domain=.twinword.com; HttpOnly; SameSite=Lax; Secure" + ], + "strict-transport-security": "max-age=15552000; includeSubDomains; preload", + "x-content-type-options": "nosniff", + "x-rapidapi-region": "AWS - ap-northeast-1", + "x-rapidapi-version": "1.1.7", + "x-ratelimit-requests-limit": "30000", + "x-ratelimit-requests-remaining": "29984", + "content-length": "9828", + "connection": "Close" + }, + "schema": { + "context": [ + "audio", + "echo", + "music", + "recording", + "voice" + ], + "entry": "sound", + "relation": [ + { + "acoustic": "guitar" + }, + { + "acoustic": "hearing" + }, + { + "acoustic": "music" + }, + { + "acoustic": "musical" + }, + { + "acoustic": "performance" + }, + { + "acoustic": "sound" + }, + { + "acoustics": "acoustic" + }, + { + "acoustics": "musical" + }, + { + "acoustics": "noise" + }, + { + "acoustics": "radio" + }, + { + "acoustics": "sound" + }, + { + "alarm": "dismay" + }, + { + "alarm": "fright" + }, + { + "alarm": "horror" + }, + { + "alarm": "terror" + }, + { + "alarm": "bell" + }, + { + "alarm": "sound" + }, + { + "alert": "attentive" + }, + { + "alert": "vigilant" + }, + { + "alert": "watchful" + }, + { + "alert": "clear" + }, + { + "alert": "noise" + }, + { + "alert": "sound" + }, + { + "amplifier": "machine" + }, + { + "amplifier": "sound" + }, + { + "amplifier": "transistor" + }, + { + "amplifier": "loud" + }, + { + "amplifier": "noise" + }, + { + "amplitude": "ample" + }, + { + "amplitude": "peak" + }, + { + "amplitude": "sound" + }, + { + "amplitude": "wave" + }, + { + "amplitude": "frequency" + }, + { + "attune": "accustom" + }, + { + "attune": "adjust" + }, + { + "attune": "sound" + }, + { + "audio": "cassette" + }, + { + "audio": "digital" + }, + { + "audio": "recording" + }, + { + "audio": "sound" + }, + { + "audio": "video" + }, + { + "auditory": "audition" + }, + { + "auditory": "ear" + }, + { + "auditory": "hearing" + }, + { + "auditory": "sound" + }, + { + "auditory": "stimulus" + }, + { + "auditory": "voice" + }, + { + "beep": "honk" + }, + { + "beep": "noise" + }, + { + "beep": "sound" + }, + { + "beep": "toot" + }, + { + "beep": "whistle" + }, + { + "bell": "doorbell" + }, + { + "bell": "chime" + }, + { + "bell": "hear" + }, + { + "bell": "jingle" + }, + { + "bell": "sound" + }, + { + "bell": "telephone" + }, + { + "blare": "din" + }, + { + "blare": "honk" + }, + { + "blare": "sound" + }, + { + "blare": "toot" + }, + { + "blare": "warning" + }, + { + "blowing": "blast" + }, + { + "blowing": "conch" + }, + { + "blowing": "gale" + }, + { + "blowing": "noise" + }, + { + "blowing": "sound" + }, + { + "blowing": "whistle" + }, + { + "brassy": "brass" + }, + { + "brassy": "loud" + }, + { + "brassy": "sound" + }, + { + "brassy": "voice" + }, + { + "brassy": "annoying" + }, + { + "brassy": "din" + }, + { + "brassy": "racket" + }, + { + "bray": "cry" + }, + { + "bray": "laughter" + }, + { + "bray": "sing" + }, + { + "bray": "sound" + }, + { + "breaking": "cipher" + }, + { + "breaking": "code" + }, + { + "breaking": "destroy" + }, + { + "breaking": "news" + }, + { + "breaking": "sound" + }, + { + "breaking": "tone" + }, + { + "cacophonous": "inharmonious" + }, + { + "cacophonous": "cacophony" + }, + { + "cacophonous": "raucous" + }, + { + "cacophonous": "rough" + }, + { + "cacophonous": "sound" + }, + { + "cacophonous": "strident" + }, + { + "cacophonous": "tool" + }, + { + "chirp": "buzz" + }, + { + "chirp": "sound" + }, + { + "chirp": "squeak" + }, + { + "chirp": "twitter" + }, + { + "chirp": "warble" + }, + { + "chord": "guitar" + }, + { + "chord": "harmonize" + }, + { + "chord": "melody" + }, + { + "chord": "music" + }, + { + "chord": "playing" + }, + { + "chord": "sound" + }, + { + "click": "penetrate" + }, + { + "click": "snap" + }, + { + "click": "understand" + }, + { + "click": "button" + }, + { + "click": "camera" + }, + { + "click": "sound" + }, + { + "cassette": "tape" + }, + { + "cassette": "audio" + }, + { + "cassette": "recorder" + }, + { + "cassette": "vcr" + }, + { + "commentary": "audio" + }, + { + "commentary": "television" + }, + { + "commentary": "text" + }, + { + "commentary": "broadcast" + }, + { + "converter": "audio" + }, + { + "converter": "change" + }, + { + "converter": "currency" + }, + { + "converter": "digital" + }, + { + "converter": "plug" + }, + { + "dubbing": "audio" + }, + { + "dubbing": "language" + }, + { + "dubbing": "subtitle" + }, + { + "dubbing": "voice" + }, + { + "playback": "audio" + }, + { + "playback": "recording" + }, + { + "playback": "video" + }, + { + "recorder": "tape" + }, + { + "recorder": "video" + }, + { + "recorder": "voice" + }, + { + "recorder": "audio" + }, + { + "recorder": "sound" + }, + { + "recording": "audio" + }, + { + "recording": "sound" + }, + { + "recording": "studio" + }, + { + "recording": "transcription" + }, + { + "sonic": "audio" + }, + { + "sonic": "hear" + }, + { + "sonic": "physics" + }, + { + "sonic": "noise" + }, + { + "sonic": "sound" + }, + { + "studio": "art" + }, + { + "studio": "audio" + }, + { + "studio": "musician" + }, + { + "studio": "recording" + }, + { + "studio": "school" + }, + { + "studio": "video" + }, + { + "subtitle": "dubbing" + }, + { + "subtitle": "english" + }, + { + "subtitle": "language" + }, + { + "subtitle": "audio" + }, + { + "subtitle": "learning" + }, + { + "tape": "audio" + }, + { + "tape": "recorder" + }, + { + "tape": "video" + }, + { + "tape": "voice" + }, + { + "transcription": "audio" + }, + { + "transcription": "document" + }, + { + "transcription": "record" + }, + { + "transcription": "recording" + }, + { + "transcription": "studio" + }, + { + "transcription": "text" + }, + { + "video": "clip" + }, + { + "video": "tv" + }, + { + "video": "watch" + }, + { + "video": "audio" + }, + { + "video": "camera" + }, + { + "video": "film" + }, + { + "voice": "audio" + }, + { + "voice": "hear" + }, + { + "voice": "music" + }, + { + "voice": "radio" + }, + { + "voice": "recorder" + }, + { + "voice": "sound" + }, + { + "ditto": "ape" + }, + { + "ditto": "echo" + }, + { + "ditto": "equal" + }, + { + "ditto": "same" + }, + { + "ditto": "say" + }, + { + "ditto": "similar" + }, + { + "earshot": "acoustic" + }, + { + "earshot": "echo" + }, + { + "earshot": "hearing" + }, + { + "echo": "imitate" + }, + { + "echo": "reverberation" + }, + { + "echo": "noise" + }, + { + "echo": "reflect" + }, + { + "echo": "resonate" + }, + { + "echo": "resound" + }, + { + "echo": "sound" + }, + { + "echo": "voice" + }, + { + "hearing": "audience" + }, + { + "hearing": "deaf" + }, + { + "hearing": "listening" + }, + { + "hearing": "echo" + }, + { + "hearing": "speaking" + }, + { + "iterate": "reiterate" + }, + { + "iterate": "echo" + }, + { + "iterate": "repeat" + }, + { + "iterate": "restate" + }, + { + "iterate": "say" + }, + { + "mimic": "imitate" + }, + { + "mimic": "mime" + }, + { + "mimic": "copy" + }, + { + "mimic": "echo" + }, + { + "mimic": "imitation" + }, + { + "repeat": "repeatedly" + }, + { + "repeat": "duplicate" + }, + { + "repeat": "again" + }, + { + "repeat": "echo" + }, + { + "repeat": "reiterate" + }, + { + "repeat": "repetition" + }, + { + "repeat": "restate" + }, + { + "repeat": "say" + }, + { + "repeatedly": "repeat" + }, + { + "repeatedly": "again" + }, + { + "repeatedly": "deny" + }, + { + "repeatedly": "echo" + }, + { + "repeatedly": "restate" + }, + { + "repeatedly": "speak" + }, + { + "repeatedly": "warn" + }, + { + "resonance": "resonate" + }, + { + "resonance": "echo" + }, + { + "resonance": "ringing" + }, + { + "resonance": "sonority" + }, + { + "resonance": "sound" + }, + { + "resonate": "digress" + }, + { + "resonate": "echo" + }, + { + "resonate": "reflect" + }, + { + "resonate": "resounding" + }, + { + "resonate": "sound" + }, + { + "resound": "echo" + }, + { + "resound": "noise" + }, + { + "resound": "reverberate" + }, + { + "resound": "spread" + }, + { + "reverberate": "reverberation" + }, + { + "reverberate": "echo" + }, + { + "reverberate": "resound" + }, + { + "reverberate": "ring" + }, + { + "reverberate": "noise" + }, + { + "reverberation": "acoustic" + }, + { + "reverberation": "echo" + }, + { + "reverberation": "hearing" + }, + { + "reverberation": "ring" + }, + { + "sonar": "data" + }, + { + "sonar": "echo" + }, + { + "sonar": "equipment" + }, + { + "accompaniment": "complement" + }, + { + "accompaniment": "escort" + }, + { + "accompaniment": "support" + }, + { + "accompaniment": "music" + }, + { + "accompaniment": "piano" + }, + { + "accompaniment": "playing" + }, + { + "album": "debut" + }, + { + "album": "download" + }, + { + "album": "photo" + }, + { + "album": "copyright" + }, + { + "album": "music" + }, + { + "aria": "cantata" + }, + { + "aria": "chorus" + }, + { + "aria": "music" + }, + { + "aria": "choral" + }, + { + "artist": "artistic" + }, + { + "artist": "draw" + }, + { + "artist": "gallery" + }, + { + "artist": "music" + }, + { + "artist": "musician" + }, + { + "artist": "photography" + }, + { + "artist": "writer" + }, + { + "artistic": "aesthetic" + }, + { + "artistic": "esthetic" + }, + { + "artistic": "music" + }, + { + "artistic": "painting" + }, + { + "artistic": "photography" + }, + { + "artistic": "tasteful" + }, + { + "atonal": "composition" + }, + { + "atonal": "music" + }, + { + "atonal": "tonality" + }, + { + "atonal": "undistinguished" + }, + { + "ballroom": "ballet" + }, + { + "ballroom": "choreographer" + }, + { + "ballroom": "dance" + }, + { + "ballroom": "dancing" + }, + { + "ballroom": "music" + }, + { + "ballroom": "party" + }, + { + "blandness": "appropriate" + }, + { + "blandness": "general" + }, + { + "blandness": "music" + }, + { + "blues": "guitar" + }, + { + "blues": "music" + }, + { + "blues": "singer" + }, + { + "cantata": "aria" + }, + { + "cantata": "oratorio" + }, + { + "cantata": "sonata" + }, + { + "cantata": "choir" + }, + { + "cantata": "music" + }, + { + "cantata": "singing" + }, + { + "cello": "violoncello" + }, + { + "cello": "harp" + }, + { + "cello": "music" + }, + { + "cello": "violin" + }, + { + "choreograph": "choreographer" + }, + { + "choreograph": "art" + }, + { + "choreograph": "ballet" + }, + { + "choreograph": "dance" + }, + { + "choreograph": "music" + }, + { + "choreography": "ballet" + }, + { + "choreography": "dancer" + }, + { + "choreography": "music" + }, + { + "choreography": "artistic" + }, + { + "choreography": "dance" + }, + { + "chorus": "choir" + }, + { + "chorus": "music" + }, + { + "chorus": "sing" + }, + { + "chorus": "vocal" + }, + { + "chromatic": "diatonic" + }, + { + "chromatic": "harmony" + }, + { + "chromatic": "octave" + }, + { + "chromatic": "music" + }, + { + "chromatic": "tune" + }, + { + "classical": "antiquity" + }, + { + "classical": "indian" + }, + { + "classical": "literature" + }, + { + "classical": "ancient" + }, + { + "classical": "architecture" + }, + { + "classical": "music" + }, + { + "compose": "composer" + }, + { + "compose": "compound" + }, + { + "compose": "indite" + }, + { + "compose": "makeup" + }, + { + "compose": "write" + }, + { + "compose": "compile" + }, + { + "compose": "music" + }, + { + "composer": "lyricist" + }, + { + "composer": "musician" + }, + { + "composer": "piano" + }, + { + "composer": "music" + }, + { + "composer": "singer" + }, + { + "barograph": "pressure" + }, + { + "barograph": "record" + }, + { + "barograph": "recording" + }, + { + "barometer": "air" + }, + { + "barometer": "pressure" + }, + { + "barometer": "record" + }, + { + "barometer": "recording" + }, + { + "barometer": "weather" + }, + { + "gramophone": "phonograph" + }, + { + "gramophone": "recording" + }, + { + "gramophone": "sound" + }, + { + "gramophone": "hear" + }, + { + "phonograph": "gramophone" + }, + { + "phonograph": "record" + }, + { + "phonograph": "recording" + }, + { + "phonograph": "machine" + }, + { + "phonograph": "show" + }, + { + "subliminal": "advertising" + }, + { + "subliminal": "message" + }, + { + "subliminal": "recording" + }, + { + "accent": "dialect" + }, + { + "accent": "highlight" + }, + { + "accent": "pronunciation" + }, + { + "accent": "stress" + }, + { + "accent": "voice" + }, + { + "aloud": "read" + }, + { + "aloud": "recite" + }, + { + "aloud": "spoken" + }, + { + "aloud": "speak" + }, + { + "aloud": "voice" + }, + { + "alto": "baritone" + }, + { + "alto": "choir" + }, + { + "alto": "tenor" + }, + { + "alto": "low" + }, + { + "alto": "voice" + }, + { + "audible": "audio" + }, + { + "audible": "hear" + }, + { + "audible": "hearing" + }, + { + "audible": "listen" + }, + { + "audible": "sonic" + }, + { + "audible": "voice" + }, + { + "baritone": "alto" + }, + { + "baritone": "low" + }, + { + "baritone": "tenor" + }, + { + "baritone": "voice" + }, + { + "cackle": "laugh" + }, + { + "cackle": "loud" + }, + { + "cackle": "scream" + }, + { + "cackle": "voice" + }, + { + "dupe": "bogus" + }, + { + "dupe": "charlatan" + }, + { + "dupe": "fool" + }, + { + "dupe": "hack" + }, + { + "dupe": "voice" + }, + { + "dysphonia": "disease" + }, + { + "dysphonia": "muscle" + }, + { + "dysphonia": "syndrome" + }, + { + "dysphonia": "vocal" + }, + { + "dysphonia": "voice" + }, + { + "effeminate": "camp" + }, + { + "effeminate": "effeminacy" + }, + { + "effeminate": "feminine" + }, + { + "effeminate": "gesture" + }, + { + "effeminate": "voice" + }, + { + "effeminate": "female" + }, + { + "effeminate": "girl" + }, + { + "effeminate": "woman" + }, + { + "emotionless": "cold" + }, + { + "emotionless": "tone" + }, + { + "emotionless": "voice" + }, + { + "emotionless": "impassive" + }, + { + "emotionless": "indifferent" + }, + { + "emotionless": "phlegmatic" + }, + { + "gruff": "cacophonous" + }, + { + "gruff": "hoarse" + }, + { + "gruff": "husky" + }, + { + "gruff": "voice" + }, + { + "hoarse": "gruff" + }, + { + "hoarse": "husky" + }, + { + "hoarse": "voice" + }, + { + "hoarse": "sound" + }, + { + "homophonic": "harmony" + }, + { + "homophonic": "polyphony" + }, + { + "homophonic": "voice" + }, + { + "homophonic": "same" + }, + { + "homophonic": "sound" + }, + { + "husky": "cacophonous" + }, + { + "husky": "gruff" + }, + { + "husky": "hoarse" + }, + { + "husky": "robust" + }, + { + "husky": "tough" + }, + { + "husky": "voice" + }, + { + "impersonate": "embody" + }, + { + "impersonate": "accent" + }, + { + "impersonate": "assume" + }, + { + "impersonate": "dupe" + }, + { + "impersonate": "simulate" + }, + { + "impersonate": "voice" + }, + { + "intrusive": "intrusion" + }, + { + "intrusive": "interfering" + }, + { + "intrusive": "invade" + }, + { + "intrusive": "invasive" + }, + { + "intrusive": "meddling" + }, + { + "intrusive": "voice" + } + ], + "result_code": "200", + "result_msg": "Success" + } + }, + { + "name": "Visualize (post)", + "url": "https://twinword-visual-context-graph.p.rapidapi.com/visualize/", + "description": "Diagram information for visualizing concepts or mind maps.", + "method": "POST", + "required_parameters": [ + { + "name": "entry", + "type": "STRING", + "description": "", + "default": "sound" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://twinword-visual-context-graph.p.rapidapi.com/visualize/\"\nquerystring = {\"entry\": \"sound\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"twinword-visual-context-graph.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://twinword-visual-context-graph.p.rapidapi.com/visualize/\"\nquerystring = {\"entry\": \"sound\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"twinword-visual-context-graph.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": {} + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Text_Analysis/visual_context_graph/api.py b/toolbench/toolenv/tools/Text_Analysis/visual_context_graph/api.py new file mode 100644 index 0000000000000000000000000000000000000000..e3b6505b235433edd92bfab84e4e4662fc1ebcc4 --- /dev/null +++ b/toolbench/toolenv/tools/Text_Analysis/visual_context_graph/api.py @@ -0,0 +1,30 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def visualize_get(entry: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Diagram information for visualizing concepts or mind maps." + entry: Type a word to see the words connected to it + + """ + url = f"https://twinword-visual-context-graph.p.rapidapi.com/visualize/" + querystring = {'entry': entry, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "twinword-visual-context-graph.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Text_Analysis/voter_card_ocr.json b/toolbench/toolenv/tools/Text_Analysis/voter_card_ocr.json new file mode 100644 index 0000000000000000000000000000000000000000..e6fe0aa6152dc3ffbabda9a22d42322a764171b5 --- /dev/null +++ b/toolbench/toolenv/tools/Text_Analysis/voter_card_ocr.json @@ -0,0 +1,61 @@ +{ + "tool_name": "Voter Card OCR", + "tool_description": "Extract data from Voter ID Card instantly and accurately!\n\n \n\nWhen paired with IDfy\u2019s Voter Card Verification API, extracts data from an image of a Voter ID Card. It accurately auto-fills this data in the right fields for a quicker & errorless form-filling experience.\n\nGet your API access", + "title": "Voter Card OCR", + "pricing": "FREEMIUM", + "score": { + "avgServiceLevel": 94, + "avgLatency": 101, + "avgSuccessRate": 94, + "popularityScore": 8.8, + "__typename": "Score" + }, + "home_url": "https://rapidapi.com/idfy-idfy-default/api/voter-card-ocr/", + "host": "voter-card-ocr.p.rapidapi.com", + "api_list": [ + { + "name": "Voter Card OCR", + "url": "https://voter-card-ocr.p.rapidapi.com/v3/tasks/async/extract/ind_voter_id", + "description": "Extract data from Voter ID Card instantly and accurately!\n\nWhen paired with IDfy\u2019s Voter Card Verification API, extracts data from an image of a Voter ID Card. It accurately auto-fills this data in the right fields for a quicker & errorless form-filling experience. \n\nUse get call on the left and pass the request id to fetch api call results.", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://voter-card-ocr.p.rapidapi.com/v3/tasks/async/extract/ind_voter_id\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"voter-card-ocr.p.rapidapi.com\"\n}\n\nresponse = requests.post(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 111, + "body": "", + "headers": "", + "schema": "" + }, + { + "name": "GET API", + "url": "https://voter-card-ocr.p.rapidapi.com/v3/tasks", + "description": "Used to fetch api result using the request id received in responses.", + "method": "GET", + "required_parameters": [ + { + "name": "request_id", + "type": "STRING", + "description": "", + "default": "68bbb910-da9b-4d8a-9a1d-4bd878b19846" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://voter-card-ocr.p.rapidapi.com/v3/tasks\"\nquerystring = {\"request_id\": request_id}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"voter-card-ocr.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode": 111, + "body": "", + "headers": "", + "schema": "" + }, + { + "name": "Voter Card OCR", + "url": "https://voter-card-ocr.p.rapidapi.com/v3/tasks/async/extract/ind_voter_id", + "description": "Extract data from Voter ID Card instantly and accurately!\n\nWhen paired with IDfy\u2019s Voter Card Verification API, extracts data from an image of a Voter ID Card. It accurately auto-fills this data in the right fields for a quicker & errorless form-filling experience. \n\nUse get call on the left and pass the request id to fetch api call results.", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://voter-card-ocr.p.rapidapi.com/v3/tasks/async/extract/ind_voter_id\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"voter-card-ocr.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://voter-card-ocr.p.rapidapi.com/v3/tasks/async/extract/ind_voter_id\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"voter-card-ocr.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Text_Analysis/voter_card_ocr/api.py b/toolbench/toolenv/tools/Text_Analysis/voter_card_ocr/api.py new file mode 100644 index 0000000000000000000000000000000000000000..eae7828c750c116be0f465c86e03d47c81348464 --- /dev/null +++ b/toolbench/toolenv/tools/Text_Analysis/voter_card_ocr/api.py @@ -0,0 +1,29 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def get_api(request_id: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Used to fetch api result using the request id received in responses." + + """ + url = f"https://voter-card-ocr.p.rapidapi.com/v3/tasks" + querystring = {'request_id': request_id, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "voter-card-ocr.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Text_Analysis/vps_tester.json b/toolbench/toolenv/tools/Text_Analysis/vps_tester.json new file mode 100644 index 0000000000000000000000000000000000000000..9a00bc089587808bcd63fbbbb0f6900b31be1b6d --- /dev/null +++ b/toolbench/toolenv/tools/Text_Analysis/vps_tester.json @@ -0,0 +1,24 @@ +{ + "tool_name":"VPS Tester", + "tool_description":"VPS tester", + "title":"VPS Tester", + "pricing":"FREE", + "score":null, + "home_url":"https://rapidapi.com/earngurus/api/vps-tester/", + "host":"vps-tester.p.rapidapi.com", + "api_list":[ + { + "name":"Test", + "url":"https://vps-tester.p.rapidapi.comTest", + "description":"Test", + "method":"GET", + "required_parameters":[], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://vps-tester.p.rapidapi.comTest\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"vps-tester.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Text_Analysis/vps_tester/api.py b/toolbench/toolenv/tools/Text_Analysis/vps_tester/api.py new file mode 100644 index 0000000000000000000000000000000000000000..e2268f7c789afff5137f709d333aace3ff320f6a --- /dev/null +++ b/toolbench/toolenv/tools/Text_Analysis/vps_tester/api.py @@ -0,0 +1,29 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def test(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Test" + + """ + url = f"https://vps-tester.p.rapidapi.comtest" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "vps-tester.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Text_Analysis/walnut_entity.json b/toolbench/toolenv/tools/Text_Analysis/walnut_entity.json new file mode 100644 index 0000000000000000000000000000000000000000..f379d0adee5a23e2209016ef2dabfe747f4353ca --- /dev/null +++ b/toolbench/toolenv/tools/Text_Analysis/walnut_entity.json @@ -0,0 +1,59 @@ +{ + "tool_name":"Walnut Entity", + "tool_description":"Extract structure from text data (who, what, where..) automatically using AI.", + "title":"Walnut Entity", + "pricing":"FREEMIUM", + "score":null, + "home_url":"https://rapidapi.com/WRT/api/walnut-entity/", + "host":"walnut-entity.p.rapidapi.com", + "api_list":[ + { + "name":"wrt_transformer", + "url":"https://walnut-entity.p.rapidapi.com/wrt_transformer", + "description":"Get the text input and returns the entities identified.", + "method":"GET", + "required_parameters":[ + { + "name":"payload", + "type":"STRING", + "description":"", + "default":"I am Richard from New York and I work at Microsoft." + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://walnut-entity.p.rapidapi.com/wrt_transformer\"\nquerystring = {\"payload\": payload}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"walnut-entity.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":200, + "body":{ + "result":[ + { + "entity":"who", + "word":"Richard" + }, + { + "entity":"where", + "word":"New York" + }, + { + "entity":"org", + "word":"Microsoft" + } + ] + }, + "headers":{ + "access-control-allow-credentials":"true", + "access-control-allow-origin":"*", + "connection":"keep-alive", + "content-length":"131", + "content-type":"application/json", + "date":"Thu, 12 May 2022 22:43:38 GMT", + "server":"RapidAPI-1.2.8", + "x-amz-apigw-id":"SCMP_E11iYcFlLA=", + "x-amzn-requestid":"2414d4e2-b058-4b9b-9fac-e634edbd8738", + "x-amzn-trace-id":"Root=1-627d8d99-29cd1cde4f839ac949bcf623;Sampled=0", + "x-rapidapi-region":"AWS - eu-west-1", + "x-rapidapi-version":"1.2.8" + }, + "schema":{} + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Text_Analysis/walnut_entity/api.py b/toolbench/toolenv/tools/Text_Analysis/walnut_entity/api.py new file mode 100644 index 0000000000000000000000000000000000000000..5b810572b1d1707c7a76807212b1155b4bd04fc8 --- /dev/null +++ b/toolbench/toolenv/tools/Text_Analysis/walnut_entity/api.py @@ -0,0 +1,29 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def wrt_transformer(payload: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get the text input and returns the entities identified." + + """ + url = f"https://walnut-entity.p.rapidapi.com/wrt_transformer" + querystring = {'payload': payload, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "walnut-entity.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Text_Analysis/walnut_topic.json b/toolbench/toolenv/tools/Text_Analysis/walnut_topic.json new file mode 100644 index 0000000000000000000000000000000000000000..870f3c553e1c9ba8ea1ba604ee7ae1eb30f3ea93 --- /dev/null +++ b/toolbench/toolenv/tools/Text_Analysis/walnut_topic.json @@ -0,0 +1,60 @@ +{ + "tool_name":"Walnut Topic", + "tool_description":"AI powered topic extraction from texts.", + "title":"Walnut Topic", + "pricing":"FREEMIUM", + "score":null, + "home_url":"https://rapidapi.com/WRT/api/walnut-topic/", + "host":"walnut-topic.p.rapidapi.com", + "api_list":[ + { + "name":"wrt_transformer", + "url":"https://walnut-topic.p.rapidapi.com/wrt_transformer", + "description":"Gets the text and set of possible topics separated by a comma.\n\nReturns the ranking of topics from most relevant to least relevant.", + "method":"GET", + "required_parameters":[ + { + "name":"text", + "type":"STRING", + "description":"", + "default":"My tablet is not working and I want a refund as soon as possible!" + }, + { + "name":"topics", + "type":"STRING", + "description":"", + "default":"furniture,eletronics,books,billing,promotion,urgent,design" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://walnut-topic.p.rapidapi.com/wrt_transformer\"\nquerystring = {\"text\": text, \"topics\": topics}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"walnut-topic.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":200, + "body":{ + "result":{ + "topic_relevance_1":"urgent", + "topic_relevance_2":"billing", + "topic_relevance_3":"eletronics", + "topic_relevance_4":"design", + "topic_relevance_5":"promotion", + "topic_relevance_6":"books", + "topic_relevance_7":"furniture" + } + }, + "headers":{ + "access-control-allow-credentials":"true", + "access-control-allow-origin":"*", + "connection":"keep-alive", + "content-length":"239", + "content-type":"application/json", + "date":"Thu, 12 May 2022 23:12:18 GMT", + "server":"RapidAPI-1.2.8", + "x-amz-apigw-id":"SCQciFCeiYcF-Iw=", + "x-amzn-requestid":"874ace66-12e3-47f3-bb91-70de7ddd594c", + "x-amzn-trace-id":"Root=1-627d9450-1fdef9267c12282f28c1d6e4;Sampled=0", + "x-rapidapi-region":"AWS - eu-west-1", + "x-rapidapi-version":"1.2.8" + }, + "schema":{} + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Text_Analysis/walnut_topic/api.py b/toolbench/toolenv/tools/Text_Analysis/walnut_topic/api.py new file mode 100644 index 0000000000000000000000000000000000000000..436596c78802053556584e7fa2696f88aba67bcb --- /dev/null +++ b/toolbench/toolenv/tools/Text_Analysis/walnut_topic/api.py @@ -0,0 +1,31 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def wrt_transformer(text: str, topics: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Gets the text and set of possible topics separated by a comma. + + Returns the ranking of topics from most relevant to least relevant." + + """ + url = f"https://walnut-topic.p.rapidapi.com/wrt_transformer" + querystring = {'text': text, 'topics': topics, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "walnut-topic.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Text_Analysis/walnut_word_completion.json b/toolbench/toolenv/tools/Text_Analysis/walnut_word_completion.json new file mode 100644 index 0000000000000000000000000000000000000000..c938a6cff13a2c3821202f6ee22712c48a481890 --- /dev/null +++ b/toolbench/toolenv/tools/Text_Analysis/walnut_word_completion.json @@ -0,0 +1,46 @@ +{ + "tool_name":"Walnut Word Completion", + "tool_description":"Complete any masked word in a sentence using AI.", + "title":"Walnut Word Completion", + "pricing":"FREEMIUM", + "score":null, + "home_url":"https://rapidapi.com/WRT/api/walnut-word-completion/", + "host":"walnut-word-completion.p.rapidapi.com", + "api_list":[ + { + "name":"wrt_transformer", + "url":"https://walnut-word-completion.p.rapidapi.com/wrt_transformer", + "description":"Returns the hidden word in the sentence.", + "method":"GET", + "required_parameters":[ + { + "name":"payload", + "type":"STRING", + "description":"", + "default":"All [MASK] like to chase rats." + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://walnut-word-completion.p.rapidapi.com/wrt_transformer\"\nquerystring = {\"payload\": payload}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"walnut-word-completion.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":200, + "body":{ + "result":"cats" + }, + "headers":{ + "access-control-allow-credentials":"true", + "access-control-allow-origin":"*", + "connection":"keep-alive", + "content-length":"18", + "content-type":"application/json", + "date":"Mon, 09 May 2022 23:55:33 GMT", + "server":"RapidAPI-1.2.8", + "x-amz-apigw-id":"R4d-TFiACYcF4Cg=", + "x-amzn-requestid":"86a9c685-8178-4f5e-84f2-bf56c897aa41", + "x-amzn-trace-id":"Root=1-6279a9f4-2b47ea525ba20cf07964d6cf;Sampled=0", + "x-rapidapi-region":"AWS - eu-west-1", + "x-rapidapi-version":"1.2.8" + }, + "schema":{} + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Text_Analysis/walnut_word_completion/api.py b/toolbench/toolenv/tools/Text_Analysis/walnut_word_completion/api.py new file mode 100644 index 0000000000000000000000000000000000000000..de79b62a7b29904e73eabd3a3bcfc0f0d9d25784 --- /dev/null +++ b/toolbench/toolenv/tools/Text_Analysis/walnut_word_completion/api.py @@ -0,0 +1,29 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def wrt_transformer(payload: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Returns the hidden word in the sentence." + + """ + url = f"https://walnut-word-completion.p.rapidapi.com/wrt_transformer" + querystring = {'payload': payload, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "walnut-word-completion.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Text_Analysis/web2meaning.json b/toolbench/toolenv/tools/Text_Analysis/web2meaning.json new file mode 100644 index 0000000000000000000000000000000000000000..43d0c45c580d3b01666a70b21537812a5eb94666 --- /dev/null +++ b/toolbench/toolenv/tools/Text_Analysis/web2meaning.json @@ -0,0 +1,30 @@ +{ + "product_id": "api_88d463df-3357-49fa-abfb-b9052316387e", + "tool_description": " Web2Meaning is a comprehensive web scrapping API that extracts text from the selected web pages and processes it by 7 different classifiers to construct a personal high-quality knowledge base;", + "home_url": "https://rapidapi.com/knowledgator-knowledgator-default/api/web2meaning/", + "name": "Web2Meaning", + "title": "Web2Meaning", + "pricing": "FREEMIUM", + "tool_name": "Web2Meaning", + "score": { + "avgServiceLevel": 100, + "avgLatency": 2367, + "avgSuccessRate": 99, + "popularityScore": 9.7, + "__typename": "Score" + }, + "host": "web2meaning.p.rapidapi.com", + "api_list": [ + { + "name": "parse", + "url": "https://web2meaning.p.rapidapi.com/parse", + "description": "Extract information from web resources", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://web2meaning.p.rapidapi.com/parse\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"web2meaning.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://web2meaning.p.rapidapi.com/parse\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"web2meaning.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Text_Analysis/webit_text_analytics.json b/toolbench/toolenv/tools/Text_Analysis/webit_text_analytics.json new file mode 100644 index 0000000000000000000000000000000000000000..0f84f0cc124e1a41a544cb1f35a23a7c4ac29a46 --- /dev/null +++ b/toolbench/toolenv/tools/Text_Analysis/webit_text_analytics.json @@ -0,0 +1,143 @@ +{ + "product_id": "api_67dd69f0-5727-41f8-8ab0-6c11f8ce121a", + "tool_description": "FREE. Sentiment, Entities, Language, Similarity, Key Phrases, Text Comparisons.", + "home_url": "https://rapidapi.com/webit/api/webit-text-analytics/", + "name": "Webit Text Analytics", + "title": "Webit Text Analytics", + "pricing": "FREEMIUM", + "tool_name": "Webit Text Analytics", + "score": { + "avgServiceLevel": 74, + "avgLatency": 33627, + "avgSuccessRate": 74, + "popularityScore": 9.1, + "__typename": "Score" + }, + "host": "webit-text-analytics.p.rapidapi.com", + "api_list": [ + { + "name": "Similarity", + "url": "https://webit-text-analytics.p.rapidapi.com/similarity", + "description": "Compares two strings by using a sophisticated set of AI algorithms and returns the similarity score between the two strings.", + "method": "POST", + "required_parameters": [ + { + "name": "string2", + "type": "STRING", + "description": "", + "default": "Catania is not a very nice city." + }, + { + "name": "string1", + "type": "STRING", + "description": "", + "default": "Catania is a very beautiful city." + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://webit-text-analytics.p.rapidapi.com/similarity\"\nquerystring = {\"string2\": \"Catania is not a very nice city.\", \"string1\": \"Catania is a very beautiful city.\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"webit-text-analytics.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://webit-text-analytics.p.rapidapi.com/similarity\"\nquerystring = {\"string2\": \"Catania is not a very nice city.\", \"string1\": \"Catania is a very beautiful city.\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"webit-text-analytics.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": {} + }, + { + "name": "Key Phrases", + "url": "https://webit-text-analytics.p.rapidapi.com/key-phrases", + "description": "Key phrases extraction allows for quickly identifying the main concepts in a text.", + "method": "POST", + "required_parameters": [ + { + "name": "language", + "type": "STRING", + "description": "The accepted ISO 639-1 language codes are: af, ar, bg, bn, br, ca, cs, da, de, el, en, eo, es, et, eu, fa, fi, fr, ga, gl, ha, he, hi, hr, hu, hy, id, it, ja, ko, la, lv, mr, nl, no, pl, pt, ro, ru, sk, sl, so, st, sv, sw, th, tr, yo, zh, zu.", + "default": "en" + }, + { + "name": "text", + "type": "STRING", + "description": "The input string text.", + "default": "Catania is a city of the eastern coast of Sicily at the foot of Mount Etna, the biggest volcano in Europe. It is the seventh largest city in Italy with the metropolitan area reaching one million inhabitants, a major transport hub, economic centre and a university city where you will enjoy a busy downtown and an active nightlife. Catania is also well known for its particular baroque architecture and urban design." + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://webit-text-analytics.p.rapidapi.com/key-phrases\"\nquerystring = {\"language\": \"en\", \"text\": \"Catania is a city of the eastern coast of Sicily at the foot of Mount Etna, the biggest volcano in Europe. It is the seventh largest city in Italy with the metropolitan area reaching one million inhabitants, a major transport hub, economic centre and a university city where you will enjoy a busy downtown and an active nightlife. Catania is also well known for its particular baroque architecture and urban design.\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"webit-text-analytics.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://webit-text-analytics.p.rapidapi.com/key-phrases\"\nquerystring = {\"language\": \"en\", \"text\": \"Catania is a city of the eastern coast of Sicily at the foot of Mount Etna, the biggest volcano in Europe. It is the seventh largest city in Italy with the metropolitan area reaching one million inhabitants, a major transport hub, economic centre and a university city where you will enjoy a busy downtown and an active nightlife. Catania is also well known for its particular baroque architecture and urban design.\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"webit-text-analytics.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": {} + }, + { + "name": "Match", + "url": "https://webit-text-analytics.p.rapidapi.com/match", + "description": "Compares a string with an array of strings and does an AI affinity comparison to find the closest matches.", + "method": "POST", + "required_parameters": [ + { + "name": "haystack_strings", + "type": "ARRAY", + "description": "", + "default": "[\"pizza\", \"pasta\", \"pasties\", \"hasta\"]" + }, + { + "name": "needle_string", + "type": "STRING", + "description": "", + "default": "pasta" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://webit-text-analytics.p.rapidapi.com/match\"\nquerystring = {\"haystack_strings\": \"[\\\"pizza\\\", \\\"pasta\\\", \\\"pasties\\\", \\\"hasta\\\"]\", \"needle_string\": \"pasta\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"webit-text-analytics.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://webit-text-analytics.p.rapidapi.com/match\"\nquerystring = {\"haystack_strings\": \"[\\\"pizza\\\", \\\"pasta\\\", \\\"pasties\\\", \\\"hasta\\\"]\", \"needle_string\": \"pasta\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"webit-text-analytics.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": {} + }, + { + "name": "Sentiment", + "url": "https://webit-text-analytics.p.rapidapi.com/sentiment", + "description": "Analyzes the sentiment of an input text and detects positivity, negativity and neutrality of such a string.", + "method": "POST", + "required_parameters": [ + { + "name": "language", + "type": "STRING", + "description": "Language of the input text.", + "default": "en" + }, + { + "name": "text", + "type": "STRING", + "description": "Text to get sentiment prediction on.", + "default": "I am very happy with my purchase. It's absolutely fantastic!" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://webit-text-analytics.p.rapidapi.com/sentiment\"\nquerystring = {\"language\": \"en\", \"text\": \"I am very happy with my purchase. It's absolutely fantastic!\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"webit-text-analytics.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://webit-text-analytics.p.rapidapi.com/sentiment\"\nquerystring = {\"language\": \"en\", \"text\": \"I am very happy with my purchase. It's absolutely fantastic!\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"webit-text-analytics.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": {} + }, + { + "name": "Detect Languages", + "url": "https://webit-text-analytics.p.rapidapi.com/languages", + "description": "Detects the language of an input text. Supports 100+ languages.", + "method": "POST", + "required_parameters": [ + { + "name": "text", + "type": "STRING", + "description": "Input text to perform Neural language detection on.", + "default": "\u4f60\u597d! \u4f60\u597d\u5417? \u0643\u064a\u0641 \u062d\u0627\u0644\u0643\u061f Neural recognition can detect multiple languages at the same time!" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://webit-text-analytics.p.rapidapi.com/languages\"\nquerystring = {\"text\": \"\u4f60\u597d! \u4f60\u597d\u5417? \u0643\u064a\u0641 \u062d\u0627\u0644\u0643\u061f Neural recognition can detect multiple languages at the same time!\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"webit-text-analytics.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://webit-text-analytics.p.rapidapi.com/languages\"\nquerystring = {\"text\": \"\u4f60\u597d! \u4f60\u597d\u5417? \u0643\u064a\u0641 \u062d\u0627\u0644\u0643\u061f Neural recognition can detect multiple languages at the same time!\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"webit-text-analytics.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": {} + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Text_Analysis/website_descriptor.json b/toolbench/toolenv/tools/Text_Analysis/website_descriptor.json new file mode 100644 index 0000000000000000000000000000000000000000..185eb0ee79079ce1fca355573d4324430ae7ca60 --- /dev/null +++ b/toolbench/toolenv/tools/Text_Analysis/website_descriptor.json @@ -0,0 +1,74 @@ +{ + "tool_name":"Website Descriptor", + "tool_description":"Get a website description by URL. Title, description, image. ", + "title":"Website Descriptor", + "pricing":"FREE", + "score":null, + "home_url":"https://rapidapi.com/neivi-innovacion-tecnologica-sl-neivi-innovacion-tecnologica-sl-default/api/website-descriptor1/", + "host":"website-descriptor1.p.rapidapi.com", + "api_list":[ + { + "name":"Describe URL", + "url":"https://website-descriptor1.p.rapidapi.com/", + "description":"Get the URL description: title, location, description, image", + "method":"GET", + "required_parameters":[ + { + "name":"url", + "type":"STRING", + "description":"The URL to be described", + "default":"https://www.instagram.com/" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://website-descriptor1.p.rapidapi.com/\"\nquerystring = {\"url\": url}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"website-descriptor1.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":200, + "body":{ + "location":"https://www.instagram.com/", + "title":"\nInstagram\n", + "description":"Create an account or log in to Instagram - A simple, fun & creative way to capture, edit & share photos, videos & messages with friends & family.", + "image":"/static/images/ico/favicon-200.png/ab6eff595bb1.png" + }, + "headers":{ + "access-control-allow-origin":"*", + "content-type":"application/json", + "date":"Thu, 27 Feb 2020 11:52:25 GMT", + "server":"RapidAPI-1.0.39", + "via":"1.1 a75b67932d84d80b40e12159613deb17.cloudfront.net (CloudFront)", + "x-amz-apigw-id":"IjgK-G24iGYFcDA=", + "x-amz-cf-id":"H4WYelYS_Nbo2I1EoK9MaEXC4_VClnDM-UoEMs2tKi3LwgyCQ9GRpQ==", + "x-amz-cf-pop":"FRA53-C1", + "x-amzn-requestid":"66adb23f-473e-4873-b4a0-6c7266b75938", + "x-amzn-trace-id":"Root=1-5e57ad79-53c9d5b6864513587191919d;Sampled=0", + "x-cache":"Miss from cloudfront", + "x-rapidapi-region":"AWS - eu-central-1", + "x-rapidapi-version":"1.0.39", + "content-length":"289", + "connection":"Close" + }, + "schema":{ + "type":"object", + "properties":{ + "get":{ + "type":"string" + }, + "parameters":{ + "type":"array" + }, + "errors":{ + "type":"array" + }, + "results":{ + "type":"integer" + }, + "response":{ + "type":"array", + "items":{ + "type":"object" + } + } + } + } + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Text_Analysis/website_descriptor/api.py b/toolbench/toolenv/tools/Text_Analysis/website_descriptor/api.py new file mode 100644 index 0000000000000000000000000000000000000000..fbdebe1621831d713ad439c61e4f7ac49419300c --- /dev/null +++ b/toolbench/toolenv/tools/Text_Analysis/website_descriptor/api.py @@ -0,0 +1,30 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def describe_url(url: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get the URL description: title, location, description, image" + url: The URL to be described + + """ + url = f"https://website-descriptor1.p.rapidapi.com/" + querystring = {'url': url, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "website-descriptor1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Text_Analysis/what_s_language.json b/toolbench/toolenv/tools/Text_Analysis/what_s_language.json new file mode 100644 index 0000000000000000000000000000000000000000..a90c298b3222de3d8430c403a10e155baf591ab1 --- /dev/null +++ b/toolbench/toolenv/tools/Text_Analysis/what_s_language.json @@ -0,0 +1,44 @@ +{ + "product_id": "api_056708d6-e4e5-4c5f-9daf-72580dda8040", + "tool_description": "Detect the language of a given text", + "home_url": "https://rapidapi.com/phinguyen/api/whats-language/", + "name": "What's Language", + "title": "What's Language", + "pricing": "FREEMIUM", + "tool_name": "What's Language", + "score": { + "avgServiceLevel": 100, + "avgLatency": 1723, + "avgSuccessRate": 100, + "popularityScore": 5.5, + "__typename": "Score" + }, + "host": "whats-language.p.rapidapi.com", + "api_list": [ + { + "name": "LanguageDetection", + "url": "https://whats-language.p.rapidapi.com/languagedetection/detecting", + "description": "Detect the language of a given text and return the detected language code", + "method": "GET", + "required_parameters": [ + { + "name": "text", + "type": "STRING", + "description": "", + "default": "How to Identify the Language of any Text" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://whats-language.p.rapidapi.com/languagedetection/detecting\"\nquerystring = {\"text\": \"How to Identify the Language of any Text\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"whats-language.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://whats-language.p.rapidapi.com/languagedetection/detecting\"\nquerystring = {\"text\": \"How to Identify the Language of any Text\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"whats-language.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": { + "languages": [ + "en" + ] + }, + "statuscode": 1, + "schema": "" + } + ], + "standardized_name": "what_s_language" +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Text_Analysis/what_s_language/api.py b/toolbench/toolenv/tools/Text_Analysis/what_s_language/api.py new file mode 100644 index 0000000000000000000000000000000000000000..766f09b8f73bc68f4f3b5ad5a856e4e832770f73 --- /dev/null +++ b/toolbench/toolenv/tools/Text_Analysis/what_s_language/api.py @@ -0,0 +1,29 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def languagedetection(text: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Detect the language of a given text and return the detected language code" + + """ + url = f"https://whats-language.p.rapidapi.com/languagedetection/detecting" + querystring = {'text': text, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "whats-language.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Text_Analysis/wise_extraction.json b/toolbench/toolenv/tools/Text_Analysis/wise_extraction.json new file mode 100644 index 0000000000000000000000000000000000000000..c30261adc385cc35a6ce0714751b768017f7d4bb --- /dev/null +++ b/toolbench/toolenv/tools/Text_Analysis/wise_extraction.json @@ -0,0 +1,24 @@ +{ + "product_id": "api_845255cd-4f6d-4d24-877c-be3e46902a75", + "tool_description": "This api takes in a url of an article and returns the text.\n\nIt can be useful for: \n- Text to speech from articles\n- Running analysis on article text\n- Displaying articles in your own format on a website\n- Running analytics on articles in the same format ", + "home_url": "https://rapidapi.com/wisebubbler-UKPh8W-v4vO/api/wise_extraction/", + "name": "Wise_extraction", + "title": "Wise_extraction", + "pricing": "FREEMIUM", + "tool_name": "Wise_extraction", + "score": null, + "host": "wise_extraction.p.rapidapi.com", + "api_list": [ + { + "name": "extract", + "url": "https://wise_extraction.p.rapidapi.com/extract", + "description": "Feed in an article url and get text :) try: https://www.yahoo.com/news/is-arizonas-kari-lake-the-most-dangerous-politician-in-america-090045758.html", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://wise_extraction.p.rapidapi.com/extract\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"wise_extraction.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://wise_extraction.p.rapidapi.com/extract\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"wise_extraction.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Text_Analysis/word_associations.json b/toolbench/toolenv/tools/Text_Analysis/word_associations.json new file mode 100644 index 0000000000000000000000000000000000000000..50a422242a21ad0b51a3a0d0eec096faad3a219f --- /dev/null +++ b/toolbench/toolenv/tools/Text_Analysis/word_associations.json @@ -0,0 +1,271 @@ +{ + "tool_name": "Word Associations", + "tool_description": "What's another word for this word, phrase, or paragraph? More than just synonyms, related words too!", + "title": "Word Associations", + "pricing": "FREEMIUM", + "score": { + "avgServiceLevel": 100, + "avgLatency": 533, + "avgSuccessRate": 100, + "popularityScore": 9.8, + "__typename": "Score" + }, + "home_url": "https://rapidapi.com/twinword/api/word-associations/", + "host": "twinword-word-associations-v1.p.rapidapi.com", + "api_list": [ + { + "name": "Word Associations (get)", + "url": "https://twinword-word-associations-v1.p.rapidapi.com/associations/", + "description": "Get word associations with semantic distance score.", + "method": "GET", + "required_parameters": [ + { + "name": "entry", + "type": "STRING", + "description": "A word, phrase, or paragraph.", + "default": "sound" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://twinword-word-associations-v1.p.rapidapi.com/associations/\"\nquerystring = {\"entry\": entry}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"twinword-word-associations-v1.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode": 200, + "body": { + "entry": "sound", + "request": "sound", + "response": { + "sound": 1 + }, + "associations": "ringing, octave, acoustic, noisy, din, growl, noise, bell, cacophonous, voice, sonority, tune, loud, moan, clamorous, ring, echo, phonetic, strident, reverberate, sing, vibrancy, beep, carillon, resonance, toot, rustle, telephony, reverberation, squeaking", + "associations_array": [ + "ringing", + "octave", + "acoustic", + "noisy", + "din", + "growl", + "noise", + "bell", + "cacophonous", + "voice", + "sonority", + "tune", + "loud", + "moan", + "clamorous", + "ring", + "echo", + "phonetic", + "strident", + "reverberate", + "sing", + "vibrancy", + "beep", + "carillon", + "resonance", + "toot", + "rustle", + "telephony", + "reverberation", + "squeaking" + ], + "associations_scored": { + "ringing": 0.5108171351638529, + "octave": 0.43496935371402323, + "acoustic": 0.5864768141996825, + "noisy": 0.5108445458821127, + "din": 0.721546768376455, + "growl": 0.5068170212186411, + "noise": 0.975, + "bell": 0.6111036562625275, + "cacophonous": 0.5881910162370951, + "voice": 0.975, + "sonority": 0.22172744637739153, + "tune": 0.3167916848578363, + "loud": 0.975, + "moan": 0.43650255341760874, + "clamorous": 0.2106486967143036, + "ring": 0.5285084400299358, + "echo": 0.5974785743903915, + "phonetic": 0.461620452595546, + "strident": 0.2834808210457541, + "reverberate": 0.2540580379053848, + "sing": 0.5070442986258021, + "vibrancy": 0.263300401196087, + "beep": 0.4007533265125078, + "carillon": 0.14474591297304062, + "resonance": 0.4341670013252298, + "toot": 0.33666981235197424, + "rustle": 0.37443501152691344, + "telephony": 0.27833605702144054, + "reverberation": 0.32024239004957356, + "squeaking": 0.32865517289205304 + }, + "version": "7.0.9", + "author": "twinword inc.", + "email": "help@twinword.com", + "result_code": "200", + "result_msg": "Success" + }, + "headers": { + "access-control-allow-credentials": "true", + "access-control-allow-origin": "*", + "alt-svc": "h3=\":443\"; ma=86400, h3-29=\":443\"; ma=86400, h3-28=\":443\"; ma=86400, h3-27=\":443\"; ma=86400", + "cf-cache-status": "DYNAMIC", + "cf-ray": "6acb0554584c0e7a-NRT", + "connection": "keep-alive", + "content-length": "1603", + "content-type": "application/json", + "date": "Thu, 11 Nov 2021 22:40:12 GMT", + "expect-ct": "max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\"", + "nel": "{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}", + "report-to": "{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=AWvsM%2F3HtsTJaMmwLKf91%2BPodO0LwwwaLH8SKqsHI1pESuoY8R3IKevrvh%2B5qM412hDw1UGUtvKYP4jxNIKQzwB6LShyTwVA81Ff%2FA3vteoFHovn4jsGjOmaMK%2BSA4WsGCsT\"}],\"group\":\"cf-nel\",\"max_age\":604800}", + "server": "RapidAPI-1.2.8", + "strict-transport-security": "max-age=15552000; includeSubDomains; preload", + "x-content-type-options": "nosniff", + "x-rapidapi-region": "AWS - ap-northeast-1", + "x-rapidapi-version": "1.2.8", + "x-ratelimit-requests-limit": "10000", + "x-ratelimit-requests-remaining": "9995", + "x-ratelimit-requests-reset": "2512523" + }, + "schema": {} + }, + { + "name": "Word Associations (post)", + "url": "https://twinword-word-associations-v1.p.rapidapi.com/associations/", + "description": "Get word associations with semantic distance score.", + "method": "POST", + "required_parameters": [ + { + "name": "entry", + "type": "STRING", + "description": "A word, phrase, or paragraph.", + "default": "sound" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://twinword-word-associations-v1.p.rapidapi.com/associations/\"\nquerystring = {\"entry\": entry}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"twinword-word-associations-v1.p.rapidapi.com\"\n}\n\nresponse = requests.post(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode": 200, + "body": { + "entry": "sound", + "request": "sound", + "response": { + "sound": 1 + }, + "associations": "ringing, octave, acoustic, noisy, din, growl, noise, bell, cacophonous, voice, sonority, tune, loud, moan, clamorous, ring, echo, phonetic, strident, reverberate, sing, vibrancy, beep, carillon, resonance, toot, rustle, telephony, reverberation, squeaking", + "associations_array": [ + "ringing", + "octave", + "acoustic", + "noisy", + "din", + "growl", + "noise", + "bell", + "cacophonous", + "voice", + "sonority", + "tune", + "loud", + "moan", + "clamorous", + "ring", + "echo", + "phonetic", + "strident", + "reverberate", + "sing", + "vibrancy", + "beep", + "carillon", + "resonance", + "toot", + "rustle", + "telephony", + "reverberation", + "squeaking" + ], + "associations_scored": { + "ringing": 0.5108171351638529, + "octave": 0.43496935371402323, + "acoustic": 0.5864768141996825, + "noisy": 0.5108445458821127, + "din": 0.721546768376455, + "growl": 0.5068170212186411, + "noise": 0.975, + "bell": 0.6111036562625275, + "cacophonous": 0.5881910162370951, + "voice": 0.975, + "sonority": 0.22172744637739153, + "tune": 0.3167916848578363, + "loud": 0.975, + "moan": 0.43650255341760874, + "clamorous": 0.2106486967143036, + "ring": 0.5285084400299358, + "echo": 0.5974785743903915, + "phonetic": 0.461620452595546, + "strident": 0.2834808210457541, + "reverberate": 0.2540580379053848, + "sing": 0.5070442986258021, + "vibrancy": 0.263300401196087, + "beep": 0.4007533265125078, + "carillon": 0.14474591297304062, + "resonance": 0.4341670013252298, + "toot": 0.33666981235197424, + "rustle": 0.37443501152691344, + "telephony": 0.27833605702144054, + "reverberation": 0.32024239004957356, + "squeaking": 0.32865517289205304 + }, + "version": "7.0.9", + "author": "twinword inc.", + "email": "help@twinword.com", + "result_code": "200", + "result_msg": "Success" + }, + "headers": { + "access-control-allow-credentials": "true", + "access-control-allow-origin": "*", + "alt-svc": "h3=\":443\"; ma=86400, h3-29=\":443\"; ma=86400, h3-28=\":443\"; ma=86400, h3-27=\":443\"; ma=86400", + "cf-cache-status": "DYNAMIC", + "cf-ray": "6acb0660fac61fbd-NRT", + "connection": "keep-alive", + "content-length": "1603", + "content-type": "application/json", + "date": "Thu, 11 Nov 2021 22:40:54 GMT", + "expect-ct": "max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\"", + "nel": "{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}", + "report-to": "{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=D6nSKt8nREI4brwnCntClTkZhBzWkCaZhqqE3RZnhE1ja4VlizZmCbaCZbtx4V7CYnFsfjmD2BigWEsdF5N%2B4cAIAD8nok7DZsp2cAOgUXubp1fag%2BinoNz0Fb82Bu7UgGyr\"}],\"group\":\"cf-nel\",\"max_age\":604800}", + "server": "RapidAPI-1.2.8", + "strict-transport-security": "max-age=15552000; includeSubDomains; preload", + "x-content-type-options": "nosniff", + "x-rapidapi-region": "AWS - ap-northeast-1", + "x-rapidapi-version": "1.2.8", + "x-ratelimit-requests-limit": "10000", + "x-ratelimit-requests-remaining": "9993", + "x-ratelimit-requests-reset": "2512481" + }, + "schema": {} + }, + { + "name": "Word Associations (post)", + "url": "https://twinword-word-associations-v1.p.rapidapi.com/associations/", + "description": "Get word associations with semantic distance score.", + "method": "POST", + "required_parameters": [ + { + "name": "entry", + "type": "STRING", + "description": "A word, phrase, or paragraph.", + "default": "sound" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://twinword-word-associations-v1.p.rapidapi.com/associations/\"\nquerystring = {\"entry\": \"sound\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"twinword-word-associations-v1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://twinword-word-associations-v1.p.rapidapi.com/associations/\"\nquerystring = {\"entry\": \"sound\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"twinword-word-associations-v1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": {} + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Text_Analysis/word_associations/api.py b/toolbench/toolenv/tools/Text_Analysis/word_associations/api.py new file mode 100644 index 0000000000000000000000000000000000000000..2d5ae5d17a505db0442e89beee5167a2cc014817 --- /dev/null +++ b/toolbench/toolenv/tools/Text_Analysis/word_associations/api.py @@ -0,0 +1,30 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def word_associations_get(entry: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get word associations with semantic distance score." + entry: A word, phrase, or paragraph. + + """ + url = f"https://twinword-word-associations-v1.p.rapidapi.com/associations/" + querystring = {'entry': entry, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "twinword-word-associations-v1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Text_Analysis/word_clustering_service.json b/toolbench/toolenv/tools/Text_Analysis/word_clustering_service.json new file mode 100644 index 0000000000000000000000000000000000000000..8087d0a20a1d880613cc6189bee0a13fa93d2254 --- /dev/null +++ b/toolbench/toolenv/tools/Text_Analysis/word_clustering_service.json @@ -0,0 +1,52 @@ +{ + "product_id": "api_ae3e92ce-11d1-4dbb-8f54-e30778c7fce2", + "tool_description": "The Levenshtein-based keyword clustering API uses a graph-based approach to cluster words with similar spellings.", + "home_url": "https://rapidapi.com/renetatua/api/word-clustering-service/", + "name": "Word Clustering Service", + "title": "Word Clustering Service", + "pricing": "FREEMIUM", + "tool_name": "Word Clustering Service", + "score": null, + "host": "word-clustering-service.p.rapidapi.com", + "api_list": [ + { + "name": "clusterKeywords", + "url": "https://word-clustering-service.p.rapidapi.com/clusteringjob/execute-cluster-job", + "description": "By using the clusterKeywords endpoint, users can detect clusters within a list that they submit to the API. The API will return the original list along with a corresponding cluster name assigned to each element of the list.", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://word-clustering-service.p.rapidapi.com/clusteringjob/execute-cluster-job\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"word-clustering-service.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://word-clustering-service.p.rapidapi.com/clusteringjob/execute-cluster-job\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"word-clustering-service.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": {} + }, + { + "name": "highlightDuplicates", + "url": "https://word-clustering-service.p.rapidapi.com/clusteringjob/execute-highlight-job", + "description": "The highlightDuplicates endpoint allows users to identify duplicate keywords within a submitted list. The API returns a list of the identified duplicates to the user, highlighting any redundant or repeated information in the original data set.", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://word-clustering-service.p.rapidapi.com/clusteringjob/execute-highlight-job\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"word-clustering-service.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://word-clustering-service.p.rapidapi.com/clusteringjob/execute-highlight-job\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"word-clustering-service.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "array", + "items": { + "type": "object", + "properties": { + "mainKeyword": { + "type": "string" + }, + "duplicatedKeyword": { + "type": "string" + } + } + } + } + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Text_Analysis/word_dictionary.json b/toolbench/toolenv/tools/Text_Analysis/word_dictionary.json new file mode 100644 index 0000000000000000000000000000000000000000..7a2b37bb70e72903a6e8ceb03a8506535e18f92f --- /dev/null +++ b/toolbench/toolenv/tools/Text_Analysis/word_dictionary.json @@ -0,0 +1,462 @@ +{ + "tool_name":"Word Dictionary", + "tool_description":"A dictionary and so much more! Rich information for a word with definitions, associations, examples, and much more.", + "title":"Word Dictionary", + "pricing":"FREEMIUM", + "score":{ + "avgServiceLevel":100, + "avgLatency":284, + "avgSuccessRate":100, + "popularityScore":9.8, + "__typename":"Score" + }, + "home_url":"https://rapidapi.com/twinword/api/word-dictionary/", + "host":"twinword-word-graph-dictionary.p.rapidapi.com", + "api_list":[ + { + "name":"Theme", + "url":"https://twinword-word-graph-dictionary.p.rapidapi.com/theme/", + "description":"Get the themes of a word.", + "method":"GET", + "required_parameters":[ + { + "name":"entry", + "type":"STRING", + "description":"Type a word to get its themes", + "default":"mask" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://twinword-word-graph-dictionary.p.rapidapi.com/theme/\"\nquerystring = {\"entry\": entry}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"twinword-word-graph-dictionary.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":200, + "body":{ + "author":"twinword inc.", + "email":"help@twinword.com", + "entry":"mask", + "request":"mask", + "response":"mask", + "result_code":"200", + "result_msg":"Success", + "theme":[ + "cover", + "search", + "secret", + "wear", + "skirt", + "boot", + "skin", + "image", + "human" + ], + "version":"4.0.0" + }, + "headers":{ + "alt-svc":"h3-27=\":443\"; ma=86400, h3-25=\":443\"; ma=86400, h3-24=\":443\"; ma=86400, h3-23=\":443\"; ma=86400", + "cf-cache-status":"DYNAMIC", + "cf-ray":"599ea9c3e9ae9539-NRT", + "cf-request-id":"02f7086e740000953998a49200000001", + "content-type":"application/json", + "date":"Wed, 27 May 2020 09:21:00 GMT", + "expect-ct":"max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\"", + "server":"RapidAPI-1.1.7", + "set-cookie":[ + "__cfduid=d78866fb82fe670a8987c6867871499da1590571259; expires=Fri, 26-Jun-20 09:20:59 GMT; path=/; domain=.twinword.com; HttpOnly; SameSite=Lax; Secure" + ], + "strict-transport-security":"max-age=15552000; includeSubDomains; preload", + "x-content-type-options":"nosniff", + "x-rapidapi-region":"AWS - ap-northeast-1", + "x-rapidapi-version":"1.1.7", + "x-ratelimit-requests-limit":"1000", + "x-ratelimit-requests-remaining":"931", + "content-length":"246", + "connection":"Close" + }, + "schema":{} + }, + { + "name":"Difficulty", + "url":"https://twinword-word-graph-dictionary.p.rapidapi.com/difficulty/", + "description":"Get the difficulty level of a word.", + "method":"GET", + "required_parameters":[ + { + "name":"entry", + "type":"STRING", + "description":"Type a word to get its difficulty level", + "default":"mask" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://twinword-word-graph-dictionary.p.rapidapi.com/difficulty/\"\nquerystring = {\"entry\": entry}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"twinword-word-graph-dictionary.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":200, + "body":{ + "author":"twinword inc.", + "email":"help@twinword.com", + "entry":"mask", + "request":"mask", + "response":"mask", + "result_code":"200", + "result_msg":"Success", + "ten_degree":3, + "version":"4.0.0" + }, + "headers":{ + "alt-svc":"h3-27=\":443\"; ma=86400, h3-25=\":443\"; ma=86400, h3-24=\":443\"; ma=86400, h3-23=\":443\"; ma=86400", + "cf-cache-status":"DYNAMIC", + "cf-ray":"599ea82eb88ef903-NRT", + "cf-request-id":"02f70771350000f90363a65200000001", + "content-type":"application/json", + "date":"Wed, 27 May 2020 09:19:55 GMT", + "expect-ct":"max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\"", + "server":"RapidAPI-1.1.7", + "set-cookie":[ + "__cfduid=d7c8f5ea8230484f8e56590b8fa1ccdee1590571194; expires=Fri, 26-Jun-20 09:19:54 GMT; path=/; domain=.twinword.com; HttpOnly; SameSite=Lax; Secure" + ], + "strict-transport-security":"max-age=15552000; includeSubDomains; preload", + "x-content-type-options":"nosniff", + "x-rapidapi-region":"AWS - ap-northeast-1", + "x-rapidapi-version":"1.1.7", + "x-ratelimit-requests-limit":"1000", + "x-ratelimit-requests-remaining":"935", + "content-length":"180", + "connection":"Close" + }, + "schema":{} + }, + { + "name":"Example", + "url":"https://twinword-word-graph-dictionary.p.rapidapi.com/example/", + "description":"See examples of a word used in a sentence", + "method":"GET", + "required_parameters":[ + { + "name":"entry", + "type":"STRING", + "description":"Type a word to see examples of it used in a sentence", + "default":"mask" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://twinword-word-graph-dictionary.p.rapidapi.com/example/\"\nquerystring = {\"entry\": entry}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"twinword-word-graph-dictionary.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":200, + "body":{ + "author":"twinword inc.", + "email":"help@twinword.com", + "entry":"mask", + "example":[ + "The red figure wears the same hat and mask in the background.", + "The conformable mask is then stripped and a new conformable mask laid down.", + "She was wearing a Kachina dancer's mask.", + "The grandiosity is just a momentary mask.", + "The mask is for protection and intimidation.", + "The grating in the mask is adjusted.", + "The mask of the male mummy is gilded.", + "The mask covers the aperture of the telescope.", + "Mask and wig celebrates the centennial of the clubhouse.", + "The latter disguised his scarred visage with a steel mask." + ], + "request":"mask", + "response":"mask", + "result_code":"200", + "result_msg":"Success", + "version":"4.0.0" + }, + "headers":{ + "alt-svc":"h3-27=\":443\"; ma=86400, h3-25=\":443\"; ma=86400, h3-24=\":443\"; ma=86400, h3-23=\":443\"; ma=86400", + "cf-cache-status":"DYNAMIC", + "cf-ray":"599ea905bd520ab0-NRT", + "cf-request-id":"02f707f79100000ab0fd332200000001", + "content-type":"application/json", + "date":"Wed, 27 May 2020 09:20:29 GMT", + "expect-ct":"max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\"", + "server":"RapidAPI-1.1.7", + "set-cookie":[ + "__cfduid=de7022293455d292ceddb53e594ecce091590571229; expires=Fri, 26-Jun-20 09:20:29 GMT; path=/; domain=.twinword.com; HttpOnly; SameSite=Lax; Secure" + ], + "strict-transport-security":"max-age=15552000; includeSubDomains; preload", + "x-content-type-options":"nosniff", + "x-rapidapi-region":"AWS - ap-northeast-1", + "x-rapidapi-version":"1.1.7", + "x-ratelimit-requests-limit":"1000", + "x-ratelimit-requests-remaining":"931", + "content-length":"701", + "connection":"Close" + }, + "schema":{} + }, + { + "name":"Reference", + "url":"https://twinword-word-graph-dictionary.p.rapidapi.com/reference/", + "description":"Get the broad terms, narrow terms, related terms, evocations, synonyms, associations, and derived terms of a word.", + "method":"GET", + "required_parameters":[ + { + "name":"entry", + "type":"STRING", + "description":"Type a word to get its broad terms, narrow terms, related terms, evocations, synonyms, associations, and derived terms", + "default":"mask" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://twinword-word-graph-dictionary.p.rapidapi.com/reference/\"\nquerystring = {\"entry\": entry}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"twinword-word-graph-dictionary.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":200, + "body":{ + "author":"twinword inc.", + "email":"help@twinword.com", + "entry":"mask", + "relation":{ + "associations":"", + "broad_terms":"protective covering, protective cover, protection, party, mask, hiding, hide, disguise, covering, cover, concealment, concealing, conceal", + "derived_terms":"death mask, 'Mask house', , a house for masquerades, sleep mask, unmask", + "evocations":"disguise", + "narrow_terms":"welder's mask, respirator, masquerade ball, masquerade, masked ball, mask, half mask, gasmask, gas helmet, fancy-dress ball, false face, face mask, eye mask, domino, dissimulate, dissemble, cloak, camouflage", + "related_terms":"masquerade party, masquerade, masque, dissemble, disguise, cook, cloak, block out", + "synonyms":"" + }, + "request":"mask", + "response":"mask", + "result_code":"200", + "result_msg":"Success", + "version":"4.0.0" + }, + "headers":{ + "alt-svc":"h3-27=\":443\"; ma=86400, h3-25=\":443\"; ma=86400, h3-24=\":443\"; ma=86400, h3-23=\":443\"; ma=86400", + "cf-cache-status":"DYNAMIC", + "cf-ray":"599ea963bc710aa0-NRT", + "cf-request-id":"02f708324f00000aa0b123e200000001", + "content-type":"application/json", + "date":"Wed, 27 May 2020 09:20:44 GMT", + "expect-ct":"max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\"", + "server":"RapidAPI-1.1.7", + "set-cookie":[ + "__cfduid=dd0e5db9cf82934d1eae61e1d65907b721590571244; expires=Fri, 26-Jun-20 09:20:44 GMT; path=/; domain=.twinword.com; HttpOnly; SameSite=Lax; Secure" + ], + "strict-transport-security":"max-age=15552000; includeSubDomains; preload", + "x-content-type-options":"nosniff", + "x-rapidapi-region":"AWS - ap-northeast-1", + "x-rapidapi-version":"1.1.7", + "x-ratelimit-requests-limit":"1000", + "x-ratelimit-requests-remaining":"930", + "content-length":"803", + "connection":"Close" + }, + "schema":{} + }, + { + "name":"Association", + "url":"https://twinword-word-graph-dictionary.p.rapidapi.com/association/", + "description":"Get the associations of a word.", + "method":"GET", + "required_parameters":[ + { + "name":"entry", + "type":"STRING", + "description":"Type a word to get its associations", + "default":"mask" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://twinword-word-graph-dictionary.p.rapidapi.com/association/\"\nquerystring = {\"entry\": entry}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"twinword-word-graph-dictionary.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":200, + "body":{ + "entry":"mask", + "request":"mask", + "response":"mask", + "assoc_word":[ + "hide", + "hat", + "face" + ], + "assoc_word_ex":[ + "hide", + "hat", + "face", + "veil", + "disguise", + "camouflage" + ], + "version":"4.0.0", + "author":"twinword inc.", + "email":"feedback@twinword.com", + "result_code":"200", + "result_msg":"Success" + }, + "headers":{ + "alt-svc":"h3-27=\":443\"; ma=86400, h3-25=\":443\"; ma=86400, h3-24=\":443\"; ma=86400, h3-23=\":443\"; ma=86400", + "cf-cache-status":"DYNAMIC", + "cf-ray":"599ea710f922a5f4-NRT", + "cf-request-id":"02f706be980000a5f41f94e200000001", + "content-type":"application/json", + "date":"Wed, 27 May 2020 09:19:09 GMT", + "expect-ct":"max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\"", + "server":"RapidAPI-1.1.7", + "set-cookie":[ + "__cfduid=d7fea96a1426bd34a09ccd75eff773fea1590571148; expires=Fri, 26-Jun-20 09:19:08 GMT; path=/; domain=.twinword.com; HttpOnly; SameSite=Lax; Secure" + ], + "strict-transport-security":"max-age=15552000; includeSubDomains; preload", + "x-content-type-options":"nosniff", + "x-rapidapi-region":"AWS - ap-northeast-1", + "x-rapidapi-version":"1.1.7", + "x-ratelimit-requests-limit":"1000", + "x-ratelimit-requests-remaining":"935", + "content-length":"269", + "connection":"Close" + }, + "schema":{ + "properties":{ + "assoc_word":{ + "items":{ + "type":"string" + }, + "type":"array" + }, + "assoc_word_ex":{ + "items":{ + "type":"string" + }, + "type":"array" + }, + "author":{ + "type":"string" + }, + "email":{ + "format":"email", + "type":"string" + }, + "entry":{ + "type":"string" + }, + "request":{ + "type":"string" + }, + "response":{ + "type":"string" + }, + "result_code":{ + "format":"color", + "type":"string" + }, + "result_msg":{ + "type":"string" + }, + "version":{ + "type":"string" + } + }, + "type":"object" + } + }, + { + "name":"Exam History", + "url":"https://twinword-word-graph-dictionary.p.rapidapi.com/examhistory/", + "description":"See which exams a word has been on", + "method":"GET", + "required_parameters":[ + { + "name":"entry", + "type":"STRING", + "description":"Type a word to see which exams it has been on", + "default":"mask" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://twinword-word-graph-dictionary.p.rapidapi.com/examhistory/\"\nquerystring = {\"entry\": entry}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"twinword-word-graph-dictionary.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":200, + "body":{ + "author":"twinword inc.", + "email":"help@twinword.com", + "entry":"mask", + "exam":[ + "toeic", + "toefl", + "ielts", + "gre", + "gmat" + ], + "request":"mask", + "response":"mask", + "result_code":"200", + "result_msg":"Success", + "version":"4.0.0" + }, + "headers":{ + "alt-svc":"h3-27=\":443\"; ma=86400, h3-25=\":443\"; ma=86400, h3-24=\":443\"; ma=86400, h3-23=\":443\"; ma=86400", + "cf-cache-status":"DYNAMIC", + "cf-ray":"599ea88f0ee40b9f-NRT", + "cf-request-id":"02f707ad6300000b9fd59f0200000001", + "content-type":"application/json", + "date":"Wed, 27 May 2020 09:20:10 GMT", + "expect-ct":"max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\"", + "server":"RapidAPI-1.1.7", + "set-cookie":[ + "__cfduid=d99291cf165f8738d205375cf5853d9541590571210; expires=Fri, 26-Jun-20 09:20:10 GMT; path=/; domain=.twinword.com; HttpOnly; SameSite=Lax; Secure" + ], + "strict-transport-security":"max-age=15552000; includeSubDomains; preload", + "x-content-type-options":"nosniff", + "x-rapidapi-region":"AWS - ap-northeast-1", + "x-rapidapi-version":"1.1.7", + "x-ratelimit-requests-limit":"1000", + "x-ratelimit-requests-remaining":"931", + "content-length":"211", + "connection":"Close" + }, + "schema":{} + }, + { + "name":"Definition", + "url":"https://twinword-word-graph-dictionary.p.rapidapi.com/definition/", + "description":"Get the definitions of a word.", + "method":"GET", + "required_parameters":[ + { + "name":"entry", + "type":"STRING", + "description":"a word", + "default":"mask" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://twinword-word-graph-dictionary.p.rapidapi.com/definition/\"\nquerystring = {\"entry\": entry}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"twinword-word-graph-dictionary.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":200, + "body":{ + "author":"twinword inc.", + "email":"help@twinword.com", + "entry":"mask", + "ipa":"mɑːsk", + "meaning":{ + "adjective":"", + "adverb":"", + "noun":"(nou) a covering to disguise or conceal the face\n(nou) activity that tries to conceal something\n(nou) a party of guests wearing costumes and masks\n(nou) a protective covering worn over the face", + "verb":"(vrb) hide under a false appearance\n(vrb) put a mask on or cover with a mask\n(vrb) make unrecognizable\n(vrb) cover with a sauce\n(vrb) shield from light" + }, + "request":"mask", + "response":"mask", + "result_code":"200", + "result_msg":"Success", + "version":"4.0.0" + }, + "headers":{ + "alt-svc":"h3-27=\":443\"; ma=86400, h3-25=\":443\"; ma=86400, h3-24=\":443\"; ma=86400, h3-23=\":443\"; ma=86400", + "cf-cache-status":"DYNAMIC", + "cf-ray":"599ea76b0c01d641-NRT", + "cf-request-id":"02f706f6e50000d64182973200000001", + "content-type":"application/json", + "date":"Wed, 27 May 2020 09:19:24 GMT", + "expect-ct":"max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\"", + "server":"RapidAPI-1.1.7", + "set-cookie":[ + "__cfduid=d5ebaed2d3cad414dc2ea26e3a823f1161590571163; expires=Fri, 26-Jun-20 09:19:23 GMT; path=/; domain=.twinword.com; HttpOnly; SameSite=Lax; Secure" + ], + "strict-transport-security":"max-age=15552000; includeSubDomains; preload", + "x-content-type-options":"nosniff", + "x-rapidapi-region":"AWS - ap-northeast-1", + "x-rapidapi-version":"1.1.7", + "x-ratelimit-requests-limit":"1000", + "x-ratelimit-requests-remaining":"934", + "content-length":"599", + "connection":"Close" + }, + "schema":{} + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Text_Analysis/word_dictionary/api.py b/toolbench/toolenv/tools/Text_Analysis/word_dictionary/api.py new file mode 100644 index 0000000000000000000000000000000000000000..c36508b7bdbdbf51f2733f90fc55029012c614c9 --- /dev/null +++ b/toolbench/toolenv/tools/Text_Analysis/word_dictionary/api.py @@ -0,0 +1,162 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def theme(entry: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get the themes of a word." + entry: Type a word to get its themes + + """ + url = f"https://twinword-word-graph-dictionary.p.rapidapi.com/theme/" + querystring = {'entry': entry, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "twinword-word-graph-dictionary.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def difficulty(entry: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get the difficulty level of a word." + entry: Type a word to get its difficulty level + + """ + url = f"https://twinword-word-graph-dictionary.p.rapidapi.com/difficulty/" + querystring = {'entry': entry, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "twinword-word-graph-dictionary.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def example(entry: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "See examples of a word used in a sentence" + entry: Type a word to see examples of it used in a sentence + + """ + url = f"https://twinword-word-graph-dictionary.p.rapidapi.com/example/" + querystring = {'entry': entry, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "twinword-word-graph-dictionary.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def reference(entry: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get the broad terms, narrow terms, related terms, evocations, synonyms, associations, and derived terms of a word." + entry: Type a word to get its broad terms, narrow terms, related terms, evocations, synonyms, associations, and derived terms + + """ + url = f"https://twinword-word-graph-dictionary.p.rapidapi.com/reference/" + querystring = {'entry': entry, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "twinword-word-graph-dictionary.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def association(entry: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get the associations of a word." + entry: Type a word to get its associations + + """ + url = f"https://twinword-word-graph-dictionary.p.rapidapi.com/association/" + querystring = {'entry': entry, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "twinword-word-graph-dictionary.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def exam_history(entry: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "See which exams a word has been on" + entry: Type a word to see which exams it has been on + + """ + url = f"https://twinword-word-graph-dictionary.p.rapidapi.com/examhistory/" + querystring = {'entry': entry, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "twinword-word-graph-dictionary.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def definition(entry: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get the definitions of a word." + entry: a word + + """ + url = f"https://twinword-word-graph-dictionary.p.rapidapi.com/definition/" + querystring = {'entry': entry, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "twinword-word-graph-dictionary.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Text_Analysis/word_quiz.json b/toolbench/toolenv/tools/Text_Analysis/word_quiz.json new file mode 100644 index 0000000000000000000000000000000000000000..2740e3201c0fb6665c23b0470b1bf0f4397328b1 --- /dev/null +++ b/toolbench/toolenv/tools/Text_Analysis/word_quiz.json @@ -0,0 +1,244 @@ +{ + "tool_name":"Word Quiz", + "tool_description":"Vocabulary test with levels and exam-specific words (SAT, GMAT, etc). Customized word association quiz for game and e-learning software.", + "title":"Word Quiz", + "pricing":"FREEMIUM", + "score":{ + "avgServiceLevel":100, + "avgLatency":768, + "avgSuccessRate":100, + "popularityScore":9.8, + "__typename":"Score" + }, + "home_url":"https://rapidapi.com/twinword/api/word-quiz/", + "host":"twinword-word-association-quiz.p.rapidapi.com", + "api_list":[ + { + "name":"Type 1", + "url":"https://twinword-word-association-quiz.p.rapidapi.com/type1/", + "description":"Customized word association quiz for game and e-learning software.", + "method":"GET", + "required_parameters":[ + { + "name":"level", + "type":"NUMBER", + "description":"Select the difficulty level of the test (1 - 10)", + "default":"3" + } + ], + "optional_parameters":[ + { + "name":"area", + "type":"STRING", + "description":"Select a test to generate quiz questions and answers (es, ms, hs, ksat, toeic, toefl, teps, sat, ielts, gre, gmat, overall)", + "default":"sat" + } + ], + "code":"import requests\n\nurl = \"https://twinword-word-association-quiz.p.rapidapi.com/type1/\"\nquerystring = {\"level\": level, \"area\": area}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"twinword-word-association-quiz.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":200, + "body":{ + "area":"sat", + "level":3, + "quizlist":[ + { + "quiz":[ + "court", + "legal", + "lawyer" + ], + "option":[ + "kiss", + "judicial" + ], + "correct":2 + }, + { + "quiz":[ + "want", + "extreme", + "wish" + ], + "option":[ + "incorporated", + "desperate" + ], + "correct":2 + }, + { + "quiz":[ + "want", + "extreme", + "wish" + ], + "option":[ + "desperate", + "encouraging" + ], + "correct":1 + }, + { + "quiz":[ + "illegal", + "trial", + "civil" + ], + "option":[ + "ministry", + "penalty" + ], + "correct":2 + }, + { + "quiz":[ + "axis", + "direction", + "equivalent" + ], + "option":[ + "parallel", + "reservation" + ], + "correct":1 + }, + { + "quiz":[ + "chief", + "administrator", + "manager" + ], + "option":[ + "expense", + "controller" + ], + "correct":2 + }, + { + "quiz":[ + "language", + "term", + "word" + ], + "option":[ + "defend", + "cant" + ], + "correct":2 + }, + { + "quiz":[ + "bag", + "bunch", + "unit" + ], + "option":[ + "engaged", + "packet" + ], + "correct":2 + }, + { + "quiz":[ + "exceptional", + "fantastic", + "remarkable" + ], + "option":[ + "okay", + "extraordinary" + ], + "correct":2 + }, + { + "quiz":[ + "check", + "proof", + "confirmation" + ], + "option":[ + "secretary", + "verification" + ], + "correct":2 + } + ], + "version":"4.0.0", + "author":"twinword inc.", + "email":"feedback@twinword.com", + "result_code":"200", + "result_msg":"Success" + }, + "headers":{ + "alt-svc":"h3-27=\":443\"; ma=86400, h3-25=\":443\"; ma=86400, h3-24=\":443\"; ma=86400, h3-23=\":443\"; ma=86400", + "cf-cache-status":"DYNAMIC", + "cf-ray":"599eb69bf96ca5c4-NRT", + "cf-request-id":"02f710757d0000a5c413157200000001", + "content-type":"application/json", + "date":"Wed, 27 May 2020 09:29:46 GMT", + "expect-ct":"max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\"", + "server":"RapidAPI-1.1.7", + "set-cookie":[ + "__cfduid=d5c5501267454ed987145bae4b7a7fb751590571785; expires=Fri, 26-Jun-20 09:29:45 GMT; path=/; domain=.twinword.com; HttpOnly; SameSite=Lax; Secure" + ], + "strict-transport-security":"max-age=15552000; includeSubDomains; preload", + "x-content-type-options":"nosniff", + "x-rapidapi-region":"AWS - ap-northeast-1", + "x-rapidapi-version":"1.1.7", + "x-ratelimit-requests-limit":"30000", + "x-ratelimit-requests-remaining":"29996", + "content-length":"961", + "connection":"Close" + }, + "schema":{ + "properties":{ + "area":{ + "type":"string" + }, + "author":{ + "type":"string" + }, + "email":{ + "format":"email", + "type":"string" + }, + "level":{ + "type":"integer" + }, + "quizlist":{ + "items":{ + "properties":{ + "correct":{ + "type":"integer" + }, + "option":{ + "items":{ + "type":"string" + }, + "type":"array" + }, + "quiz":{ + "items":{ + "type":"string" + }, + "type":"array" + } + }, + "type":"object" + }, + "type":"array" + }, + "result_code":{ + "format":"color", + "type":"string" + }, + "result_msg":{ + "type":"string" + }, + "version":{ + "type":"string" + } + }, + "type":"object" + } + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Text_Analysis/word_quiz/api.py b/toolbench/toolenv/tools/Text_Analysis/word_quiz/api.py new file mode 100644 index 0000000000000000000000000000000000000000..acf0912122fc1ef62891a8cd7be0a03a1590d6ec --- /dev/null +++ b/toolbench/toolenv/tools/Text_Analysis/word_quiz/api.py @@ -0,0 +1,33 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def type_1(level: int, area: str='sat', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Customized word association quiz for game and e-learning software." + level: Select the difficulty level of the test (1 - 10) + area: Select a test to generate quiz questions and answers (es, ms, hs, ksat, toeic, toefl, teps, sat, ielts, gre, gmat, overall) + + """ + url = f"https://twinword-word-association-quiz.p.rapidapi.com/type1/" + querystring = {'level': level, } + if area: + querystring['area'] = area + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "twinword-word-association-quiz.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Text_Analysis/word_scramble.json b/toolbench/toolenv/tools/Text_Analysis/word_scramble.json new file mode 100644 index 0000000000000000000000000000000000000000..dba32fbabe3ee5007c8e87e587179c6925152c3b --- /dev/null +++ b/toolbench/toolenv/tools/Text_Analysis/word_scramble.json @@ -0,0 +1,37 @@ +{ + "tool_name":"Word Scramble", + "tool_description":"Scramble a given input word\n/scramble/{word}", + "title":"Word Scramble", + "pricing":"FREEMIUM", + "score":{ + "avgServiceLevel":100, + "avgLatency":2576, + "avgSuccessRate":100, + "popularityScore":8.8, + "__typename":"Score" + }, + "home_url":"https://rapidapi.com/deepbluesky/api/word-scramble/", + "host":"word-scramble.p.rapidapi.com", + "api_list":[ + { + "name":"scramble/{word}", + "url":"https://word-scramble.p.rapidapi.com/scramble/{word}", + "description":"Call scramble with {word} parameter", + "method":"GET", + "required_parameters":[ + { + "name":"word", + "type":"string", + "description":"", + "default":"TEST" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://word-scramble.p.rapidapi.com/scramble/{word}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"word-scramble.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Text_Analysis/word_scramble/api.py b/toolbench/toolenv/tools/Text_Analysis/word_scramble/api.py new file mode 100644 index 0000000000000000000000000000000000000000..85198ab45b5f5a57ea9b256817a92fef0b6ee68b --- /dev/null +++ b/toolbench/toolenv/tools/Text_Analysis/word_scramble/api.py @@ -0,0 +1,29 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def scramble_word(word: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Call scramble with {word} parameter" + + """ + url = f"https://word-scramble.p.rapidapi.com/scramble/{word}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "word-scramble.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Text_Analysis/word_similarity_v2/api.py b/toolbench/toolenv/tools/Text_Analysis/word_similarity_v2/api.py new file mode 100644 index 0000000000000000000000000000000000000000..7106c861c63582e315ddf8b49f36dd7301cf98f9 --- /dev/null +++ b/toolbench/toolenv/tools/Text_Analysis/word_similarity_v2/api.py @@ -0,0 +1,197 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def best_m(word: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "The **Top** most similar words in the **Medical** context using an advanced technique. You don't need to enter the required number of similar words." + + """ + url = f"https://word-similarity.p.rapidapi.com/medical/{word}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "word-similarity.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def top_10_m(word: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "The top 10 most similar words in the **Medical** context" + + """ + url = f"https://word-similarity.p.rapidapi.com/medical/10/{word}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "word-similarity.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def best_g(word: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "The **Top** most similar words in the **General** context using an advanced technique. You don't need to enter the required number of similar words." + + """ + url = f"https://word-similarity.p.rapidapi.com/general/{word}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "word-similarity.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def best_n(word: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "The **Top** most similar words in the **News** context using an advanced technique. You don't need to enter the required number of similar words." + + """ + url = f"https://word-similarity.p.rapidapi.com/news/{word}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "word-similarity.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def top_50_g(word: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "The top 50 most similar words in the **General** context" + + """ + url = f"https://word-similarity.p.rapidapi.com/general/50/{word}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "word-similarity.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def top_10_g(word: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "The top 10 most similar words in the **General** context" + + """ + url = f"https://word-similarity.p.rapidapi.com/general/10/{word}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "word-similarity.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def top_50_m(word: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "The top 50 most similar words in the **Medical** context" + + """ + url = f"https://word-similarity.p.rapidapi.com/medical/50/{word}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "word-similarity.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def top_10_n(word: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "The top 10 most similar words in the **News** context" + + """ + url = f"https://word-similarity.p.rapidapi.com/news/10/{word}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "word-similarity.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def top_50_n(word: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "The top 50 most similar words in the **News** context" + + """ + url = f"https://word-similarity.p.rapidapi.com/news/50/{word}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "word-similarity.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Text_Analysis/wordinfo.json b/toolbench/toolenv/tools/Text_Analysis/wordinfo.json new file mode 100644 index 0000000000000000000000000000000000000000..ed2fad087176268e12177367bc6f9c3b535332a0 --- /dev/null +++ b/toolbench/toolenv/tools/Text_Analysis/wordinfo.json @@ -0,0 +1,24 @@ +{ + "tool_name":"wordinfo", + "tool_description":"word definition and related word in topic", + "title":"wordinfo", + "pricing":"FREEMIUM", + "score":null, + "home_url":"https://rapidapi.com/karenlouiserichardson4907/api/wordinfo/", + "host":"wordinfo.p.rapidapi.com", + "api_list":[ + { + "name":"default", + "url":"https://wordinfo.p.rapidapi.com/", + "description":"default endpoint", + "method":"GET", + "required_parameters":[], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://wordinfo.p.rapidapi.com/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"wordinfo.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Text_Analysis/wordinfo/api.py b/toolbench/toolenv/tools/Text_Analysis/wordinfo/api.py new file mode 100644 index 0000000000000000000000000000000000000000..a614fa997faacf4f8876500152c9a5ce0d29e433 --- /dev/null +++ b/toolbench/toolenv/tools/Text_Analysis/wordinfo/api.py @@ -0,0 +1,29 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def default(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "default endpoint" + + """ + url = f"https://wordinfo.p.rapidapi.com/" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "wordinfo.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Text_Analysis/youtube_comments_sentiment_analysis.json b/toolbench/toolenv/tools/Text_Analysis/youtube_comments_sentiment_analysis.json new file mode 100644 index 0000000000000000000000000000000000000000..ff9c7de659571b0e8618401fb7a9cddfaec0812a --- /dev/null +++ b/toolbench/toolenv/tools/Text_Analysis/youtube_comments_sentiment_analysis.json @@ -0,0 +1,37 @@ +{ + "tool_name":"Youtube Comments Sentiment Analysis", + "tool_description":"Analyse youtube comments sentiment. Just need to send the youtube video link and choose in what language is written the comments (supports English and Portuguese)", + "title":"Youtube Comments Sentiment Analysis", + "pricing":"FREEMIUM", + "score":null, + "home_url":"https://rapidapi.com/ravenapi/api/youtube-comments-sentiment-analysis/", + "host":"youtube-comments-sentiment-analysis.p.rapidapi.com", + "api_list":[ + { + "name":"Analyse sentiment from youtube comments", + "url":"https://youtube-comments-sentiment-analysis.p.rapidapi.com/analysis", + "description":"This endpoint will return a JSON with:\n- All comments and it's respective score and type (positive, negative or neutro)\n- Total comments\n- Total of positive comments\n- Total of negative comments\n- Total of neutros comments\n- Greatest positive score\n- Greatest negative score", + "method":"GET", + "required_parameters":[ + { + "name":"lang", + "type":"STRING", + "description":"", + "default":"pt" + }, + { + "name":"video", + "type":"STRING", + "description":"", + "default":"https://www.youtube.com/watch?v=5f_qrpODcrc" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://youtube-comments-sentiment-analysis.p.rapidapi.com/analysis\"\nquerystring = {\"lang\": lang, \"video\": video}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"youtube-comments-sentiment-analysis.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Text_Analysis/youtube_comments_sentiment_analysis/api.py b/toolbench/toolenv/tools/Text_Analysis/youtube_comments_sentiment_analysis/api.py new file mode 100644 index 0000000000000000000000000000000000000000..20cd383fd22470db11be685f176d1e3b5b08da84 --- /dev/null +++ b/toolbench/toolenv/tools/Text_Analysis/youtube_comments_sentiment_analysis/api.py @@ -0,0 +1,36 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def analyse_sentiment_from_youtube_comments(lang: str, video: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "This endpoint will return a JSON with: + - All comments and it's respective score and type (positive, negative or neutro) + - Total comments + - Total of positive comments + - Total of negative comments + - Total of neutros comments + - Greatest positive score + - Greatest negative score" + + """ + url = f"https://youtube-comments-sentiment-analysis.p.rapidapi.com/analysis" + querystring = {'lang': lang, 'video': video, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "youtube-comments-sentiment-analysis.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Text_Analysis/youtube_transcriber.json b/toolbench/toolenv/tools/Text_Analysis/youtube_transcriber.json new file mode 100644 index 0000000000000000000000000000000000000000..d00a86ca299879602f547b8097cf1b6d6ddfa22a --- /dev/null +++ b/toolbench/toolenv/tools/Text_Analysis/youtube_transcriber.json @@ -0,0 +1,55 @@ +{ + "tool_name": "Youtube Transcriber", + "tool_description": "Extract all words from any Youtube video into a string.", + "title": "Youtube Transcriber", + "pricing": "PAID", + "score": null, + "home_url": "https://rapidapi.com/healthytechguy/api/youtube-transcriber/", + "host": "youtube-transcriber.p.rapidapi.com", + "api_list": [ + { + "name": "Transcribe", + "url": "https://youtube-transcriber.p.rapidapi.com/transcribe", + "description": "Used to extract all text from the audio in a Youtube video.", + "method": "GET", + "required_parameters": [ + { + "name": "videoid", + "type": "STRING", + "description": "", + "default": "aWwWfuSj3Iw" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://youtube-transcriber.p.rapidapi.com/transcribe\"\nquerystring = {\"videoid\": videoid}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"youtube-transcriber.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode": 111, + "body": "", + "headers": "", + "schema": "" + }, + { + "name": "Punctuate", + "url": "https://youtube-transcriber.p.rapidapi.com/punctuate", + "description": "Programatically add punctuation to text that has no punctuation.", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://youtube-transcriber.p.rapidapi.com/punctuate\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"youtube-transcriber.p.rapidapi.com\"\n}\n\nresponse = requests.post(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 111, + "body": "", + "headers": "", + "schema": "" + }, + { + "name": "Punctuate", + "url": "https://youtube-transcriber.p.rapidapi.com/punctuate", + "description": "Programatically add punctuation to text that has no punctuation.", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://youtube-transcriber.p.rapidapi.com/punctuate\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"youtube-transcriber.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://youtube-transcriber.p.rapidapi.com/punctuate\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"youtube-transcriber.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Text_Analysis/youtube_transcriber/api.py b/toolbench/toolenv/tools/Text_Analysis/youtube_transcriber/api.py new file mode 100644 index 0000000000000000000000000000000000000000..2abcd528b85a3a5aff38ba18940a40a6c65913c4 --- /dev/null +++ b/toolbench/toolenv/tools/Text_Analysis/youtube_transcriber/api.py @@ -0,0 +1,29 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def transcribe(videoid: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Used to extract all text from the audio in a Youtube video." + + """ + url = f"https://youtube-transcriber.p.rapidapi.com/transcribe" + querystring = {'videoid': videoid, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "youtube-transcriber.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Text_Analysis/youtube_transcript_multilanguage.json b/toolbench/toolenv/tools/Text_Analysis/youtube_transcript_multilanguage.json new file mode 100644 index 0000000000000000000000000000000000000000..46898b41e67686a1da2cd5cd9603bbca314446b6 --- /dev/null +++ b/toolbench/toolenv/tools/Text_Analysis/youtube_transcript_multilanguage.json @@ -0,0 +1,30 @@ +{ + "product_id": "api_e10a74a8-bf09-4041-a915-7a605f0064c9", + "tool_description": "Get a YouTube video subtitles transcript in its available languages. Use any compatible YouTube URL.", + "home_url": "https://rapidapi.com/technocortexai-technocortexai-default/api/youtube-transcript-multilanguage/", + "name": "YouTube Transcript Multilanguage", + "title": "YouTube Transcript Multilanguage", + "pricing": "FREEMIUM", + "tool_name": "YouTube Transcript Multilanguage", + "score": { + "avgServiceLevel": 100, + "avgLatency": 3751, + "avgSuccessRate": 100, + "popularityScore": 8.7, + "__typename": "Score" + }, + "host": "youtube-transcript-multilanguage.p.rapidapi.com", + "api_list": [ + { + "name": "YouTube Transcript Multilanguage", + "url": "https://youtube-transcript-multilanguage.p.rapidapi.com/", + "description": "YouTube Transcript Multilanguage", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://youtube-transcript-multilanguage.p.rapidapi.com/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"youtube-transcript-multilanguage.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://youtube-transcript-multilanguage.p.rapidapi.com/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"youtube-transcript-multilanguage.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Text_Analysis/zero_shot_ner.json b/toolbench/toolenv/tools/Text_Analysis/zero_shot_ner.json new file mode 100644 index 0000000000000000000000000000000000000000..d6d71cce76de3eb157d904ef9fdda2cacbadef7e --- /dev/null +++ b/toolbench/toolenv/tools/Text_Analysis/zero_shot_ner.json @@ -0,0 +1,30 @@ +{ + "product_id": "api_a5743a73-ed35-44c9-a26e-9ad72a2178d4", + "tool_description": "Multi-domain NER system to recognize and classify biomedical entities according to your custom classification", + "home_url": "https://rapidapi.com/knowledgator-knowledgator-default/api/zero-shot-ner/", + "name": "zero-shot NER", + "title": "zero-shot NER", + "pricing": "FREEMIUM", + "tool_name": "zero-shot NER", + "score": { + "avgServiceLevel": 92, + "avgLatency": 1569, + "avgSuccessRate": 91, + "popularityScore": 9.2, + "__typename": "Score" + }, + "host": "zero-shot-ner.p.rapidapi.com", + "api_list": [ + { + "name": "predict", + "url": "https://zero-shot-ner.p.rapidapi.com/predict", + "description": "predict", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://zero-shot-ner.p.rapidapi.com/predict\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"zero-shot-ner.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://zero-shot-ner.p.rapidapi.com/predict\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"zero-shot-ner.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Tools/0_1_url_shortner/api.py b/toolbench/toolenv/tools/Tools/0_1_url_shortner/api.py new file mode 100644 index 0000000000000000000000000000000000000000..133be077b8f94ece6478cd85245861416143342f --- /dev/null +++ b/toolbench/toolenv/tools/Tools/0_1_url_shortner/api.py @@ -0,0 +1,33 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def url_shortner(url: str, signature: str='c808b5e03a', action: str='shorturl', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "URL Shortner" + + """ + url = f"https://0-1-url-shortner.p.rapidapi.com/yourls-api.php" + querystring = {'url': url, } + if signature: + querystring['signature'] = signature + if action: + querystring['action'] = action + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "0-1-url-shortner.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Tools/3d_services/api.py b/toolbench/toolenv/tools/Tools/3d_services/api.py new file mode 100644 index 0000000000000000000000000000000000000000..2b917e50b3e7bd8992a32f7164b499b7f0e0bddd --- /dev/null +++ b/toolbench/toolenv/tools/Tools/3d_services/api.py @@ -0,0 +1,74 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def thumbnail(url: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + " " + url: A string containing an url of a '.glb' file + + """ + url = f"https://3d-services.p.rapidapi.com/thumbnail" + querystring = {'url': url, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "3d-services.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def version(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + " " + + """ + url = f"https://3d-services.p.rapidapi.com/api/version" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "3d-services.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def blender_project(mode: str, url: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "(Warnig - in zip mode the return of this api is a large file (~20MB)) similar to executing blender --background ./main.blend --python ./script.py. The zip in parameter should be composed of a main.blend file and a script.py. see example here https://files.aptero.co/api/public/dl/CJTvv0V7?inline=true" + mode: output mode of the query (zip or img) + url: A string containing an url of a '.zip' file of the project + + """ + url = f"https://3d-services.p.rapidapi.com/blender/project/{mode}" + querystring = {'url': url, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "3d-services.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Tools/acrosuite_cipher/api.py b/toolbench/toolenv/tools/Tools/acrosuite_cipher/api.py new file mode 100644 index 0000000000000000000000000000000000000000..5879e71884103a74682f8428a5393e479b9951b7 --- /dev/null +++ b/toolbench/toolenv/tools/Tools/acrosuite_cipher/api.py @@ -0,0 +1,36 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def generate_rsa_key(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Generate Public and Private key pair of RSA. + **RSA公開と秘密鍵**を生成するAPIです。 +
+ The following external document is for directly calling AcroSuite original APIs. Some Auth parameters may be neglected here. + https://mars.restgate.net:8443/AcroSuite/v0_1/CstService/apiInfo/doc?appId=10006&language=2&withTitle=true&apiCode=02301008 + + 下記の外部ドキュメントは、AcroSuiteオリジナルAPIに対する資料であり、ここでは一部の認証パラメータを省略します。 + https://mars.restgate.net:8443/AcroSuite/v0_1/CstService/apiInfo/doc?appId=10006&language=1&withTitle=true&apiCode=02301008" + + """ + url = f"https://acrosuite-cipher.p.rapidapi.com/v0_1/cstservice/tools/cipher/rsakey" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "acrosuite-cipher.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Tools/advanced_html_template_generator.json b/toolbench/toolenv/tools/Tools/advanced_html_template_generator.json new file mode 100644 index 0000000000000000000000000000000000000000..5b0b9556f21e1dfd06578ad56079a5403fcb7bbb --- /dev/null +++ b/toolbench/toolenv/tools/Tools/advanced_html_template_generator.json @@ -0,0 +1,68 @@ +{ + "product_id": "api_36a99a10-552f-4edd-83c4-389d6ea9c465", + "tool_description": "An Advanced configurable HTML Template Generator with 5 different templates!", + "home_url": "https://rapidapi.com/loganamundson12/api/advanced-html-template-generator/", + "name": "ADVANCED HTML Template generator", + "title": "ADVANCED HTML Template generator", + "pricing": "FREEMIUM", + "tool_name": "ADVANCED HTML Template generator", + "score": null, + "host": "advanced-html-template-generator.p.rapidapi.com", + "api_list": [ + { + "name": "HTML Template 2(INVITATION)ADVANCED", + "url": "https://advanced-html-template-generator.p.rapidapi.com/template/2/a", + "description": "The ***Advanced*** version of the original invitation template.", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://advanced-html-template-generator.p.rapidapi.com/template/2/a\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"advanced-html-template-generator.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://advanced-html-template-generator.p.rapidapi.com/template/2/a\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"advanced-html-template-generator.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "HTML Template 5(FUTURE)ADVANCED", + "url": "https://advanced-html-template-generator.p.rapidapi.com/template/5/a", + "description": "A futuristic template, good for informal or common emails.", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://advanced-html-template-generator.p.rapidapi.com/template/5/a\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"advanced-html-template-generator.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://advanced-html-template-generator.p.rapidapi.com/template/5/a\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"advanced-html-template-generator.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "HTML Template 4(BUSINESS)ADVANCED", + "url": "https://advanced-html-template-generator.p.rapidapi.com/template/4/a", + "description": "The ***Advanced*** version of the original business template.", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://advanced-html-template-generator.p.rapidapi.com/template/4/a\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"advanced-html-template-generator.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://advanced-html-template-generator.p.rapidapi.com/template/4/a\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"advanced-html-template-generator.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "HTML Template 3(FANCY)ADVANCED", + "url": "https://advanced-html-template-generator.p.rapidapi.com/template/3/a", + "description": "The ***Advanced*** version of the original fancy template.", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://advanced-html-template-generator.p.rapidapi.com/template/3/a\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"advanced-html-template-generator.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://advanced-html-template-generator.p.rapidapi.com/template/3/a\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"advanced-html-template-generator.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "HTML template 1(CUSTOM)ADVANCED", + "url": "https://advanced-html-template-generator.p.rapidapi.com/template/1/a/", + "description": "The ***Advanced*** version of the original custom template.", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://advanced-html-template-generator.p.rapidapi.com/template/1/a/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"advanced-html-template-generator.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://advanced-html-template-generator.p.rapidapi.com/template/1/a/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"advanced-html-template-generator.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Tools/affiliate_url_cleaner_daddy.json b/toolbench/toolenv/tools/Tools/affiliate_url_cleaner_daddy.json new file mode 100644 index 0000000000000000000000000000000000000000..372ab7bc8b27da4ab44aaa7d6754e175179cd753 --- /dev/null +++ b/toolbench/toolenv/tools/Tools/affiliate_url_cleaner_daddy.json @@ -0,0 +1,39 @@ +{ + "product_id": "api_dbd3b06a-e184-47de-a6e5-16c772f64116", + "tool_description": "The \"Affiliate URL Cleaner API\" is a web service that removes affiliate parameters and other tracking information from product or service URLs. This API takes a URL as an input and returns a \"clean\" URL that does not contain any affiliate or tracking parameters. ", + "home_url": "https://rapidapi.com/DaddyApi/api/affiliate-url-cleaner-daddy/", + "name": "\ud83d\udd34 AFFILIATE URL CLEANER \ud83d\udd34 Daddy", + "title": "\ud83d\udd34 AFFILIATE URL CLEANER \ud83d\udd34 Daddy", + "pricing": "FREEMIUM", + "tool_name": "\ud83d\udd34 AFFILIATE URL CLEANER \ud83d\udd34 Daddy", + "score": { + "avgServiceLevel": 100, + "avgLatency": 197, + "avgSuccessRate": 100, + "popularityScore": 9, + "__typename": "Score" + }, + "host": "affiliate-url-cleaner-daddy.p.rapidapi.com", + "api_list": [ + { + "name": "Clean", + "url": "https://affiliate-url-cleaner-daddy.p.rapidapi.com/aff", + "description": "The main endpoint of the AFFILIATE REMOVE API is a URL cleaning function that removes affiliate parameters and tracking information from a given URL, returning a clean version of the original URL.", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://affiliate-url-cleaner-daddy.p.rapidapi.com/aff\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"affiliate-url-cleaner-daddy.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://affiliate-url-cleaner-daddy.p.rapidapi.com/aff\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"affiliate-url-cleaner-daddy.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "response": { + "type": "string" + } + } + } + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Tools/ai_chatgpt_midjourney.json b/toolbench/toolenv/tools/Tools/ai_chatgpt_midjourney.json new file mode 100644 index 0000000000000000000000000000000000000000..623c433f3ba4bda523278cbcb3255f6768f261c3 --- /dev/null +++ b/toolbench/toolenv/tools/Tools/ai_chatgpt_midjourney.json @@ -0,0 +1,45 @@ +{ + "product_id": "api_29b42d2e-23db-434c-bf8e-d891ed8d3a3e", + "tool_description": "free try now \neasily text to image with short promots. Midjourney, mj, MJ-services, \neasily to chatgpt , Open AI, openai\nchatgpt 4 in progress 29%\neasily to what you want ", + "home_url": "https://rapidapi.com/aihelper/api/ai-chatgpt-midjourney/", + "name": "AI - ChatGPT, Midjourney", + "title": "AI - ChatGPT, Midjourney", + "pricing": "FREEMIUM", + "tool_name": "AI - ChatGPT, Midjourney", + "score": { + "avgServiceLevel": 82, + "avgLatency": 2344, + "avgSuccessRate": 82, + "popularityScore": 9, + "__typename": "Score" + }, + "host": "ai-chatgpt-midjourney.p.rapidapi.com", + "api_list": [ + { + "name": "change pic", + "url": "https://ai-chatgpt-midjourney.p.rapidapi.com/submit/change", + "description": "if you want to get or to change the image with the same promots, make sure input the right id\nto UPSCALE, VARIATION, REROLL the image with index.\naction: UPSCALE, VARIATION, REROLL", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://ai-chatgpt-midjourney.p.rapidapi.com/submit/change\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"ai-chatgpt-midjourney.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://ai-chatgpt-midjourney.p.rapidapi.com/submit/change\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"ai-chatgpt-midjourney.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": {} + }, + { + "name": "imagine - fast job", + "url": "https://ai-chatgpt-midjourney.p.rapidapi.com/submit/imagine", + "description": "input promots to generate four images, and return the id with key \"result\", then put the id to the endpoint \"get image with id or result\" to get the url and progress", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://ai-chatgpt-midjourney.p.rapidapi.com/submit/imagine\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"ai-chatgpt-midjourney.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://ai-chatgpt-midjourney.p.rapidapi.com/submit/imagine\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"ai-chatgpt-midjourney.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": {} + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Tools/ai_image_generator_text_to_image.json b/toolbench/toolenv/tools/Tools/ai_image_generator_text_to_image.json new file mode 100644 index 0000000000000000000000000000000000000000..82a2775ed2313ef441709c167e25e5f4cd1e9c5e --- /dev/null +++ b/toolbench/toolenv/tools/Tools/ai_image_generator_text_to_image.json @@ -0,0 +1,24 @@ +{ + "product_id": "api_b0ba05db-470d-43ed-b1b2-a4ae7dc189bd", + "tool_description": "Let AI create an image for you. Send a description and size of the image and in response get a url to the created image.", + "home_url": "https://rapidapi.com/wirecryptocontact-h9qCX5pYMlJ/api/ai-image-generator-text-to-image/", + "name": "AI Image Generator | Text to image", + "title": "AI Image Generator | Text to image", + "pricing": "PAID", + "tool_name": "AI Image Generator | Text to image", + "score": null, + "host": "ai-image-generator-text-to-image.p.rapidapi.com", + "api_list": [ + { + "name": "Generate image", + "url": "https://ai-image-generator-text-to-image.p.rapidapi.com/generate", + "description": "This endpoint takes a POST request with the required properties \"description\" and \"size\" and returns a url to your AI Generated Image. \n\nNOTE: This endpoint cannot accept a \"description\" property that contains explicit content.", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://ai-image-generator-text-to-image.p.rapidapi.com/generate\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"ai-image-generator-text-to-image.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://ai-image-generator-text-to-image.p.rapidapi.com/generate\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"ai-image-generator-text-to-image.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Tools/ai_summarizer/api.py b/toolbench/toolenv/tools/Tools/ai_summarizer/api.py new file mode 100644 index 0000000000000000000000000000000000000000..804b6ad71796e02b2bf994e9881b63143019ac1f --- /dev/null +++ b/toolbench/toolenv/tools/Tools/ai_summarizer/api.py @@ -0,0 +1,31 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def summarizer(text: str, num_sentences: int=2, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "This is an API that allows you to summarize a given text using OpenAI's services. The API takes two main parameters, "text" and "num_sentences", and returns a summarized version of the input text." + + """ + url = f"https://ai-summarizer.p.rapidapi.com/" + querystring = {'text': text, } + if num_sentences: + querystring['num_sentences'] = num_sentences + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "ai-summarizer.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Tools/aio_qr_code_api.json b/toolbench/toolenv/tools/Tools/aio_qr_code_api.json new file mode 100644 index 0000000000000000000000000000000000000000..d977950476f819672e253a588422934f7ce83d13 --- /dev/null +++ b/toolbench/toolenv/tools/Tools/aio_qr_code_api.json @@ -0,0 +1,31 @@ +{ + "tool_name":"AIO QR Code API", + "tool_description":"This API takes a URL or string and returns the QR code image.", + "title":"AIO QR Code API", + "pricing":"FREEMIUM", + "score":null, + "home_url":"https://rapidapi.com/aio-api-aio-api-default/api/aio-qr-code-api/", + "host":"aio-qr-code-api.p.rapidapi.com", + "api_list":[ + { + "name":"QR Code Image", + "url":"https://aio-qr-code-api.p.rapidapi.com/qr", + "description":"This end point takes a 'GET' request with url / string as a parameter and returns qr code image.", + "method":"GET", + "required_parameters":[ + { + "name":"url", + "type":"STRING", + "description":"", + "default":"google.com" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://aio-qr-code-api.p.rapidapi.com/qr\"\nquerystring = {\"url\": url}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"aio-qr-code-api.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Tools/aio_qr_code_api/api.py b/toolbench/toolenv/tools/Tools/aio_qr_code_api/api.py new file mode 100644 index 0000000000000000000000000000000000000000..167291c95d162f17719ec6b1fbf9d09d3be21a6f --- /dev/null +++ b/toolbench/toolenv/tools/Tools/aio_qr_code_api/api.py @@ -0,0 +1,29 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def qr_code_image(url: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "This end point takes a 'GET' request with url / string as a parameter and returns qr code image." + + """ + url = f"https://aio-qr-code-api.p.rapidapi.com/qr" + querystring = {'url': url, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "aio-qr-code-api.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Tools/air_conditioner.json b/toolbench/toolenv/tools/Tools/air_conditioner.json new file mode 100644 index 0000000000000000000000000000000000000000..7e3185854fcab3a63ca9e423f6b4ea9276196b77 --- /dev/null +++ b/toolbench/toolenv/tools/Tools/air_conditioner.json @@ -0,0 +1,24 @@ +{ + "tool_name":"Air Conditioner", + "tool_description":"API return air conditional base on lat long coordinates", + "title":"Air Conditioner", + "pricing":"FREEMIUM", + "score":null, + "home_url":"https://rapidapi.com/cynthiacinquanti2007/api/air-conditioner/", + "host":"air-conditioner.p.rapidapi.com", + "api_list":[ + { + "name":"default", + "url":"https://air-conditioner.p.rapidapi.com/", + "description":"default endpoint", + "method":"GET", + "required_parameters":[], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://air-conditioner.p.rapidapi.com/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"air-conditioner.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Tools/air_conditioner/api.py b/toolbench/toolenv/tools/Tools/air_conditioner/api.py new file mode 100644 index 0000000000000000000000000000000000000000..3c798c95453abd190443985b08b5ee2f1a5a9fbe --- /dev/null +++ b/toolbench/toolenv/tools/Tools/air_conditioner/api.py @@ -0,0 +1,29 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def default(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "default endpoint" + + """ + url = f"https://air-conditioner.p.rapidapi.com/" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "air-conditioner.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Tools/air_quality_indicator_api.json b/toolbench/toolenv/tools/Tools/air_quality_indicator_api.json new file mode 100644 index 0000000000000000000000000000000000000000..1b279ce14c5dd0785d9bbb6fc39bafd6cf5a4a4d --- /dev/null +++ b/toolbench/toolenv/tools/Tools/air_quality_indicator_api.json @@ -0,0 +1,49 @@ +{ + "product_id": "api_72a16436-f1db-434e-be25-e70e2df38b87", + "tool_description": "The Air Quality Indicator API provides real-time air quality data based on the health index, measured on a scale of 1 to 10. The index is calculated based on three-hour averages of ozone, nitrogen dioxide, and fine particulate matter concentrations, provided in ppb and ug/m3. This API is ideal for monitoring air quality in different locations and can be used to take necessary actions to protect public health.", + "home_url": "https://rapidapi.com/zyla-labs-zyla-labs-default/api/air-quality-indicator-api/", + "name": "Air Quality Indicator API", + "title": "Air Quality Indicator API", + "pricing": "FREEMIUM", + "tool_name": "Air Quality Indicator API", + "score": { + "avgServiceLevel": 100, + "avgLatency": 838, + "avgSuccessRate": 100, + "popularityScore": 8.9, + "__typename": "Score" + }, + "host": "air-quality-indicator-api.p.rapidapi.com", + "api_list": [ + { + "name": "Air Quality Health Index", + "url": "https://air-quality-indicator-api.p.rapidapi.com/airQualityHealthIndex", + "description": "Return the official air quality health index (1 to 10) bases on key parameters.The national AQHI is based on three-hour average concentrations of ground-level ozone (O3), nitrogen dioxide (NO2), and fine particulate matter (PM2.5). O3 and NO2 are measured in parts per billion (ppb) while PM2.5 is measured in micrograms per cubic metre (ug/m3).", + "method": "POST", + "required_parameters": [ + { + "name": "no2", + "type": "STRING", + "description": "The nitrogen dioxide (NO2), in parts per billion (ppb).", + "default": "15" + }, + { + "name": "o3", + "type": "STRING", + "description": "The ground-level ozone (O3) in parts per billion (ppb).", + "default": "10" + }, + { + "name": "pm", + "type": "STRING", + "description": "The fine particulate matter (PM2.5), PM2.5 is * measured in micrograms per cubic metre (ug/m3).", + "default": "5" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://air-quality-indicator-api.p.rapidapi.com/airQualityHealthIndex\"\nquerystring = {\"no2\": \"15\", \"o3\": \"10\", \"pm\": \"5\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"air-quality-indicator-api.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://air-quality-indicator-api.p.rapidapi.com/airQualityHealthIndex\"\nquerystring = {\"no2\": \"15\", \"o3\": \"10\", \"pm\": \"5\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"air-quality-indicator-api.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Tools/airqua.json b/toolbench/toolenv/tools/Tools/airqua.json new file mode 100644 index 0000000000000000000000000000000000000000..eba9615c956ebd8a4650390a59649f75a2c413a4 --- /dev/null +++ b/toolbench/toolenv/tools/Tools/airqua.json @@ -0,0 +1,24 @@ +{ + "tool_name":"airqua", + "tool_description":"API return air conditional base on lat long coordinates", + "title":"airqua", + "pricing":"FREEMIUM", + "score":null, + "home_url":"https://rapidapi.com/cleosatkins1061/api/airqua/", + "host":"airqua.p.rapidapi.com", + "api_list":[ + { + "name":"default", + "url":"https://airqua.p.rapidapi.com/", + "description":"default Endpoint", + "method":"GET", + "required_parameters":[], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://airqua.p.rapidapi.com/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"airqua.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Tools/airqua/api.py b/toolbench/toolenv/tools/Tools/airqua/api.py new file mode 100644 index 0000000000000000000000000000000000000000..51bcb4e420ba441406cdce22efaa5b4c7ded8a05 --- /dev/null +++ b/toolbench/toolenv/tools/Tools/airqua/api.py @@ -0,0 +1,29 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def default(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "default Endpoint" + + """ + url = f"https://airqua.p.rapidapi.com/" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "airqua.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Tools/aixe_account.json b/toolbench/toolenv/tools/Tools/aixe_account.json new file mode 100644 index 0000000000000000000000000000000000000000..d81ac241824994ca013964c2282c5a5b3f9a4430 --- /dev/null +++ b/toolbench/toolenv/tools/Tools/aixe_account.json @@ -0,0 +1,24 @@ +{ + "tool_name":"aixe account", + "tool_description":"get axie infomation from aixe account", + "title":"aixe account", + "pricing":"FREEMIUM", + "score":null, + "home_url":"https://rapidapi.com/heleneobley723/api/aixe-account1/", + "host":"aixe-account1.p.rapidapi.com", + "api_list":[ + { + "name":"default", + "url":"https://aixe-account1.p.rapidapi.com/", + "description":"default endpoint", + "method":"GET", + "required_parameters":[], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://aixe-account1.p.rapidapi.com/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"aixe-account1.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Tools/aixe_account/api.py b/toolbench/toolenv/tools/Tools/aixe_account/api.py new file mode 100644 index 0000000000000000000000000000000000000000..43edd2800f49c27f01696c04b55c6437ae1a801c --- /dev/null +++ b/toolbench/toolenv/tools/Tools/aixe_account/api.py @@ -0,0 +1,29 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def default(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "default endpoint" + + """ + url = f"https://aixe-account1.p.rapidapi.com/" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "aixe-account1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Tools/aixe_account_infomation.json b/toolbench/toolenv/tools/Tools/aixe_account_infomation.json new file mode 100644 index 0000000000000000000000000000000000000000..0fde7958d7eb43ca21df1f2d61714f66b1a7cce5 --- /dev/null +++ b/toolbench/toolenv/tools/Tools/aixe_account_infomation.json @@ -0,0 +1,24 @@ +{ + "tool_name":"Aixe Account Infomation", + "tool_description":"get axie infomation from aixe account", + "title":"Aixe Account Infomation", + "pricing":"FREEMIUM", + "score":null, + "home_url":"https://rapidapi.com/markallison3309/api/aixe-account-infomation/", + "host":"aixe-account-infomation.p.rapidapi.com", + "api_list":[ + { + "name":"default", + "url":"https://aixe-account-infomation.p.rapidapi.com/", + "description":"default endpoint", + "method":"GET", + "required_parameters":[], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://aixe-account-infomation.p.rapidapi.com/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"aixe-account-infomation.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Tools/aixe_account_infomation/api.py b/toolbench/toolenv/tools/Tools/aixe_account_infomation/api.py new file mode 100644 index 0000000000000000000000000000000000000000..a8b30fde98e7897afa49cfd84416e73372732f5c --- /dev/null +++ b/toolbench/toolenv/tools/Tools/aixe_account_infomation/api.py @@ -0,0 +1,29 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def default(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "default endpoint" + + """ + url = f"https://aixe-account-infomation.p.rapidapi.com/" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "aixe-account-infomation.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Tools/akacoit_short_link.json b/toolbench/toolenv/tools/Tools/akacoit_short_link.json new file mode 100644 index 0000000000000000000000000000000000000000..57bc7677a2c0322c7773d8386a7ec8252ff1ff1f --- /dev/null +++ b/toolbench/toolenv/tools/Tools/akacoit_short_link.json @@ -0,0 +1,39 @@ +{ + "product_id": "api_fe1ac898-eebe-4f0a-afca-8d1cf1ea15d6", + "tool_description": "API for Akacoit short-link service.", + "home_url": "https://rapidapi.com/akacoit-akacoit-default/api/akacoit-short-link/", + "name": "Akacoit short-link", + "title": "Akacoit short-link", + "pricing": "FREEMIUM", + "tool_name": "Akacoit short-link", + "score": null, + "host": "akacoit-short-link.p.rapidapi.com", + "api_list": [ + { + "name": "CreateSpecificLink", + "url": "https://akacoit-short-link.p.rapidapi.com/v1/link/new/specific", + "description": "# /v1/link/new/specific\n\nCreates link with specific uid name.\n\n| **Parameter** | **Values** |\n| --- | --- |\n| uid | *String:* name of your link |\n| url | *String:* url like |\n| type | *ENUM:* Can be **FAST** if redirect is done immediately or **SLOW** if redirect has a timeout |\n| password: **Optional** | *String:* To lock your link |\n| expires_at: **Optional** | *String*: ISO Date. Default: max expire of your plan. |\n| geolocation* | *String:* Can be **INCLUSIVE** if specified countries can access, **EXCLUSIVE** if specified countries CAN'T access or **DISABLED** |\n| geolocation_data* | *String\\[\\]:* List of countries for **geolocation** parameter |\n| domain* | *String:* Custom domain |\n\n**not included in free plan*", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://akacoit-short-link.p.rapidapi.com/v1/link/new/specific\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"akacoit-short-link.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://akacoit-short-link.p.rapidapi.com/v1/link/new/specific\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"akacoit-short-link.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": {} + }, + { + "name": "CreateRandomLink", + "url": "https://akacoit-short-link.p.rapidapi.com/v1/link/new/random", + "description": "# /v1/link/new/random\n\nCreates link with random uid name. \nThis endpoint can be called anonymously by not passing the authentication token. Anonymous links can only use the \"url\" parameter and their \"type\" is automatically set to **SLOW**. Additionally, If the link is anonymous no further edit will be possible.\n\n| **Parameter** | **Values** |\n| --- | --- |\n| url | *String:* url like |\n| type | *ENUM:* Can be **FAST** if redirect is done immediately or **SLOW** if redirect has a timeout |\n| password: **Optional** | *String:* To lock your link |\n| expires_at: **Optional** | *String:* ISO Date. Default: max expire of your plan. |\n| length: **Optional** | *Number:* To specify the length of your link's uid (if not given default of your plan will be used) |\n| geolocation* | *String:* Can be **INCLUSIVE** if specified countries can access, **EXCLUSIVE** if specified countries CAN'T access or **DISABLED** |\n| geolocation_data* | *String\\[\\]:* List of countries for **geolocation** parameter |\n| domain* | *String:* Custom domain |\n\n**not included in free plan*", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://akacoit-short-link.p.rapidapi.com/v1/link/new/random\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"akacoit-short-link.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://akacoit-short-link.p.rapidapi.com/v1/link/new/random\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"akacoit-short-link.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Tools/akacoit_short_link/api.py b/toolbench/toolenv/tools/Tools/akacoit_short_link/api.py new file mode 100644 index 0000000000000000000000000000000000000000..b9e88135e62e3cc1377b54bf06cfeb8f8eba1251 --- /dev/null +++ b/toolbench/toolenv/tools/Tools/akacoit_short_link/api.py @@ -0,0 +1,125 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def deletelink(is_id: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "# /v1/link/delete/:id + + Deletes your link, given his ID. Doesn't remove the analytics. + + | **Parameter** | **Values** | + | --- | --- | + | ID | *String:* ID of your link | + | full** | *Boolean:* Deletes all data connected to the link (analytics included) | + + **TBD" + + """ + url = f"https://akacoit-short-link.p.rapidapi.com/v1/link/delete/{is_id}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "akacoit-short-link.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def getlinksuser(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "# /v1/link/list + + Retrieves all your links data. + + | **Parameter** | **Values** | + | --- | --- | + | deep: **Optional** | *Number*: Can be [1,2]; is how many level of sublinks to show, if any. Default: 1. | + | page: **Optional** | *Number*: To select which page of results to retrieve, if more than 1. Default: 1. |" + + """ + url = f"https://akacoit-short-link.p.rapidapi.com/v1/link/list" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "akacoit-short-link.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def getlink(is_id: str, deep: int, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "# /v1/link/get/:id + + Retrieves the data about your link, given his id name. + + | **Parameter** | **Values** | + | --- | --- | + | id | *String:* id of your link | + | deep: **Optional** | *Number*: Can be [1,2]; is how many level of sublinks to show, if any. Default: 1. | + | page: **Optional** | *Number*: To select which page of results to retrieve, if more than 1. Default: 1. |" + deep: Level of deepness of sublinks + + """ + url = f"https://akacoit-short-link.p.rapidapi.com/v1/link/get/{is_id}" + querystring = {'deep': deep, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "akacoit-short-link.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def getanalyticscount(is_id: str, download: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "# /**v1/analytics/count/:id** + + Retrieves analytics of your link, given his ID, split by hour sampled every quarter. + Available only for payment plans. + + | **Parameter** | **Values** | + | --- | --- | + | ID | *String:* ID of your link |" + download: If true downloads a copy of the results as csv + + """ + url = f"https://akacoit-short-link.p.rapidapi.com/v1/analytics/count/{is_id}" + querystring = {'download': download, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "akacoit-short-link.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Tools/all_in_one_file_converter.json b/toolbench/toolenv/tools/Tools/all_in_one_file_converter.json new file mode 100644 index 0000000000000000000000000000000000000000..53e7c177792ed94238d88dfd9fa7945e2da7fcce --- /dev/null +++ b/toolbench/toolenv/tools/Tools/all_in_one_file_converter.json @@ -0,0 +1,55 @@ +{ + "product_id": "api_c88268a7-2992-44c2-8895-7a01d4c54aab", + "tool_description": "All in one file converter can convert different types of files. It can convert audio, video, images, documents, and archive files.", + "home_url": "https://rapidapi.com/aliareef17-j60z54ITGpS/api/all-in-one-file-converter/", + "name": "All in One FIle Converter", + "title": "All in One FIle Converter", + "pricing": "FREEMIUM", + "tool_name": "All in One FIle Converter", + "score": { + "avgServiceLevel": 100, + "avgLatency": 934, + "avgSuccessRate": 68, + "popularityScore": 8.8, + "__typename": "Score" + }, + "host": "all-in-one-file-converter.p.rapidapi.com", + "api_list": [ + { + "name": "Get Supported File Type", + "url": "https://all-in-one-file-converter.p.rapidapi.com/api/supported-file", + "description": "Get supported file types by providing an input file type", + "method": "GET", + "required_parameters": [ + { + "name": "input", + "type": "STRING", + "description": "", + "default": "jpg" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://all-in-one-file-converter.p.rapidapi.com/api/supported-file\"\nquerystring = {\"input\": \"jpg\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"all-in-one-file-converter.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://all-in-one-file-converter.p.rapidapi.com/api/supported-file\"\nquerystring = {\"input\": \"jpg\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"all-in-one-file-converter.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": { + "statusCode": 200, + "supportedFiles": [ + "bmp", + "gif", + "ico", + "png", + "tga", + "tiff", + "webp" + ] + }, + "statuscode": 200, + "schema": { + "statusCode": 200, + "message": "File converted successfully", + "downloadUrl": "https://givesoffer.com/uploads/convertapi-4724-x.webp" + } + } + ], + "standardized_name": "all_in_one_file_converter" +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Tools/all_in_one_file_converter/api.py b/toolbench/toolenv/tools/Tools/all_in_one_file_converter/api.py new file mode 100644 index 0000000000000000000000000000000000000000..36aa8c98df507cda7df7843a0cd501aff646c105 --- /dev/null +++ b/toolbench/toolenv/tools/Tools/all_in_one_file_converter/api.py @@ -0,0 +1,29 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def get_supported_file_type(input: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get supported file types by providing an input file type" + + """ + url = f"https://all-in-one-file-converter.p.rapidapi.com/api/supported-file" + querystring = {'input': input, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "all-in-one-file-converter.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Tools/all_purpose_complex_converter.json b/toolbench/toolenv/tools/Tools/all_purpose_complex_converter.json new file mode 100644 index 0000000000000000000000000000000000000000..26acd33bf5c56c21d4ae8d2d288f1d686fb0e72d --- /dev/null +++ b/toolbench/toolenv/tools/Tools/all_purpose_complex_converter.json @@ -0,0 +1,410 @@ +{ + "tool_name":"All Purpose Complex Converter", + "tool_description":"Convert numbers to words, text to speech, numbers to speech, speech to text and much more.", + "title":"All Purpose Complex Converter", + "pricing":"FREEMIUM", + "score":{ + "avgServiceLevel":75, + "avgLatency":28404, + "avgSuccessRate":74, + "popularityScore":9.2, + "__typename":"Score" + }, + "home_url":"https://rapidapi.com/mohammadkhalidmomand-Mp03XqK3XfO/api/all-purpose-complex-converter/", + "host":"all-purpose-complex-converter.p.rapidapi.com", + "api_list":[ + { + "name":"Convert Number To Speech| Provide Any Integer Number", + "url":"https://all-purpose-complex-converter.p.rapidapi.com/numbers_to_speech/{number}/{lang}/", + "description":"Converting any integer number to Speech", + "method":"GET", + "required_parameters":[ + { + "name":"number", + "type":"NUMBER", + "description":"Pass Only Integer Number!", + "default":"12345345483453456434354131" + } + ], + "optional_parameters":[ + { + "name":"lang", + "type":"string", + "description":"Select Language , By default ( en-us ) is supported, \nHit GET Languages Endpoint to get a list of all supported languages.", + "default":"en" + } + ], + "code":"import requests\n\nurl = \"https://all-purpose-complex-converter.p.rapidapi.com/numbers_to_speech/{number}/{lang}/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"all-purpose-complex-converter.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + }, + { + "name":"Convert Text To Speech || Provide Any Text", + "url":"https://all-purpose-complex-converter.p.rapidapi.com/text_to_speech/{text}/{lang}/", + "description":"Convert Any Text To Speech.", + "method":"GET", + "required_parameters":[ + { + "name":"text", + "type":"string", + "description":"Support Both Text and Numbers. \nCan Pass Text Such as (\\\"any Thing to convert\\\")\nor \nCan Pass Any Number such as 1029383833384474", + "default":"I am using All Purpose Complex Converter API for My Daily Tasks." + } + ], + "optional_parameters":[ + { + "name":"lang", + "type":"string", + "description":"Select Language , By default ( en-us ) is supported, \nHit GET Languages Endpoint to get a list of all supported languages.", + "default":"en" + } + ], + "code":"import requests\n\nurl = \"https://all-purpose-complex-converter.p.rapidapi.com/text_to_speech/{text}/{lang}/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"all-purpose-complex-converter.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode":200, + "body":"��D�\u0000\u0010\u0001��\u0001B\u0010\u0000�琄P\u0001\u0004��L����?���s��c�\u00002��y��������\u0006,p \u0018\u0012\u001c\u0007��.\u001f�?�(��A���8|F\u001f���J��؇�!��a\u0007j|��D�\u0013\u0015\"F�\u0001��\u0001ЦO����G����\u0000,,l>1\u0000~y�\u0010a�\"�ѿM�����hй��\u001796�p����7In�#/�����d�����3Pz,�c3�\u0002�4\u000f5#I��D�\u0011\u0016\t2�\u0001�x\u0000cמ��\u001c�b�B\r3�\u0016���(�I�\u0005��\u0011�7\u0010\u0001�H�+ګ\u0007/%� S?\u0017��o��S\u001a���iH\u0001`\u0000b��RZ\u001b���e{V��Ͽ�H�*ե�w���D�\u000b\u0015Y&�\u0000� pݹi\u0003�zŘ����t,Q@'\f1-H�t K#:\u0017D\u0005��\r��!(c\u0002p�t�O��H���\u0017�/c\u0017]\u0014K�\u0011\u00129i��B�DmV&e�\"��xWn�a����D�\b\u0013Y2�\u0000�\u001epz裛��m�W���;\u0011L�Q\u0001�8��R��o��Od`�c�Hq\u000f��<�*FMz���3�|o�XQ<\u001d�=ƙ�nx�\t�J˟��\u0003��\u001c��aZP��D�\r\u0014�.�\u0000�\u001ep�ث\u0012\u001b����\u0010\u0011v\"�1�Z\u0004�7.��\u001dR�\b�{@rg!LʘmŽAY`\u001d�Q3F踯�1��\u0006֊=%k&��\n�ow�E�7��\u0018T�\u001b3\"\nQ��D�\f\u0014i2�\u0000�\u001ep\u001e�.\u0011�5ڥ�n@�o����s.֖��ϭ�ۻc�鋪BO\txt�R�>3�D��D�> e�1\u000e�G���\u001f�o�y����J����C�hr�\u0017�����D�\r\u0012�6�\u0000�\u001ap3��Õ#��\u0013&����������\f��\u0019��KA0�\u0019F�\u0017�1���,k���M\u0013#J�!�>��w��������隄f֮\u0012�M�j�}Atəؕ���ճ��q��9���PM\n�������r\u0015����\u0005�Vf\u0004����\u0010b�|4���D�n\u0016Q��\u0000�\u001e�@pO\b�j~P���F\u0007\u001b��1��`w0��-��(��&.�3\u0018�s��h��>m���������B�\u001c\u0000��b\u000f�\u0017���p�\t\u0001�\u001a���\f�\u0002�\u000e��D�g\u0017Ѣ�\u0000�^�H��+���b\u0000�4n�\"`��z�\u001a�h�B��!\u0004D\u0001}�\u0011\n�I�\u0012��B�\u0004\u0011\"\"@����\u001c�qR�\u0001\u0002��UL*�����{\u0016��o�~\u0017��$�e��D�Z\u0013�*�\u0000�Rp�6�s$ \u0000��ma���\u0001��%\ff�X�\u0013\"��\u001e\u0005M/�Z#j卑Z\t��sΐ#���_�R���k�m�����R����@��x�\u0018(�ÿ�\\R\u0003��D�]\u0015�ʘ\u0000�V��t����Q�\u001cf���Q�F\u000b\u001b����ts\\@�\"���3�0�\u0005�/������w��b�r�}=�3��\u0000O\u0000�J�\u0012!\"&�a\u0012��\u0011�9��\u0001}p3*���D�Y\u0017S\u001a�\u0000�F��\b\u0003\u001d\u0015M�怏\f�����_=���[�����\u001f����q�v�պR��Ƌ�u���&�4�60I�\u00138�Ң��45,4X\u0010�\u0019��\u001b���4�����D�N\u001b\u0013\"�\u0000hV�)��\f\u0001��!Gb�Ֆ\u0003�҂�\u0010G\u001d��n\u0007�S2\f�U���������������Y�:�ՙ\u0015\u0012NTx�F%.�#��j-\u000be�\u000f�B26rc\t�0W\u0010d��D�4\u0012�\"�\u0000\u0000T�#\u0001TD\u0003x�\"�\f� �I\u001f\b\u0002\"!��fhƉ�@�i�\u0001W��\u0017���c�}�������������+R�e1�4��R�Z�3�\u0018Ά1�\u0004tUA@���D�<\u0011K\u001e�\u00000D�P�$+\u001ae\n0b�����H-\u0000�0%ʻ]W��h\u0012�q���\u0016s�\u0001���\u0006\u0013b9��p��0B\".�\u0002�u\u001e�(Oc9�\u000e�qf \u0018�aܦc��N�R&��D�I\u0015Z6�\u0000�D�ȿ���õ��>�5Ǜ�\u0003M1�����\u0017�9W��\u0005\u0000\u001c\u0002����\u000b/�o�5�uZ��G\u001e]\u0015\b��k\u0018J\"�p���V� \u0003]�\u0016�>ω��]�Ù�\u0018����ٯ�\t$'W��o�������X\u0018M��闂I\u0002�@��\b��D)o\u0005ڗW+�\u000b��D�i\u0012�6�\u0000�\fp��ۭ,���BC06L�z�q\u0014X̞j�L��\u0018�t�붦z���.'�k�����\u001c\u00100<\u0015yks2�\u001e;x�\u0005\u000b#�zˀN�\u001f�\u0002�.�bR�+\u0014\u0007L��D�q\u0012�F�\u0000�\u001ap\u0001t\u0000\u001c+�*�\u0016^u�\u00126ox\u001b�G��lx��\f�U��o��F�vPer��J�3n�o�\u0013o\u000b�C&y)`�`�\u001ca�7\"*�`�\u001d٥�\u0016Lz\u0017E��c��D�y\u00120ʬ\u0000�\u001ep\u001b*&3��oT��{s^�\"\\��Ⳇ;u�\u001c�I_^��_Ҧ�Q-�h�PX\b�0\b��x1\b��`\u0012n�_7������R�{�����m�����%�f��Dă\u0011�F�\u0000�Tq$����Z1G���Y��š�_\u0014x9\u0014�m8B�\u0011a�$��\u0016J֊���\u0019�\u001a�j\u0001\u0004&nD�\u001a�g@H�U�³�G�����c��JU���\u0018��(�����Dď\u0012�Z�\u0000�D�Z�3���*��S��u�3�\u000e�Y\u0002n\f\n�y�\u0010[��7r\r��\\�\bL\u0007P����L�\u0015\u0014�R�m�\u001eT�����9�\u001b�\u0017�\u001a�-\u0015���\u0013�{�x�p��Dė\u0012�R�\u0000�D�]��uR\u0007�����\u000b.h��5�9)�\u001f\u0003\u0005w%m5%C\tRv�\u001d]��q����\u001f�����,�p@㘗�X\u001a\u0006A\n3��\u0001\n%�ҡ���\u0005X\u0006d�kc\r���Dğ\u0011x��\u0000�pL\f�l\u001b�3����c�\"�]OÊ�0dfOO�wZ��s���_����������d EP�m-\"\u0000 +i$�e)�%�?����ӈ*7'TV!�ay�^\u0013��DĬ\u0012�Z�\u0000�D����\u0018\u0018$`rU���\u00077$\rH~3EWs��\f�����\u0004m�r6�\u0006�OS���\u0007\u001c��k\u000f���\u0010\u0001��\u0019z\u0001YL\u0010�\b���Lד�\u0011ac '!�\u0001�\u0002���Dij\u0013�f�\u0000ք�!\u0010�\u0011A�d\u001b06\u0018G��\r*��IW���_���Р-\u0012�qV�U(z�]��\u00064A��j\u000b\u001aх�8�\b\u0013���N�\bQ�\b�F\b�\u0004�i�\u0016ACeC����Dķ\u0010\b��\u0000�pH��L��CS�O��ml����S�5�1�G��`\u00043�I\u0013�.�c/���k���ؗU��\u00141x�\u0002q�p�\u0006(�i\u001f�C{R�F:����Z0�u��kM��D��\u0012\u0011Rx\u0000܄�z\t1i���\u001d*\u0013cȤ��k��켼�!!�vbq�K�y�f8ʲB��|���>̳\u0004\u0018�y�}�9iN(�<\u001dI�T_����fFEE#���x�S��D��\u0010@vH\u0000��H*���>�Ij�bu\u000657�����1����e�([�������)\u001b����^�̰w5���_�^������������O|c4�Hش\r�0\u0001���D��\u0011؞H\u0001Y\u0010\u0000����c����'P���r�\u000f�pTTD�\u0018��pKb\u0014�qAq��\u0015l���}��DD<\u001b,Ѧ˔x\u0005�U����@� ����g�MlV��Z��\t��D��&K*t\u0001�x\u0000M�Qdԟ�{�\u0007\u0002��\u0013�D�\u0019q)�\u000b�i�(�\u0007AŒ\u000b��zsvHx���\\���$\r0\u0015\u000e�����#��M\u0002;�����\u001e��C���1eÓ9(\u0001��Dĩ\u0014 �\u0001�`\u0000k-v\u00021�c0/\u001e\u001b��\u0000�\u0013\u001e��\u0004w�|\u0015�dRT�n6\u0015�( yjYR�*(d�\u0018�Lv_\u0007 �YUG�������c�O�������\u0012�̨B��\bg��Dī\u0012�֌\u0000�\u0018p;���란�IByo��0�Te0\u0014\u001d32��\b��\u0004\n�R�~t�\u00065[�\u000eNJ�\u000bi\u0019�B�Ç����/u\u0015\r\f\u0010]�?��a�\u0010v��E�e,���׿��DIJ\u001a)��\u0000ބ���\u0013�����teq@0p]�\u0006�k\u001dC�x�����H�&0\f'����\u0000d\u001b�t�\\f \u001eG�,1Gi�\u0018�\u001eK:���\"\u0018-��'�\u0010F�s��\u0003�>�)��DĜ\u001a���\u0000折e�\u0004\u0001 \u001dP�\u0011O�\f�H�C_���������r�Œ�j�Z����H;*�koT*D\u0003���B��/\u001cr�\u0000F�ˬW�\u0019\u0000�X\\}�\u0001�\u0018�R�a��\b��DĄ\u0014Q��\u0000�N�5C�.r�bZ\u0018r�6_J�WU���[��\u0007&�m��%8�v\r�\b�@\u0001��#3e�F\t\u0016\u0019Р\u0015,w�\u001eS�H��!Iz�+�ս\u001fD��H�\u0016\u0000��BB�\f��Dą\u0012(ʐ\u0000ְp���\u0012e�����*\u0007@�Qv|\rA�E�EV��~!\u0019���s�����\u0012xig\u0000�ph�/ (aCE\\�����\u0014�Σ��rש�\u0017�MCk�7�UY���Dď\u0011��\\\u0000�\u0012p�2OpѦ�Ö���\rư��\u0015��ܔ.�\u000b1�9\r�֑L�0`z\u0004C�.1��o%@�\u0007Q\u0017�A�7IAd&!�\u0018\u0001�/��e\u0011�X�Ŀ�d+�l��DĚ\u0011(jD\u0001X\u0018\u0000;�\t�p�`�������p�.\u0014\u0007�,].1L�K��۪���4�\u0003$֙p�Fj���\r\u001a���o\u00005�����na�*֦\\�7�1E�ê����h��DĨ �*p\u0001�h\u0000��F\u0018�B\u0011\u0000�R���{�{o��;lmx0g����\u0015��\u0010\nI��L\u0019\u0003M���\\\u001b�[�D�\f�\u001eՋZ�:I�R�1�D���\u0002iR\u0010�.A2,\u0001\u0005\u0002��D�y\u0011\u0011\u0016�\u0001�`\u0000 \u0011�P��ah�g���\u0019\u0015�ΰ�!@d\u0015�Dݡ*\\��4�\u0013�;��lj�y�w{{.g[���I�3�9\u0010\u0012'%��\u000bf��1����?�����%Ո���Dć\u0010�ά\u0000�\u0012p�\u0001�\u001f�mDd\u0000(�?\\O晳�6��m����H\u001a����{~��\u0004��33333??�����&w\\�����~������岷~��ο2��\u0018��s���DĖ\u0010\u0010ʨ\u0000�\fp�\u0003�|��?V���ӧ'\u0012IG�G��e���K,]�d���`��8�������R��������\u001f�|�~}���wl�j��ꢙ/�~����?��DĨ\u001e�\"�\u0000x��{\u0017����\u0015,�E\u0004�\u001eKX�g��Y�v=\u001b����D\u0004Q0\u0007\u001ch%�\u0014�\bt\u000f�\b\u0003����������������g�V�Ls�6�UZk��8D�㤎1\u0018��D�\u0016\u0003\u001e�\u0000\u0010V���\u0014\u001a*�P�����#Q���4�\u0012@�`!\u001d\u0012A��)?������ח/��������E��\u0019�\f��=��CN��z9�Y���M\u0014�s�<`�Q�lp��D�z\u0011{\u001a�\u0000\bN��\u0012�Ջ�f\u000f�$<�\r��\t\u0006(��#u����\u0018\u0004+&#\\�\u0012������/��*\u0015\f`�7R�����R��1�P!YKc#��\u0011!@���y�\u0002\u0002[\\Z��Dć\u0011C\u000e�\u0000\bN�\u001b\nZ�>!ڬ��ұ0��^S:��m \u00193\t�:x�\t�\u001e�Ы4ۻ���a��B(|Bޯ����\u000b\u0004j$\u0003\u0010̱+�*[\r\u000f�\u0004�o'�a��[|O���Dĕ\u0010k\u0006�\u0000\u0018D��^%œ#����\u0014M\u0004�G\u0007|�6ƿ\u0017�k�S$B>\u001eGN�e����>L�w̥��\u0005�\u0000\u001a\u0015\u0011�Www��֗\u0013*`D\u0012�ɝ\u0002U�V�\u001f�����;���DĦ\u000e�ʀ\u0000x�p\u0013��Asj\u0002sG\u0014I2�\u00058�\t\u001f\u001e���;�!�6eH�\\z���Y��!\u0010�\u0006Z�q�:�$�)l\u000f(�G����ѧB��Q�\u0000�C\u001e*tC�N\u000eL��\u0015\n��Dľ\u0017��\u0000c\u0006�F�_\u001cl�\u000eP�����F\u0014�8\u001fc\u00000÷���^�jzn��j���tcTnJ,��N\u0013��S꫈꽽M�\u0006���_` $�5�i�\u00077,��`�\u0011��\b���Dı\u0012���\u00002F�2\u0005�s\u0018\u0000t�Q�HԨ�\u0001�9\u001d���G�*N�z��\u0011��;��3c���ϸ�A���\u0006�\u0003&[��׈�O^�}m\u0001�y�0��z\u0004\u000fv�h�(دn\u0016��DĹ\u0012\u0011*�\u0000{�pb,�,1�g?��?�c� N�㺒�E�a�i�cݫE��d�\fI��\u0011\u001c�M�qFȲ���f\"ize���3�X>+��݇����/��{��'��D��\u0011�6�\u0000�Tp��\u0003���I�\u0014K�Hυ?0��[�J���!�����XE�\u0018�~\u0019=!\u0016!��a�\u0019�e3���V�e-��NP`Z\u0001����H�\\��?�0xSA��D��\u0012)��\u0000�J�\u0010�.��\u000f���(�\u0004(I\u0004��R���������X�#1\u0011\t\rf\u0016�\u0007\u001c�3'�����0;��}\u0006�����a�\timY�O`6\u000e�)�p�\"�I��h��Q��D��\u0012ي�\u0000�D�.�����6;Y�U,\u0005-p)��\u0010\bh�@k!\u001be\u0000P��A&@7+�ܲzu\u0001��Z3�\u0004h4�����'��g6\u0005\u0000�k_�k�V[?�\"e3��\nK����D��\u0014�~�\u0000Ί�&����\u0018&\u001e���g\u001b�\u001bR\\��\u0005?���+��@��)Q���\u0002%2(>W��0\u00076d�>Q\u0012���^i\u0019�#��iMk���6�u���YV\u00191��r����D��\u0011�>�\u0000� p�q!���S\u0003{+�Bj\"6�V�� ��Vw\u0017�%\u0017L���Ȇ��RLM�OݭM���]M;�\f�j\nm}TNE�P�`�,,8N!$��ڔ~��@\"����D��\u0015)�|\u0000�\n��\u001a�!X2\u0019e����.a�\u000b\u0002�����H&[����M��J��~+\u0012Fd�\f\t\u0005���0�2�x|LYT��O�H�Td��KB\u001e\u001d�\f�R�LE����D��\u0013ъt\u0000�ʔ\u0019BPf����\u0013�)\u0010zM�\u0013�\f\u001c$\u000e@\u000e!\b��{�@4\u0014\u001d(�J\\�!�\u000b�\u0014\u000fիN7�O������[ƜbN[�lf�#�\u001d\u00101n�%�J\u000f�\u0001){�u��D��\u0015\u0000�h\u0000�\u0006p����D\u0006Ed��aM/e\u0014�\u0000M,�<�vϓ8��2�V^K{�J�\u0014dSH�]��R� �c<\u0018�;g��C�Ew]��\u0016<�:JT\u0014\u0011\u0004��^u�Jjto��D��$#\u001e|\u0000�\u0010���w:�Xۣ!\u0000�?ítQ���\u0017�\u0005��[�\t�\u000b�5��\u0011\u0006���M\u000b1����p`��u��eq��›\u0015ld:㯙���2zY\u0015���Vb.کQ�������_\r����V�\r��WW��$\u0003�j+4��?����8\u0003��\u001b:iǒc��J\b�m�DF�\fr�8�\u0010Qź\u000b\b�;�0\u0004���DIJ ڢH\u0001�X\u0001�h\u000e\"�U\u0004��H\u0012�\\.2\u0012IfE_�\u000b���)��s/�є�)\u0004\u0015I�%�2��p�\"��\u0004\r�h�$�T�\u0012Qi�c���\r�\u0002�r�n�o�_Y\u0018�i���Dā!3\u001a�\u0001�h\u0001\u001b\u001d$^\u000b�\r�tx�\u001c���_����X�\n!�G3�0��\\�}��u������\u001d�_��5q�F�=��C�B��\u000f\u001d&FG\u001fP�2r��(r�f\n\u00161P;��D�O\u0018�\u001e�\u0001�@\u0000*̰�\u0015��� �G\u0014\u000bʍ`��\u0017z\u000f�\u001f�������_����D�=?�Wv���r��2\u001a{1Ⱥ4�V#\"8�#!F\u001a��e˗\u0010azL4\u0011\n<\u001a�8t��D�?\u0012\u001b\"�\u0000\bT�2,&\u001eU�\\2,�7������9�����������V��S�ڝ�\\�Q���d���xh\\N<�q����h�#\u0013\u001a4\u0016�XD\u001f\u0007�A0�\u0007�X?\u001e\u001d.���D�I\u0012\u001b\"�\u0000\bN�\u0000?ʿ���#\u0019\bd���������շ��9\u0005c\u000e!F\u001e5\u000e�\u0011\u0018�[\u0014�z\"\u0014�g\u001e� �\u0006\u001a*\u001d\u0003\u0014\fR����G\u0015\u0016T!��!#(�A�\u000b@��q��;���D�S\u0012S\u0016�\u0000\bJ���jc+)Z�.�������Rߥ��JQR�Q�\u0010\u0004\u0015JR�KC(u��A�4�� (�jG x\u0002\u0000�Ɣ�<:p�Q\u0004�(IT��q2�0\f��.P\n!_��D�\\\u0012���\u0001J(\u0001�44\u001e\r\rw�77?Cᒤ�M\u001b�3q�\b\u0001��:�\"\b��t�x\u0013�����\u0004�h�\u0013�[+���&���\u0016���o���uɡ��{,�ر�=�W��|���D�d �\u001a�\u0001�X\u0001^��_��7';�T�_����u/e2����s��H\u0011\n2\u001dH�\r�<�G�\u0013�R��33�ú����U��T��R\u0018\u0005A�\u0001pk��T\u0018�\\\u0012\u0012 X����D�3\u0010�.�\u0001�\u0018\u0000P�b�\u0016rJG�UT�������r^m@�����\u0014)K]\"�\t�o\u0012�ŽjXW޷�g�w�ǯ����\u0019Nh�f�ʾ]:��\u00042�;�2�O�������D�C\u0011Y.�\u0000��p��5���xh��؀c�#�V\u001b\u0001��\u0015\u001b��ߧ�-�-�\u0014���0��^&�\u0015�ؗ-�\u000e���\\84łE^����.\u000b(�\r�4I\u001a�\\��/�\tT�0��D�P\u0012A.�\u0000�\u0010p\t���\u0013G\u0005�\u0006څ\u0004����&P\u000bw��I{���j~��Cb�v*���\u0015\u0005!\n1B��\u001c2�yU����h\u000b��\u0005A^Ee�e@�\u0013�JH\u0016�2\u0010k[\u0000�V��D�Z\u0011�*�\u0000�Pp.܁\u0010����35�O�\u0002��ߍ\u0006��\u001e<�\u0013�3A��+&cE�A �Q\u0000�%�<�\u001cA���\u0014[{���L-/�\u0002B7��\u0000���̍\u00053B�\u0005�\f<י*��D�e\u0012a.�\u0000ގp�צ�S���~�\u0015`��ъ�\\.��yJ�=��]d{\t\u0005��߱��D)u����ЕP�s�\u0014�72� �2\u0002\t�D\u0001���\u0002\u0012�\"�h3�\u001ew)l�Zf[��D�n\u0012a.�\u0000�\u0012q;Gf��Bl\u0011\u0014�\u0004� i\u0012j��T�㊩���e�\u001a�\u001f�V\u0013u\u000e����Dġ\u0012(Ҥ\u0000�ppȑh\u0016]pu�5�e\r����җ�k�jMI<�D$\t��-/Z#d��\u00150P���+y���}��?�����u-�ʁ\u0002FxSQ�p�\fL�l�t$.�E��Dī\u0012\bҜ\u0000�0pH�#��\u0019\u0012'\fi��=*\u001cR�q�.�nQ����Ic��3\u001a��0�q����ڭ���������J�y��0\\\u0003j�Y{I1\u00165\u000f\bY�&���\u0013�#����Dĵ\u0012�ژ\u0000�0p��x�\u0005{�uv\u001ea\u0011�\"\u0004I�\fv����\u0012�,��?^��c�\b\u001c�0��|�����\u00192�Ǫ���\\��4�|�K\u0014\\oΥ��ӥ��ȋ�M6����DĽ\u0013\u0018ޔ\u0000��p�5�lmB\u0014��\u001a��\b\u0016��\u0005y�1�s�lň��������\n6���m�@d\u0006\u0007�������렗n^b��벁� �hT�(���M\u0015ͤ \u001a\u001e���D��\u0012i\u0006�\u0000��p\u0003\fo��B�g�6��(�.@Ç\u0005�#T�ZD�1u�9\u0015��E�j�\"�S�\u000e�6k\u0015�\u0018P�K��e,���0��<��-T�� _G�]R\u0000N�z�����D��\u0017AF�\u0000�\u001epmm�\u0006\t8�wP�\u0004\u0001W/k藍�mq�0\u0017���\u001d!NU�/�\u0010\t\u001f\u0000��K\u0000|\u0006�f�!\u001ce��\u0001-�2 ���+YXu��o|⒵n(�Q\b�@(m���D��\u0010�ڜ\u0000ְqO�9�����L�[~^��*g�-H\u0003��\"�j\u0001\u0015W3�bD���P\u001emaj�\u0017�\u0018\u0012\u001a�i��@F\u0011�3\b\u00039Ԭ�0\u001d\"��\u0013����������Y`\u0013����D��\u0012�֔\u0000ְq��ɗԜ�q:?��\u001b��\u000b�[x�������C�\u001aC&\u0000e\u0001�1\u0019\u0013���Юa`�l����f�\u001f��4�4wfJ�ȤΛa'\u0002q���\\V��\u0005\u0006\u000e2��D��\u0010�ʔ\u0000��pC1\fKm�H\\����lJغ�O�\u001e�F|}\u000b�6`�\u000bdA\"+\u001bn�\u0002\f�b��\u0016�B2\u001a��09\r�$P�Ƴd�c��̴R�s pDײ+�\u0005\u000e[��D��\u0014�ֈ\u0000�2p�\u001d�\u0000j��H\u000e\u001a�����,lqN��W]b3}\u001dt*�Of@&L�\u001b��@ƅdl\u0002��DIᙜ�$��y�c�\u001fw�}k;���j|b����o_�{�r� �;�5�rŻ\u0003L���\u0014`d\u0004O��Y��D��\u0017���\u0000����zP�SPD|�4O��H��y��7�쿍F��[\u0002me�^ک$C,4�F�ks�\u0015�5��U�h�&ճ|}��Yץ���^��\f�XL(�������D��\u001a�Ҙ\u0000�\u001e�b\u0015\u001d�\u0014\u0004�\t-\u001f��\u000b\u0007hy]\u0000P\u0019v����M�\u0016o�_'��7�P��a�~� �gx�_МeN��L�\"�v�?p��6>1j�E��\u0002�C�L����Dķ\u0018)��\u0000�\u001e�=���أ\u0015���A,�P铦\u0002���Ԡ�\t�&�(��tl�l痹�漥ض�9%�\u0005\"\u000310�!�u\u001e\u001f$�LR/��VyN�.��26D�H�~���Dĩ\u0017\u0019��\u0000�ޔ92�\t��\"\u001c����r*��؉�U\u0004@��\u001c\u000f\"[DŽ<�P\u0000T��e#%�<�5�IW|���^Q��s��\u0004��X\n!*�B\"f��\u001b\u0001\u001e\u0011\"��U���Dğ\u0016Y��\u0000�`��\u0016�\u0000\u0011ٞ�\u0000�P���\u0014{\f����u��nj�\u0019\u0017�,z\u0007��8%�c���\u00126W��[S�x��~`��\r�.p\u000e��m,_h�Y�$�۸��QM��K|����M�YO�����D�I\u0012���\u0000�֔B��W0�,~�f\n�qeVJ�Y��x\u0007�@^OV�!ӢsjL���\u0003����\u0001ŝ��\"�O�����E$�\u0011\u0004���U�\u0019_թ�d�۔\b�\t�o��D�Q\u0010�J�\u0000�ؔh%��M8�U�L\u0013$Ա��yj|ߗ׬�|�7�%ܼm!��\u0010H2��!Ps\bc��$��\u001b�w�����W�J���%oT'�Af�1\u0001@BW��\u00188r���D�`\u0012i��\u0000�V��\u001d^����Y|�\u001b�re-6j\n\b��{$\"��l�m��d˿8|�d'���C��{�u��\u0002\u0019�4D�LxW\u0007hL<���\u0000<�J��Ηm�@s��'���D�i\u0011�.�\u0000~\u0018p�>W$!X�\"�!��Z��Ok����v�w�Xs�5�\u0004N[J:{}j��\b\u0012P8)���oNs\u0018��Ve��D\u0017���IT��5(����x\u0005���\u0016����D�u\u0012\u0019&�\u0000{�p�٪��b?�{\u001f�p��f���j\u0002V�w��\u0007�dxK�u�$������J\u0013�\n�O\u000b5rL���#0�\u0005)d�\u0001�\u0006��U\u000e\u0002\u0012�'��R�ij0z���D�\u00119.�\u0000�\u001ep`KYff���K�����j=�P!:����}\u0004������\u0003�\u0019�v D��V�\u000f\"\u00122�|.CR9�q(�N��f�o���L�`��gT�����Dč\u001196�\u0000�\u001ap`jVp�+̪���dm\u0019��R�lI��CO�`�8���B�h��\bONXFY\u0012\u000fU\u000b\u000b��w��-���3�i�Gy��w����T\u001cDj��2�z�\u00101���Dě\u0011Q*�\u0000�\u0018qJ��TT�\fhDE��XiA\\XC(�\u001eg�D��l��\u0018���\u000bb�)\u0018\\\u001a\u0004O\u0002�I��\u001c��[P�\u0013�j|V\u0012�?�]_E��\bB�.�\r[��\u0013�!�\u0004�y��DĨ\u0011�&�\u0000{�psu\u0010�v�h\t:Z�5\u0019��\u001d~�ܵ\u000e\u001bD�s1d��2#$\u000b\u0005�@2&�\u0019d����,�W\u0014%�x�� ����}(@��7bM�ڕ��p\u0016��0�m��'��DĴ\u0013�\"�\u0000�\u0012p�K�Jw�\u001c�Xd�5lӷ�����p&��0�Nu�\u00050�ߣ\u00159�#�H�q�F���\u0012\u00133\u0012:芑�\"\u0003J4T�X�C\u0014�\u0015?$��S���������*�b�L�I\u0016���DIJ\u0016�*�\u0000�^p�N���'���\u000bE�R\u0017f]����jQ����$��-ə��'�]M�ׂ�\u001c2S��7(�n�����!�q@��\u001f��̶�ڟ�%�\u0003-�9r�\u001a\u0011T,��Dĩ\u0013Q\u001e�\u0000�\u0012p\u0010�A�\u0018\u0015XvM'M�@�,�RL��\u0018�˜�>�GYG��\u0012�j\u001e\u0006{P� \u0000��\u0004*\u0005˦�Ƌ��6Eʲ�%R�?�Sr3c\u0004e�&m�@6t\\����DĮ\u0011a:�\u0000�\u0006p��\nR2���\r�����y\"�ٺ��mX��\n\r\u000f\u0011\u000e���\t:���~@@�\u0000�1��z\u0017�q\u001e���\u0012\u0011\u0019\f��\b\b\t� >8\"�#��(\u001e\u001f�����NP��DĻ\u0011\u0010�\u00000FpY4R���Mi�&��9g޴!��\u0007�J0���Aw�ب�X@��>@�� �8*�\u00189+c\tR^є�����\"q`\u0001-㊖\u001f,\u0012\t\u001a\u0015\n�\u001cаuط\r`��D��\u0010���\u0000(Fp!*�Q��\u0000\u0001\u001c�,6�\u001a�ܦ�\f ͜�R3�\u0006\u0014\u0006�\u0003R���X�%�\u0002S��\u0000Y�AJ��r2�/Վۤ�H$Q܂\u0012 �IA\u0003 ��\\̷pL�i��D��\u0011\u0010��\u0000(Fp+�a��4�U�UҰi\u0019g�:�{�\u0013:��������n2)�B\u0002)�:�cf�\u0006�JD���~?�Q\u000eE��B\u000f\u001a�++�\u0011R�efe�\u0013]U�Z@ˑ�\u000b��D��\u0013�:�\u0000@�p8���X�3@I\u0007�:\u0002-Mb�5\u0006���䪃0�I\u0019\u0001˥\u001a\u0002\u0005\u0015��l���:\u001b�QZ��U�¥ʪD\u001ayJ\u001c�>V���\u0016j���c���\u001c�*\u0015l\u0006�$��D��\u0018�ʈ\u0000Ξp��u���8s?��\u0015\u0010\u0001�#q0\u001ah66���`\u0000����\u000b\u0018\u0007\u0006L\u0012Q4i\u0010h\u0014מ�\u0015?/a\u0005�u��\u0010\u0006N�]]�U#���\fB܃&yg��^��7HU,��D��\u0012�ʌ\u0000�^p�Baa>J�\u00051c\u001d\u0002�X\r\f�dMI����\u000b�IS���9�}U,��\u001f\u000f�RXC�@`W�4�\b�p@x4\u0000� �\t�\u0001̶-,I\u000b?�?o)���]ق��D��\u0011�Ҍ\u0000�\u001ep0��I\u001c�J;5��H]��H��\u0011��Ly����N�B�e#wd����:ƈ�UN[r�JYێ\b\u0000���\u0004�d*&^.aF�c�\u0011Q\u0010\u0010\u0018\u0010XEFЏ�c��D��\u001c9�l\u0000� �� =\b���*�sD��&l�\u0007�d�\u000eeLz\u0018_�%k�|\u001fI(�!n�,��}\"�:#\u0013�h.���BD ��\u0013��\u0006$($���!��#?:ns\"$PL����D��\u0015Iz|\u0000�\u001a��(�:�p�\u001a�}Q\u0002p�Ȅ��~���XMa�\\��\u0010�\rv�\u001d��GH0�\u00052�U9TG-�p�X�T\u0005��G@J���M\u0013���\t�\u0003�q����\u001d5�E��D��!)~�\u0000�R�ɇS���s�2��\u0011�'�D�\f\u000e�\u0011\u001e{?[O����朮����\"*#����2�/�gl\u001c����׻�Ц��g\u0010j^ً�\u001f��,�\u0002_�h��e��DĚ :\u0016�\u0000�V�$\u0000�����Z���U�2�r�Q\u0014�z\\�U���h4Ä@a�,4Z\u0001��#�\u0006��$�\u0007�‡a����׻��i����BРCe�\\�������\u0002\u0019��D�l\u0019�\u0000�V�!��\u001b��ZI�d�\f�k���D�W\u0018!B�\u0000�\u001ep�\u0000÷������Õ\u0005S\u000b ��\u0004\f4��^`6`�z`\r�A�!�7�\u001e�xɾz��c^ZfqY�\u0012��mDd�\u0012\"S�H�� �K�\u0014�5\u001fK\u001a��\u001eE�q��D�I\u0015�>�\u0000��p�X\r\tQ��\u0017���Bx�0�\u0005��\u0014\r\u0006\u0014\u0014mU\u0019\u0014��PBg����#��\u0007�V�n�n��R��s�\\�_��U�ğH�0\tdr�g\u001b�YUD��/��D�E\u0012�6�\u0000�\fp�+\u0012�\u0016��h4>e4�ч�\u0001�\b\u0000̬u0�\u001d�\u0019\u0000���\u001c2Jр!�AH\u000e����+��x��k��گ�}�CE�C�;Q�N�����������A�\\��D�N\u0012p�X\u0001\\\u0018\u0000��*���J�]z�L���Y��ht�<��W�����6\u0002����bhj%AT\u0005��t\u0010<�\t0�\u0007��8\u000b���\u0003@&\u0003��\u0016�,&����S3�.\u0006C�Q��D�W!\u001b*�\u0001�h\u0000\u0018\u001e���=_�t�̿�8�\u0017�\fB�0\u000eK\u0017\u0007!'�����,X9�p��(���p�Ք�T�~����\n���@�\"e�R�rj�����7��)�'������D�%\u0014�6�\u0001�0\u0000�?�\\�\u0017VLqN!\f��!��%[\nx<%Q��J�\u0012\u0011�q.\"=$���=\r\u0007u��U���AVEt��;\u0019�y���\u0002o'\f�tw�M�\u0017���:��W���D�$\u0013�>�\u0000��p���&!RA\b\u0002�\r�Ή@�;*�$�*\u0018����\u0015-\u0018,�(\u0000?\u0017`\bh\r�O����\n�ŷ\u0000\u0018x\u0004�\u0016�\u001d\u0018&�_\u000b���z�K��'�����k�0l�m��D�(\u0013�:�\u0000�Xp~��6]\u0015\u001b\u0010I\n\n�\u0013!�Bۋ�/�����B%@\u000er\"p�Т�μ6���A(�7\b\u0000qSM�)%\u0002۟b.*��J8���Zo��y4�#)��_\u0004���D�+\u0011�.�\u0000��qH\bύ\u0005�\f\"!dڔ�סj��E�Ͽ�u�\u000b�����3�%��cz&\u000f �\nf�*\t�GDps#7������a��2�>僨��`$[@��%\b���D�7\u0011�*�\u0000�Xp��\u001f����)?F���\u001a��U���B��m��bp\u0004�2\u001e ��h\u001b�\u0004���PEpܢ\u001c��ci�6�\b�ŠEk�\r\u0000&e\u0015IY�5�\u001dY\u0014�F�\u000f\u0014��D�B\u0012i\u001a�\u0000�\u0012p\u0019��T���B��Y\u0007\u0010��e�f��5��1&>�H�ʍUۼ\u001d0�\t�(A���$\u0001��̚\u0004`\f\u001f/Z\b��V���}G�\u0010�&tX�>F���J9�\u001cv��D�K\u0010ච\u0000�XL��\u0015����k��m��\u0010|�E�\u0007�\u0011e�vW\u001b��M�HL%��bB�ʭS�t\u0000\u001e.\n��\u0015���\u0011A�\u0018����y\n<,�`0l��g���N�(r�ھ��D�Z\u0010���\u0000ΰL��y\t�OPK\n\\^�\u001c�.\r\u0004\u0003�yHH$\b\u0001B%�|\u0010nǿ˨hY�V\u0016��\r\u0003�����قU!��`b��B���\b�\u00056�\u0012�+F�w�j�l�\u0012h��D�j\u0011���\u0000ΘLYQ�E'�+\u0017D�H�℞�c{r�<�[$\n�\u0004R�=r��_����I�:��l\u001e\\Z�)h��D�\u00109p��;�����k�O��#\r���>\nh\u0015����D�v\u0011�2�\u0000�RpT-J�;F�C˟�F\u0004��g[\u0012\u0005C�?�����9�;�\f\u0010�\u0012\u0013O�F\u0014' �;oA\\A�l����t���ø�%�b=�\u000f�՗ˉ��\"ę(��\u001d��DĂ\u0011�F�\u0000�\u0016p��Y����Q2\u000b���˱�S\t_@�\\ /���ȴ\u0012\r9�\fg:6=�j7�-�?;CZ����\u0015K�\u0002HX\u001b;P��(���#�PK�\r6��~������Dč\u0011���\u0000�Z��7R�d�\u00155���\u0012L�)0���\f0p0\u0016�.��#S�꛸�.�Mo���jNC�5\u000f\u0005�ש%E@@R2ޡ���,&un�R��H�5QS\u0007\u00100����Dę\u0011�>�\u0000��p\u0011��!\u0001%T�\u0003\f�7(�kOV�n|aTP�\u001c��'Q��5̺溏\u0017p�t�w\u001dD=�xb�\u0010g\u0011:Z�3� �\u0004\u0018u#�W�O\u0015^\u001c\u0003@��\u0003�\u001e�������DĤ\u0011��h\u0001Z8\u0000j����Ax�h~x�\\G\u0013\u0016xy�3\u0013\u0013���_�q��a�Q�\u0002�\u0012��+;ܑ�]��&\n\u000f�xjg|�EC��9_�\u001e�I�ٱ<��e�\u0005�c�����Dį �*H\u0001�@\u0000�<�hM�5$\f���y�jsq�H����u�h�\b$K��w$I�ܿ��@��3y�)\u0004�R18�~\u0010\u0000��`(�3\u0011>��jt�R\u0006���O,�j\u0017/~Hp�cbc\b٭�~��˻��\\�\u0017=�:pBu\u0000��U�<����D�I!\u0013\u001e�\u0001�H\u0000�\b�\r(��\u001c\u000er�=�$�\"\u00190i0�)�Rj-'\t\nZ\"#e�\u001f�\u0017h�I�m@�E�Jq�y$��T��OU\b\u0019�\u0017\u0018�E�*�ըU\u000e�\b�� �����D�\u0017\u0015�6�\u0000BPp\u0007�DU�,B��/E�ɑ��J/��9�$\u001a�R�G�`���a�\u0001��\u0002�\u00160.'\u001a\n�\u0005�\tFC��=D\u0002Y�~\u0015\t����\f\u0014�L��B�u��u�Jk���D�\u0012\u0011�2�\u0000{\fpN\u0010�gE�Nuf���\u000e�(�;�\u0003X\"\u001b�H�n!xƕ2��r�\u0012}���a���'�Ə2E\u0007h��īy~y@IU\b�V����\u0001\u0011�/\u0007�ي\u001f3Jl���D�\u001e\u00119&�\u0000�\u0012p(\u0004S\u001b؛ݫR�J���\u0010�������\u0012av��U�O\u0014�����|5*޵\u0018���m�\u0001+���k���Tu�ZʵP�Y.��\u0003��O\u001b'�M4�Ă\u0018�{��D�,\u00121\u001e�\u0000~\u001ep\u0019�\u001a�ċ?~\u0014��\u001c?�pΪ��ȭ[z�u�of^Z�p!���\u0001,}\u001c��P�?�T�\nň(�\u001d��g뺞�\u001b����x\u0019j �&�@�����n���D�6\u0011�\u001e�\u0000�\u001ep���g\u001d_�\u0005-���׺Z��Um\u0010�ce62\u0007�ի)a���\f@���\u0018\u001eMي�\u0013yu����\u0000�3ڍ`�p����u�E���7�\u0003��u޷�/��D�A\u0012�6�\u0000�\u001ep\u0013n��\u0015��%�*K8\u0002%v\u0006���\u0013d���\u0019A�\u00106--:�\u0003 �C\f]��7.b.-�\u000fgi�a(\u0013�ҠP*��\u001f\u0002\r?�榣���j����pe������D�I\u0012Y\u001e�\u0000n\u001ep����\u0005��@\u001fY�\u001b��V�|u\u001d*4H7��U�x�?Fi;C���\u0010�QGs_9���\tBC��HJ����i�K_\u0017�|n�\u0016�ұ�4]޴\u0014\u0004t��~��D�R\u0012q&�\u0000{�q�c5̘%� �.��I��|\u000fq�/\u0001xC���\\ƥW�>V�p^.\u0016�\u0011�\u0004���Nvb�\u0010XL\u0005\u0007C\u0000��t0H������R\u0002b�@�e���ԫ�V�^��D�[\u0012�Ҹ\u0000{�p�*��h�Ę#+�`\u001b�i2�Ǝt\tPD\"�\u0013�C�\u0001\u0014����\u0013J}r�흽fm�����ۙ��������L�[XT����k\u0007�f��\u0018��YuK��D�d\u0012�2�\u0000{�p�+\u001c�!cP\u0016�\tmF.�2��:�z�IM%�\fL�\u0004V\r\u000e,nw*���\u001d�~�\u0015��FCԁ�\u0003!):�ɐ�\u0011�a)\u0010z;Z��ϓ\f�D��y�YRn��D�l\u0011P��\u0000�\u001eLj\u0017\u000e`��X�ƹ!0thR~(T:T4��������jw_�de3\u0019�\u001c)\u0014�4�jL�<\u0004S�h��\u0007P�TY���q\u0014�R�P��Iw��z��O����D�y\u0011\u0018”\u0000�\u0018L�Ǹ����O����8G�u?~��̍\u0012S��p@\u0005a\u001c$_?��'zn�\u0015\u0003\u0010�a\u0004P0:�qnx�X52^�!c�s9�\u00180��D\u000b䪹 �D�٨���Dć\u001a�\u001e�\u0000�\u0006��fH��\u0001��zLt��@�����{��5���x&b׶k\\�-�va��_o\u00179�wm��(�)wܦ��~��\f\u0013�{\u0017B�\u0014\rrū�5Qb����n��D�n![\"�\u0000Hؼ~0\u0004\u0007���\u0004��1QѸ\u0003B!�,��\u0010��<�]>'<%\nFG\u0011�l�\u001f�L�$�l���������~��w'+�����;\u0006������ם滶a��D�;\u001a\u001b&�\u0000\u0010X��v\u0003�<�ȟa��=�*$��[.?�\u001f�:\u0013\u0011\u0012D���\r�_Cs\u00072���=�\u0016G�\u0001�����/��3沏���C\n���������������\\���D�%\u0016�\u001a�\u0000(V���5JĪƽ�i�nj����Kq ��Q$��'\u0019���A��\r�\u000f����\u000e܉\bVl;\u0007�Ak�\u000f����|�L��������l��ҍC>{��7���D�\u001e\u0012s\u001a�\u0000\bN�\\�F ����<6F\u001c$� �C\u0007L\u0015��\u001e��0T\n����%��\u0007��E���j�\u0001�����2�o�D_��������\u0018��1���gݪc��lx|���D�'\u0011�\u001a�\u0000\u0010N�\u000ff(y�Y\u0010��<::M�\n�Č*&8tE\u0011B²'\b�5J*\u0003\u0000V�V�����K�\u0018���|�������������Xʥ�J\"�Aen��[-�b��c��D�2\u0011���\u0000\u0010��;\t\u001cTH:\u001d ���\u0003�c\u0019ֆ\u0001�L�Z\u0003\u0014�\b\u0001%�4�\u001d������K�\u001e��R\fb\u0012е�ݮ����\u0011!����S�\u0011\u0003C�\tK\u0016ms)��;\u0001Q*�����D�=\u0011\u0018�P\u0001T\u0018\u0000�\u0010�\u0002���U&�/B\b��˂-o�e\u001a�<�.\u001a�\u001b��-�x\u0012%\"PNC\b\u001e������\u0007yM�0\u0004��\u0013\"��4��V\u001eG\t#��;:�^t͔f�������D�K!�*|\u0001�h\u0000\u001c[\u001b1(S5K��R\b\u0014\u0010�\u0016��H�?��\u0017G\tt�.�������K����:\bd��J�\u0003��\u0012��X�NL�cQ�}\u0012�\t�;Knv��8�����C��D�\u0016\u0016#\u0016�\u0001�(\u0000�\u001dK\b����X��G�������ֹ\u001b��|��Z\u001d�H���7�\bO�78�r\u0012D\u001c{HB\u0011\u0000��r\u0007\u0004�8J�\u0001\u0005\u000e0\u0000\u0014j\no������_\"=�������D�\u0010\u0014\u000b\"�\u0000(P������������!x�X\u0018��*�LW1r���S�a�M)����x68��\u001e\n\u0010x�\u0017�!(*-��\u0005\u000e�06\u0007Dr��\u0007\u0015�����������������D�\u0012\u0012�\"�\u0000(T���]\u001d\u001d\u0015����*���c�/4��\u0010�c�\u001eU\u001cU%.3\u0017�\u0004�r\u0012\"�d���#�\u0010�\u0001pF\u0017�/\u0016\b\u001d\b_�������������������7wV۫��D�\u001a\u0012s\u0016�\u00008T��ߘ{\u0012�d��!��\"e 8�\u0011�1!C\t\\��\u0006��/\u0015�\bˍ\u000b\u0018.\u001d(\u0014���\bH�%\u0012����������������v��M���u�궣��x���aS0”�\u0003�p��C\u0007�\u0005\u000f\u000f0y\u0000 �ǙH*,4B\n\u0006ݝދڍ?�i\u001f����N�Q�\b���t���/��tF���V�춧��}�7��D�0\u0012S\n\u0010\u00008D�WG1mV3�J\u0014Ά\u0002\f\u0015�(�Ec\u0001\u0018��90\n�UR�0fڳ~�Z�R�Ռ�~���,\u0005\u0005AQ�\u0005sĈ�_\"�`i��\u000e�i\u0012X�i։d�I��D�9\u00110��\u00000�LS�[�ꃥ��pn\u0001�\u0001D�BI�:\u0000(\u001b������М�x�+į\u001fO�C��x.\u0000\u0010�\u0005�\u0011,�\u0013����\u0011\u001f��2��G��6��G��\u001aL�H��>\u000e��D�G\u0014Y1�\u00000�q?��f����0�\u00154\u0002�!Ԛ�\u0001@ (��Q\u0010�\n\u0002A\u0001\u0011!\u0010��Ti�J%\u0001\u0001]*Y\t\u0011\u0015�x4\"*���b�\u000fsĵ\u0005CA�1�CDk��K:T`tJU�\t��D�H\u0012`9�\u00000�\u0004*�rP\u001f�$�\t<�B���\u0003�p����|��=�����\u0013��'���\\�Ӝ����9�N���������������oݙ����ݝ����o�T+���D�Q\u0000\u0000\u0003H\u0000\u0000\u0000\u00003�����!�R��0��\bX�\u0002�A;l�7I\u0001�@\u0019\u0011&�\u001a ��lI�\f'��1D�e����M�PN\u0018P\f\t$\u00168�\u0001\n���\u000f��u-�\u0013X��%х���DĤ\u0000\u0000\u0003H\u0000\u0000\u0000\u0000C*\u0001�\u000bJ\u0013���9`Fŀr�\u0002�H�F=�\u001ff�w��\b�\u001e(+�լ�PՕ��\fc$\flOU\u0003-UW���-T`d+,������Z���ߞ�\r_����D��\u0017�\u001dT\u0000zD���\u0006\u0016�@�����A�Uo�\u0018�\u0002�\u000b�;\f���F\u0018\u00140\\V�t����\u0000\u0002�\u0016�@�� �`\u0001��u��\u0000��\u0000\u0003\u000f�\u001f�\u0011\u0003��X~\b\u0013 ����`�r��D��\u0015���\u0000�LL�Q�}�Р\u0004����9&��n��*2�\u0012��HX�u�n�\u0002C��ڑ�TjyaQ4��\"y�*\u0019H�DF�_\u0001R1L\u0017%,K$�D���4�P�+I\f7���D��\u0014���\u0000`�q���\\z�[jY-m6y��Tվ�\u0016}5T�J�4��T��$�\"`Q����K#\u0015%\"ۇl���9]����}|���[���l�Fµ\u0000`TP\u0017\u0014\n�\u0001��D��\u0015\b��\u0000zFL�\u0018\u0016\u0016$�B��*\u0015\u0014\u00164\u0005\n�\u0007�\u0005E\u0005�\u0001EE���7�X���B��Ƶb��\bXU�T.���\u0017�\u0005����o>2�\u0018>I����a�O\u001f\f�aǙ<�g��D��\"\u001b\u0019�\u0000�L��\u000e<����\f\u0019<��ɞ\u00182ч��>\u00182ӏ\u001e\"x\u0018f�'�\"x\u0018g�O<��a�\f��\u000f�\faI���H1��U�)\u0006e\u0013\u0015\u0003\u0018RaU��cU�\u0005\u0018R\f�Z���Dį\u0010�)X\u0000bL\u0000@�\u0015C,\u0015T�\u0018V�c\u0018R\f�U\u0012��+(�*�\u0006&j&1�5X*�\u0006&e\u0013\u00058S\nL�Lb\fj�U\\)\u0006e\u0013\u001a1�Vj�H1�ƌaH3*�@�\u0015Y���\u0018�*P��DĿ\u0012p\u0005�\u0000\u0000�\u0001N��\u0005\u0005*8̠���:�9\u001d\rYAV\u0006�\u001a�bA�V\u0006�\u001a�bA�V%\u0011*��\rUbQ\u0012�UA����DU\u0011*��J��%T˱U�EUK&���%P傪��I��D��\u001c�\u0011�\u0000\u0018ƹ*�7\u000f\u0001�#OD�p�\u001b�\u0006��@n=l%\u0010�P�\u0004\n�ۚB�t�\u0001�ѣmth�I\u0003\u0010�\f~�����ʇ�!���\r�\"%q\t�����!Ww�b�\u0000\u0000%��Dħ\u0015��\u0004\u0000\u0018�M\u000e\u0000�\f\f�\u0000\u0000�\u0000\u0000�\fY��8���'D'w0�\u001c�\u0000\bÁ������\u0002(\u0000\u0000�\u0006�\u0010[�gK�3�\u0016��I.�י\fV�:���J\u0015a��_�*#\u0003%\t���Dģ ���\u0000�F�,�T��\u00153�,KSHU6m\u000e�겶�c[\u001a�}j��f��-��\u0015Uc1�?��U-��\u00012�\n�\b\n�!M@�\u001d\u0001\u0013��f�ڰ�u(`%�V\f\u0005D�\n��D�r!K\u001d�\u0000�F�\u0001(R\u0002\u0014�\u0014\u0007€��'l0�H�\u0011U\u0004����x�י���\u0000Y5\b\u0010\f\u0000Z\u001a���db�*�����:)�q�\u0003���\u001a5�\u0015a�`1Z\f�4�Æ�������D�?\u0010a)h\u0000`�p%�u\u0018\u000e�@��\u0005�\u0016b\"�(��\u0000x\"i����hD\bL,\u0003f4�0�\f�X\u0006D\"\u0004&�\u0004$\u0016\u0001�\u000b\u0001\t�@�����h���@�� r\u0007ƪ\u0006\u000e\u00010p)��O\u001a��D�P\u0011HE�\u00001�$H8��Hb! )\u0010�Ȩ\b�H\nD&\u0002C**D4\r\u0003��,\u0005$\f�oX\b�H\nD&\u0002$\u0015\u0001'������\n\u000fK@��2E0Ag\u0011\u001c4xY\u000b�g�����# ��\u0019\u0019��D�]\u0011pI�\u00001�$%��\u0011�\u0019\u001aXE����##�+��\u001f���+\u0011:<�G\u001cC���\b\u0016�+)�\t���`а�l��E$�A7\u0006\u0003����@`��\u0002���_�i���g\"���P���D�j\u0000\u0000\u0003H\u0000\u0000\u0000\u0000�`�,-\u0003\u0002�`�Ȱ�#B�3K\"�P��ɕ�`�eB��8��b��X�\bi\u0000.g�YR\u0002\u0005\u0014 x� �bXT2g������1�M\u0001E\r\u0005C ��2\u0002\u0016h��DĽ\u0012�i�\u00000F�\b��dH\u0005\n�N�c@QCO�\u00152\u0012��ARO�]�\u0001\u000bU\u0003\u0007��|\u001f\u0004\u0001\u0000@\u0010\u0004��|\u001f\u0007�\u0000@�?����\u0004\u0001\u0000@\u0010\u0004��|\u001f\u000f��@\u001f\u0007��|\u001c\u0004\u0001\u0000@\u0010\u0007���D��\u0011�5�\u0000{\u0004\u0004���\u0000� \b\u0002`�>\u000f��� \b\u0002\n�\u0014\u0014\u0014\u0012\n\n����PPPP((((0P����AAAAB����AA]������\u0014\u0017�����₂��\u0005\u0005\u0005\u0004�������D��\u0011�I�\u0000y�$\u0005\u0005\u0005\u0004�����\u0005\u0005\u0005\u0004�����LAME3.100UUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUULAME3.��D��\u0011�\u0005�\u0000\u0010�\u0000100UUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUULAME3.��D��\u0014H\u0001�\u0000\b\u0000\u0001100UUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUULAME3.��DĬ\u0000\u0000\u0003H\u0000\u0000\u0000\u0000100UUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUULAME3.��DĬ\u0000\u0000\u0003H\u0000\u0000\u0000\u0000100UUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUU��<�����DĬ\u0000\u0000\u0003H\u0000\u0000\u0000\u0000�f\u001b�2hpp�\u0013�2|������Q�Qi�n\u001b�e��o7$��by��M8������g����J\\nT��ɡ�R�\u0010N?ܸg���%�<ܤV�\u0017����DĬ\u0000\u0000\u0003H\u0000\u0000\u0000\u0000��?���������ɇ�4��}\u00140�\u0002�\u0001�\u0001��\u0001�\u000e\u00108 `�\u0005\f\u00140P� \"��\u0012(H�\f8��\u000b\u0010,B::::K,��VVVVeeeb3####24t��DĬ\u0000\u0000\u0003H\u0000\u0000\u0000\u0000twGGG��++*����0Ì8���00:h�\u0018\u0018\u0018$b�\u000f\u0003\u0003\u0003������,�\u000e�i\u0001\u0004�e�B�t2k��Ղ��,�\u0014\u0010'G��T2?�������ET��D��\u001a�\u0000JL��ET_ET_�gc*'��\t\u0005��aPɞ�(��,.+���\u0016\u0015LAME3.100UUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUULAME3.��D��\u001b�\r�\u0000\u0010ƙ100UUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUULAME3.��D��\u0011���\u0000\u0018Ę100UUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUULAME3.��DĬ\u0000\u0000\u0003H\u0000\u0000\u0000\u0000100UUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUU��DĬ\u0000\u0000\u0003H\u0000\u0000\u0000\u0000UUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUU��DĬ\u0000\u0000\u0003H\u0000\u0000\u0000\u0000UUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUU", + "headers":{ + "access-control-allow-credentials":"true", + "access-control-allow-origin":"*", + "allow":"GET, OPTIONS", + "alt-svc":"h3=\":443\"; ma=86400, h3-29=\":443\"; ma=86400", + "cf-cache-status":"DYNAMIC", + "cf-ray":"776529e54ba09bd0-FRA", + "content-disposition":"attachment; filename=\"default.mp3\"", + "content-type":"audio/mpeg", + "date":"Thu, 08 Dec 2022 11:29:31 GMT", + "referrer-policy":"same-origin", + "server":"RapidAPI-1.2.8", + "vary":"Accept, Cookie", + "x-content-type-options":"nosniff", + "x-frame-options":"DENY", + "x-rapidapi-region":"AWS - eu-central-1", + "x-rapidapi-version":"1.2.8" + }, + "schema":{} + }, + { + "name":"Convert Numbers To Words | Provide Any Integer Number", + "url":"https://all-purpose-complex-converter.p.rapidapi.com/numbers_to_words/{number}/{to_convert}", + "description":"Convert any number to words.", + "method":"GET", + "required_parameters":[ + { + "name":"number", + "type":"NUMBER", + "description":"Pass only Integer Numbers! ", + "default":"2356564546548979878435435453456464" + } + ], + "optional_parameters":[ + { + "name":"to_convert", + "type":"STRING", + "description":"By Default the number will be converted to cardinal, if you wan to convert it into specific format such as ordinal, ordinal_num, year or currency than you can specify it here. ", + "default":"ordinal" + } + ], + "code":"import requests\n\nurl = \"https://all-purpose-complex-converter.p.rapidapi.com/numbers_to_words/{number}/{to_convert}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"all-purpose-complex-converter.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode":200, + "body":{ + "Provided Number":2.3565645465489798e+33, + "Converted to Words":"two decillion, three hundred and fifty-six nonillion, five hundred and sixty-four octillion, five hundred and forty-six septillion, five hundred and forty-eight sextillion, nine hundred and seventy-nine quintillion, eight hundred and seventy-eight quadrillion, four hundred and thirty-five trillion, four hundred and thirty-five billion, four hundred and fifty-three million, four hundred and fifty-six thousand, four hundred and sixty-fourth" + }, + "headers":{ + "access-control-allow-credentials":"true", + "access-control-allow-origin":"*", + "allow":"OPTIONS, GET", + "alt-svc":"h3=\":443\"; ma=86400, h3-29=\":443\"; ma=86400", + "cf-cache-status":"DYNAMIC", + "cf-ray":"77690bcac97d5b44-FRA", + "content-type":"application/json", + "date":"Thu, 08 Dec 2022 22:48:01 GMT", + "referrer-policy":"same-origin", + "server":"RapidAPI-1.2.8", + "vary":"Accept-Encoding", + "x-content-type-options":"nosniff", + "x-frame-options":"DENY", + "x-rapidapi-region":"AWS - eu-central-1", + "x-rapidapi-version":"1.2.8" + }, + "schema":{ + "type":"object", + "properties":{ + "Provided Number":{ + "type":"integer" + }, + "Converted to Words":{ + "type":"string" + } + } + } + }, + { + "name":"GET Languages", + "url":"https://all-purpose-complex-converter.p.rapidapi.com/get_languages/", + "description":"Get All The Supported Languages.", + "method":"GET", + "required_parameters":[], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://all-purpose-complex-converter.p.rapidapi.com/get_languages/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"all-purpose-complex-converter.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode":200, + "body":{ + "af":"Afrikaans", + "ar":"Arabic", + "bg":"Bulgarian", + "bn":"Bengali", + "bs":"Bosnian", + "ca":"Catalan", + "cs":"Czech", + "da":"Danish", + "de":"German", + "el":"Greek", + "en":"English", + "es":"Spanish", + "et":"Estonian", + "fi":"Finnish", + "fr":"French", + "gu":"Gujarati", + "hi":"Hindi", + "hr":"Croatian", + "hu":"Hungarian", + "id":"Indonesian", + "is":"Icelandic", + "it":"Italian", + "iw":"Hebrew", + "ja":"Japanese", + "jw":"Javanese", + "km":"Khmer", + "kn":"Kannada", + "ko":"Korean", + "la":"Latin", + "lv":"Latvian", + "ml":"Malayalam", + "mr":"Marathi", + "ms":"Malay", + "my":"Myanmar (Burmese)", + "ne":"Nepali", + "nl":"Dutch", + "no":"Norwegian", + "pl":"Polish", + "pt":"Portuguese", + "ro":"Romanian", + "ru":"Russian", + "si":"Sinhala", + "sk":"Slovak", + "sq":"Albanian", + "sr":"Serbian", + "su":"Sundanese", + "sv":"Swedish", + "sw":"Swahili", + "ta":"Tamil", + "te":"Telugu", + "th":"Thai", + "tl":"Filipino", + "tr":"Turkish", + "uk":"Ukrainian", + "ur":"Urdu", + "vi":"Vietnamese", + "zh-CN":"Chinese (Simplified)", + "zh-TW":"Chinese (Traditional)" + }, + "headers":{ + "access-control-allow-credentials":"true", + "access-control-allow-origin":"*", + "allow":"GET, OPTIONS", + "alt-svc":"h3=\":443\"; ma=86400, h3-29=\":443\"; ma=86400", + "cf-cache-status":"DYNAMIC", + "cf-ray":"77686db44cf79b77-FRA", + "content-type":"application/json", + "date":"Thu, 08 Dec 2022 21:00:05 GMT", + "referrer-policy":"same-origin", + "server":"RapidAPI-1.2.8", + "vary":"Accept-Encoding", + "x-content-type-options":"nosniff", + "x-frame-options":"DENY", + "x-rapidapi-region":"AWS - eu-central-1", + "x-rapidapi-version":"1.2.8" + }, + "schema":{ + "type":"object", + "properties":{ + "af":{ + "type":"string" + }, + "ar":{ + "type":"string" + }, + "bg":{ + "type":"string" + }, + "bn":{ + "type":"string" + }, + "bs":{ + "type":"string" + }, + "ca":{ + "type":"string" + }, + "cs":{ + "type":"string" + }, + "da":{ + "type":"string" + }, + "de":{ + "type":"string" + }, + "el":{ + "type":"string" + }, + "en":{ + "type":"string" + }, + "es":{ + "type":"string" + }, + "et":{ + "type":"string" + }, + "fi":{ + "type":"string" + }, + "fr":{ + "type":"string" + }, + "gu":{ + "type":"string" + }, + "hi":{ + "type":"string" + }, + "hr":{ + "type":"string" + }, + "hu":{ + "type":"string" + }, + "id":{ + "type":"string" + }, + "is":{ + "type":"string" + }, + "it":{ + "type":"string" + }, + "iw":{ + "type":"string" + }, + "ja":{ + "type":"string" + }, + "jw":{ + "type":"string" + }, + "km":{ + "type":"string" + }, + "kn":{ + "type":"string" + }, + "ko":{ + "type":"string" + }, + "la":{ + "type":"string" + }, + "lv":{ + "type":"string" + }, + "ml":{ + "type":"string" + }, + "mr":{ + "type":"string" + }, + "ms":{ + "type":"string" + }, + "my":{ + "type":"string" + }, + "ne":{ + "type":"string" + }, + "nl":{ + "type":"string" + }, + "no":{ + "type":"string" + }, + "pl":{ + "type":"string" + }, + "pt":{ + "type":"string" + }, + "ro":{ + "type":"string" + }, + "ru":{ + "type":"string" + }, + "si":{ + "type":"string" + }, + "sk":{ + "type":"string" + }, + "sq":{ + "type":"string" + }, + "sr":{ + "type":"string" + }, + "su":{ + "type":"string" + }, + "sv":{ + "type":"string" + }, + "sw":{ + "type":"string" + }, + "ta":{ + "type":"string" + }, + "te":{ + "type":"string" + }, + "th":{ + "type":"string" + }, + "tl":{ + "type":"string" + }, + "tr":{ + "type":"string" + }, + "uk":{ + "type":"string" + }, + "ur":{ + "type":"string" + }, + "vi":{ + "type":"string" + }, + "zh-CN":{ + "type":"string" + }, + "zh-TW":{ + "type":"string" + } + } + } + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Tools/all_purpose_complex_converter/api.py b/toolbench/toolenv/tools/Tools/all_purpose_complex_converter/api.py new file mode 100644 index 0000000000000000000000000000000000000000..6f14edfddad110c7a101f0f0897f93afaf2087cf --- /dev/null +++ b/toolbench/toolenv/tools/Tools/all_purpose_complex_converter/api.py @@ -0,0 +1,109 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def convert_number_to_speech_provide_any_integer_number(number: int, lang: str='en', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Converting any integer number to Speech" + number: Pass Only Integer Number! + lang: Select Language , By default ( en-us ) is supported, +Hit GET Languages Endpoint to get a list of all supported languages. + + """ + url = f"https://all-purpose-complex-converter.p.rapidapi.com/numbers_to_speech/{number}/{lang}/" + querystring = {} + if lang: + querystring['lang'] = lang + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "all-purpose-complex-converter.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def convert_text_to_speech_provide_any_text(text: str, lang: str='en', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Convert Any Text To Speech." + text: Support Both Text and Numbers. +Can Pass Text Such as (\"any Thing to convert\") +or +Can Pass Any Number such as 1029383833384474 + lang: Select Language , By default ( en-us ) is supported, +Hit GET Languages Endpoint to get a list of all supported languages. + + """ + url = f"https://all-purpose-complex-converter.p.rapidapi.com/text_to_speech/{text}/{lang}/" + querystring = {} + if lang: + querystring['lang'] = lang + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "all-purpose-complex-converter.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def convert_numbers_to_words_provide_any_integer_number(number: int, to_convert: str='ordinal', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Convert any number to words." + number: Pass only Integer Numbers! + to_convert: By Default the number will be converted to cardinal, if you wan to convert it into specific format such as ordinal, ordinal_num, year or currency than you can specify it here. + + """ + url = f"https://all-purpose-complex-converter.p.rapidapi.com/numbers_to_words/{number}/{to_convert}" + querystring = {} + if to_convert: + querystring['to_convert'] = to_convert + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "all-purpose-complex-converter.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def get_languages(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get All The Supported Languages." + + """ + url = f"https://all-purpose-complex-converter.p.rapidapi.com/get_languages/" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "all-purpose-complex-converter.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Tools/alletips_url_shortener.json b/toolbench/toolenv/tools/Tools/alletips_url_shortener.json new file mode 100644 index 0000000000000000000000000000000000000000..bbcb748c4be90ce4b140fd3ffb97bda658d2875f --- /dev/null +++ b/toolbench/toolenv/tools/Tools/alletips_url_shortener.json @@ -0,0 +1,856 @@ +{ + "tool_name": "AlleTips URL shortener", + "tool_description": "Not just a simple URL shortener, but one with fantastic enhancements", + "title": "AlleTips URL shortener", + "pricing": "FREEMIUM", + "score": null, + "home_url": "https://rapidapi.com/IToptimal/api/alletips-url-shortener/", + "host": "alletips-url-shortener.p.rapidapi.com", + "api_list": [ + { + "name": "Get list of existing links", + "url": "https://alletips-url-shortener.p.rapidapi.com/link/", + "description": "Returns a list of all short links you created within the defined parameters.", + "method": "GET", + "required_parameters": [ + { + "name": "PUBLICKEY", + "type": "STRING", + "description": "", + "default": "" + } + ], + "optional_parameters": [ + { + "name": "domain", + "type": "STRING", + "description": "", + "default": "alle.tips" + }, + { + "name": "url", + "type": "STRING", + "description": "", + "default": "alle.tips/abcdef" + }, + { + "name": "created", + "type": "DATE (YYYY-MM-DD)", + "description": "Shows links that were created at or after this date", + "default": "" + }, + { + "name": "inactive", + "type": "BOOLEAN", + "description": "Shows also deactivated links", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://alletips-url-shortener.p.rapidapi.com/link/\"\nquerystring = {\"PUBLICKEY\": publickey, \"domain\": domain, \"url\": url}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"alletips-url-shortener.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode": 111, + "body": "", + "headers": "", + "schema": "" + }, + { + "name": "Create a QR code for a short link", + "url": "https://alletips-url-shortener.p.rapidapi.com/qr/", + "description": "Creates a QR (quick response) code for a specific shortlink.\nReturns the download url.", + "method": "POST", + "required_parameters": [ + { + "name": "PUBLICKEY", + "type": "STRING", + "description": "", + "default": "abcd-efgh-1348-abcde" + }, + { + "name": "link", + "type": "STRING", + "description": "The shortlink you want to create a QR code for (without https://)", + "default": "alle.tips/rapidapi-demo" + } + ], + "optional_parameters": [ + { + "name": "fg", + "type": "STRING", + "description": "Hex-Code for the foreground color.\nDefault: #000000 (black)", + "default": "#000000" + }, + { + "name": "shape", + "type": "ENUM", + "description": "Defines the form of the QR dots.\nDefault: Square", + "default": "" + }, + { + "name": "bg", + "type": "STRING", + "description": "Hex-Code for the background color.\nDefault: #FFFFFF (white)", + "default": "#FFFFFF" + } + ], + "code": "import requests\n\nurl = \"https://alletips-url-shortener.p.rapidapi.com/qr/\"\nquerystring = {\"PUBLICKEY\": publickey, \"link\": link, \"fg\": fg, \"bg\": bg}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"alletips-url-shortener.p.rapidapi.com\"\n}\n\nresponse = requests.post(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode": 200, + "body": { + "status": "OK", + "code": 200, + "response": { + "link": "https://api.alle.tips/media/qr-alle.tips-rapidapi-demo.png", + "fg": "#000000", + "bg": "#FFFFFF", + "shape": "round" + } + }, + "headers": {}, + "schema": {} + }, + { + "name": "Get click counts per shortlink", + "url": "https://alletips-url-shortener.p.rapidapi.com/linkstats/", + "description": "Returns a list of your links and the individual click count.", + "method": "GET", + "required_parameters": [ + { + "name": "PUBLICKEY", + "type": "STRING", + "description": "", + "default": "" + } + ], + "optional_parameters": [ + { + "name": "campaignid", + "type": "STRING", + "description": "Limits the results to all links within this campaign.", + "default": "" + }, + { + "name": "enddate", + "type": "DATE (YYYY-MM-DD)", + "description": "Limits results to links with a enddate lesser or equal to the specified one.", + "default": "" + }, + { + "name": "sort", + "type": "ENUM", + "description": "Orders the shortlinks by creation date.\n(asc = ascending, desc = descending)", + "default": "" + }, + { + "name": "startdate", + "type": "DATE (YYYY-MM-DD)", + "description": "Limits results to links with a startdate greater or equal to the specified one.", + "default": "" + }, + { + "name": "domain", + "type": "STRING", + "description": "Limits results to a specific domain (e.g. alle.tips)", + "default": "" + }, + { + "name": "inactive", + "type": "BOOLEAN", + "description": "Returns also stats for inactive links.", + "default": "" + }, + { + "name": "limit", + "type": "NUMBER", + "description": "Limits the number of returned stats.", + "default": "10" + } + ], + "code": "import requests\n\nurl = \"https://alletips-url-shortener.p.rapidapi.com/linkstats/\"\nquerystring = {\"PUBLICKEY\": publickey, \"limit\": limit}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"alletips-url-shortener.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode": 200, + "body": { + "status": "OK", + "code": 200, + "response": [ + { + "favorite": 0, + "domain": "alle.tips", + "link": "rapidapi", + "url": "https://www.rapidapi.com", + "title": "Some link description", + "startdate": null, + "enddate": null, + "created": "2022-09-25 19:44:07", + "clicks": "10" + }, + { + "favorite": 0, + "domain": "alle.tips", + "link": "rapidapi-demo", + "url": "https://www.rapidapi.com", + "title": "Some link description", + "startdate": null, + "enddate": null, + "created": "2022-09-25 20:10:27", + "clicks": "33" + } + ] + }, + "headers": {}, + "schema": {} + }, + { + "name": "Get click history for campaign", + "url": "https://alletips-url-shortener.p.rapidapi.com/clicks/", + "description": "Returns the number of clicks (total, link clicks and QR-clicks) for a specific campaign.\nAdditionally an array with chart data will be returned (x: date, y: total clicks).", + "method": "GET", + "required_parameters": [ + { + "name": "PUBLICKEY", + "type": "STRING", + "description": "", + "default": "" + }, + { + "name": "campaignid", + "type": "STRING", + "description": "Limits the results to a specific campaign.", + "default": "" + } + ], + "optional_parameters": [ + { + "name": "startdate", + "type": "DATE (YYYY-MM-DD)", + "description": "Returns events at and after this date.", + "default": "" + }, + { + "name": "enddate", + "type": "DATE (YYYY-MM-DD)", + "description": "Returns events at and before this date.", + "default": "" + }, + { + "name": "link", + "type": "STRING", + "description": "Returns values for a specific link.", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://alletips-url-shortener.p.rapidapi.com/clicks/\"\nquerystring = {\"PUBLICKEY\": publickey, \"campaignid\": campaignid}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"alletips-url-shortener.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode": 111, + "body": "", + "headers": "", + "schema": "" + }, + { + "name": "Get number of active links", + "url": "https://alletips-url-shortener.p.rapidapi.com/linkcount/", + "description": "Returns the number of active links for your accounts.", + "method": "GET", + "required_parameters": [ + { + "name": "PUBLICKEY", + "type": "STRING", + "description": "", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://alletips-url-shortener.p.rapidapi.com/linkcount/\"\nquerystring = {\"PUBLICKEY\": publickey}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"alletips-url-shortener.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode": 200, + "body": { + "status": "OK", + "code": 200, + "response": "3" + }, + "headers": {}, + "schema": {} + }, + { + "name": "Get click history", + "url": "https://alletips-url-shortener.p.rapidapi.com/clicks/", + "description": "Returns the number of clicks (total, link clicks and QR-clicks).\nAdditionally an array with chart data will be returned (x: date, y: total clicks).", + "method": "GET", + "required_parameters": [ + { + "name": "PUBLICKEY", + "type": "STRING", + "description": "", + "default": "" + } + ], + "optional_parameters": [ + { + "name": "enddate", + "type": "DATE (YYYY-MM-DD)", + "description": "Returns events at and before this date.", + "default": "" + }, + { + "name": "link", + "type": "STRING", + "description": "Returns values for a specific link.", + "default": "alle.tips/rapidapi" + }, + { + "name": "startdate", + "type": "DATE (YYYY-MM-DD)", + "description": "Returns events at and after this date.", + "default": "" + }, + { + "name": "campaignid", + "type": "STRING", + "description": "Limits the results to a specific campaign.", + "default": "abcd-efgh-ijk9" + } + ], + "code": "import requests\n\nurl = \"https://alletips-url-shortener.p.rapidapi.com/clicks/\"\nquerystring = {\"PUBLICKEY\": publickey, \"link\": link, \"campaignid\": campaignid}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"alletips-url-shortener.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode": 111, + "body": "", + "headers": "", + "schema": "" + }, + { + "name": "Retrieve QR code for a shortlink", + "url": "https://alletips-url-shortener.p.rapidapi.com/qr/", + "description": "Retrieve a QR (quick response) code for your shortlink.\nScans of this code will be counted as regular clicks, but also reported separately.", + "method": "GET", + "required_parameters": [ + { + "name": "PUBLICKEY", + "type": "STRING", + "description": "", + "default": "" + }, + { + "name": "link", + "type": "STRING", + "description": "Your shortlink to be QRed (without https:// etc.)", + "default": "alle.tips/rapidapi" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://alletips-url-shortener.p.rapidapi.com/qr/\"\nquerystring = {\"PUBLICKEY\": publickey, \"link\": link}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"alletips-url-shortener.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode": 111, + "body": "", + "headers": "", + "schema": "" + }, + { + "name": "Update your campaign", + "url": "https://alletips-url-shortener.p.rapidapi.com/campaign/", + "description": "Edits values of a specific campaign", + "method": "PUT", + "required_parameters": [ + { + "name": "PUBLICKEY", + "type": "STRING", + "description": "", + "default": "" + }, + { + "name": "campaignid", + "type": "STRING", + "description": "", + "default": "abcd-efgh-ijk9" + } + ], + "optional_parameters": [ + { + "name": "name", + "type": "STRING", + "description": "The name of your campaign", + "default": "" + }, + { + "name": "active", + "type": "BOOLEAN", + "description": "", + "default": "" + }, + { + "name": "startdate", + "type": "DATE (YYYY-MM-DD)", + "description": "Defines your campaign's start date.", + "default": "" + }, + { + "name": "enddate", + "type": "DATE (YYYY-MM-DD)", + "description": "Defines your campaign's enddate.", + "default": "" + }, + { + "name": "description", + "type": "STRING", + "description": "An internal description about what your campaign is about.", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://alletips-url-shortener.p.rapidapi.com/campaign/\"\nquerystring = {\"PUBLICKEY\": publickey, \"campaignid\": campaignid}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"alletips-url-shortener.p.rapidapi.com\"\n}\n\nresponse = requests.put(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode": 111, + "body": "", + "headers": "", + "schema": "" + }, + { + "name": "Create a new campaign", + "url": "https://alletips-url-shortener.p.rapidapi.com/campaign/", + "description": "Creates a new campaign you can assign links to.\nReturns the campaign-ID.", + "method": "POST", + "required_parameters": [ + { + "name": "PUBLICKEY", + "type": "STRING", + "description": "", + "default": "" + }, + { + "name": "name", + "type": "STRING", + "description": "", + "default": "Some name for your campaign" + } + ], + "optional_parameters": [ + { + "name": "description", + "type": "STRING", + "description": "An explanation what your campaign is about - just internal.", + "default": "Some description" + }, + { + "name": "startdate", + "type": "DATE (YYYY-MM-DD)", + "description": "Defines a start date for your campaign", + "default": "" + }, + { + "name": "enddate", + "type": "DATE (YYYY-MM-DD)", + "description": "Defines an enddate for your campaign", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://alletips-url-shortener.p.rapidapi.com/campaign/\"\nquerystring = {\"PUBLICKEY\": publickey, \"description\": description, \"name\": name}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"alletips-url-shortener.p.rapidapi.com\"\n}\n\nresponse = requests.post(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode": 111, + "body": "", + "headers": "", + "schema": "" + }, + { + "name": "Delete a campaign", + "url": "https://alletips-url-shortener.p.rapidapi.com/campaign/", + "description": "Deletes an existing campaign. All included links stay active!\nOnly the assignment link <-> campaign gets deleted as well.", + "method": "DELETE", + "required_parameters": [ + { + "name": "campaignid", + "type": "STRING", + "description": "", + "default": "abcd-efgh-ijjk8" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://alletips-url-shortener.p.rapidapi.com/campaign/\"\nquerystring = {\"campaignid\": campaignid}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"alletips-url-shortener.p.rapidapi.com\"\n}\n\nresponse = requests.delete(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode": 111, + "body": "", + "headers": "", + "schema": "" + }, + { + "name": "Get list of existing campaigns", + "url": "https://alletips-url-shortener.p.rapidapi.com/campaign/", + "description": "Returns a list of all your campaigns (= groups of links).", + "method": "GET", + "required_parameters": [ + { + "name": "PUBLICKEY", + "type": "STRING", + "description": "", + "default": "" + } + ], + "optional_parameters": [ + { + "name": "nocampaign", + "type": "BOOLEAN", + "description": "Returns also a summary of the shortlinks that haven't been assigned to a campaign.", + "default": "" + }, + { + "name": "name", + "type": "STRING", + "description": "Get all campaigns thats title includes [name]", + "default": "some campaign name" + }, + { + "name": "startdate", + "type": "DATE (YYYY-MM-DD)", + "description": "Shows all campaigns with a startdate greater or equal this date.", + "default": "" + }, + { + "name": "enddate", + "type": "DATE (YYYY-MM-DD)", + "description": "Shows all campaigns with an enddate greater or equal this date (and an earlier startdate).", + "default": "" + }, + { + "name": "inactive", + "type": "BOOLEAN", + "description": "Returns also inactive campaigns.\nDefault: only active ones.", + "default": "" + }, + { + "name": "campaignid", + "type": "STRING", + "description": "Get all infos for this specific campaign", + "default": "abcd-efgh-ijk2" + }, + { + "name": "limit", + "type": "NUMBER", + "description": "Limits the number of results", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://alletips-url-shortener.p.rapidapi.com/campaign/\"\nquerystring = {\"PUBLICKEY\": publickey, \"name\": name, \"campaignid\": campaignid}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"alletips-url-shortener.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode": 111, + "body": "", + "headers": "", + "schema": "" + }, + { + "name": "Update an existing short link", + "url": "https://alletips-url-shortener.p.rapidapi.com/link/", + "description": "Edits a previously created short link.\n([domain] AND [link]) OR [shortlink] is required!\n\nYou can edit various elements, but you cannot change the domain name or the short link itself. In case you made a mistake, please delete the old one and create a new shortlink.", + "method": "PUT", + "required_parameters": [ + { + "name": "PUBLICKEY", + "type": "STRING", + "description": "", + "default": "" + } + ], + "optional_parameters": [ + { + "name": "title", + "type": "STRING", + "description": "Internal description what the link is about - just for you!", + "default": "Just an internal description of your link" + }, + { + "name": "campaignid", + "type": "STRING", + "description": "Assign the short link to a certain campaign.\nCampaign-IDs can be retrieved via GET /campaign/", + "default": "abcd-efgh-ijk1" + }, + { + "name": "startdate", + "type": "DATE (YYYY-MM-DD)", + "description": "Defines the date the link is active from.", + "default": "" + }, + { + "name": "url", + "type": "STRING", + "description": "The URL to be shortened", + "default": "https://www.rapidapi.com" + }, + { + "name": "link", + "type": "STRING", + "description": "The complete short link to be edited", + "default": "rapidurl" + }, + { + "name": "enddate", + "type": "DATE (YYYY-MM-DD)", + "description": "Defines the date until the link is active .", + "default": "" + }, + { + "name": "active", + "type": "BOOLEAN", + "description": "Activates or deactivates a short link", + "default": "" + }, + { + "name": "shortlink", + "type": "STRING", + "description": "", + "default": "https://halle.tips/rapidurl" + } + ], + "code": "import requests\n\nurl = \"https://alletips-url-shortener.p.rapidapi.com/link/\"\nquerystring = {\"PUBLICKEY\": publickey, \"title\": title, \"campaignid\": campaignid, \"url\": url, \"link\": link, \"shortlink\": shortlink}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"alletips-url-shortener.p.rapidapi.com\"\n}\n\nresponse = requests.put(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode": 111, + "body": "", + "headers": "", + "schema": "" + }, + { + "name": "Delete a short link", + "url": "https://alletips-url-shortener.p.rapidapi.com/link/", + "description": "Deletes a short link you created previously.\n**([link] AND [domain]) OR [url] is required!**", + "method": "DELETE", + "required_parameters": [ + { + "name": "PUBLICKEY", + "type": "STRING", + "description": "", + "default": "" + } + ], + "optional_parameters": [ + { + "name": "url", + "type": "STRING", + "description": "The complete short link", + "default": "alle.tips/rapidapi" + }, + { + "name": "domain", + "type": "STRING", + "description": "The domain part of the short url, everything before the slash (/), e.g. **alle.tips**/rapidapi", + "default": "alle.tips" + }, + { + "name": "link", + "type": "STRING", + "description": "The part of the short url after the slash (/), e.g. alle.tips/**rapidapi**", + "default": "rapidapi" + } + ], + "code": "import requests\n\nurl = \"https://alletips-url-shortener.p.rapidapi.com/link/\"\nquerystring = {\"PUBLICKEY\": publickey, \"url\": url, \"domain\": domain, \"link\": link}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"alletips-url-shortener.p.rapidapi.com\"\n}\n\nresponse = requests.delete(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode": 111, + "body": "", + "headers": "", + "schema": "" + }, + { + "name": "Sign-On for RapidAPI", + "url": "https://alletips-url-shortener.p.rapidapi.com/rapidsignup/", + "description": "In order to use this API properly you need to sign on.\nCreates and returns your public key.", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://alletips-url-shortener.p.rapidapi.com/rapidsignup/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"alletips-url-shortener.p.rapidapi.com\"\n}\n\nresponse = requests.post(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 200, + "body": { + "status": "OK", + "code": 200, + "publickey": "c58ce4b3-83c1-4baa-bcda-fdc244ad8b8f" + }, + "headers": {}, + "schema": {} + }, + { + "name": "Get list of available domains", + "url": "https://alletips-url-shortener.p.rapidapi.com/domains", + "description": "Returns a list of domains you can use to shorten your urls.", + "method": "GET", + "required_parameters": [ + { + "name": "PUBLICKEY", + "type": "STRING", + "description": "", + "default": "" + } + ], + "optional_parameters": [ + { + "name": "favorite", + "type": "BOOLEAN", + "description": "Show default domain for this/your account", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://alletips-url-shortener.p.rapidapi.com/domains\"\nquerystring = {\"PUBLICKEY\": publickey}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"alletips-url-shortener.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode": 111, + "body": "", + "headers": "", + "schema": "" + }, + { + "name": "Create a new short link", + "url": "https://alletips-url-shortener.p.rapidapi.com/link/", + "description": "Shortens your url to a more convenient shorter version", + "method": "POST", + "required_parameters": [ + { + "name": "PUBLICKEY", + "type": "STRING", + "description": "", + "default": "87cb-09dc7578c76cbcdef-ghij-1234" + }, + { + "name": "url", + "type": "STRING", + "description": "The URL to be shortened", + "default": "https://www.rapidapi.com" + } + ], + "optional_parameters": [ + { + "name": "domain", + "type": "STRING", + "description": "Defines the domain name to be used for the shortening.\nGet a list of available domain names via GET /domains/\nDefault: alle.tips", + "default": "alle.tips" + }, + { + "name": "title", + "type": "STRING", + "description": "Just an internal description just for you...", + "default": "Some link description" + }, + { + "name": "link", + "type": "STRING", + "description": "The desired shorted version: [domain]/[link]\ne.g. **alle.tips/rapidapi**", + "default": "rapidapi" + } + ], + "code": "import requests\n\nurl = \"https://alletips-url-shortener.p.rapidapi.com/link/\"\nquerystring = {\"PUBLICKEY\": publickey, \"url\": url, \"domain\": domain, \"title\": title, \"link\": link}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"alletips-url-shortener.p.rapidapi.com\"\n}\n\nresponse = requests.post(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode": 200, + "body": { + "status": "OK", + "code": 201, + "message": "Successfully created shortlink!", + "link": "alle.tips/rapidapi", + "fulllink": "https://alle.tips/rapidapi" + }, + "headers": {}, + "schema": {} + }, + { + "name": "Create a QR code for a short link", + "url": "https://alletips-url-shortener.p.rapidapi.com/qr/", + "description": "Creates a QR (quick response) code for a specific shortlink.\nReturns the download url.", + "method": "POST", + "required_parameters": [ + { + "name": "link", + "type": "STRING", + "description": "The shortlink you want to create a QR code for (without https://)", + "default": "alle.tips/rapidapi-demo" + } + ], + "optional_parameters": [ + { + "name": "fg", + "type": "STRING", + "description": "Hex-Code for the foreground color.\nDefault: #000000 (black)", + "default": "#000000" + }, + { + "name": "shape", + "type": "ENUM", + "description": "Defines the form of the QR dots.\nDefault: Square", + "default": "" + }, + { + "name": "bg", + "type": "STRING", + "description": "Hex-Code for the background color.\nDefault: #FFFFFF (white)", + "default": "#FFFFFF" + } + ], + "code": "import requests\n\nurl = \"https://alletips-url-shortener.p.rapidapi.com/qr/\"\nquerystring = {\"link\": \"alle.tips/rapidapi-demo\", \"fg\": \"#000000\", \"shape\": \"\", \"bg\": \"#FFFFFF\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"alletips-url-shortener.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://alletips-url-shortener.p.rapidapi.com/qr/\"\nquerystring = {\"link\": \"alle.tips/rapidapi-demo\", \"fg\": \"#000000\", \"shape\": \"\", \"bg\": \"#FFFFFF\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"alletips-url-shortener.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": {} + }, + { + "name": "Create a new campaign", + "url": "https://alletips-url-shortener.p.rapidapi.com/campaign/", + "description": "Creates a new campaign you can assign links to.\nReturns the campaign-ID.", + "method": "POST", + "required_parameters": [ + { + "name": "name", + "type": "STRING", + "description": "", + "default": "Some name for your campaign" + } + ], + "optional_parameters": [ + { + "name": "description", + "type": "STRING", + "description": "An explanation what your campaign is about - just internal.", + "default": "Some description" + }, + { + "name": "startdate", + "type": "DATE (YYYY-MM-DD)", + "description": "Defines a start date for your campaign", + "default": "" + }, + { + "name": "enddate", + "type": "DATE (YYYY-MM-DD)", + "description": "Defines an enddate for your campaign", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://alletips-url-shortener.p.rapidapi.com/campaign/\"\nquerystring = {\"description\": \"Some description\", \"startdate\": \"\", \"name\": \"Some name for your campaign\", \"enddate\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"alletips-url-shortener.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://alletips-url-shortener.p.rapidapi.com/campaign/\"\nquerystring = {\"description\": \"Some description\", \"startdate\": \"\", \"name\": \"Some name for your campaign\", \"enddate\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"alletips-url-shortener.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "Sign-On for RapidAPI", + "url": "https://alletips-url-shortener.p.rapidapi.com/rapidsignup/", + "description": "In order to use this API properly you need to sign on.\nCreates and returns your public key.", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://alletips-url-shortener.p.rapidapi.com/rapidsignup/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"alletips-url-shortener.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://alletips-url-shortener.p.rapidapi.com/rapidsignup/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"alletips-url-shortener.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": {} + }, + { + "name": "Create a new short link", + "url": "https://alletips-url-shortener.p.rapidapi.com/link/", + "description": "Shortens your url to a more convenient shorter version", + "method": "POST", + "required_parameters": [ + { + "name": "url", + "type": "STRING", + "description": "The URL to be shortened", + "default": "https://www.rapidapi.com" + } + ], + "optional_parameters": [ + { + "name": "domain", + "type": "STRING", + "description": "Defines the domain name to be used for the shortening.\nGet a list of available domain names via GET /domains/\nDefault: alle.tips", + "default": "alle.tips" + }, + { + "name": "title", + "type": "STRING", + "description": "Just an internal description just for you...", + "default": "Some link description" + }, + { + "name": "link", + "type": "STRING", + "description": "The desired shorted version: [domain]/[link]\ne.g. **alle.tips/rapidapi**", + "default": "rapidapi" + } + ], + "code": "import requests\n\nurl = \"https://alletips-url-shortener.p.rapidapi.com/link/\"\nquerystring = {\"url\": \"https://www.rapidapi.com\", \"domain\": \"alle.tips\", \"title\": \"Some link description\", \"link\": \"rapidapi\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"alletips-url-shortener.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://alletips-url-shortener.p.rapidapi.com/link/\"\nquerystring = {\"url\": \"https://www.rapidapi.com\", \"domain\": \"alle.tips\", \"title\": \"Some link description\", \"link\": \"rapidapi\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"alletips-url-shortener.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": {} + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Tools/alletips_url_shortener/api.py b/toolbench/toolenv/tools/Tools/alletips_url_shortener/api.py new file mode 100644 index 0000000000000000000000000000000000000000..975efb02b98422b99d6dbb1bb8d429e8539a2c30 --- /dev/null +++ b/toolbench/toolenv/tools/Tools/alletips_url_shortener/api.py @@ -0,0 +1,259 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def get_list_of_existing_links(publickey: str, domain: str='alle.tips', url: str='alle.tips/abcdef', created: str=None, inactive: bool=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Returns a list of all short links you created within the defined parameters." + created: Shows links that were created at or after this date + inactive: Shows also deactivated links + + """ + url = f"https://alletips-url-shortener.p.rapidapi.com/link/" + querystring = {'PUBLICKEY': publickey, } + if domain: + querystring['domain'] = domain + if url: + querystring['url'] = url + if created: + querystring['created'] = created + if inactive: + querystring['inactive'] = inactive + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "alletips-url-shortener.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def get_click_counts_per_shortlink(publickey: str, campaignid: str=None, enddate: str=None, sort: str=None, startdate: str=None, domain: str=None, inactive: bool=None, limit: int=10, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Returns a list of your links and the individual click count." + campaignid: Limits the results to all links within this campaign. + enddate: Limits results to links with a enddate lesser or equal to the specified one. + sort: Orders the shortlinks by creation date. +(asc = ascending, desc = descending) + startdate: Limits results to links with a startdate greater or equal to the specified one. + domain: Limits results to a specific domain (e.g. alle.tips) + inactive: Returns also stats for inactive links. + limit: Limits the number of returned stats. + + """ + url = f"https://alletips-url-shortener.p.rapidapi.com/linkstats/" + querystring = {'PUBLICKEY': publickey, } + if campaignid: + querystring['campaignid'] = campaignid + if enddate: + querystring['enddate'] = enddate + if sort: + querystring['sort'] = sort + if startdate: + querystring['startdate'] = startdate + if domain: + querystring['domain'] = domain + if inactive: + querystring['inactive'] = inactive + if limit: + querystring['limit'] = limit + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "alletips-url-shortener.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def get_click_history_for_campaign(publickey: str, campaignid: str, startdate: str=None, enddate: str=None, link: str=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Returns the number of clicks (total, link clicks and QR-clicks) for a specific campaign. + Additionally an array with chart data will be returned (x: date, y: total clicks)." + campaignid: Limits the results to a specific campaign. + startdate: Returns events at and after this date. + enddate: Returns events at and before this date. + link: Returns values for a specific link. + + """ + url = f"https://alletips-url-shortener.p.rapidapi.com/clicks/" + querystring = {'PUBLICKEY': publickey, 'campaignid': campaignid, } + if startdate: + querystring['startdate'] = startdate + if enddate: + querystring['enddate'] = enddate + if link: + querystring['link'] = link + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "alletips-url-shortener.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def get_number_of_active_links(publickey: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Returns the number of active links for your accounts." + + """ + url = f"https://alletips-url-shortener.p.rapidapi.com/linkcount/" + querystring = {'PUBLICKEY': publickey, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "alletips-url-shortener.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def get_click_history(publickey: str, enddate: str=None, link: str='alle.tips/rapidapi', startdate: str=None, campaignid: str='abcd-efgh-ijk9', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Returns the number of clicks (total, link clicks and QR-clicks). + Additionally an array with chart data will be returned (x: date, y: total clicks)." + enddate: Returns events at and before this date. + link: Returns values for a specific link. + startdate: Returns events at and after this date. + campaignid: Limits the results to a specific campaign. + + """ + url = f"https://alletips-url-shortener.p.rapidapi.com/clicks/" + querystring = {'PUBLICKEY': publickey, } + if enddate: + querystring['enddate'] = enddate + if link: + querystring['link'] = link + if startdate: + querystring['startdate'] = startdate + if campaignid: + querystring['campaignid'] = campaignid + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "alletips-url-shortener.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def retrieve_qr_code_for_a_shortlink(publickey: str, link: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Retrieve a QR (quick response) code for your shortlink. + Scans of this code will be counted as regular clicks, but also reported separately." + link: Your shortlink to be QRed (without https:// etc.) + + """ + url = f"https://alletips-url-shortener.p.rapidapi.com/qr/" + querystring = {'PUBLICKEY': publickey, 'link': link, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "alletips-url-shortener.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def get_list_of_existing_campaigns(publickey: str, nocampaign: bool=None, name: str='some campaign name', startdate: str=None, enddate: str=None, inactive: bool=None, campaignid: str='abcd-efgh-ijk2', limit: int=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Returns a list of all your campaigns (= groups of links)." + nocampaign: Returns also a summary of the shortlinks that haven't been assigned to a campaign. + name: Get all campaigns thats title includes [name] + startdate: Shows all campaigns with a startdate greater or equal this date. + enddate: Shows all campaigns with an enddate greater or equal this date (and an earlier startdate). + inactive: Returns also inactive campaigns. +Default: only active ones. + campaignid: Get all infos for this specific campaign + limit: Limits the number of results + + """ + url = f"https://alletips-url-shortener.p.rapidapi.com/campaign/" + querystring = {'PUBLICKEY': publickey, } + if nocampaign: + querystring['nocampaign'] = nocampaign + if name: + querystring['name'] = name + if startdate: + querystring['startdate'] = startdate + if enddate: + querystring['enddate'] = enddate + if inactive: + querystring['inactive'] = inactive + if campaignid: + querystring['campaignid'] = campaignid + if limit: + querystring['limit'] = limit + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "alletips-url-shortener.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def get_list_of_available_domains(publickey: str, favorite: bool=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Returns a list of domains you can use to shorten your urls." + favorite: Show default domain for this/your account + + """ + url = f"https://alletips-url-shortener.p.rapidapi.com/domains" + querystring = {'PUBLICKEY': publickey, } + if favorite: + querystring['favorite'] = favorite + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "alletips-url-shortener.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Tools/alternate_qr_code_generator.json b/toolbench/toolenv/tools/Tools/alternate_qr_code_generator.json new file mode 100644 index 0000000000000000000000000000000000000000..1d7e2979d3a0c70a064d0d797c93e63469340418 --- /dev/null +++ b/toolbench/toolenv/tools/Tools/alternate_qr_code_generator.json @@ -0,0 +1,152 @@ +{ + "tool_name":"Alternate QR Code Generator", + "tool_description":"This Flask API generates a QR code for various types of data such as Wifi access information, VCard, URL and even mailto function for emails", + "title":"Alternate QR Code Generator", + "pricing":"PAID", + "score":null, + "home_url":"https://rapidapi.com/prashamgautam/api/alternate-qr-code-generator/", + "host":"alternate-qr-code-generator.p.rapidapi.com", + "api_list":[ + { + "name":"Text QR Code", + "url":"https://alternate-qr-code-generator.p.rapidapi.com/qr", + "description":"This endpoint allows you to create a QR Code containing any text, in particular, an URL that may redirect the user to the website. After QR code is scanned, website will be displayed to the user.", + "method":"GET", + "required_parameters":[ + { + "name":"redirect_url", + "type":"STRING", + "description":"", + "default":"www.google.com" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://alternate-qr-code-generator.p.rapidapi.com/qr\"\nquerystring = {\"redirect_url\": redirect_url}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"alternate-qr-code-generator.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + }, + { + "name":"Email QR Code", + "url":"https://alternate-qr-code-generator.p.rapidapi.com/qr", + "description":"This endpoint allows the creation of a QR Code allowing the user to quickly send an email. The code contains an appropriately encoded message template. After scanning, the device starts the e-mail client with pre-filled specified fields.", + "method":"GET", + "required_parameters":[ + { + "name":"email_address", + "type":"STRING", + "description":"", + "default":"asdf@asdf.com" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://alternate-qr-code-generator.p.rapidapi.com/qr\"\nquerystring = {\"email_address\": email_address}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"alternate-qr-code-generator.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + }, + { + "name":"Contact QR Code", + "url":"https://alternate-qr-code-generator.p.rapidapi.com/qr", + "description":"This endpoint allows you to create a QR Code that allows user to quickly add contact information to the phone book. The code contains an appropriately encoded electronic business card. After scanning, the device prompts to save the contact in the phone book.", + "method":"GET", + "required_parameters":[ + { + "name":"phone_number", + "type":"STRING", + "description":"", + "default":"1234509876" + }, + { + "name":"country_code", + "type":"STRING", + "description":"", + "default":"+1" + }, + { + "name":"name", + "type":"STRING", + "description":"", + "default":"John Doe" + } + ], + "optional_parameters":[ + { + "name":"website", + "type":"STRING", + "description":"", + "default":"www.asdf.com" + }, + { + "name":"title", + "type":"STRING", + "description":"", + "default":"self promoted" + }, + { + "name":"organization", + "type":"STRING", + "description":"", + "default":"I have no idea" + }, + { + "name":"photo_url", + "type":"STRING", + "description":"", + "default":"https://asdf.com/asdf.jpg" + }, + { + "name":"mobile_number", + "type":"STRING", + "description":"", + "default":"1234509876" + }, + { + "name":"email", + "type":"STRING", + "description":"", + "default":"asdf@asdf.com" + } + ], + "code":"import requests\n\nurl = \"https://alternate-qr-code-generator.p.rapidapi.com/qr\"\nquerystring = {\"website\": website, \"title\": title, \"organization\": organization, \"photo_url\": photo_url, \"mobile_number\": mobile_number, \"email\": email, \"phone_number\": phone_number, \"country_code\": country_code, \"name\": name}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"alternate-qr-code-generator.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + }, + { + "name":"WiFi QR Code", + "url":"https://alternate-qr-code-generator.p.rapidapi.com/qr", + "description":"This endpoint allows you to create a QR Code that allows user to quickly connect to a WiFi network. The code contains properly encoded network credentials. After scanning, the device can automatically connect to the network without having to enter the password manually.", + "method":"GET", + "required_parameters":[ + { + "name":"wifi_encryption", + "type":"STRING", + "description":"", + "default":"Your Wifi Enription such as WPA2 etc" + }, + { + "name":"wifi_ssid", + "type":"STRING", + "description":"", + "default":"Your Wifi SSID" + }, + { + "name":"wifi_password", + "type":"STRING", + "description":"", + "default":"Your Wifi Password" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://alternate-qr-code-generator.p.rapidapi.com/qr\"\nquerystring = {\"wifi_encryption\": wifi_encryption, \"wifi_ssid\": wifi_ssid, \"wifi_password\": wifi_password}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"alternate-qr-code-generator.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Tools/alternate_qr_code_generator/api.py b/toolbench/toolenv/tools/Tools/alternate_qr_code_generator/api.py new file mode 100644 index 0000000000000000000000000000000000000000..c96d0b9752d1b9481be9d07e6f2143ba8d0ca2ec --- /dev/null +++ b/toolbench/toolenv/tools/Tools/alternate_qr_code_generator/api.py @@ -0,0 +1,104 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def text_qr_code(redirect_url: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "This endpoint allows you to create a QR Code containing any text, in particular, an URL that may redirect the user to the website. After QR code is scanned, website will be displayed to the user." + + """ + url = f"https://alternate-qr-code-generator.p.rapidapi.com/qr" + querystring = {'redirect_url': redirect_url, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "alternate-qr-code-generator.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def email_qr_code(email_address: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "This endpoint allows the creation of a QR Code allowing the user to quickly send an email. The code contains an appropriately encoded message template. After scanning, the device starts the e-mail client with pre-filled specified fields." + + """ + url = f"https://alternate-qr-code-generator.p.rapidapi.com/qr" + querystring = {'email_address': email_address, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "alternate-qr-code-generator.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def contact_qr_code(phone_number: str, country_code: str, name: str, website: str='www.asdf.com', title: str='self promoted', organization: str='I have no idea', photo_url: str='https://asdf.com/asdf.jpg', mobile_number: str='1234509876', email: str='asdf@asdf.com', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "This endpoint allows you to create a QR Code that allows user to quickly add contact information to the phone book. The code contains an appropriately encoded electronic business card. After scanning, the device prompts to save the contact in the phone book." + + """ + url = f"https://alternate-qr-code-generator.p.rapidapi.com/qr" + querystring = {'phone_number': phone_number, 'country_code': country_code, 'name': name, } + if website: + querystring['website'] = website + if title: + querystring['title'] = title + if organization: + querystring['organization'] = organization + if photo_url: + querystring['photo_url'] = photo_url + if mobile_number: + querystring['mobile_number'] = mobile_number + if email: + querystring['email'] = email + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "alternate-qr-code-generator.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def wifi_qr_code(wifi_encryption: str, wifi_ssid: str, wifi_password: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "This endpoint allows you to create a QR Code that allows user to quickly connect to a WiFi network. The code contains properly encoded network credentials. After scanning, the device can automatically connect to the network without having to enter the password manually." + + """ + url = f"https://alternate-qr-code-generator.p.rapidapi.com/qr" + querystring = {'wifi_encryption': wifi_encryption, 'wifi_ssid': wifi_ssid, 'wifi_password': wifi_password, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "alternate-qr-code-generator.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Tools/amazon_product_scraper_api_full_page_scraping.json b/toolbench/toolenv/tools/Tools/amazon_product_scraper_api_full_page_scraping.json new file mode 100644 index 0000000000000000000000000000000000000000..66962e204e23e73a876fe226975588c2ef105c00 --- /dev/null +++ b/toolbench/toolenv/tools/Tools/amazon_product_scraper_api_full_page_scraping.json @@ -0,0 +1,37 @@ +{ + "tool_name":"Amazon Product Scraper API - FULL PAGE SCRAPING", + "tool_description":"Simple and easy-to-use full page Amazon product list scraping API.\nTurn a live Amazon product list page into JSON", + "title":"Amazon Product Scraper API - FULL PAGE SCRAPING", + "pricing":"FREEMIUM", + "score":{ + "avgServiceLevel":100, + "avgLatency":6189, + "avgSuccessRate":100, + "popularityScore":8.8, + "__typename":"Score" + }, + "home_url":"https://rapidapi.com/wirecryptocontact-h9qCX5pYMlJ/api/amazon-product-scraper-api-full-page-scraping/", + "host":"amazon-product-scraper-api-full-page-scraping.p.rapidapi.com", + "api_list":[ + { + "name":"Scrape", + "url":"https://amazon-product-scraper-api-full-page-scraping.p.rapidapi.com/scrape", + "description":"Data scrape for an amazon product listing page", + "method":"GET", + "required_parameters":[ + { + "name":"url", + "type":"STRING", + "description":"", + "default":"https://www.amazon.com.au/s?k=computers" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://amazon-product-scraper-api-full-page-scraping.p.rapidapi.com/scrape\"\nquerystring = {\"url\": url}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"amazon-product-scraper-api-full-page-scraping.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Tools/amazon_product_scraper_api_full_page_scraping/api.py b/toolbench/toolenv/tools/Tools/amazon_product_scraper_api_full_page_scraping/api.py new file mode 100644 index 0000000000000000000000000000000000000000..81883b99f091afcbb72f4c4235a04a1cad8a263d --- /dev/null +++ b/toolbench/toolenv/tools/Tools/amazon_product_scraper_api_full_page_scraping/api.py @@ -0,0 +1,29 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def scrape(url: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Data scrape for an amazon product listing page" + + """ + url = f"https://amazon-product-scraper-api-full-page-scraping.p.rapidapi.com/scrape" + querystring = {'url': url, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "amazon-product-scraper-api-full-page-scraping.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Tools/anchor_data_scrapper.json b/toolbench/toolenv/tools/Tools/anchor_data_scrapper.json new file mode 100644 index 0000000000000000000000000000000000000000..d6a4f2b355f0fc57f1f4b602110fd7f9062390bd --- /dev/null +++ b/toolbench/toolenv/tools/Tools/anchor_data_scrapper.json @@ -0,0 +1,77 @@ +{ + "tool_name":"Anchor Data Scrapper", + "tool_description":"Anchor Data Scrapper is the easiest way to get access to podcasts from a specific user in a JSON format.", + "title":"Anchor Data Scrapper", + "pricing":"FREEMIUM", + "score":{ + "avgServiceLevel":100, + "avgLatency":8, + "avgSuccessRate":100, + "popularityScore":9.1, + "__typename":"Score" + }, + "home_url":"https://rapidapi.com/youssefelmzelji/api/anchor-data-scrapper/", + "host":"anchor-data-scrapper.p.rapidapi.com", + "api_list":[ + { + "name":"Get Podcast episodes", + "url":"https://anchor-data-scrapper.p.rapidapi.com/episodes/{username}", + "description":"Get Podcast episodes with Audio, image, description using the username of the podcast.", + "method":"GET", + "required_parameters":[ + { + "name":"username", + "type":"string", + "description":"The username of the anchor podcase user for example:\nhttps://anchor.fm/**financialfreedomtribe**", + "default":"financialfreedomtribe" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://anchor-data-scrapper.p.rapidapi.com/episodes/{username}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"anchor-data-scrapper.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode":200, + "body":{ + "username":"financialfreedomtribe", + "userID":"44718ec", + "episodes":[ + { + "ID":"e25l8r", + "Name":"Gareth Daine. The Power of SEO. Episode 3", + "Description":"In this episode we welcome Gareth Daine from the UK. A veteran SEO with more than 13 years of experience in the field.\n\nWe talk about how competition should be seen as a positive thing when entering crowded markets and WHY.\n\nWe talk about consistency and the love of what you do help you achieve any goal you set your mind to.\n\nSo make sure you listen in.", + "audio":[ + "https://d3ctxlq1ktw2nl.cloudfront.net/production/2018-8-6/4441342-44100-2-11bce91e0495.m4a" + ] + }, + { + "ID":"e239sg", + "Name":"Episode 2 of the Financial Freedom Tribe Podcast", + "Description":"Today we have the honor to talk with a bona fide Email Marketing expert - Gabriella Mischel Rapone from Montreal in Canada. \n\nWe talk about how important email is, no matter what kind of online business that you work on. \n\nEcommerce, information product, agency owner or even if you're an affiliate who promotes other people's products. \n\nNo matter what you do, email marketing is crucial to your success and your bottom line.", + "audio":[ + "https://d3ctxlq1ktw2nl.cloudfront.net/production/2018-7-23/4222171-44100-2-889fd5651a5a1.m4a" + ] + }, + { + "ID":"e21vi8", + "Name":"Episode 1 of the Financial Freedom Tribe Podcast", + "Description":"This is the very first episode of the Financial Freedom Tribe Podcast. A small introduction by yours truly.\n\nIf you're into SEO, email marketing, Organic traffic from social media and you're building your website or business online, you should subscribe to this podcast.\n\nThere is a small surprise announcement in there, so make sure you catch it!\n", + "audio":[ + "https://d3ctxlq1ktw2nl.cloudfront.net/production/2018-7-18/4137267-44100-2-37559ca996635.m4a" + ] + } + ] + }, + "headers":{ + "access-control-allow-credentials":"true", + "access-control-allow-origin":"*", + "connection":"keep-alive", + "content-length":"1983", + "content-type":"application/json", + "date":"Fri, 15 Oct 2021 20:49:35 GMT", + "server":"RapidAPI-1.2.8", + "x-rapidapi-mock-response":"true", + "x-rapidapi-region":"AWS - eu-central-1", + "x-rapidapi-version":"1.2.8" + }, + "schema":{} + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Tools/anchor_data_scrapper/api.py b/toolbench/toolenv/tools/Tools/anchor_data_scrapper/api.py new file mode 100644 index 0000000000000000000000000000000000000000..9d530dd55cabc42f952feecf661e4370142e3b82 --- /dev/null +++ b/toolbench/toolenv/tools/Tools/anchor_data_scrapper/api.py @@ -0,0 +1,31 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def get_podcast_episodes(username: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get Podcast episodes with Audio, image, description using the username of the podcast." + username: The username of the anchor podcase user for example: +https://anchor.fm/**financialfreedomtribe** + + """ + url = f"https://anchor-data-scrapper.p.rapidapi.com/episodes/{username}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "anchor-data-scrapper.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Tools/any_doc_any_langauge_ocr.json b/toolbench/toolenv/tools/Tools/any_doc_any_langauge_ocr.json new file mode 100644 index 0000000000000000000000000000000000000000..603974a840c35390cbc176481c999c48d6e8969c --- /dev/null +++ b/toolbench/toolenv/tools/Tools/any_doc_any_langauge_ocr.json @@ -0,0 +1,79 @@ +{ + "product_id": "api_7b58c9c7-ce60-4a24-a71a-02e10104e82f", + "tool_description": "Extract any data from any document in any format", + "home_url": "https://rapidapi.com/doc2txt-doc2txt-default/api/any-doc-any-langauge-ocr/", + "name": "Any Doc Any Langauge OCR+ ", + "title": "Any Doc Any Langauge OCR+ ", + "pricing": "FREEMIUM", + "tool_name": "Any Doc Any Langauge OCR+ ", + "score": { + "avgServiceLevel": 100, + "avgLatency": 1044, + "avgSuccessRate": 100, + "popularityScore": 8.4, + "__typename": "Score" + }, + "host": "any-doc-any-langauge-ocr.p.rapidapi.com", + "api_list": [ + { + "name": "ocrAnyDocApi", + "url": "https://any-doc-any-langauge-ocr.p.rapidapi.com/anyDocApi", + "description": "API that can extract information from documents in any format you want.\n\nThe API receives the document (image or PDF) and the fields to extract from the document.\n\nThere are two types of fields that can be created with the API:\n1. **\"Extract\" fields:** Designed to extract information from the document itself.\n2. **\"Generate\" fields:** Allow you to create text based on the content found in the document. For example, you can generate summaries or keywords from the document.", + "method": "POST", + "required_parameters": [], + "optional_parameters": [ + { + "name": "extractFields", + "type": "STRING", + "description": "", + "default": "[\n \"last_name\",\n \"given_names\",\n \"email\",\n \"phone\",\n \"gender\",\n \"address\",\n \"age\",\n \"date_of_birth\"\n]\n" + }, + { + "name": "file", + "type": "BINARY", + "description": "", + "default": "" + }, + { + "name": "generateFields", + "type": "STRING", + "description": "", + "default": "[\n [\"short_summary\", \"summaries the resume (2-4 lines)\"],\n [\"keywords\", \"5 keywords separated by comma\"]\n]" + }, + { + "name": "token", + "type": "STRING", + "description": "", + "default": "doc2txt-token" + } + ], + "code": "import requests\n\nurl = \"https://any-doc-any-langauge-ocr.p.rapidapi.com/anyDocApi\"\nquerystring = {\"extractFields\": \"[\\n \\\"last_name\\\",\\n \\\"given_names\\\",\\n \\\"email\\\",\\n \\\"phone\\\",\\n \\\"gender\\\",\\n \\\"address\\\",\\n \\\"age\\\",\\n \\\"date_of_birth\\\"\\n]\\n\", \"file\": \"\", \"generateFields\": \"[\\n [\\\"short_summary\\\", \\\"summaries the resume (2-4 lines)\\\"],\\n [\\\"keywords\\\", \\\"5 keywords separated by comma\\\"]\\n]\", \"token\": \"doc2txt-token\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"any-doc-any-langauge-ocr.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://any-doc-any-langauge-ocr.p.rapidapi.com/anyDocApi\"\nquerystring = {\"extractFields\": \"[\\n \\\"last_name\\\",\\n \\\"given_names\\\",\\n \\\"email\\\",\\n \\\"phone\\\",\\n \\\"gender\\\",\\n \\\"address\\\",\\n \\\"age\\\",\\n \\\"date_of_birth\\\"\\n]\\n\", \"file\": \"\", \"generateFields\": \"[\\n [\\\"short_summary\\\", \\\"summaries the resume (2-4 lines)\\\"],\\n [\\\"keywords\\\", \\\"5 keywords separated by comma\\\"]\\n]\", \"token\": \"doc2txt-token\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"any-doc-any-langauge-ocr.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "get": { + "type": "string" + }, + "parameters": { + "type": "array" + }, + "errors": { + "type": "array" + }, + "results": { + "type": "integer" + }, + "response": { + "type": "array", + "items": { + "type": "object" + } + } + } + } + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Tools/any_qr_code_api.json b/toolbench/toolenv/tools/Tools/any_qr_code_api.json new file mode 100644 index 0000000000000000000000000000000000000000..8b8540e8c543aa44fe01b1779dbe630224b40682 --- /dev/null +++ b/toolbench/toolenv/tools/Tools/any_qr_code_api.json @@ -0,0 +1,31 @@ +{ + "tool_name":"Any QR code API", + "tool_description":"API takes the URL or string and returns the QR code image", + "title":"Any QR code API", + "pricing":"FREEMIUM", + "score":null, + "home_url":"https://rapidapi.com/dibasbusiness/api/any-qr-code-api/", + "host":"any-qr-code-api.p.rapidapi.com", + "api_list":[ + { + "name":"Easy QR code API", + "url":"https://any-qr-code-api.p.rapidapi.com/qr-code", + "description":"Our API is easy to use and integrates seamlessly with your existing applications. With our API, you can generate custom QR codes for any purpose – from marketing to event management, and more.", + "method":"GET", + "required_parameters":[], + "optional_parameters":[ + { + "name":"url", + "type":"STRING", + "description":"", + "default":"www.google.com" + } + ], + "code":"import requests\n\nurl = \"https://any-qr-code-api.p.rapidapi.com/qr-code\"\nquerystring = {\"url\": url}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"any-qr-code-api.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Tools/any_qr_code_api/api.py b/toolbench/toolenv/tools/Tools/any_qr_code_api/api.py new file mode 100644 index 0000000000000000000000000000000000000000..ad1fec82cd413a97658a13fb976fe0459d7f3fa6 --- /dev/null +++ b/toolbench/toolenv/tools/Tools/any_qr_code_api/api.py @@ -0,0 +1,31 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def easy_qr_code_api(url: str='www.google.com', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Our API is easy to use and integrates seamlessly with your existing applications. With our API, you can generate custom QR codes for any purpose – from marketing to event management, and more." + + """ + url = f"https://any-qr-code-api.p.rapidapi.com/qr-code" + querystring = {} + if url: + querystring['url'] = url + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "any-qr-code-api.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Tools/anything_domain.json b/toolbench/toolenv/tools/Tools/anything_domain.json new file mode 100644 index 0000000000000000000000000000000000000000..b1ed617ca4764237ebdfe7ab8d024588cf96f414 --- /dev/null +++ b/toolbench/toolenv/tools/Tools/anything_domain.json @@ -0,0 +1,503 @@ +{ + "tool_name": "Anything Domain", + "tool_description": "API to detect disposable domains to help companies reject disposable emails which has created LEAD GENERATION nightmare in recent times,detect fake email address, Generate common domain,unique domain names, generate custom email addresses using domain name, check whois of a domain and alot more.", + "title": "Anything Domain", + "pricing": "FREEMIUM", + "score": null, + "home_url": "https://rapidapi.com/haniftech9/api/anything-domain/", + "host": "anything-domain.p.rapidapi.com", + "api_list": [ + { + "name": "Domain Status", + "url": "https://anything-domain.p.rapidapi.com/domain-status/{id}", + "description": "Check the status or availability of a domain before purchase. Returns TRUE if domain is available for purchase else FALSE.", + "method": "GET", + "required_parameters": [ + { + "name": "id", + "type": "string", + "description": "", + "default": "hanifsoftech.com" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://anything-domain.p.rapidapi.com/domain-status/{id}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"anything-domain.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 111, + "body": "", + "headers": "", + "schema": "" + }, + { + "name": "Detect Disposable Emails", + "url": "https://anything-domain.p.rapidapi.com/email-disposable/{id}", + "description": "This endpoint detects whether an email is disposable or not. Returns true if email is disposable or false if email is not disposable.", + "method": "GET", + "required_parameters": [ + { + "name": "id", + "type": "string", + "description": "", + "default": "hanif@csringreece.me" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://anything-domain.p.rapidapi.com/email-disposable/{id}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"anything-domain.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 111, + "body": "", + "headers": "", + "schema": "" + }, + { + "name": "Domain Details", + "url": "https://anything-domain.p.rapidapi.com/whois-check", + "description": "Endpoint to query the details of a domain name, when it was created, owner,etc.from JSON request. Please do not include www or https. The domain and extension should be enough", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://anything-domain.p.rapidapi.com/whois-check\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"anything-domain.p.rapidapi.com\"\n}\n\nresponse = requests.post(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 111, + "body": "", + "headers": "", + "schema": "" + }, + { + "name": "Domain Details", + "url": "https://anything-domain.p.rapidapi.com/whois-check/{id}", + "description": "Endpoint to query the details of a domain name, when it was created, owner,etc.Please do not include www or https. The domain and extension should be enough", + "method": "GET", + "required_parameters": [ + { + "name": "id", + "type": "string", + "description": "", + "default": "amazon.com" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://anything-domain.p.rapidapi.com/whois-check/{id}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"anything-domain.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 111, + "body": "", + "headers": "", + "schema": "" + }, + { + "name": "Custom Mail Prefix Generator", + "url": "https://anything-domain.p.rapidapi.com/mail-custom-prefix", + "description": "This endpoint accepts three key:value pair and generates a unique Mail from JSON request", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://anything-domain.p.rapidapi.com/mail-custom-prefix\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"anything-domain.p.rapidapi.com\"\n}\n\nresponse = requests.post(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 111, + "body": "", + "headers": "", + "schema": "" + }, + { + "name": "Custom Mail Prefix Generator", + "url": "https://anything-domain.p.rapidapi.com/mail-custom-prefix", + "description": "This endpoint accepts three query parameters and generates a unique Mail from the parameters", + "method": "GET", + "required_parameters": [], + "optional_parameters": [ + { + "name": "second", + "type": "STRING", + "description": "", + "default": "dev" + }, + { + "name": "first", + "type": "STRING", + "description": "", + "default": "nana" + }, + { + "name": "your_domain", + "type": "STRING", + "description": "", + "default": "haniftech" + } + ], + "code": "import requests\n\nurl = \"https://anything-domain.p.rapidapi.com/mail-custom-prefix\"\nquerystring = {\"second\": second, \"first\": first, \"your_domain\": your_domain}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"anything-domain.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode": 111, + "body": "", + "headers": "", + "schema": "" + }, + { + "name": "Custom Mail Generator", + "url": "https://anything-domain.p.rapidapi.com/", + "description": "This endpoint generate common custom Mail from user's domain name from JSON request. Just the domain name, do not add domain extension", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://anything-domain.p.rapidapi.com/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"anything-domain.p.rapidapi.com\"\n}\n\nresponse = requests.post(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 111, + "body": "", + "headers": "", + "schema": "" + }, + { + "name": "Custom Mail Generator", + "url": "https://anything-domain.p.rapidapi.com/mail/{id}", + "description": "This endpoint generate common custom Mail from user's domain name", + "method": "GET", + "required_parameters": [ + { + "name": "id", + "type": "string", + "description": "", + "default": "gobe" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://anything-domain.p.rapidapi.com/mail/{id}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"anything-domain.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 111, + "body": "", + "headers": "", + "schema": "" + }, + { + "name": "All Domains", + "url": "https://anything-domain.p.rapidapi.com/all-domain", + "description": "Endpoint to generate common,unique,extra,suffix etc domains from a JSON request", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://anything-domain.p.rapidapi.com/all-domain\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"anything-domain.p.rapidapi.com\"\n}\n\nresponse = requests.post(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 111, + "body": "", + "headers": "", + "schema": "" + }, + { + "name": "All Domains", + "url": "https://anything-domain.p.rapidapi.com/all-domain/{id}", + "description": "Endpoint to generate common,unique,extra,suffix,subdomains etc.", + "method": "GET", + "required_parameters": [ + { + "name": "id", + "type": "string", + "description": "", + "default": "gobe" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://anything-domain.p.rapidapi.com/all-domain/{id}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"anything-domain.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 111, + "body": "", + "headers": "", + "schema": "" + }, + { + "name": "Suffix Domains", + "url": "https://anything-domain.p.rapidapi.com/suffix-domain", + "description": "Endpoint to generate suffix domains from a JSON request", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://anything-domain.p.rapidapi.com/suffix-domain\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"anything-domain.p.rapidapi.com\"\n}\n\nresponse = requests.post(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 111, + "body": "", + "headers": "", + "schema": "" + }, + { + "name": "Suffix Domain", + "url": "https://anything-domain.p.rapidapi.com/suffix-domain/{id}", + "description": "Endpoint to generate domains with suffixes", + "method": "GET", + "required_parameters": [ + { + "name": "id", + "type": "string", + "description": "", + "default": "gobe" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://anything-domain.p.rapidapi.com/suffix-domain/{id}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"anything-domain.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 111, + "body": "", + "headers": "", + "schema": "" + }, + { + "name": "Sub Domains", + "url": "https://anything-domain.p.rapidapi.com/sub-domain", + "description": "Endpoint to generate subdomains from a JSON request", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://anything-domain.p.rapidapi.com/sub-domain\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"anything-domain.p.rapidapi.com\"\n}\n\nresponse = requests.post(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 111, + "body": "", + "headers": "", + "schema": "" + }, + { + "name": "Sub Domains", + "url": "https://anything-domain.p.rapidapi.com/sub-domain/{id}", + "description": "Endpoint to generate subdomain names", + "method": "GET", + "required_parameters": [ + { + "name": "id", + "type": "string", + "description": "", + "default": "gobe" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://anything-domain.p.rapidapi.com/sub-domain/{id}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"anything-domain.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 111, + "body": "", + "headers": "", + "schema": "" + }, + { + "name": "Prefix Domains", + "url": "https://anything-domain.p.rapidapi.com/prefix-domain", + "description": "Endpoint to generate prefix domain from a JSON request", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://anything-domain.p.rapidapi.com/prefix-domain\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"anything-domain.p.rapidapi.com\"\n}\n\nresponse = requests.post(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 111, + "body": "", + "headers": "", + "schema": "" + }, + { + "name": "Prefix Domains", + "url": "https://anything-domain.p.rapidapi.com/prefix-domain/{id}", + "description": "Endpoint to generate prefix domain names", + "method": "GET", + "required_parameters": [ + { + "name": "id", + "type": "string", + "description": "", + "default": "gobe" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://anything-domain.p.rapidapi.com/prefix-domain/{id}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"anything-domain.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 111, + "body": "", + "headers": "", + "schema": "" + }, + { + "name": "Extra Domains", + "url": "https://anything-domain.p.rapidapi.com/", + "description": "Endpoint to generate additional domain from a JSON request", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://anything-domain.p.rapidapi.com/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"anything-domain.p.rapidapi.com\"\n}\n\nresponse = requests.post(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 111, + "body": "", + "headers": "", + "schema": "" + }, + { + "name": "Extra Domains", + "url": "https://anything-domain.p.rapidapi.com/extra-domain/{id}", + "description": "Endpoint to generate additional domains", + "method": "GET", + "required_parameters": [ + { + "name": "id", + "type": "string", + "description": "", + "default": "gobecon" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://anything-domain.p.rapidapi.com/extra-domain/{id}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"anything-domain.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 111, + "body": "", + "headers": "", + "schema": "" + }, + { + "name": "New Domains", + "url": "https://anything-domain.p.rapidapi.com/new-domain", + "description": "Endpoint to generate new domains from a JSON request", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://anything-domain.p.rapidapi.com/new-domain\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"anything-domain.p.rapidapi.com\"\n}\n\nresponse = requests.post(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 111, + "body": "", + "headers": "", + "schema": "" + }, + { + "name": "New Domains", + "url": "https://anything-domain.p.rapidapi.com/new-domain/{id}", + "description": "Endpoint to generate new uncommon domains", + "method": "GET", + "required_parameters": [ + { + "name": "id", + "type": "string", + "description": "", + "default": "gobecon" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://anything-domain.p.rapidapi.com/new-domain/{id}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"anything-domain.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 111, + "body": "", + "headers": "", + "schema": "" + }, + { + "name": "Common Domains", + "url": "https://anything-domain.p.rapidapi.com/domain", + "description": "This endpoint generates common domains accepting JSON post request. Same as the GET request. Choose which to use.", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://anything-domain.p.rapidapi.com/domain\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"anything-domain.p.rapidapi.com\"\n}\n\nresponse = requests.post(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 111, + "body": "", + "headers": "", + "schema": "" + }, + { + "name": "Common Domains", + "url": "https://anything-domain.p.rapidapi.com/domain/{id}", + "description": "This Endpoint Generates common domain names using popular domain extension.", + "method": "GET", + "required_parameters": [ + { + "name": "id", + "type": "string", + "description": "", + "default": "gobecon" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://anything-domain.p.rapidapi.com/domain/{id}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"anything-domain.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 111, + "body": "", + "headers": "", + "schema": "" + }, + { + "name": "Domain Details", + "url": "https://anything-domain.p.rapidapi.com/whois-check", + "description": "Endpoint to query the details of a domain name, when it was created, owner,etc.from JSON request. Please do not include www or https. The domain and extension should be enough", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://anything-domain.p.rapidapi.com/whois-check\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"anything-domain.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://anything-domain.p.rapidapi.com/whois-check\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"anything-domain.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "Custom Mail Prefix Generator", + "url": "https://anything-domain.p.rapidapi.com/mail-custom-prefix", + "description": "This endpoint accepts three key:value pair and generates a unique Mail from JSON request", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://anything-domain.p.rapidapi.com/mail-custom-prefix\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"anything-domain.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://anything-domain.p.rapidapi.com/mail-custom-prefix\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"anything-domain.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "Custom Mail Generator", + "url": "https://anything-domain.p.rapidapi.com/", + "description": "This endpoint generate common custom Mail from user's domain name from JSON request. Just the domain name, do not add domain extension", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://anything-domain.p.rapidapi.com/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"anything-domain.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://anything-domain.p.rapidapi.com/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"anything-domain.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "All Domains", + "url": "https://anything-domain.p.rapidapi.com/all-domain", + "description": "Endpoint to generate common,unique,extra,suffix etc domains from a JSON request", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://anything-domain.p.rapidapi.com/all-domain\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"anything-domain.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://anything-domain.p.rapidapi.com/all-domain\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"anything-domain.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "Suffix Domains", + "url": "https://anything-domain.p.rapidapi.com/suffix-domain", + "description": "Endpoint to generate suffix domains from a JSON request", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://anything-domain.p.rapidapi.com/suffix-domain\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"anything-domain.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://anything-domain.p.rapidapi.com/suffix-domain\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"anything-domain.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "Sub Domains", + "url": "https://anything-domain.p.rapidapi.com/sub-domain", + "description": "Endpoint to generate subdomains from a JSON request", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://anything-domain.p.rapidapi.com/sub-domain\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"anything-domain.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://anything-domain.p.rapidapi.com/sub-domain\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"anything-domain.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "Prefix Domains", + "url": "https://anything-domain.p.rapidapi.com/prefix-domain", + "description": "Endpoint to generate prefix domain from a JSON request", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://anything-domain.p.rapidapi.com/prefix-domain\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"anything-domain.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://anything-domain.p.rapidapi.com/prefix-domain\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"anything-domain.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "Extra Domains", + "url": "https://anything-domain.p.rapidapi.com/", + "description": "Endpoint to generate additional domain from a JSON request", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://anything-domain.p.rapidapi.com/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"anything-domain.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://anything-domain.p.rapidapi.com/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"anything-domain.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "New Domains", + "url": "https://anything-domain.p.rapidapi.com/new-domain", + "description": "Endpoint to generate new domains from a JSON request", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://anything-domain.p.rapidapi.com/new-domain\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"anything-domain.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://anything-domain.p.rapidapi.com/new-domain\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"anything-domain.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "Common Domains", + "url": "https://anything-domain.p.rapidapi.com/domain", + "description": "This endpoint generates common domains accepting JSON post request. Same as the GET request. Choose which to use.", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://anything-domain.p.rapidapi.com/domain\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"anything-domain.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://anything-domain.p.rapidapi.com/domain\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"anything-domain.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Tools/anything_domain/api.py b/toolbench/toolenv/tools/Tools/anything_domain/api.py new file mode 100644 index 0000000000000000000000000000000000000000..a7fd21c08b8acd1f6b613a1a4256c8ec0db7448e --- /dev/null +++ b/toolbench/toolenv/tools/Tools/anything_domain/api.py @@ -0,0 +1,266 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def domain_status(is_id: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Check the status or availability of a domain before purchase. Returns TRUE if domain is available for purchase else FALSE." + + """ + url = f"https://anything-domain.p.rapidapi.com/domain-status/{is_id}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "anything-domain.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def detect_disposable_emails(is_id: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "This endpoint detects whether an email is disposable or not. Returns true if email is disposable or false if email is not disposable." + + """ + url = f"https://anything-domain.p.rapidapi.com/email-disposable/{is_id}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "anything-domain.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def domain_details(is_id: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Endpoint to query the details of a domain name, when it was created, owner,etc.Please do not include www or https. The domain and extension should be enough" + + """ + url = f"https://anything-domain.p.rapidapi.com/whois-check/{is_id}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "anything-domain.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def custom_mail_prefix_generator(second: str='dev', first: str='nana', your_domain: str='haniftech', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "This endpoint accepts three query parameters and generates a unique Mail from the parameters" + + """ + url = f"https://anything-domain.p.rapidapi.com/mail-custom-prefix" + querystring = {} + if second: + querystring['second'] = second + if first: + querystring['first'] = first + if your_domain: + querystring['your_domain'] = your_domain + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "anything-domain.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def custom_mail_generator(is_id: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "This endpoint generate common custom Mail from user's domain name" + + """ + url = f"https://anything-domain.p.rapidapi.com/mail/{is_id}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "anything-domain.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def all_domains(is_id: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Endpoint to generate common,unique,extra,suffix,subdomains etc." + + """ + url = f"https://anything-domain.p.rapidapi.com/all-domain/{is_id}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "anything-domain.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def suffix_domain(is_id: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Endpoint to generate domains with suffixes" + + """ + url = f"https://anything-domain.p.rapidapi.com/suffix-domain/{is_id}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "anything-domain.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def sub_domains(is_id: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Endpoint to generate subdomain names" + + """ + url = f"https://anything-domain.p.rapidapi.com/sub-domain/{is_id}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "anything-domain.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def prefix_domains(is_id: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Endpoint to generate prefix domain names" + + """ + url = f"https://anything-domain.p.rapidapi.com/prefix-domain/{is_id}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "anything-domain.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def extra_domains(is_id: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Endpoint to generate additional domains" + + """ + url = f"https://anything-domain.p.rapidapi.com/extra-domain/{is_id}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "anything-domain.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def new_domains(is_id: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Endpoint to generate new uncommon domains" + + """ + url = f"https://anything-domain.p.rapidapi.com/new-domain/{is_id}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "anything-domain.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def common_domains(is_id: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "This Endpoint Generates common domain names using popular domain extension." + + """ + url = f"https://anything-domain.p.rapidapi.com/domain/{is_id}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "anything-domain.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Tools/api_for_qr_code.json b/toolbench/toolenv/tools/Tools/api_for_qr_code.json new file mode 100644 index 0000000000000000000000000000000000000000..98484d062f47f9dde8b18397ac82f1a894b9837a --- /dev/null +++ b/toolbench/toolenv/tools/Tools/api_for_qr_code.json @@ -0,0 +1,31 @@ +{ + "tool_name":"API for QR Code", + "tool_description":"This API is a QR code generator that takes a URL string as an input and returns the generated QR code in the form of a PNG image.", + "title":"API for QR Code", + "pricing":"FREEMIUM", + "score":null, + "home_url":"https://rapidapi.com/mohammadhoseinvand/api/api-for-qr-code/", + "host":"api-for-qr-code.p.rapidapi.com", + "api_list":[ + { + "name":"QR code image_copy", + "url":"https://api-for-qr-code.p.rapidapi.com/qr-code", + "description":"This End Point takes a 'GET' request with URL/string as a parameter and will return a QR CODE Image.", + "method":"GET", + "required_parameters":[], + "optional_parameters":[ + { + "name":"url", + "type":"STRING", + "description":"", + "default":"www.facebook.com" + } + ], + "code":"import requests\n\nurl = \"https://api-for-qr-code.p.rapidapi.com/qr-code\"\nquerystring = {\"url\": url}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"api-for-qr-code.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Tools/api_for_qr_code/api.py b/toolbench/toolenv/tools/Tools/api_for_qr_code/api.py new file mode 100644 index 0000000000000000000000000000000000000000..98913cd1d8a2edc5d94232186ba11a9c79b90ef7 --- /dev/null +++ b/toolbench/toolenv/tools/Tools/api_for_qr_code/api.py @@ -0,0 +1,31 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def qr_code_image_copy(url: str='www.facebook.com', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "This End Point takes a 'GET' request with URL/string as a parameter and will return a QR CODE Image." + + """ + url = f"https://api-for-qr-code.p.rapidapi.com/qr-code" + querystring = {} + if url: + querystring['url'] = url + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "api-for-qr-code.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Tools/api_for_qr_code_generator.json b/toolbench/toolenv/tools/Tools/api_for_qr_code_generator.json new file mode 100644 index 0000000000000000000000000000000000000000..62a0f0bd761da1223787afa81a3346ea72526fb9 --- /dev/null +++ b/toolbench/toolenv/tools/Tools/api_for_qr_code_generator.json @@ -0,0 +1,31 @@ +{ + "tool_name":"API for QR code Generator", + "tool_description":"This API takes URL or String as Input and returns as QR code Image. The image has been download as the result.\n", + "title":"API for QR code Generator", + "pricing":"FREEMIUM", + "score":null, + "home_url":"https://rapidapi.com/suhandhan/api/api-for-qr-code-generator/", + "host":"api-for-qr-code-generator.p.rapidapi.com", + "api_list":[ + { + "name":"QR code Image_copy", + "url":"https://api-for-qr-code-generator.p.rapidapi.com/api/qrcode", + "description":"This end point takes a 'GET' request with url/ string as a parameter and returns QR code image", + "method":"GET", + "required_parameters":[], + "optional_parameters":[ + { + "name":"url", + "type":"STRING", + "description":"", + "default":"www.google.com" + } + ], + "code":"import requests\n\nurl = \"https://api-for-qr-code-generator.p.rapidapi.com/api/qrcode\"\nquerystring = {\"url\": url}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"api-for-qr-code-generator.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Tools/api_for_qr_code_generator/api.py b/toolbench/toolenv/tools/Tools/api_for_qr_code_generator/api.py new file mode 100644 index 0000000000000000000000000000000000000000..6201fc44f4ab8ba27a70ba1e6aa3d164b72c35d6 --- /dev/null +++ b/toolbench/toolenv/tools/Tools/api_for_qr_code_generator/api.py @@ -0,0 +1,31 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def qr_code_image_copy(url: str='www.google.com', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "This end point takes a 'GET' request with url/ string as a parameter and returns QR code image" + + """ + url = f"https://api-for-qr-code-generator.p.rapidapi.com/api/qrcode" + querystring = {} + if url: + querystring['url'] = url + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "api-for-qr-code-generator.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Tools/api_qr_code_generator.json b/toolbench/toolenv/tools/Tools/api_qr_code_generator.json new file mode 100644 index 0000000000000000000000000000000000000000..a80173fecfdfff4b0f8eca76b3f89646d8b77067 --- /dev/null +++ b/toolbench/toolenv/tools/Tools/api_qr_code_generator.json @@ -0,0 +1,31 @@ +{ + "tool_name":"API_QR_CODE GENERATOR", + "tool_description":"My API generate convert URL requests into QR-codes. Enter a domain name after the qr-code section in the URL and it automatically generates a response image and downloads into your computer.", + "title":"API_QR_CODE GENERATOR", + "pricing":"FREEMIUM", + "score":null, + "home_url":"https://rapidapi.com/pythom-pythom-default/api/api_qr_code-generator/", + "host":"api_qr_code-generator.p.rapidapi.com", + "api_list":[ + { + "name":"Image Downloader and Response", + "url":"https://api_qr_code-generator.p.rapidapi.com/qr-code", + "description":"This endpoint downloads image uses the the methods=[\"GET\"] parameter to get URL in \"www.example.com\" URL, Generating a response QR-code to PNG conversion.", + "method":"GET", + "required_parameters":[], + "optional_parameters":[ + { + "name":"url", + "type":"STRING", + "description":"", + "default":"www.google.com" + } + ], + "code":"import requests\n\nurl = \"https://api_qr_code-generator.p.rapidapi.com/qr-code\"\nquerystring = {\"url\": url}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"api_qr_code-generator.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Tools/api_qr_code_generator/api.py b/toolbench/toolenv/tools/Tools/api_qr_code_generator/api.py new file mode 100644 index 0000000000000000000000000000000000000000..b0bc887658320de4c07defd70eb607e6c2128fbc --- /dev/null +++ b/toolbench/toolenv/tools/Tools/api_qr_code_generator/api.py @@ -0,0 +1,31 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def image_downloader_and_response(url: str='www.google.com', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "This endpoint downloads image uses the the methods=["GET"] parameter to get URL in "www.example.com" URL, Generating a response QR-code to PNG conversion." + + """ + url = f"https://api_qr_code-generator.p.rapidapi.com/qr-code" + querystring = {} + if url: + querystring['url'] = url + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "api_qr_code-generator.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Tools/apic_agent.json b/toolbench/toolenv/tools/Tools/apic_agent.json new file mode 100644 index 0000000000000000000000000000000000000000..1ad7ae9bc8cc284be3bca8db89f19711012f2c72 --- /dev/null +++ b/toolbench/toolenv/tools/Tools/apic_agent.json @@ -0,0 +1,144 @@ +{ + "tool_name": "APIC Agent", + "tool_description": "Detect browser, OS, and device from user agent string", + "title": "APIC Agent", + "pricing": "FREE", + "score": { + "avgServiceLevel": 100, + "avgLatency": 533, + "avgSuccessRate": 100, + "popularityScore": 8.6, + "__typename": "Score" + }, + "home_url": "https://rapidapi.com/abhinavs/api/apic-agent/", + "host": "apic-agent.p.rapidapi.com", + "api_list": [ + { + "name": "POST API to get details from User-Agent", + "url": "https://apic-agent.p.rapidapi.com/", + "description": "If you prefer working with POST APIs, you can use this POST variant of APIC Agent API - it works very similarly to GET API, accepts user agent string in 'ua' key in the input JSON, and returns the JSON object with parsed data.", + "method": "POST", + "required_parameters": [ + { + "name": "ua", + "type": "STRING", + "description": "", + "default": "Mozilla/5.0%20(Macintosh;%20Intel%20Mac%20OS%20X%2010_15_5)%20AppleWebKit/537.36%20(KHTML,%20like%20Gecko)%20Chrome/96.0.4664.93%20Safari/537.36" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://apic-agent.p.rapidapi.com/\"\nquerystring = {\"ua\": ua}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"apic-agent.p.rapidapi.com\"\n}\n\nresponse = requests.post(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode": 200, + "body": { + "key1": "value", + "key2": "value" + }, + "headers": {}, + "schema": {} + }, + { + "name": "GET Details from User-Agent", + "url": "https://apic-agent.p.rapidapi.com/", + "description": "GET variant of User-Agent API - this API is the simplest way to get started with APIC Agent's user-agent parsing API. It accepts the user agent string in 'ua' parameter and returns the JSON object with parsed data.", + "method": "GET", + "required_parameters": [ + { + "name": "ua", + "type": "STRING", + "description": "", + "default": "Mozilla/5.0%20(Macintosh;%20Intel%20Mac%20OS%20X%2010_15_5)%20AppleWebKit/537.36%20(KHTML,%20like%20Gecko)%20Chrome/96.0.4664.93%20Safari/537.36" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://apic-agent.p.rapidapi.com/\"\nquerystring = {\"ua\": ua}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"apic-agent.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode": 200, + "body": { + "key1": "value", + "key2": "value" + }, + "headers": {}, + "schema": { + "type": "object", + "properties": { + "browser_family": { + "type": "string" + }, + "client": { + "type": "object", + "properties": { + "engine": { + "type": "string" + }, + "engine_version": { + "type": "string" + }, + "name": { + "type": "string" + }, + "type": { + "type": "string" + }, + "version": { + "type": "string" + } + } + }, + "device": { + "type": "object", + "properties": { + "brand": { + "type": "string" + }, + "model": { + "type": "string" + }, + "type": { + "type": "string" + } + } + }, + "os": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "platform": { + "type": "string" + }, + "version": { + "type": "string" + } + } + }, + "os_family": { + "type": "string" + }, + "user_agent": { + "type": "string" + } + } + } + }, + { + "name": "POST API to get details from User-Agent", + "url": "https://apic-agent.p.rapidapi.com/", + "description": "If you prefer working with POST APIs, you can use this POST variant of APIC Agent API - it works very similarly to GET API, accepts user agent string in 'ua' key in the input JSON, and returns the JSON object with parsed data.", + "method": "POST", + "required_parameters": [ + { + "name": "ua", + "type": "STRING", + "description": "", + "default": "Mozilla/5.0%20(Macintosh;%20Intel%20Mac%20OS%20X%2010_15_5)%20AppleWebKit/537.36%20(KHTML,%20like%20Gecko)%20Chrome/96.0.4664.93%20Safari/537.36" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://apic-agent.p.rapidapi.com/\"\nquerystring = {\"ua\": \"Mozilla/5.0%20(Macintosh;%20Intel%20Mac%20OS%20X%2010_15_5)%20AppleWebKit/537.36%20(KHTML,%20like%20Gecko)%20Chrome/96.0.4664.93%20Safari/537.36\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"apic-agent.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://apic-agent.p.rapidapi.com/\"\nquerystring = {\"ua\": \"Mozilla/5.0%20(Macintosh;%20Intel%20Mac%20OS%20X%2010_15_5)%20AppleWebKit/537.36%20(KHTML,%20like%20Gecko)%20Chrome/96.0.4664.93%20Safari/537.36\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"apic-agent.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": {} + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Tools/apic_agent/api.py b/toolbench/toolenv/tools/Tools/apic_agent/api.py new file mode 100644 index 0000000000000000000000000000000000000000..c967fa8f567bc0f8cf263e3aca5b8b654bc4e273 --- /dev/null +++ b/toolbench/toolenv/tools/Tools/apic_agent/api.py @@ -0,0 +1,29 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def get_details_from_user_agent(ua: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "GET variant of User-Agent API - this API is the simplest way to get started with APIC Agent's user-agent parsing API. It accepts the user agent string in 'ua' parameter and returns the JSON object with parsed data." + + """ + url = f"https://apic-agent.p.rapidapi.com/" + querystring = {'ua': ua, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "apic-agent.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Tools/apievangelist.json b/toolbench/toolenv/tools/Tools/apievangelist.json new file mode 100644 index 0000000000000000000000000000000000000000..7d50834052df3b3f5595590acddb530fd1c809ae --- /dev/null +++ b/toolbench/toolenv/tools/Tools/apievangelist.json @@ -0,0 +1,33 @@ +{ + "product_id": "53aa3ce0e4b0f2c97546f93a", + "tool_description": "Kin Lane's list of tools for API deployment. What can I say? He's da man!", + "home_url": "https://rapidapi.com/ismaelc/api/apievangelist/", + "name": "APIEvangelist", + "title": "APIEvangelist", + "pricing": "FREE", + "tool_name": "APIEvangelist", + "score": { + "avgServiceLevel": 100, + "avgLatency": 33, + "avgSuccessRate": 100, + "popularityScore": 5.7, + "__typename": "Score" + }, + "host": "ismaelc-apievangelist.p.rapidapi.com", + "api_list": [ + { + "name": "Deployment Tools", + "url": "https://ismaelc-apievangelist.p.rapidapi.com/data/tools.json", + "description": "", + "method": "GET", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://ismaelc-apievangelist.p.rapidapi.com/data/tools.json\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"ismaelc-apievangelist.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://ismaelc-apievangelist.p.rapidapi.com/data/tools.json\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"ismaelc-apievangelist.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + } + ], + "standardized_name": "apievangelist" +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Tools/apievangelist/api.py b/toolbench/toolenv/tools/Tools/apievangelist/api.py new file mode 100644 index 0000000000000000000000000000000000000000..3760009c46128b5230780caf3c9beff27e71d55d --- /dev/null +++ b/toolbench/toolenv/tools/Tools/apievangelist/api.py @@ -0,0 +1,29 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def deployment_tools(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "" + + """ + url = f"https://ismaelc-apievangelist.p.rapidapi.com/data/tools.json" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "ismaelc-apievangelist.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Tools/arabiccountrylist.json b/toolbench/toolenv/tools/Tools/arabiccountrylist.json new file mode 100644 index 0000000000000000000000000000000000000000..e6c05c51be5ab636eb1bd24413d1375813f0673e --- /dev/null +++ b/toolbench/toolenv/tools/Tools/arabiccountrylist.json @@ -0,0 +1,25 @@ +{ + "product_id": "api_a0a52bac-4eef-4776-953c-2e3e373fc822", + "tool_description": "Country list in Arabic", + "home_url": "https://rapidapi.com/bkhashfeh-L66_196qte1/api/arabiccountrylist/", + "name": "ArabicCountryList", + "title": "ArabicCountryList", + "pricing": "FREE", + "tool_name": "ArabicCountryList", + "score": null, + "host": "arabiccountrylist.p.rapidapi.com", + "api_list": [ + { + "name": "countryList", + "url": "https://arabiccountrylist.p.rapidapi.com/mi2tech/public/api/v1/country/list", + "description": "Get Arabic & English Country list", + "method": "GET", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://arabiccountrylist.p.rapidapi.com/mi2tech/public/api/v1/country/list\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"arabiccountrylist.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://arabiccountrylist.p.rapidapi.com/mi2tech/public/api/v1/country/list\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"arabiccountrylist.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "" + } + ], + "standardized_name": "arabiccountrylist" +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Tools/arabiccountrylist/api.py b/toolbench/toolenv/tools/Tools/arabiccountrylist/api.py new file mode 100644 index 0000000000000000000000000000000000000000..cee5406edf1ef78ab79564b9e10916569780264d --- /dev/null +++ b/toolbench/toolenv/tools/Tools/arabiccountrylist/api.py @@ -0,0 +1,29 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def countrylist(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get Arabic & English Country list" + + """ + url = f"https://arabiccountrylist.p.rapidapi.com/mi2tech/public/api/v1/country/list" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "arabiccountrylist.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Tools/arespass.json b/toolbench/toolenv/tools/Tools/arespass.json new file mode 100644 index 0000000000000000000000000000000000000000..b916ccb0c8843b04c88e439db6808b4fba280a69 --- /dev/null +++ b/toolbench/toolenv/tools/Tools/arespass.json @@ -0,0 +1,669 @@ +{ + "tool_name":"Arespass", + "tool_description":"AresPass is a password analyzer that calculates its entropy and shows a complete report that includes the password fragments having low randomness. Among the analysis carried out are multi-language word search, keyboard sequence search or irregular entropy distribution, to mention some of them.", + "title":"Arespass", + "pricing":"FREEMIUM", + "score":{ + "avgServiceLevel":94, + "avgLatency":1913, + "avgSuccessRate":94, + "popularityScore":9, + "__typename":"Score" + }, + "home_url":"https://rapidapi.com/aquariuswolf940/api/arespass/", + "host":"arespass.p.rapidapi.com", + "api_list":[ + { + "name":"/about", + "url":"https://arespass.p.rapidapi.com/about", + "description":" ", + "method":"GET", + "required_parameters":[], + "optional_parameters":[ + { + "name":"outputFormat", + "type":"STRING", + "description":"**The format of the returned metadata.**\n\nAllowed values are *json*, *xml* and *yaml*.\n\nThe default value is *xml*.\n", + "default":"" + } + ], + "code":"import requests\n\nurl = \"https://arespass.p.rapidapi.com/about\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"arespass.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode":200, + "body":"\n\n \n 0\n 0\n \n \n \n", + "headers":{}, + "schema":{ + "type":"object", + "description":"**This API version number**.\n", + "properties":{ + "apiVersion":{ + "type":"object", + "properties":{ + "majorNumber":{ + "type":"integer", + "description":"This API version major number." + }, + "minorNumber":{ + "type":"integer", + "description":"This API version minor number." + } + } + }, + "apiReleaseDateIso8601":{ + "type":"string", + "description":"**The release date of this API, ISO 8601 format.**\n" + }, + "availableLanguagesIso639_1":{ + "type":"string", + "description":"**The list of available languages.**\n\nEach language is identified by its ISO 639-1, two-letter code.\n\nThe list elements are comma-separated and sorted in ascending order.\n" + } + } + } + }, + { + "name":"/about", + "url":"https://arespass.p.rapidapi.com/about", + "description":" ", + "method":"GET", + "required_parameters":[], + "optional_parameters":[ + { + "name":"outputFormat", + "type":"STRING", + "description":"**The format of the returned metadata.**\n\nAllowed values are *json*, *xml* and *yaml*.\n\nThe default value is *xml*.\n", + "default":"" + } + ], + "code":"import requests\n\nurl = \"https://arespass.p.rapidapi.com/about\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"arespass.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode":200, + "body":{ + "apiVersion":{ + "majorNumber":0, + "minorNumber":0 + }, + "apiReleaseDateIso8601":"", + "availableLanguagesIso639_1":"" + }, + "headers":{}, + "schema":{ + "type":"object", + "description":"**This API version number**.\n", + "properties":{ + "apiVersion":{ + "type":"object", + "properties":{ + "majorNumber":{ + "type":"integer", + "description":"This API version major number." + }, + "minorNumber":{ + "type":"integer", + "description":"This API version minor number." + } + } + }, + "apiReleaseDateIso8601":{ + "type":"string", + "description":"**The release date of this API, ISO 8601 format.**\n" + }, + "availableLanguagesIso639_1":{ + "type":"string", + "description":"**The list of available languages.**\n\nEach language is identified by its ISO 639-1, two-letter code.\n\nThe list elements are comma-separated and sorted in ascending order.\n" + } + } + } + }, + { + "name":"/ec", + "url":"https://arespass.p.rapidapi.com/ec", + "description":" ", + "method":"GET", + "required_parameters":[ + { + "name":"password", + "type":"STRING", + "description":"**The password to be analyzed.**\n\nMinimum length is 4 characters; maximum length is 128 characters.\n\nBeware that certain characters like '#', '=' or '?' must be properly encoded.\n\nFor more information about this issue, please refer to RFC 3986 (\"*Uniform Resource Identifier (URI): Generic Syntax*\"), sections 2.1, 2.2 and 2.4.\n", + "default":"" + } + ], + "optional_parameters":[ + { + "name":"penalty", + "type":"NUMBER", + "description":"**The penalty applied to each character that is part of a word, number sequence, alphabet sequence, etc.**\n\nThe penalty is a float number in the range [0, 1]. Full penalty, 0; no penalty, 1.\n\nThe character used as decimal separator is always '.'. Hence, a parameter value like *0,33* would be illegal.\n\nThe default value is *0.25*.\n", + "default":"" + }, + { + "name":"outputFormat", + "type":"STRING", + "description":"**The format of the returned analysis.**\n\nAllowed values are *json*, *xml* and *yaml*.\n\nThe default value is *xml*.\n", + "default":"" + }, + { + "name":"reqId", + "type":"STRING", + "description":"**An identifier for this request.**\n\nThe request identifier is a string that must match the regular expression */(?i)^[a-z0-9]{8,16}$/*.\n\nThis identifier is echoed in the returned response. Its value has no effect on the password analysis.\n\nIf this parameter is unset, a randomly generated identifier will be automatically assigned to this request.\n", + "default":"" + } + ], + "code":"import requests\n\nurl = \"https://arespass.p.rapidapi.com/ec\"\nquerystring = {\"password\": password}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"arespass.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":200, + "body":{ + "summary":[], + "password":"", + "l33tPassword":"", + "passwordLength":0, + "penalty":0, + "entropy":0, + "idealEntropy":0, + "efficiency":0, + "entropyDistribution":[ + { + "char":"", + "l33tchar":"", + "percentage":0 + } + ], + "nonUniformEntropyDistributionPenalty":0, + "detectedKeyboard":"", + "keyboardSequence":[ + { + "char":"", + "l33tchar":"", + "penalty":0 + } + ], + "numberSequence":[ + { + "char":"", + "l33tchar":"", + "penalty":0 + } + ], + "words":[ + { + "char":"", + "l33tchar":"", + "penalty":0 + } + ], + "repeatedChars":[ + { + "char":"", + "l33tchar":"", + "penalty":0 + } + ], + "alphabetSequence":[ + { + "char":"", + "l33tchar":"", + "penalty":0 + } + ], + "total":[ + { + "char":"", + "l33tchar":"", + "penalty":0 + } + ], + "apiVersion":"", + "requestId":"", + "requestTimestamp":0 + }, + "headers":{}, + "schema":{ + "type":"object", + "properties":{ + "summary":{ + "type":"array", + "items":{ + "type":"string", + "description":"**A human-readable summary of the password analysis.**\n\nThis human readable summary is not intended to be parsed.\n" + } + }, + "password":{ + "type":"string", + "description":"The analyzed password." + }, + "l33tPassword":{ + "type":"string", + "description":"The analyzed password after the l33t substitution." + }, + "passwordLength":{ + "type":"integer", + "description":"The number of characters the password has." + }, + "penalty":{ + "type":"number", + "description":"**The penalty applied to each character that has been found to be part of a word, number sequence, alphabet sequence, etc.**\n\nThe penalty is a float number in the range [0, 1]. Full penalty, 0; no penalty, 1.\n\nIts value is equal to the value of the input parameter *penalty*.\n" + }, + "entropy":{ + "type":"number", + "description":"**The entropy calculated for the input password.**\n\nIt is measured in bits.\n" + }, + "idealEntropy":{ + "type":"number", + "description":"**The Shannon entropy.**\n\nThe Shannon entropy is the entropy calculated if no penalizations - words, number sequence, alphabet sequence, etc - were found in the password.\n\nIt is measured in bits.\n" + }, + "efficiency":{ + "type":"number", + "description":"**The ratio entropy / idealEntropy.**\n\nIt is a float number in the range [0, 1].\n" + }, + "entropyDistribution":{ + "type":"array", + "description":"**The distribution of the calculated entropy among the password characters.**\n", + "items":{ + "type":"object", + "properties":{ + "char":{ + "type":"string", + "description":"The n-th character." + }, + "l33tchar":{ + "type":"string", + "description":"The n-th character after the l33t transformation." + }, + "percentage":{ + "type":"number", + "description":"The amount of entropy contributed by this character, expressed as percentage of the total." + } + } + } + }, + "nonUniformEntropyDistributionPenalty":{ + "type":"number", + "description":"**The penalty applied to the whole password because of irregular entropy distribution.**\n\nThis penalty is a float number in the range [0, 1]. Full penalty, 0; no penalty, 1.\n" + }, + "detectedKeyboard":{ + "type":"string", + "description":"**The detected keyboard, QWERTY or Dvorak.**\n" + }, + "keyboardSequence":{ + "type":"array", + "description":"**The penalty applied to each character that has been found to be part of a keyboard sequence.**\n\nThe penalty is a float number in the range [0, 1]. Full penalty, 0; no penalty, 1.\n", + "items":{ + "type":"object", + "properties":{ + "char":{ + "type":"string", + "description":"The n-th character." + }, + "l33tchar":{ + "type":"string", + "description":"The n-th character after the l33t transformation." + }, + "penalty":{ + "type":"number", + "description":"The penalty applied to this character if it is part of a keyboard sequence.\n\nThe penalty is a float number in the range [0, 1]. Full penalty, 0; no penalty, 1.\n" + } + } + } + }, + "numberSequence":{ + "type":"array", + "description":"**The penalty applied to each character that has been found to be part of a number sequence.**\n\nThe penalty is a float number in the range [0, 1]. Full penalty, 0; no penalty, 1.\n", + "items":{ + "type":"object", + "properties":{ + "char":{ + "type":"string", + "description":"The n-th character." + }, + "l33tchar":{ + "type":"string", + "description":"The n-th character after the l33t transformation." + }, + "penalty":{ + "type":"number", + "description":"The penalty applied to this character if it is part of a number sequence.\n\nThe penalty is a float number in the range [0, 1]. Full penalty, 0; no penalty, 1.\n" + } + } + } + }, + "words":{ + "type":"array", + "description":"**The penalty applied to each character that has been found to be part of a word.**\n\nThe penalty is a float number in the range [0, 1]. Full penalty, 0; no penalty, 1.\n", + "items":{ + "type":"object", + "properties":{ + "char":{ + "type":"string", + "description":"The n-th character." + }, + "l33tchar":{ + "type":"string", + "description":"The n-th character after the l33t transformation." + }, + "penalty":{ + "type":"number", + "description":"The penalty applied to this character if it is part of a word.\n\nThe penalty is a float number in the range [0, 1]. Full penalty, 0; no penalty, 1. \n" + } + } + } + }, + "repeatedChars":{ + "type":"array", + "description":"**The penalty applied to each character that are repeated**\n\nThe penalty is a float number in the range [0, 1]. Full penalty, 0; no penalty, 1. \n", + "items":{ + "type":"object", + "properties":{ + "char":{ + "type":"string", + "description":"The n-th character." + }, + "l33tchar":{ + "type":"string", + "description":"The n-th character after the l33t transformation." + }, + "penalty":{ + "type":"number", + "description":"The penalty applied to this character if it is repeated.\n\nThe penalty is a float number in the range [0, 1]. Full penalty, 0; no penalty, 1.\n" + } + } + } + }, + "alphabetSequence":{ + "type":"array", + "description":"**The penalty applied to each character that has been found to be part of an alphabet sequence.**\n\nThe penalty is a float number in the range [0, 1]. Full penalty, 0; no penalty, 1.\n", + "items":{ + "type":"object", + "properties":{ + "char":{ + "type":"string", + "description":"The n-th character." + }, + "l33tchar":{ + "type":"string", + "description":"The n-th character after the l33t transformation." + }, + "penalty":{ + "type":"number", + "description":"The penalty applied to this character if it is part of an alphabet sequence.\n\nThe penalty is a float number in the range [0, 1]. Full penalty, 0; no penalty, 1.\n" + } + } + } + }, + "total":{ + "type":"array", + "description":"**The total penalty applied to each character.**\n\nThe penalty is a float number in the range [0, 1]. Full penalty, 0; no penalty, 1.\n", + "items":{ + "type":"object", + "properties":{ + "char":{ + "type":"string", + "description":"The n-th character." + }, + "l33tchar":{ + "type":"string", + "description":"The n-th character after the l33t transformation." + }, + "penalty":{ + "type":"number", + "description":"The total penalty applied to each character.\n\nThe penalty is a float number in the range [0, 1]. Full penalty, 0; no penalty, 1. \n" + } + } + } + }, + "apiVersion":{ + "type":"string", + "description":"**This API version number.**\n" + }, + "requestId":{ + "type":"string", + "description":"**The identifier of the request that corresponds to this response.**\n" + }, + "requestTimestamp":{ + "type":"number", + "description":"**The timestamp for this response.**\n\nMilliseconds from the epoch of 1970-01-01T00:00:00Z.\n" + } + } + } + }, + { + "name":"/ec", + "url":"https://arespass.p.rapidapi.com/ec", + "description":" ", + "method":"GET", + "required_parameters":[ + { + "name":"password", + "type":"STRING", + "description":"**The password to be analyzed.**\n\nMinimum length is 4 characters; maximum length is 128 characters.\n\nBeware that certain characters like '#', '=' or '?' must be properly encoded.\n\nFor more information about this issue, please refer to RFC 3986 (\"*Uniform Resource Identifier (URI): Generic Syntax*\"), sections 2.1, 2.2 and 2.4.\n", + "default":"" + } + ], + "optional_parameters":[ + { + "name":"penalty", + "type":"NUMBER", + "description":"**The penalty applied to each character that is part of a word, number sequence, alphabet sequence, etc.**\n\nThe penalty is a float number in the range [0, 1]. Full penalty, 0; no penalty, 1.\n\nThe character used as decimal separator is always '.'. Hence, a parameter value like *0,33* would be illegal.\n\nThe default value is *0.25*.\n", + "default":"" + }, + { + "name":"outputFormat", + "type":"STRING", + "description":"**The format of the returned analysis.**\n\nAllowed values are *json*, *xml* and *yaml*.\n\nThe default value is *xml*.\n", + "default":"" + }, + { + "name":"reqId", + "type":"STRING", + "description":"**An identifier for this request.**\n\nThe request identifier is a string that must match the regular expression */(?i)^[a-z0-9]{8,16}$/*.\n\nThis identifier is echoed in the returned response. Its value has no effect on the password analysis.\n\nIf this parameter is unset, a randomly generated identifier will be automatically assigned to this request.\n", + "default":"" + } + ], + "code":"import requests\n\nurl = \"https://arespass.p.rapidapi.com/ec\"\nquerystring = {\"password\": password}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"arespass.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":200, + "body":"\n\n \n \n \n 0\n 0\n 0\n 0\n 0\n \n \n \n \n 0\n \n \n 0\n \n \n \n \n \n 0\n \n \n \n \n \n \n 0\n \n \n \n \n \n \n 0\n \n \n \n \n \n \n 0\n \n \n \n \n \n \n 0\n \n \n \n \n \n \n 0\n \n \n \n \n 0\n", + "headers":{}, + "schema":{ + "type":"object", + "properties":{ + "summary":{ + "type":"array", + "items":{ + "type":"string", + "description":"**A human-readable summary of the password analysis.**\n\nThis human readable summary is not intended to be parsed.\n" + } + }, + "password":{ + "type":"string", + "description":"The analyzed password." + }, + "l33tPassword":{ + "type":"string", + "description":"The analyzed password after the l33t substitution." + }, + "passwordLength":{ + "type":"integer", + "description":"The number of characters the password has." + }, + "penalty":{ + "type":"number", + "description":"**The penalty applied to each character that has been found to be part of a word, number sequence, alphabet sequence, etc.**\n\nThe penalty is a float number in the range [0, 1]. Full penalty, 0; no penalty, 1.\n\nIts value is equal to the value of the input parameter *penalty*.\n" + }, + "entropy":{ + "type":"number", + "description":"**The entropy calculated for the input password.**\n\nIt is measured in bits.\n" + }, + "idealEntropy":{ + "type":"number", + "description":"**The Shannon entropy.**\n\nThe Shannon entropy is the entropy calculated if no penalizations - words, number sequence, alphabet sequence, etc - were found in the password.\n\nIt is measured in bits.\n" + }, + "efficiency":{ + "type":"number", + "description":"**The ratio entropy / idealEntropy.**\n\nIt is a float number in the range [0, 1].\n" + }, + "entropyDistribution":{ + "type":"array", + "description":"**The distribution of the calculated entropy among the password characters.**\n", + "items":{ + "type":"object", + "properties":{ + "char":{ + "type":"string", + "description":"The n-th character." + }, + "l33tchar":{ + "type":"string", + "description":"The n-th character after the l33t transformation." + }, + "percentage":{ + "type":"number", + "description":"The amount of entropy contributed by this character, expressed as percentage of the total." + } + } + } + }, + "nonUniformEntropyDistributionPenalty":{ + "type":"number", + "description":"**The penalty applied to the whole password because of irregular entropy distribution.**\n\nThis penalty is a float number in the range [0, 1]. Full penalty, 0; no penalty, 1.\n" + }, + "detectedKeyboard":{ + "type":"string", + "description":"**The detected keyboard, QWERTY or Dvorak.**\n" + }, + "keyboardSequence":{ + "type":"array", + "description":"**The penalty applied to each character that has been found to be part of a keyboard sequence.**\n\nThe penalty is a float number in the range [0, 1]. Full penalty, 0; no penalty, 1.\n", + "items":{ + "type":"object", + "properties":{ + "char":{ + "type":"string", + "description":"The n-th character." + }, + "l33tchar":{ + "type":"string", + "description":"The n-th character after the l33t transformation." + }, + "penalty":{ + "type":"number", + "description":"The penalty applied to this character if it is part of a keyboard sequence.\n\nThe penalty is a float number in the range [0, 1]. Full penalty, 0; no penalty, 1.\n" + } + } + } + }, + "numberSequence":{ + "type":"array", + "description":"**The penalty applied to each character that has been found to be part of a number sequence.**\n\nThe penalty is a float number in the range [0, 1]. Full penalty, 0; no penalty, 1.\n", + "items":{ + "type":"object", + "properties":{ + "char":{ + "type":"string", + "description":"The n-th character." + }, + "l33tchar":{ + "type":"string", + "description":"The n-th character after the l33t transformation." + }, + "penalty":{ + "type":"number", + "description":"The penalty applied to this character if it is part of a number sequence.\n\nThe penalty is a float number in the range [0, 1]. Full penalty, 0; no penalty, 1.\n" + } + } + } + }, + "words":{ + "type":"array", + "description":"**The penalty applied to each character that has been found to be part of a word.**\n\nThe penalty is a float number in the range [0, 1]. Full penalty, 0; no penalty, 1.\n", + "items":{ + "type":"object", + "properties":{ + "char":{ + "type":"string", + "description":"The n-th character." + }, + "l33tchar":{ + "type":"string", + "description":"The n-th character after the l33t transformation." + }, + "penalty":{ + "type":"number", + "description":"The penalty applied to this character if it is part of a word.\n\nThe penalty is a float number in the range [0, 1]. Full penalty, 0; no penalty, 1. \n" + } + } + } + }, + "repeatedChars":{ + "type":"array", + "description":"**The penalty applied to each character that are repeated**\n\nThe penalty is a float number in the range [0, 1]. Full penalty, 0; no penalty, 1. \n", + "items":{ + "type":"object", + "properties":{ + "char":{ + "type":"string", + "description":"The n-th character." + }, + "l33tchar":{ + "type":"string", + "description":"The n-th character after the l33t transformation." + }, + "penalty":{ + "type":"number", + "description":"The penalty applied to this character if it is repeated.\n\nThe penalty is a float number in the range [0, 1]. Full penalty, 0; no penalty, 1.\n" + } + } + } + }, + "alphabetSequence":{ + "type":"array", + "description":"**The penalty applied to each character that has been found to be part of an alphabet sequence.**\n\nThe penalty is a float number in the range [0, 1]. Full penalty, 0; no penalty, 1.\n", + "items":{ + "type":"object", + "properties":{ + "char":{ + "type":"string", + "description":"The n-th character." + }, + "l33tchar":{ + "type":"string", + "description":"The n-th character after the l33t transformation." + }, + "penalty":{ + "type":"number", + "description":"The penalty applied to this character if it is part of an alphabet sequence.\n\nThe penalty is a float number in the range [0, 1]. Full penalty, 0; no penalty, 1.\n" + } + } + } + }, + "total":{ + "type":"array", + "description":"**The total penalty applied to each character.**\n\nThe penalty is a float number in the range [0, 1]. Full penalty, 0; no penalty, 1.\n", + "items":{ + "type":"object", + "properties":{ + "char":{ + "type":"string", + "description":"The n-th character." + }, + "l33tchar":{ + "type":"string", + "description":"The n-th character after the l33t transformation." + }, + "penalty":{ + "type":"number", + "description":"The total penalty applied to each character.\n\nThe penalty is a float number in the range [0, 1]. Full penalty, 0; no penalty, 1. \n" + } + } + } + }, + "apiVersion":{ + "type":"string", + "description":"**This API version number.**\n" + }, + "requestId":{ + "type":"string", + "description":"**The identifier of the request that corresponds to this response.**\n" + }, + "requestTimestamp":{ + "type":"number", + "description":"**The timestamp for this response.**\n\nMilliseconds from the epoch of 1970-01-01T00:00:00Z.\n" + } + } + } + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Tools/arespass/api.py b/toolbench/toolenv/tools/Tools/arespass/api.py new file mode 100644 index 0000000000000000000000000000000000000000..98a2fc92e05d735a496750036c0404436ec944ce --- /dev/null +++ b/toolbench/toolenv/tools/Tools/arespass/api.py @@ -0,0 +1,180 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def about(outputformat: str=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + " " + outputformat: **The format of the returned metadata.** + +Allowed values are *json*, *xml* and *yaml*. + +The default value is *xml*. + + + """ + url = f"https://arespass.p.rapidapi.com/about" + querystring = {} + if outputformat: + querystring['outputFormat'] = outputformat + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "arespass.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def about(outputformat: str=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + " " + outputformat: **The format of the returned metadata.** + +Allowed values are *json*, *xml* and *yaml*. + +The default value is *xml*. + + + """ + url = f"https://arespass.p.rapidapi.com/about" + querystring = {} + if outputformat: + querystring['outputFormat'] = outputformat + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "arespass.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def ec(password: str, penalty: int=None, outputformat: str=None, reqid: str=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + " " + password: **The password to be analyzed.** + +Minimum length is 4 characters; maximum length is 128 characters. + +Beware that certain characters like '#', '=' or '?' must be properly encoded. + +For more information about this issue, please refer to RFC 3986 ("*Uniform Resource Identifier (URI): Generic Syntax*"), sections 2.1, 2.2 and 2.4. + + penalty: **The penalty applied to each character that is part of a word, number sequence, alphabet sequence, etc.** + +The penalty is a float number in the range [0, 1]. Full penalty, 0; no penalty, 1. + +The character used as decimal separator is always '.'. Hence, a parameter value like *0,33* would be illegal. + +The default value is *0.25*. + + outputformat: **The format of the returned analysis.** + +Allowed values are *json*, *xml* and *yaml*. + +The default value is *xml*. + + reqid: **An identifier for this request.** + +The request identifier is a string that must match the regular expression */(?i)^[a-z0-9]{8,16}$/*. + +This identifier is echoed in the returned response. Its value has no effect on the password analysis. + +If this parameter is unset, a randomly generated identifier will be automatically assigned to this request. + + + """ + url = f"https://arespass.p.rapidapi.com/ec" + querystring = {'password': password, } + if penalty: + querystring['penalty'] = penalty + if outputformat: + querystring['outputFormat'] = outputformat + if reqid: + querystring['reqId'] = reqid + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "arespass.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def ec(password: str, penalty: int=None, outputformat: str=None, reqid: str=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + " " + password: **The password to be analyzed.** + +Minimum length is 4 characters; maximum length is 128 characters. + +Beware that certain characters like '#', '=' or '?' must be properly encoded. + +For more information about this issue, please refer to RFC 3986 ("*Uniform Resource Identifier (URI): Generic Syntax*"), sections 2.1, 2.2 and 2.4. + + penalty: **The penalty applied to each character that is part of a word, number sequence, alphabet sequence, etc.** + +The penalty is a float number in the range [0, 1]. Full penalty, 0; no penalty, 1. + +The character used as decimal separator is always '.'. Hence, a parameter value like *0,33* would be illegal. + +The default value is *0.25*. + + outputformat: **The format of the returned analysis.** + +Allowed values are *json*, *xml* and *yaml*. + +The default value is *xml*. + + reqid: **An identifier for this request.** + +The request identifier is a string that must match the regular expression */(?i)^[a-z0-9]{8,16}$/*. + +This identifier is echoed in the returned response. Its value has no effect on the password analysis. + +If this parameter is unset, a randomly generated identifier will be automatically assigned to this request. + + + """ + url = f"https://arespass.p.rapidapi.com/ec" + querystring = {'password': password, } + if penalty: + querystring['penalty'] = penalty + if outputformat: + querystring['outputFormat'] = outputformat + if reqid: + querystring['reqId'] = reqid + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "arespass.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Tools/article_scraper.json b/toolbench/toolenv/tools/Tools/article_scraper.json new file mode 100644 index 0000000000000000000000000000000000000000..6b3128d73562de952f88835e06fae6f9cbe80a74 --- /dev/null +++ b/toolbench/toolenv/tools/Tools/article_scraper.json @@ -0,0 +1,32 @@ +{ + "product_id": "api_9b695d30-b1ec-43b8-9288-bb0e657ec002", + "tool_description": "Say hello to a world of information at your fingertips. Empower your research, content creation, and decision-making processes with our efficient and reliable Article Scraper Service. Don't let valuable data slip away - take the leap into seamless web scraping now!", + "home_url": "https://rapidapi.com/ptwebsolution/api/article-scraper3/", + "name": "Article Scraper", + "title": "Article Scraper", + "pricing": "FREEMIUM", + "tool_name": "Article Scraper", + "score": { + "avgServiceLevel": 100, + "avgLatency": 2156, + "avgSuccessRate": 100, + "popularityScore": 8.4, + "__typename": "Score" + }, + "host": "article-scraper3.p.rapidapi.com", + "api_list": [ + { + "name": "Scrape Article", + "url": "https://article-scraper3.p.rapidapi.com/v3/scrape_article", + "description": "Scrape Article", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://article-scraper3.p.rapidapi.com/v3/scrape_article\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"article-scraper3.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://article-scraper3.p.rapidapi.com/v3/scrape_article\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"article-scraper3.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": {} + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Tools/articles_generator.json b/toolbench/toolenv/tools/Tools/articles_generator.json new file mode 100644 index 0000000000000000000000000000000000000000..68f0978a093d1746e2c6702b8ba55a1b2cc115ef --- /dev/null +++ b/toolbench/toolenv/tools/Tools/articles_generator.json @@ -0,0 +1,51 @@ +{ + "product_id": "api_ff17260b-35b1-4a17-a6db-60e8870e13e5", + "tool_description": "Generate articles about specific subjects or niches, with specific word length, keyword density and multiple other parameters.", + "home_url": "https://rapidapi.com/millenia-api-millenia-api-default/api/articles-generator/", + "name": "Articles Generator", + "title": "Articles Generator", + "pricing": "FREEMIUM", + "tool_name": "Articles Generator", + "score": { + "avgServiceLevel": 60, + "avgLatency": 770, + "avgSuccessRate": 60, + "popularityScore": 7.6, + "__typename": "Score" + }, + "host": "articles-generator.p.rapidapi.com", + "api_list": [ + { + "name": "Get Generated Article By ID", + "url": "https://articles-generator.p.rapidapi.com/articles/get/2f14bf7a-b915-47ce-996e-b599abc04faf", + "description": "When using Generate New Article Endpoint, the article is saved, and can be accessed by the provided id", + "method": "GET", + "required_parameters": [ + { + "name": "article-id", + "type": "string", + "description": "Article ID that was outputted by the generate new article endpoint", + "default": "2f14bf7a-b915-47ce-996e-b599abc04faf" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://articles-generator.p.rapidapi.com/articles/get/2f14bf7a-b915-47ce-996e-b599abc04faf\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"articles-generator.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://articles-generator.p.rapidapi.com/articles/get/{article_id}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"articles-generator.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": { + "id": 6, + "lang": "french", + "category": "Story Book", + "content": "\n\nLeo Messi est \u00e0 juste titre consid\u00e9r\u00e9 comme le meilleur joueur de football de tous les temps. Son extraordinaire talent l'a pouss\u00e9 \u00e0 l'\u00e9lite mondiale et il est reconnu unanimement comme le GOAT (Greatest of All Time). Messi a fait ses d\u00e9buts \u00e0 Barcelone \u00e0 l'\u00e2ge de quinze ans dans un mouvement qui va \u00e0 l'encontre de la norme du foot moderne. Il est issu de La Masia, le fief de formation exclusive de Barcelone. La Masia est c\u00e9l\u00e8bre dans le monde entier et Messi est l'un des nombreux exemples de l'\u00e9cole c\u00e9l\u00e8bre.\n\nDepuis son arriv\u00e9e \u00e0 Barcelone, Messi a transform\u00e9 le club et ses performances l'ont amen\u00e9 \u00e0 sa renomm\u00e9e. Il a remport\u00e9 six Ballon d'Or et de nombreuses autres distinctions, ce qui a permis \u00e0 Barcelone de gagner plus de 34 troph\u00e9es. Il est un leader sur et en dehors du terrain et on le consid\u00e8re fr\u00e9quemment comme le joueur le plus d\u00e9terminant dans l'histoire du club.\n\nAnn\u00e9e apr\u00e8s ann\u00e9e, Messi continue de d\u00e9passer les attentes et a recentr\u00e9 l'attention sur la premi\u00e8re \u00e9quipe de Barcelone. Quand il quittera un jour le club, il laissera derri\u00e8re lui une trace ind\u00e9l\u00e9bile. D'ici l\u00e0, il continuera \u00e0 montrer le sens de l'espoir et de la travail d'\u00e9quipe qu'il a transmis \u00e0 son club et \u00e0 tous les fans, et maintiendra sa place de meilleur joueur de football de tous les temps.", + "uid": "2f14bf7a-b915-47ce-996e-b599abc04faf", + "subject": "leo messi", + "NParagraphs": 3, + "keywords": "[goat, best player ever, barcelona, la masia]", + "format": "plain text", + "articleLength": 500, + "createdAt": "2023-02-19T15:51:38.569Z", + "updatedAt": "2023-02-19T15:51:38.569Z" + } + } + ], + "standardized_name": "articles_generator" +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Tools/articles_generator/api.py b/toolbench/toolenv/tools/Tools/articles_generator/api.py new file mode 100644 index 0000000000000000000000000000000000000000..4ac545353756d088c978f472448f8171144c6429 --- /dev/null +++ b/toolbench/toolenv/tools/Tools/articles_generator/api.py @@ -0,0 +1,30 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def get_generated_article_by_id(article_id: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "When using Generate New Article Endpoint, the article is saved, and can be accessed by the provided id" + article_id: Article ID that was outputted by the generate new article endpoint + + """ + url = f"https://articles-generator.p.rapidapi.com/articles/get/{article_id}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "articles-generator.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Tools/ascii_and_binary_converter_api.json b/toolbench/toolenv/tools/Tools/ascii_and_binary_converter_api.json new file mode 100644 index 0000000000000000000000000000000000000000..d69c54fa0d570d091569b61b1cfb5b00f255ec49 --- /dev/null +++ b/toolbench/toolenv/tools/Tools/ascii_and_binary_converter_api.json @@ -0,0 +1,51 @@ +{ + "tool_name":"ASCII and BINARY CONVERTER API", + "tool_description":"Introducing the Text Converter API - a powerful tool for converting text to different formats. Our API allows you to easily convert text to ASCII or Binary with a simple GET request. It's easy to use and ideal for developers who need to process text data in their applications. With our API, you can quickly and easily convert text to the format you need, whether it's for data storage, analysis, or other purposes. We also provide an endpoint for the API documentation to help you understand how ...", + "title":"ASCII and BINARY CONVERTER API", + "pricing":"FREEMIUM", + "score":null, + "home_url":"https://rapidapi.com/enderdragoons1/api/ascii-and-binary-converter-api/", + "host":"ascii-and-binary-converter-api.p.rapidapi.com", + "api_list":[ + { + "name":"binary", + "url":"https://ascii-and-binary-converter-api.p.rapidapi.com/binary", + "description":"This endpoint takes a 'words' parameter as a string and converts it to binary. It uses the GET method and returns the result in json format. The input is passed through some validation before processing it, and it also uses caching mechanism to improve performance.", + "method":"GET", + "required_parameters":[ + { + "name":"words", + "type":"STRING", + "description":"", + "default":"hi dude" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://ascii-and-binary-converter-api.p.rapidapi.com/binary\"\nquerystring = {\"words\": words}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"ascii-and-binary-converter-api.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + }, + { + "name":"ASCII", + "url":"https://ascii-and-binary-converter-api.p.rapidapi.com/ascii", + "description":"This endpoint takes a 'words' parameter as a string and converts it to ASCII. It uses the GET method and returns the result in json format. The input is passed through some validation before processing it, and it also uses caching mechanism to improve performance.", + "method":"GET", + "required_parameters":[ + { + "name":"words", + "type":"STRING", + "description":"", + "default":"hey" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://ascii-and-binary-converter-api.p.rapidapi.com/ascii\"\nquerystring = {\"words\": words}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"ascii-and-binary-converter-api.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Tools/ascii_and_binary_converter_api/api.py b/toolbench/toolenv/tools/Tools/ascii_and_binary_converter_api/api.py new file mode 100644 index 0000000000000000000000000000000000000000..c7b6c7c43f7f2b1f89742811b5ed68e8ca4fc64b --- /dev/null +++ b/toolbench/toolenv/tools/Tools/ascii_and_binary_converter_api/api.py @@ -0,0 +1,50 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def binary(words: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "This endpoint takes a 'words' parameter as a string and converts it to binary. It uses the GET method and returns the result in json format. The input is passed through some validation before processing it, and it also uses caching mechanism to improve performance." + + """ + url = f"https://ascii-and-binary-converter-api.p.rapidapi.com/binary" + querystring = {'words': words, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "ascii-and-binary-converter-api.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def ascii(words: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "This endpoint takes a 'words' parameter as a string and converts it to ASCII. It uses the GET method and returns the result in json format. The input is passed through some validation before processing it, and it also uses caching mechanism to improve performance." + + """ + url = f"https://ascii-and-binary-converter-api.p.rapidapi.com/ascii" + querystring = {'words': words, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "ascii-and-binary-converter-api.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Tools/auto_mes/api.py b/toolbench/toolenv/tools/Tools/auto_mes/api.py new file mode 100644 index 0000000000000000000000000000000000000000..ba90a165f920e4fff6d06ccfe5795001fb1b9c59 --- /dev/null +++ b/toolbench/toolenv/tools/Tools/auto_mes/api.py @@ -0,0 +1,31 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def qr_code_api(url: str='ID%20lmk34k01', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "QR Code API EndPoint" + + """ + url = f"https://auto-mes.p.rapidapi.com/qr" + querystring = {} + if url: + querystring['url'] = url + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "auto-mes.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Tools/avatar_io_modern_avatar_placeholder_api.json b/toolbench/toolenv/tools/Tools/avatar_io_modern_avatar_placeholder_api.json new file mode 100644 index 0000000000000000000000000000000000000000..aa39b79910ebb892ec77b7f1aa1af47cb9fce357 --- /dev/null +++ b/toolbench/toolenv/tools/Tools/avatar_io_modern_avatar_placeholder_api.json @@ -0,0 +1,55 @@ +{ + "tool_name":"Avatar.io - MODERN AVATAR PLACEHOLDER API", + "tool_description":"Generate clean and modern avatar placeholders for your application", + "title":"Avatar.io - MODERN AVATAR PLACEHOLDER API", + "pricing":"FREEMIUM", + "score":{ + "avgServiceLevel":92, + "avgLatency":2541, + "avgSuccessRate":92, + "popularityScore":9, + "__typename":"Score" + }, + "home_url":"https://rapidapi.com/wirecryptocontact-h9qCX5pYMlJ/api/avatar-io-modern-avatar-placeholder-api/", + "host":"avatar-io-modern-avatar-placeholder-api.p.rapidapi.com", + "api_list":[ + { + "name":"Generate avatar", + "url":"https://avatar-io-modern-avatar-placeholder-api.p.rapidapi.com/avatar", + "description":"Generates the desired avatar and returns the image to the client.", + "method":"GET", + "required_parameters":[], + "optional_parameters":[ + { + "name":"randomizer", + "type":"STRING", + "description":"The default browser behavior is to cache responses that return from the same endpoint.\nIf your images are all returning the same, pass this param with ANY value to ensure you bypass this default behaviour and get random images for every request.", + "default":"anything" + }, + { + "name":"name", + "type":"STRING", + "description":"Specify the name for the avatar. Only the first character of this parameter will be shown in the avatar.", + "default":"John" + }, + { + "name":"bg-color", + "type":"STRING", + "description":"Specify a HEX CODE color for the background of the avatar. \nDo not include the # of the hex code as it will be ignored on api request.", + "default":"FF2029" + }, + { + "name":"text-color", + "type":"STRING", + "description":"Specify a HEX CODE color for the letter on the avatar. \nDo not include the # of the hex code as it will be ignored on api request.", + "default":"000000" + } + ], + "code":"import requests\n\nurl = \"https://avatar-io-modern-avatar-placeholder-api.p.rapidapi.com/avatar\"\nquerystring = {\"randomizer\": randomizer, \"name\": name, \"bg-color\": bg_color, \"text-color\": text_color}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"avatar-io-modern-avatar-placeholder-api.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Tools/avatar_io_modern_avatar_placeholder_api/api.py b/toolbench/toolenv/tools/Tools/avatar_io_modern_avatar_placeholder_api/api.py new file mode 100644 index 0000000000000000000000000000000000000000..a3fab45ec35a32aff41bcee7bb21bdefdfcb7b23 --- /dev/null +++ b/toolbench/toolenv/tools/Tools/avatar_io_modern_avatar_placeholder_api/api.py @@ -0,0 +1,44 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def generate_avatar(randomizer: str='anything', name: str='John', bg_color: str='FF2029', text_color: str='000000', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Generates the desired avatar and returns the image to the client." + randomizer: The default browser behavior is to cache responses that return from the same endpoint. +If your images are all returning the same, pass this param with ANY value to ensure you bypass this default behaviour and get random images for every request. + name: Specify the name for the avatar. Only the first character of this parameter will be shown in the avatar. + bg_color: Specify a HEX CODE color for the background of the avatar. +Do not include the # of the hex code as it will be ignored on api request. + text_color: Specify a HEX CODE color for the letter on the avatar. +Do not include the # of the hex code as it will be ignored on api request. + + """ + url = f"https://avatar-io-modern-avatar-placeholder-api.p.rapidapi.com/avatar" + querystring = {} + if randomizer: + querystring['randomizer'] = randomizer + if name: + querystring['name'] = name + if bg_color: + querystring['bg-color'] = bg_color + if text_color: + querystring['text-color'] = text_color + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "avatar-io-modern-avatar-placeholder-api.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Tools/aws_captcha_solver.json b/toolbench/toolenv/tools/Tools/aws_captcha_solver.json new file mode 100644 index 0000000000000000000000000000000000000000..553b31bc43141ef2fb32885300241f1bb6f87ddd --- /dev/null +++ b/toolbench/toolenv/tools/Tools/aws_captcha_solver.json @@ -0,0 +1,39 @@ +{ + "product_id": "api_9cb8cec9-3357-4cf9-bc10-87c5aa81e0f1", + "tool_description": "API to resolve AWS captcha", + "home_url": "https://rapidapi.com/antonypogrebenko-dxIYTT7OKOM/api/aws-captcha-solver/", + "name": "AWS Captcha Solver", + "title": "AWS Captcha Solver", + "pricing": "FREEMIUM", + "tool_name": "AWS Captcha Solver", + "score": null, + "host": "aws-captcha-solver.p.rapidapi.com", + "api_list": [ + { + "name": "Resolve AWS captcha (url)", + "url": "https://aws-captcha-solver.p.rapidapi.com/prod/solve-aws-captcha", + "description": "This endpoint expects a base64 encoded image of AWS captcha (or its URL) and solves it. Accuracy is 85%.", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://aws-captcha-solver.p.rapidapi.com/prod/solve-aws-captcha\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"aws-captcha-solver.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://aws-captcha-solver.p.rapidapi.com/prod/solve-aws-captcha\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"aws-captcha-solver.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": {} + }, + { + "name": "Resolve AWS captcha (base64)", + "url": "https://aws-captcha-solver.p.rapidapi.com/prod/solve-aws-captcha", + "description": "This endpoint expects a base64 encoded image of AWS captcha (or its URL) and solves it. Accuracy is 85%.", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://aws-captcha-solver.p.rapidapi.com/prod/solve-aws-captcha\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"aws-captcha-solver.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://aws-captcha-solver.p.rapidapi.com/prod/solve-aws-captcha\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"aws-captcha-solver.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": {} + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Tools/axieaccinfo.json b/toolbench/toolenv/tools/Tools/axieaccinfo.json new file mode 100644 index 0000000000000000000000000000000000000000..d56300b2fb57f43a998d58df85a79856b49829f8 --- /dev/null +++ b/toolbench/toolenv/tools/Tools/axieaccinfo.json @@ -0,0 +1,24 @@ +{ + "tool_name":"axieaccinfo", + "tool_description":"get axie infomation from aixe account", + "title":"axieaccinfo", + "pricing":"FREEMIUM", + "score":null, + "home_url":"https://rapidapi.com/karenlouiserichardson4907/api/axieaccinfo/", + "host":"axieaccinfo.p.rapidapi.com", + "api_list":[ + { + "name":"default", + "url":"https://axieaccinfo.p.rapidapi.com/", + "description":"default endpoint", + "method":"GET", + "required_parameters":[], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://axieaccinfo.p.rapidapi.com/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"axieaccinfo.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Tools/axieaccinfo/api.py b/toolbench/toolenv/tools/Tools/axieaccinfo/api.py new file mode 100644 index 0000000000000000000000000000000000000000..03ded6f11c79576d216da994ff920bd5206ed8ef --- /dev/null +++ b/toolbench/toolenv/tools/Tools/axieaccinfo/api.py @@ -0,0 +1,29 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def default(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "default endpoint" + + """ + url = f"https://axieaccinfo.p.rapidapi.com/" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "axieaccinfo.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Tools/backlink_indexer.json b/toolbench/toolenv/tools/Tools/backlink_indexer.json new file mode 100644 index 0000000000000000000000000000000000000000..028c6a603d16d3809cf319989ad14671222abd7b --- /dev/null +++ b/toolbench/toolenv/tools/Tools/backlink_indexer.json @@ -0,0 +1,46 @@ +{ + "tool_name":"Backlink Indexer", + "tool_description":"Submit your backlinks to get the indexed in Google, Yahoo, Bing and other major search engines.", + "title":"Backlink Indexer", + "pricing":"PAID", + "score":null, + "home_url":"https://rapidapi.com/ExoWatts/api/backlink-indexer/", + "host":"backlink-indexer.p.rapidapi.com", + "api_list":[ + { + "name":"index", + "url":"https://backlink-indexer.p.rapidapi.com/", + "description":"Submit a URL to be indexed.", + "method":"GET", + "required_parameters":[ + { + "name":"link", + "type":"STRING", + "description":"", + "default":"https://www.example.com" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://backlink-indexer.p.rapidapi.com/\"\nquerystring = {\"link\": link}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"backlink-indexer.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":200, + "body":{ + "status":"success" + }, + "headers":{ + "access-control-allow-credentials":"true", + "access-control-allow-origin":"*", + "alt-svc":"h3=\":443\"; ma=86400, h3-29=\":443\"; ma=86400", + "cf-cache-status":"DYNAMIC", + "cf-ray":"76eab7d13fe37fbe-IAD", + "content-type":"application/json; charset=UTF-8", + "date":"Wed, 23 Nov 2022 14:50:35 GMT", + "nel":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}", + "report-to":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=LpPC2p%2B4tpSOdBrrBENC8GQvtwdngRMhwsotK1EzQ46DWNjvqGWrnjB5f0aSOuzYY1ukqL5DDRzz6K2ZRv1QzrT1mkWClA2FG%2B5MVgGBBVQ%2B8sRDTcFj7npApN0HXGrocpze\"}],\"group\":\"cf-nel\",\"max_age\":604800}", + "server":"RapidAPI-1.2.8", + "x-rapidapi-region":"AWS - us-east-1", + "x-rapidapi-version":"1.2.8" + }, + "schema":{} + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Tools/backlink_indexer/api.py b/toolbench/toolenv/tools/Tools/backlink_indexer/api.py new file mode 100644 index 0000000000000000000000000000000000000000..77f5a80f690048b08e977528ffe881bd2d6986b6 --- /dev/null +++ b/toolbench/toolenv/tools/Tools/backlink_indexer/api.py @@ -0,0 +1,29 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def index(link: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Submit a URL to be indexed." + + """ + url = f"https://backlink-indexer.p.rapidapi.com/" + querystring = {'link': link, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "backlink-indexer.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Tools/bad_word_filter.json b/toolbench/toolenv/tools/Tools/bad_word_filter.json new file mode 100644 index 0000000000000000000000000000000000000000..15b3dc8cf5f9035794b6fdef3fd2468f6e840a05 --- /dev/null +++ b/toolbench/toolenv/tools/Tools/bad_word_filter.json @@ -0,0 +1,46 @@ +{ + "product_id": "53aa5825e4b0b60946a2fcfc", + "tool_description": "Detect and censor bad words, swear words and profanity in a given text.\r\nCurrently works with an English only database which includes \"leetspeak\".", + "home_url": "https://rapidapi.com/neutrinoapi/api/bad-word-filter/", + "name": "Bad Word Filter", + "title": "Bad Word Filter", + "pricing": "FREE", + "tool_name": "Bad Word Filter", + "score": { + "avgServiceLevel": 100, + "avgLatency": 52, + "avgSuccessRate": 74, + "popularityScore": 9.7, + "__typename": "Score" + }, + "host": "neutrinoapi-bad-word-filter.p.rapidapi.com", + "api_list": [ + { + "name": "Bad Word Filter", + "url": "https://neutrinoapi-bad-word-filter.p.rapidapi.com/bad-word-filter", + "description": "", + "method": "POST", + "required_parameters": [ + { + "name": "content", + "type": "STRING", + "description": "The text content to check. This can be either a URL to load content from or an actual content string", + "default": "This text does not actually contain any bad words!" + } + ], + "optional_parameters": [ + { + "name": "censor-character", + "type": "STRING", + "description": "The character to use to censor out the bad words found", + "default": "*" + } + ], + "code": "import requests\n\nurl = \"https://neutrinoapi-bad-word-filter.p.rapidapi.com/bad-word-filter\"\nquerystring = {\"content\": \"This text does not actually contain any bad words!\", \"censor-character\": \"*\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"neutrinoapi-bad-word-filter.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://neutrinoapi-bad-word-filter.p.rapidapi.com/bad-word-filter\"\nquerystring = {\"content\": \"This text does not actually contain any bad words!\", \"censor-character\": \"*\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"neutrinoapi-bad-word-filter.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Tools/badword.json b/toolbench/toolenv/tools/Tools/badword.json new file mode 100644 index 0000000000000000000000000000000000000000..96fa4d265faa7458fe11ea08f26a58f24a682ad9 --- /dev/null +++ b/toolbench/toolenv/tools/Tools/badword.json @@ -0,0 +1,24 @@ +{ + "tool_name":"badword", + "tool_description":"API filter and censor bad word in the text", + "title":"badword", + "pricing":"FREEMIUM", + "score":null, + "home_url":"https://rapidapi.com/jetaiyahill325/api/badword/", + "host":"badword.p.rapidapi.com", + "api_list":[ + { + "name":"default", + "url":"https://badword.p.rapidapi.com/", + "description":"default endpoint", + "method":"GET", + "required_parameters":[], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://badword.p.rapidapi.com/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"badword.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Tools/badword/api.py b/toolbench/toolenv/tools/Tools/badword/api.py new file mode 100644 index 0000000000000000000000000000000000000000..02bfb1ca530ace41f28e69b919434a06dccefac8 --- /dev/null +++ b/toolbench/toolenv/tools/Tools/badword/api.py @@ -0,0 +1,29 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def default(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "default endpoint" + + """ + url = f"https://badword.p.rapidapi.com/" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "badword.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Tools/bangladesh_routing_numbers_validation.json b/toolbench/toolenv/tools/Tools/bangladesh_routing_numbers_validation.json new file mode 100644 index 0000000000000000000000000000000000000000..921c61be49983bbdf96c27f5c0b7ab5e97190c09 --- /dev/null +++ b/toolbench/toolenv/tools/Tools/bangladesh_routing_numbers_validation.json @@ -0,0 +1,31 @@ +{ + "tool_name":"Bangladesh Routing Numbers Validation", + "tool_description":"API Checks Bangladesh Routing Numbers for its length & check Digits by the algorithm required for the validation of the Bangladesh Routing Numbers.", + "title":"Bangladesh Routing Numbers Validation", + "pricing":"PAID", + "score":null, + "home_url":"https://rapidapi.com/sisinfo-sisinfo-default/api/bangladesh-routing-numbers-validation/", + "host":"bangladesh-routing-numbers-validation.p.rapidapi.com", + "api_list":[ + { + "name":"Bangladesh Routing Numbers Validation", + "url":"https://bangladesh-routing-numbers-validation.p.rapidapi.com/", + "description":"API Validates Bangladesh Routing Numbers by the method prescribed for verifying the Bangladesh Routing Numbers. This API helps in ensuring accuracy of Bangladesh Routing Numbers.", + "method":"GET", + "required_parameters":[ + { + "name":"rtn", + "type":"STRING", + "description":"", + "default":"035010049" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://bangladesh-routing-numbers-validation.p.rapidapi.com/\"\nquerystring = {\"rtn\": rtn}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"bangladesh-routing-numbers-validation.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Tools/bangladesh_routing_numbers_validation/api.py b/toolbench/toolenv/tools/Tools/bangladesh_routing_numbers_validation/api.py new file mode 100644 index 0000000000000000000000000000000000000000..9dc7020b41a4059ae03ab2968ece183a784f07de --- /dev/null +++ b/toolbench/toolenv/tools/Tools/bangladesh_routing_numbers_validation/api.py @@ -0,0 +1,29 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def bangladesh_routing_numbers_validation(rtn: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "API Validates Bangladesh Routing Numbers by the method prescribed for verifying the Bangladesh Routing Numbers. This API helps in ensuring accuracy of Bangladesh Routing Numbers." + + """ + url = f"https://bangladesh-routing-numbers-validation.p.rapidapi.com/" + querystring = {'rtn': rtn, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "bangladesh-routing-numbers-validation.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Tools/bar_qr_code_generator.json b/toolbench/toolenv/tools/Tools/bar_qr_code_generator.json new file mode 100644 index 0000000000000000000000000000000000000000..5a432c3203f2c01290552c299eee68509d829260 --- /dev/null +++ b/toolbench/toolenv/tools/Tools/bar_qr_code_generator.json @@ -0,0 +1,141 @@ +{ + "tool_name": "Bar QR Code Generator", + "tool_description": "Generate barcodes and QR codes.", + "title": "Bar QR Code Generator", + "pricing": "FREEMIUM", + "score": { + "avgServiceLevel": 39, + "avgLatency": 1389, + "avgSuccessRate": 39, + "popularityScore": 8.7, + "__typename": "Score" + }, + "home_url": "https://rapidapi.com/wynk182-svWIc_g9LHP/api/bar-qr-code-generator/", + "host": "bar-qr-code-generator.p.rapidapi.com", + "api_list": [ + { + "name": "generate", + "url": "https://bar-qr-code-generator.p.rapidapi.com/encoded/api", + "description": "Generate encoded data", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://bar-qr-code-generator.p.rapidapi.com/encoded/api\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"bar-qr-code-generator.p.rapidapi.com\"\n}\n\nresponse = requests.post(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 200, + "body": { + "codes": [ + { + "png": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJEAAACRAQAAAADro2eOAAABYElEQVR4nM1WMW7DMAwkYwPWZv9AeonkPiuDEzkJ0G/FzkekH1ibBCRlaW9F0qkhUE7SDTyQIu+0o6fwO3iO/49NiKgmrKOCxMedBAdye8DRYPIMR6KrSG0JDVBXhXKAB6q/5/sNw+h1e3pfvtfYA9+b7yfWUgDS58C3irIIB/EwwS0Wx7cRsZfgcDxXmbSHtSKiL5H96EajLEAsfWKiWWZ2fcwYzwS25bYdJDgsVEFNejAwJwp0kuCY28Flt1SB2QBkdtDCcVKEPjZjd4HUS3DcFgDeiodLH1RcIzJX1F20QjoHZVMThHQ3Fkx9GpDHdm+aq4yW1Lodda0zVxTfkO8Fxm8e+D2q0Ex016UX80G37Nk6eBtlerX5IMBnSH3rIVsxH5xXqSKstZBerUG6GF6N4ySj7VtY7tWqKkbGozYfvEXWRBdrIb3afHAL/vsEmb/P5oOWLZD9w2uQmStx7BtTbauR9McRDQAAAABJRU5ErkJggg==", + "data": "Data to be encoded", + "format": "png", + "type": "qr_code" + }, + { + "png": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAP0AAAB4AQAAAAARM8k6AAAAeElEQVR4nGP6jx/8YGIgAEYVwBScqa7Iequ3Yoq5+COvOVV+T89ZzN+x/FH86YIaA9/HCwaJI0cVjCoYVTCqYFTBqIJRBaMKRhWMKhhVMKqASAUmrR3ThC9F5Jx8KbctpW2TtNGJRI9IuYWmE1oubJZNGCSOHAIKAEuMPsr3Xm/RAAAAAElFTkSuQmCC", + "data": "Data to be encoded", + "format": "png", + "type": "code_128b" + }, + { + "svg": "\n\nData to be encoded\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n", + "data": "Data to be encoded", + "format": "svg", + "type": "qr_code" + } + ] + }, + "headers": { + "access-control-allow-credentials": "true", + "access-control-allow-origin": "*", + "cache-control": "max-age=0, private, must-revalidate", + "connection": "keep-alive", + "content-type": "application/json; charset=utf-8", + "date": "Tue, 11 Jan 2022 21:13:26 GMT", + "etag": "W/\"fba6b9dbc011236738970355da4df541\"", + "referrer-policy": "strict-origin-when-cross-origin", + "server": "RapidAPI-1.2.8", + "transfer-encoding": "chunked", + "via": "1.1 vegur", + "x-content-type-options": "nosniff", + "x-download-options": "noopen", + "x-frame-options": "SAMEORIGIN", + "x-permitted-cross-domain-policies": "none", + "x-rapidapi-region": "AWS - us-east-1", + "x-rapidapi-version": "1.2.8", + "x-request-id": "1eb55a80-b6b7-4762-b850-abc210413d29", + "x-runtime": "0.080453", + "x-xss-protection": "1; mode=block" + }, + "schema": {} + }, + { + "name": "download", + "url": "https://bar-qr-code-generator.p.rapidapi.com/encoded/api/download", + "description": "Generate and download a single barcode.", + "method": "GET", + "required_parameters": [ + { + "name": "type", + "type": "STRING", + "description": "The type of barcode can be one of qr_code, code_128a, code_128b, code_128c, code_25, code_25_interleaved, code_25_iata, code_39, code_93, gs1_128, ean_13, bookland, ean_8, upc_supplemental, codabar", + "default": "qr_code" + }, + { + "name": "data", + "type": "STRING", + "description": "The data to be encoded", + "default": "https://www.wynk182.com" + } + ], + "optional_parameters": [ + { + "name": "size", + "type": "NUMBER", + "description": "", + "default": "5" + } + ], + "code": "import requests\n\nurl = \"https://bar-qr-code-generator.p.rapidapi.com/encoded/api/download\"\nquerystring = {\"type\": type, \"size\": size, \"data\": data}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"bar-qr-code-generator.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode": 200, + "body": "\ufffdPNG\r\n\u001a\n\u0000\u0000\u0000\rIHDR\u0000\u0000\u0000\ufffd\u0000\u0000\u0000\ufffd\u0001\u0000\u0000\u0000\u0000\ufffdg\ufffd\u0000\u0000\u0001^IDATx\ufffd\ufffdUA\ufffd\ufffd0\f\ufffdY$\ufffd%?\b\u001f)\ufffdgU\ufffd\u06ec\ufffd\u0133\ufffd\ufffd\u001f!? \ufffdD\ufffd\ufffd\ufffdnO\ufffd\ufffdi\ufffd\ufffd>%>xb\ufffd\u0113\ufffdS\ufffd\f\ufffd\ufffd\ufffd\ufffd\u001c\"\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffdL\u0002\u0003y<\ufffd>_o'\ufffdQ\ufffd\ufffd\ufffd\u00158\ufffd\u00195\ufffd\u0015\u02ff\ufffd\ufffd-W\ufffd0\ufffdv\ufffdz\ufffdr8w\ufffd\ufffd\ufffd\ufffdS4\u0001\u0019\ufffd\ufffd\ufffd(\ufffd`\u0010\ufffd\t.\ufffdX1\u001f\u001f\ufffd\ufffd\u0004F\u00fa\ufffd\ufffd\ufffd\ufffdZ\ufffd\ufffd&\ufffd?\ufffd\ufffd\ufffdy\ufffd\ufffd\u001f\u000bB\ufffdR\u05ac,\u0018r3@yL\ufffd\ufffd>\ufffdQ\u0002\ufffd\f\ufffdfe\u0001\u029d\ufffd\f\u001f;,\ufffd\ba\ufffd\ufffdgfd\ufffd\ufffd\ufffd\ufffd\ufffdM1\ufffdc>dfU\ufffd\ufffdD\u00062\ufffdcf\ufffd\ufffdG=|\ufffd\ufffd\rv\ufffdz\ufffdrw\u001f\ufffd\ufffd\ufffd\u001a\ufffd\u0015\ufffd\ufffd\ufffd\u0007A\ufffd*\u0012\ufffdZ1\ufffdj|n\ufffd\ufffd\u0005Jd\ufffd\u0783\u007f\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\u0107\u000f.^\ufffd\ufffd\ufffd\ufffd.\ufffd8\ufffd&\ufffd\ufffd \ufffd}\ufffd>X\ufffdib\u000b\ufffd}%\u01c7h\ufffd\u000b\ufffd\ufffd\ufffd\ufffd\ufffd\u0006\u0016\ufffd\u0000\u0000\u0000\u0000IEND\ufffdB`\ufffd", + "headers": { + "access-control-allow-credentials": "true", + "access-control-allow-origin": "*", + "cache-control": "private", + "connection": "keep-alive", + "content-disposition": "attachment; filename=\"211d6da3.png\"; filename*=UTF-8''211d6da3.png", + "content-length": "407", + "content-transfer-encoding": "binary", + "content-type": "image/png", + "date": "Tue, 11 Jan 2022 21:24:26 GMT", + "etag": "W/\"86af693533c718e81f29a38e2a7bd139\"", + "referrer-policy": "strict-origin-when-cross-origin", + "server": "RapidAPI-1.2.8", + "via": "1.1 vegur", + "x-content-type-options": "nosniff", + "x-download-options": "noopen", + "x-frame-options": "SAMEORIGIN", + "x-permitted-cross-domain-policies": "none", + "x-rapidapi-region": "AWS - us-east-1", + "x-rapidapi-version": "1.2.8", + "x-request-id": "fbb9c166-ba92-488d-87df-7273b4122e4a", + "x-runtime": "0.087069", + "x-xss-protection": "1; mode=block" + }, + "schema": {} + }, + { + "name": "generate", + "url": "https://bar-qr-code-generator.p.rapidapi.com/encoded/api", + "description": "Generate encoded data", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://bar-qr-code-generator.p.rapidapi.com/encoded/api\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"bar-qr-code-generator.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://bar-qr-code-generator.p.rapidapi.com/encoded/api\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"bar-qr-code-generator.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": {} + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Tools/bar_qr_code_generator/api.py b/toolbench/toolenv/tools/Tools/bar_qr_code_generator/api.py new file mode 100644 index 0000000000000000000000000000000000000000..d3e0710c88bb23153d0041e8ec0af23505876078 --- /dev/null +++ b/toolbench/toolenv/tools/Tools/bar_qr_code_generator/api.py @@ -0,0 +1,33 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def download(type: str, data: str, size: int=5, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Generate and download a single barcode." + type: The type of barcode can be one of qr_code, code_128a, code_128b, code_128c, code_25, code_25_interleaved, code_25_iata, code_39, code_93, gs1_128, ean_13, bookland, ean_8, upc_supplemental, codabar + data: The data to be encoded + + """ + url = f"https://bar-qr-code-generator.p.rapidapi.com/encoded/api/download" + querystring = {'type': type, 'data': data, } + if size: + querystring['size'] = size + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "bar-qr-code-generator.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Tools/barcode_generator.json b/toolbench/toolenv/tools/Tools/barcode_generator.json new file mode 100644 index 0000000000000000000000000000000000000000..be4fa355d9add04a560468eb1165250aad5efc83 --- /dev/null +++ b/toolbench/toolenv/tools/Tools/barcode_generator.json @@ -0,0 +1,177 @@ +{ + "tool_name":"Barcode Generator", + "tool_description":"Generate 20+ types of barcodes with colors and text styling for your app. NodeJS backed super fast response. Available types: CODE39, CODE128, CODE128A, CODE128B, CODE128C, EAN13, EAN8, EAN5, EAN2, UPC, UPCE, ITF14, ITF, MSI, MSI10, MSI11, MSI1010, MSI1110, pharmacode, codabar.", + "title":"Barcode Generator", + "pricing":"FREEMIUM", + "score":{ + "avgServiceLevel":99, + "avgLatency":62, + "avgSuccessRate":99, + "popularityScore":9.6, + "__typename":"Score" + }, + "home_url":"https://rapidapi.com/appcon-software-appcon-software-default/api/barcode-generator4/", + "host":"barcode-generator4.p.rapidapi.com", + "api_list":[ + { + "name":"Generate Barcode v2", + "url":"https://barcode-generator4.p.rapidapi.com/", + "description":"Generate Barcode with the supplied \"text\" parameter. There are 20 Barcode Types. Refer to the Docs section for details.", + "method":"GET", + "required_parameters":[ + { + "name":"text", + "type":"STRING", + "description":"The text that will be converted to a barcode.\nDefault: 12345678910", + "default":"12345678910" + } + ], + "optional_parameters":[ + { + "name":"mod43", + "type":"BOOLEAN", + "description":"Only applicable for **CODE39** \nCODE39 can be used with an optional Modulo 43 check digit. You can do this by setting the mod43 option to true. If you want to use this feature, you need to enable it in the barcode reader. \nDefault: false", + "default":"false" + }, + { + "name":"lineColor", + "type":"STRING", + "description":"Bar and text color of the barcode in hexadecimal color code.\nDefault: #000000", + "default":"#000000" + }, + { + "name":"ean128", + "type":"BOOLEAN", + "description":"Only applicable for **CODE128**\nCODE128 can be encoded as GS1-128/EAN-128. Set the **ean128** to **true** to use this feature.\nDefault: false", + "default":"false" + }, + { + "name":"marginBottom", + "type":"NUMBER", + "description":"Margin on the bottom side of the barcode. Setting this will override the **margin **parameter value.\nDefault: 10", + "default":"10" + }, + { + "name":"width", + "type":"NUMBER", + "description":"The width of a single bar.\nDefault: 4", + "default":"4" + }, + { + "name":"flat", + "type":"BOOLEAN", + "description":"Only applicable for **EAN13**/**EAN8**/**UPC**/ **UPCE**\nEAN13, EAN8, UPC and UPCE barcodes can be rendered without guard bars. If you want a flat rendering, you can specify the flat option and skip the guard bars.\nDefault: false", + "default":"false" + }, + { + "name":"textPosition", + "type":"ENUM", + "description":"Vertical position of the text value. Select from top/bottom.\nDefault: bottom", + "default":"" + }, + { + "name":"margin", + "type":"NUMBER", + "description":"Set the space margin around the barcode. If nothing else is set, all sides will inherit this margin property, but they can also be set separately.\nDefault: 10", + "default":"10" + }, + { + "name":"marginTop", + "type":"NUMBER", + "description":"Margin on the top side of the barcode. Setting this will override the **margin **parameter value.\nDefault: 10", + "default":"10" + }, + { + "name":"marginLeft", + "type":"NUMBER", + "description":"Margin on the left side of the barcode. Setting this will override the **margin **parameter value.\nDefault: 10", + "default":"10" + }, + { + "name":"background", + "type":"STRING", + "description":"Background color of the barcode in hexadecimal color code.\nDefault: #ccffff", + "default":"#ccffff" + }, + { + "name":"fontSize", + "type":"NUMBER", + "description":"Font size of the text value.\nDefault: 20", + "default":"20" + }, + { + "name":"textMargin", + "type":"NUMBER", + "description":"The gap between text and barcode.\nDefault: 2", + "default":"2" + }, + { + "name":"marginRight", + "type":"NUMBER", + "description":"Margin on the right side of the barcode. Setting this will override the **margin **parameter value.\nDefault: 10", + "default":"10" + }, + { + "name":"displayValue", + "type":"BOOLEAN", + "description":"Show/hide the text of the barcode.\nDefault: true.", + "default":"true" + }, + { + "name":"textAlign", + "type":"ENUM", + "description":"Horizontal alignment of the text. Select from left/center/right.\nDefault: center", + "default":"" + }, + { + "name":"height", + "type":"NUMBER", + "description":"The height of the barcode.\nDefault: 40", + "default":"40" + }, + { + "name":"barcodeType", + "type":"ENUM", + "description":"Select one from the following barcode type: CODE39, CODE128, CODE128A, CODE128B, CODE128C, EAN13, EAN8, EAN5, EAN2, UPC, UPCE, ITF14, ITF, MSI, MSI10, MSI11, MSI1010, MSI1110, pharmacode, codabar.\nDefault: **CODE128**", + "default":"" + } + ], + "code":"import requests\n\nurl = \"https://barcode-generator4.p.rapidapi.com/\"\nquerystring = {\"mod43\": mod43, \"lineColor\": linecolor, \"ean128\": ean128, \"marginBottom\": marginbottom, \"width\": width, \"flat\": flat, \"margin\": margin, \"marginTop\": margintop, \"marginLeft\": marginleft, \"background\": background, \"fontSize\": fontsize, \"textMargin\": textmargin, \"marginRight\": marginright, \"displayValue\": displayvalue, \"height\": height, \"text\": text}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"barcode-generator4.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":200, + "body":{ + "status":"success", + "msg":"", + "barcode":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAdQAAABSCAYAAADtuSUdAAAABmJLR0QA/wD/AP+gvaeTAAAO/ElEQVR4nO3ce3hNV+LG8e9xyQUJFYTENSGUpEwbBHVNqxRpqHZcWo2QqtTTH9qmGUN/VFstUzXqEloUMwaV1LRBXOIuNC4pSqoiKo07UakQSZzMH5EzPTmHBHvc+n6eJ39k7bXXWnufPOfN2nvtbdqVn5+PiIiI3JFS93oAIiIiDwMFqoiIiAEUqCIiIgZQoIqIiBhAgSoiImIABaqIiIgBFKgiIiIGUKCKiIgYQIEqIiJigDIlrehvMt10+64iL1wqWr/o9lttv7j+imuvuPHdafvFudPxFud/fbzF9Vece308Rh9/Ubc6XqP/voq62+frTv8e7vTzNrq/oow+vuLq32n/d9r+//p83e3vm7v1/agZqoiIiAEUqCIiIgZQoIqIiBhAgSoiImIABaqIiIgBFKgiIiIGUKCKiIgYQIEqIiJiAAWqiIiIARSoIiIiBlCgioiIGECBKiIiYgAFqoiIiAEUqCIiIgZQoIqIiBhAgSoiImIABaqIiIgBFKgiIiIGUKCKiIgYQIEqIiJiAAWqiIiIARSoIiIiBlCgioiIGECBKiIiYgAFqoiIiAEUqCIiIgZQoIqIiBhAgSoiImIABaqIiIgBFKgiIiIGUKCKiIgYQIEqIiJiAAWqiIiIARSoIiIiBlCgioiIGECBKiIiYgAFqoiIiAEUqCIiIgZQoIqIiBjAtCs/P/9eD0JERORBpxmqiIiIARSoIiIiBlCgioiIGECBKiIiYgAFqoiIiAEUqCIiIgZQoIqIiBhAgSoPhP07djA1IoJXO3Sgnasr/iYTo/r2tVv38qVLrFy4kBE9ehDk5UWbcuXo2aABEb17s3/HDpv6GWfOMPWddwhr144uHh60dnIiyMuLkUFB7Fy/vkTjmzdhAv4mE/4mE7+kpNhsb1m2rGV70Z/oqCi7bWZeuMBnkZH0atiQ1s7OdHJzI7RNG+IWLbKq9+7LL9+w7cKf6aNGWe2Tm5PD/I8/5mV/fzpVrkyHSpXo16wZCyZN4kpWlu05/e03pkZEEFy/PgEODnR85BGGPfMMuzdutDv2W/m8Cu3ZvJmhgYG0c3GhbYUKDOnYkV0bNtx0H5H7SZl7PQCRkoidP5/oqCjKubhQ1cODY4cO3bDumsWLeT8sDAcnJ7waN6Zhs2YcP3qU9dHRbFy+nPELF/LM777cj6emsmDiRGp6e1Pfz48KFSty/tQptq5YwZbYWCJnzOD51167YX9HfviBz8eNw8HRkZyrV29Yr6KbG4HPP29TXq9xY5uyM+nphLVvz/HUVGrUqUObrl3Jy83laHIyG77+mi79+lnq+nfsiFO5cnb73LpyJWfS02neqZNV+Tu9e7P522+p7eNDtwEDANixZg1TIyJYHx3NF1u2UKZsWQBysrMZ0rEjybt349WkCb2GDOHSxYtsiIlhaGAgk2JiaP/cc1bt38rnBZAQF8fw7t1xdHLi6RdfxFSqFGuXLCH86af5W0wM7YKCbrq/yP1Ab0qSB8LBXbtwdHKi3qOPsm3VKkb06EHnPn348F//sqm7dcUKjiYn0zMsjAoVK1rKY2bN4sPXXsOlUiXiTpzA0dkZgKzMTC5fukRVDw+rdg4kJhLWrh1lypZlzenTdkPrWl4eIQEBeNSrx88//siRH37g68OHqVW/vlW9lmXL4u3ry6KkpBId7xtdu5IQF8ewCRMYEBFBqVL/vZh04exZHqlatdg2Ll28SFdPTyq7u7M8JQWTyQQUzB4HtmpF3UaNWJSUhIOTE1Awa33Z35+U/fuZEhvLk926AbBs5kw+Cg+neadOfBYXZwna1AMHeMnfn0pubvw7NZWyDg6Wvm/l88rLzaWXjw+n0tL4fPNmmrZpAxSc/9A2bXCrXp3lKSk4ODqW6NyJ3Cu65CsPhMb+/nj7+lKqdOli6z7ZrRsvv/WWVZgC9BoyBPdatfjt119J2b/fUl7e1dUmTAGatGhBvcaNuXzpEsdTU+329eVHH/FLSgpv/f3vt3hEN5Z64AAJcXG07d6dkMhIqzAFShSmACsWLOBKVhbBgwdbwhTg5LFjAPgFBFjCFKCsg4MlzH49d85SnrhuHQAvhIdbwhTAq0kTAp9/njPHj7Nn0yarvm/l89qzaRMnfv4Z34AAS/9QcP6faN+eM+npfLd2bYmOWeRe0iVf+UNxLl8egHIuLsXW/WnvXo4mJ+Pg5ET12rVttqfs388X48fz5pQpdgO5qMyMDGaOGcO5kycp7+LCEx060LZHD5vA3L56NQBd+vXj4vnzxEdHk3H6NNU8PWnbo0eJAzU6KorSZcrQIyTEqty7SRNMJhP7tm/n6pUrlpl6ztWrJG3ZgoOTE4+3b2+pfzEjA4Cqnp42fdSoUwcomE22fPrpEo2rqL0JCQC07tLFZlurLl1IjI/n+61badu9+221L3K3KFDlD+NQUhLHDh2ibqNG1G3UyGZ7xpkzRI0ZQ15eHqeOHWP3pk3k5+fz1pQplHd1taqbl5vL2JAQHvX3p9eQISXq/1RaGnPef9/y+6IpU2jcvDlTvv2Wyu7ulvLUgwcBOH/qFD0bNCDzwgXLtnIVKjB2/nw69ep10772bNpE6sGDdAgOpkqNGlbbvH196Tt8OIs+/ZQXfX0J6NwZk8nEd2vXciUri4+WLsWjbl1L/YpubgCcPXHCpp/C2e7xo0dLdA7sST9yBIBq1wN72cyZmM1mXggPx71mTas6IvczXfKVP4Tsy5cZ3b8/JpOJiGnTrC6BFsrKzCRm9my+mTuXxPh4yru48Mny5bw4bJhN3XkTJpCyfz9/nTXLZoZpT0hkJP/cs4dNFy8Sf+4cU1euxNvXl4M7dzK6f3+rur9dD9BZY8fSITiYb44eZcOFC/z/vHmYzWZG9+9/w0vQhZZdXzncMyzM7vaRkycTOWMG506eJDoqimUzZ3IqLY1nX3qJpq1bW9UtXNC0bOZM8nJzLeVHk5OJj44GClYB367CfV0rV+ZAYiIfhYczcdgwdm/caAnzrMzM225f5G5RoMpDz3ztGuMGDuRocjL/N2kSLQID7darVb8+u/LzScjOZvG+fTzZrRtvBgezdNo0q3o/7d3L3A8+YMDbb+Pt61uiMQwdP56Gf/oT5V1dqejmRuuuXZmxdi2ulSuTGB/P4X37LHUL1wnWqFOH0V98gUfdurhUqkSPkBBefP11crKz+WbevBv2lXH6NBtiYnCvVYtWzzxjsz0/P5+Jw4YxecQI3vz0U9adPUv8uXNEzpjB0unTeaVlS6tZcdDAgfg0bUriunX0f/xxJr3xBu8OGMArLVrgFxAAYPcflNvh6eVFbR8favv44GVn9bPI/UyBKg81s9nM2IEDWbt0KWHvvkv/kSOL3cfB0ZH6fn6MW7CAJ9q352/Dh1stYhobEkL12rUZNHr0HY3NrXp1Wj71FADJu3dbyp0rVAAgoHNnm9lv4b3N3wdwUcvnzCE3J4fnQkPtLgpau2QJS6dPp+/w4fQaMoRKVapQ0c2N5wYNYkBEBOlHjrB46lRLfUdnZ2Zv2kS/ESO4kpVFdFQUSZs388o779B/xAgAXB555DbPwn/vZ2dmZFCpShViDh0i5tAhKru7c/H8eQCbS+4i9yPdQ5WHltls5v3Bg1m5cCEhkZEMGTfulvY3mUw0Dwxk5/r17Fizhvp+fgD89P33ALS5wbOfPRs0AGDd2bNUqlLlpn0UrkTO/d3zq4X3L+2FSGH45GRn223PfO0aX8+eTanSpQkKDbVbJyEuDsAyu/y9ZtdX2Sbv2mUzzpGTJzNy8mSr8n988glQsNDpdtX09gbgzPHjNttOp6cD2DyGJHI/UqDKQ8lsNjN+0CC+/fJLBv7lL7z+4Ye31c6ptDTAOsB6vfqq3brrli0jMyODzn36UMHV1eqRFHvy8/M5kJgIWAdGkxYtAOy+DKHoAp6itq1axcljx2jz7LN2VyZDwfOpUDAjLOrX6zNCs9l807EX1omdPx+TyUSAnUvLJVV4z3b76tUMHjPGalvhiuffP04jcr9SoMpDx2w2815oKLHz5xM6ahThH3xw0/rxy5ZR28eHBo89ZlW+ffVqYr/8EoAnOnSwlI+aNctuO3sTEsjMyGDo+PFWAbl99Wo86talTsOGlrJreXnMHjeOn/buxb1WLZq1bWvZ1iIwkMrVqhG/bBkDIiLwadoUgKtXrvDV9OkAlpcuFFX4GsPgwYNveLxNWrRg4/LlLJk2jc59+lheWJGTnc2Szz4D4PF27az2+SUlhZre3pZ7pXm5uXxy/VJ4u6Agal+fld+Ox9u3x6NuXfbv2MG+hAQeux6wB3fuZPfGjVTz9LztR3JE7ia9KUkeCD989x3fzJ0LFMwaE+LiqOntbVlg5NOsGb2HDgXgn5Mn8+mbb97wVX9QEDiNmzcHYFTfvqxZvJia3t54ennhXL48x1NTLfcpew8dSuSMGcWO8c9+fnbflPR+WBj/njOHOg0b4unlhclk4vC+fZz+5Recy5dnSmysVWBDwesT/9qvH47OznTs2ZMKFSvy3dq1pB0+TEDnzkxdtcrm/uqJn38m2Nubyu7urEhLo3QZ+/8vZ2VmMrBVK1IPHqRGnTq06tLF8thM+pEjNHjsMeZs20a56/dyAd7q2ZNDSUnU9/OjVOnSHEhM5NzJk9Ru0IBZGzfaPId7K58XwLaVKxkRFGR59SAmE+uWLiX78mUmRkfTITi42PMvcq9phioPhLTDh4mZPduqLP3IEcsl0A7BwZYv6MIVqhfPn7fZp5B/x46WQH0hPJxKbm58v20bh/ft47cLF6hWsyatu3QhKDSUp1544Y7GHti7N5kZGfyYlETSli3kZGdT1cOD5wYN4pWICGr7+Njs07lPHyq6uTH/44/ZEhtLTnY2HvXq8dp779m8irDQ17NnYzab6REScsMwhYJ7s3MTElgwcSIJcXGsW7oUKFhhO2j0aF6JiLAKU4BOvXpx7uRJvt+6lavZ2XjWq0dQaCgD3n7b5o1UcGufF0CbZ58lKj6ez997j3VffQVA4+bNGTR6tM17iEXuV5qhioiIGECPzYiIiBhAgSoiImIABaqIiIgBFKgiIiIGUKCKiIgYQIEqIiJiAAWqiIiIARSoIiIiBlCgioiIGOA/yTgo5KKtBYUAAAAASUVORK5CYII=", + "number":"12345678910" + }, + "headers":{ + "access-control-allow-credentials":"true", + "access-control-allow-origin":"*", + "connection":"keep-alive", + "content-length":"405", + "content-type":"application/json; charset=utf-8", + "date":"Sun, 02 Jan 2022 09:49:21 GMT", + "server":"RapidAPI-1.2.8", + "x-rapidapi-region":"AWS - ap-southeast-1", + "x-rapidapi-version":"1.2.8" + }, + "schema":{ + "type":"object", + "properties":{ + "status":{ + "type":"string" + }, + "msg":{ + "type":"string" + }, + "barcode":{ + "type":"string" + }, + "number":{ + "type":"string" + } + } + } + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Tools/barcode_generator/api.py b/toolbench/toolenv/tools/Tools/barcode_generator/api.py new file mode 100644 index 0000000000000000000000000000000000000000..bc8d716c966e31b0a5f4f55b6a2cba0e8c3a7f3f --- /dev/null +++ b/toolbench/toolenv/tools/Tools/barcode_generator/api.py @@ -0,0 +1,106 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def generate_barcode_v2(text: str, mod43: bool=None, linecolor: str='#000000', ean128: bool=None, marginbottom: int=10, width: int=4, flat: bool=None, textposition: str=None, margin: int=10, margintop: int=10, marginleft: int=10, background: str='#ccffff', fontsize: int=20, textmargin: int=2, marginright: int=10, displayvalue: bool=None, textalign: str=None, height: int=40, barcodetype: str=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Generate Barcode with the supplied "text" parameter. There are 20 Barcode Types. Refer to the Docs section for details." + text: The text that will be converted to a barcode. +Default: 12345678910 + mod43: Only applicable for **CODE39** +CODE39 can be used with an optional Modulo 43 check digit. You can do this by setting the mod43 option to true. If you want to use this feature, you need to enable it in the barcode reader. +Default: false + linecolor: Bar and text color of the barcode in hexadecimal color code. +Default: #000000 + ean128: Only applicable for **CODE128** +CODE128 can be encoded as GS1-128/EAN-128. Set the **ean128** to **true** to use this feature. +Default: false + marginbottom: Margin on the bottom side of the barcode. Setting this will override the **margin **parameter value. +Default: 10 + width: The width of a single bar. +Default: 4 + flat: Only applicable for **EAN13**/**EAN8**/**UPC**/ **UPCE** +EAN13, EAN8, UPC and UPCE barcodes can be rendered without guard bars. If you want a flat rendering, you can specify the flat option and skip the guard bars. +Default: false + textposition: Vertical position of the text value. Select from top/bottom. +Default: bottom + margin: Set the space margin around the barcode. If nothing else is set, all sides will inherit this margin property, but they can also be set separately. +Default: 10 + margintop: Margin on the top side of the barcode. Setting this will override the **margin **parameter value. +Default: 10 + marginleft: Margin on the left side of the barcode. Setting this will override the **margin **parameter value. +Default: 10 + background: Background color of the barcode in hexadecimal color code. +Default: #ccffff + fontsize: Font size of the text value. +Default: 20 + textmargin: The gap between text and barcode. +Default: 2 + marginright: Margin on the right side of the barcode. Setting this will override the **margin **parameter value. +Default: 10 + displayvalue: Show/hide the text of the barcode. +Default: true. + textalign: Horizontal alignment of the text. Select from left/center/right. +Default: center + height: The height of the barcode. +Default: 40 + barcodetype: Select one from the following barcode type: CODE39, CODE128, CODE128A, CODE128B, CODE128C, EAN13, EAN8, EAN5, EAN2, UPC, UPCE, ITF14, ITF, MSI, MSI10, MSI11, MSI1010, MSI1110, pharmacode, codabar. +Default: **CODE128** + + """ + url = f"https://barcode-generator4.p.rapidapi.com/" + querystring = {'text': text, } + if mod43: + querystring['mod43'] = mod43 + if linecolor: + querystring['lineColor'] = linecolor + if ean128: + querystring['ean128'] = ean128 + if marginbottom: + querystring['marginBottom'] = marginbottom + if width: + querystring['width'] = width + if flat: + querystring['flat'] = flat + if textposition: + querystring['textPosition'] = textposition + if margin: + querystring['margin'] = margin + if margintop: + querystring['marginTop'] = margintop + if marginleft: + querystring['marginLeft'] = marginleft + if background: + querystring['background'] = background + if fontsize: + querystring['fontSize'] = fontsize + if textmargin: + querystring['textMargin'] = textmargin + if marginright: + querystring['marginRight'] = marginright + if displayvalue: + querystring['displayValue'] = displayvalue + if textalign: + querystring['textAlign'] = textalign + if height: + querystring['height'] = height + if barcodetype: + querystring['barcodeType'] = barcodetype + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "barcode-generator4.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Tools/base64_encode/api.py b/toolbench/toolenv/tools/Tools/base64_encode/api.py new file mode 100644 index 0000000000000000000000000000000000000000..9c44a5890601da830451647f37609931a56e939a --- /dev/null +++ b/toolbench/toolenv/tools/Tools/base64_encode/api.py @@ -0,0 +1,29 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def base64_encoder(url: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Convert Normal String To Base64" + + """ + url = f"https://base64-encode.p.rapidapi.com/base64" + querystring = {'url': url, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "base64-encode.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Tools/base64images2gif.json b/toolbench/toolenv/tools/Tools/base64images2gif.json new file mode 100644 index 0000000000000000000000000000000000000000..dba2cacde5c2313ecc2ff3bebe23b9b8497a97c0 --- /dev/null +++ b/toolbench/toolenv/tools/Tools/base64images2gif.json @@ -0,0 +1,26 @@ +{ + "product_id": "api_332f02b3-cfa2-4053-9838-77bc79cee3a4", + "tool_description": "Let's create animated GIF from base64 images. This API will convert base64 images into an animated GIF image. You need to provide base64 lists of images and API will return the base64 of result animated GIF image.", + "home_url": "https://rapidapi.com/teteeee/api/base64images2gif/", + "name": "base64Images2Gif", + "title": "base64Images2Gif", + "pricing": "FREEMIUM", + "tool_name": "base64Images2Gif", + "score": null, + "host": "base64images2gif.p.rapidapi.com", + "api_list": [ + { + "name": "base64toGIFbase64", + "url": "https://base64images2gif.p.rapidapi.com/image2Gif-prod-hello", + "description": "This API will convert **base64 images** into an animated GIF image. You need to provide base64 lists of images and API will return the **base64 of result GIF image**.", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://base64images2gif.p.rapidapi.com/image2Gif-prod-hello\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"base64images2gif.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://base64images2gif.p.rapidapi.com/image2Gif-prod-hello\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"base64images2gif.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": {} + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Tools/bash_code_compiler.json b/toolbench/toolenv/tools/Tools/bash_code_compiler.json new file mode 100644 index 0000000000000000000000000000000000000000..ce09e695fea1c66b1a1c46ca1b6b922ccc31e8a4 --- /dev/null +++ b/toolbench/toolenv/tools/Tools/bash_code_compiler.json @@ -0,0 +1,99 @@ +{ + "tool_name": "Bash Code Compiler", + "tool_description": "Bash Code Compiler API", + "title": "Bash Code Compiler", + "pricing": "FREEMIUM", + "score": { + "avgServiceLevel": 100, + "avgLatency": 200, + "avgSuccessRate": 100, + "popularityScore": 8.3, + "__typename": "Score" + }, + "home_url": "https://rapidapi.com/UnlimitedAPI/api/bash-code-compiler/", + "host": "bash-code-compiler.p.rapidapi.com", + "api_list": [ + { + "name": "Bash Code Compiler", + "url": "https://bash-code-compiler.p.rapidapi.com/", + "description": "Bash Code Compiler", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://bash-code-compiler.p.rapidapi.com/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"bash-code-compiler.p.rapidapi.com\"\n}\n\nresponse = requests.post(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 200, + "body": { + "cpuTime": "0.00", + "memory": "3404", + "output": "Hello, World!\n" + }, + "headers": { + "access-control-allow-credentials": "true", + "access-control-allow-origin": "*", + "content-type": "application/json", + "date": "Thu, 25 Aug 2022 17:50:45 GMT", + "server": "RapidAPI-1.2.8", + "via": "1.1 vegur", + "x-rapidapi-region": "AWS - eu-central-1", + "x-rapidapi-version": "1.2.8" + }, + "schema": {} + }, + { + "name": "Bash Versions", + "url": "https://bash-code-compiler.p.rapidapi.com/versions/", + "description": "Bash Versions", + "method": "GET", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://bash-code-compiler.p.rapidapi.com/versions/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"bash-code-compiler.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 200, + "body": [ + { + "id": 0, + "version": "4.3.42" + }, + { + "id": 1, + "version": "4.4.12" + }, + { + "id": 2, + "version": "4.4.19" + }, + { + "id": 3, + "version": "5.0.011" + }, + { + "id": 4, + "version": "5.1.12" + } + ], + "headers": { + "access-control-allow-credentials": "true", + "access-control-allow-origin": "*", + "content-type": "application/json", + "date": "Thu, 25 Aug 2022 17:49:45 GMT", + "server": "RapidAPI-1.2.8", + "via": "1.1 vegur", + "x-rapidapi-region": "AWS - eu-central-1", + "x-rapidapi-version": "1.2.8" + }, + "schema": {} + }, + { + "name": "Bash Code Compiler", + "url": "https://bash-code-compiler.p.rapidapi.com/", + "description": "Bash Code Compiler", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://bash-code-compiler.p.rapidapi.com/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"bash-code-compiler.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://bash-code-compiler.p.rapidapi.com/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"bash-code-compiler.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": {} + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Tools/bash_code_compiler/api.py b/toolbench/toolenv/tools/Tools/bash_code_compiler/api.py new file mode 100644 index 0000000000000000000000000000000000000000..e9a2b3ec5ce8914aea456438e560f349fbc79cee --- /dev/null +++ b/toolbench/toolenv/tools/Tools/bash_code_compiler/api.py @@ -0,0 +1,29 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def bash_versions(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Bash Versions" + + """ + url = f"https://bash-code-compiler.p.rapidapi.com/versions/" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "bash-code-compiler.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Tools/beeminder.json b/toolbench/toolenv/tools/Tools/beeminder.json new file mode 100644 index 0000000000000000000000000000000000000000..2bd352b51c8120bb5ee67f5f336243cfc914d0d4 --- /dev/null +++ b/toolbench/toolenv/tools/Tools/beeminder.json @@ -0,0 +1,356 @@ +{ + "product_id": "53aa3252e4b0f2c97546eb98", + "tool_description": "It's reminders with a sting! Or, goal-tracking with teeth. Mind anything you can graph \u2014 weight, pushups, to-do tasks completed \u2014 by replying with data when Beeminder prompts you. Or connect with a service (like Fitbit) to report automatically. We plot your progress on a Yellow Brick Road to your goal. Keep all your data points on the road and Beeminder will always be free. Go off the road and you (literally) pay the price.", + "home_url": "https://rapidapi.com/beeminder/api/beeminder/", + "name": "Beeminder", + "title": "Beeminder", + "pricing": "FREE", + "tool_name": "Beeminder", + "score": { + "avgServiceLevel": 100, + "avgLatency": 664, + "avgSuccessRate": 92, + "popularityScore": 9, + "__typename": "Score" + }, + "host": "dreeves-beeminder.p.rapidapi.com", + "api_list": [ + { + "name": "Create multiple datapoints", + "url": "https://dreeves-beeminder.p.rapidapi.com/users/{u}/goals{g}/datapoints/create_all.json", + "description": "Create multiple new datapoints for beeminder.com/u/g.", + "method": "POST", + "required_parameters": [ + { + "name": "datapoints", + "type": "STRING", + "description": "Each must include timestamp, value, and comment, with requestid optional.", + "default": "" + }, + { + "name": "sendmail", + "type": "BOOLEAN", + "description": "Indicates whether to email the user when the graph has updated with the new datapoint. Default: false.", + "default": "" + }, + { + "name": "u", + "type": "STRING", + "description": "user u", + "default": "" + }, + { + "name": "g", + "type": "STRING", + "description": "goal g", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://dreeves-beeminder.p.rapidapi.com/users/{u}/goals{g}/datapoints/create_all.json\"\nquerystring = {\"datapoints\": \"\", \"sendmail\": \"\", \"u\": \"\", \"g\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"dreeves-beeminder.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://dreeves-beeminder.p.rapidapi.com/users/{u}/goals{g}/datapoints/create_all.json\"\nquerystring = {\"datapoints\": \"\", \"sendmail\": \"\", \"u\": \"\", \"g\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"dreeves-beeminder.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "Create a datapoint", + "url": "https://dreeves-beeminder.p.rapidapi.com/users/{u}/goals/{g}/datapoints.json", + "description": "Add a new datapoint to user u\u2019s goal g \u2014 beeminder.com/u/g.", + "method": "POST", + "required_parameters": [ + { + "name": "value", + "type": "NUMBER", + "description": "The value, e.g., how much you weighed on the day indicated by the timestamp.", + "default": "" + }, + { + "name": "comment", + "type": "STRING", + "description": "An optional comment about the datapoint.", + "default": "" + }, + { + "name": "sendmail", + "type": "BOOLEAN", + "description": "Indicates whether to email the user when the graph has updated with the new datapoint. Default: false.", + "default": "" + }, + { + "name": "requestid", + "type": "STRING", + "description": "If a datapoint was created via the API and this parameter was included, it will be echoed back.", + "default": "" + }, + { + "name": "u", + "type": "STRING", + "description": "user u", + "default": "" + }, + { + "name": "g", + "type": "STRING", + "description": "goal g", + "default": "" + } + ], + "optional_parameters": [ + { + "name": "timestamp", + "type": "NUMBER", + "description": "The unix time (in seconds) of the datapoint.", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://dreeves-beeminder.p.rapidapi.com/users/{u}/goals/{g}/datapoints.json\"\nquerystring = {\"timestamp\": \"\", \"value\": \"\", \"comment\": \"\", \"sendmail\": \"\", \"requestid\": \"\", \"u\": \"\", \"g\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"dreeves-beeminder.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://dreeves-beeminder.p.rapidapi.com/users/{u}/goals/{g}/datapoints.json\"\nquerystring = {\"timestamp\": \"\", \"value\": \"\", \"comment\": \"\", \"sendmail\": \"\", \"requestid\": \"\", \"u\": \"\", \"g\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"dreeves-beeminder.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "Cancel a scheduled step down", + "url": "https://dreeves-beeminder.p.rapidapi.com/users/{u}/goals/{g}/cancel_stepdown.json", + "description": "Cancel a pending stepdown of a goal's project", + "method": "POST", + "required_parameters": [ + { + "name": "u", + "type": "STRING", + "description": "user u", + "default": "" + }, + { + "name": "g", + "type": "STRING", + "description": "goal g", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://dreeves-beeminder.p.rapidapi.com/users/{u}/goals/{g}/cancel_stepdown.json\"\nquerystring = {\"u\": \"\", \"g\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"dreeves-beeminder.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://dreeves-beeminder.p.rapidapi.com/users/{u}/goals/{g}/cancel_stepdown.json\"\nquerystring = {\"u\": \"\", \"g\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"dreeves-beeminder.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "Step down a goal\u2019s pledge", + "url": "https://dreeves-beeminder.p.rapidapi.com/users/{u}/goals/{g}/stepdown.json", + "description": "Decrease the goal\u2019s pledge level subject to the akrasia horizon, i.e., not immediately. After a successful request the goal will have a countdown to when it will revert to the lower pledge level.", + "method": "POST", + "required_parameters": [ + { + "name": "u", + "type": "STRING", + "description": "user u", + "default": "" + }, + { + "name": "g", + "type": "STRING", + "description": "goal g", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://dreeves-beeminder.p.rapidapi.com/users/{u}/goals/{g}/stepdown.json\"\nquerystring = {\"u\": \"\", \"g\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"dreeves-beeminder.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://dreeves-beeminder.p.rapidapi.com/users/{u}/goals/{g}/stepdown.json\"\nquerystring = {\"u\": \"\", \"g\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"dreeves-beeminder.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "Update a yellow brick road", + "url": "https://dreeves-beeminder.p.rapidapi.com/users/{u}/goals/{g}/dial_road.json", + "description": "Change the slope of the yellow brick road (starting after the one-week Akrasia Horizon) for beeminder.com/u/g.", + "method": "POST", + "required_parameters": [ + { + "name": "rate", + "type": "NUMBER", + "description": "The slope of the (final section of the) yellow brick road.", + "default": "" + }, + { + "name": "goaldate", + "type": "NUMBER", + "description": "Unix timestamp (in seconds) of the goal date.", + "default": "" + }, + { + "name": "u", + "type": "STRING", + "description": "user u", + "default": "" + }, + { + "name": "g", + "type": "STRING", + "description": "goal g", + "default": "" + } + ], + "optional_parameters": [ + { + "name": "goalval", + "type": "STRING", + "description": "Goal value \u2014 the number the yellow brick road will eventually reach. E.g., 70 kilograms.", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://dreeves-beeminder.p.rapidapi.com/users/{u}/goals/{g}/dial_road.json\"\nquerystring = {\"rate\": \"\", \"goaldate\": \"\", \"goalval\": \"\", \"u\": \"\", \"g\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"dreeves-beeminder.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://dreeves-beeminder.p.rapidapi.com/users/{u}/goals/{g}/dial_road.json\"\nquerystring = {\"rate\": \"\", \"goaldate\": \"\", \"goalval\": \"\", \"u\": \"\", \"g\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"dreeves-beeminder.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "Short circuit a goal's pledge", + "url": "https://dreeves-beeminder.p.rapidapi.com/users/{u}/ goals/{g}/shortcircuit.json", + "description": "Increase the goal\u2019s pledge level and charge the user the amount of the current pledge.", + "method": "POST", + "required_parameters": [ + { + "name": "u", + "type": "STRING", + "description": "user u", + "default": "" + }, + { + "name": "g", + "type": "STRING", + "description": "goal g", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://dreeves-beeminder.p.rapidapi.com/users/{u}/ goals/{g}/shortcircuit.json\"\nquerystring = {\"u\": \"\", \"g\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"dreeves-beeminder.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://dreeves-beeminder.p.rapidapi.com/users/{u}/ goals/{g}/shortcircuit.json\"\nquerystring = {\"u\": \"\", \"g\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"dreeves-beeminder.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "Create a charge", + "url": "https://dreeves-beeminder.p.rapidapi.com/charges", + "description": "Create a charge of a given amount and optionally add a note.", + "method": "POST", + "required_parameters": [], + "optional_parameters": [ + { + "name": "amount", + "type": "NUMBER", + "description": "The amount to charge the user, in US dollars.", + "default": "" + }, + { + "name": "note", + "type": "STRING", + "description": "An explanation of why the charge was made.", + "default": "" + }, + { + "name": "dryrun", + "type": "STRING", + "description": "If passed, the Charge is not actually created, but the JSON for it is returned as if it were. Default: false.", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://dreeves-beeminder.p.rapidapi.com/charges\"\nquerystring = {\"amount\": \"\", \"note\": \"\", \"dryrun\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"dreeves-beeminder.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://dreeves-beeminder.p.rapidapi.com/charges\"\nquerystring = {\"amount\": \"\", \"note\": \"\", \"dryrun\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"dreeves-beeminder.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "Create a goal for a user", + "url": "https://dreeves-beeminder.p.rapidapi.com/users/alice/goals.json", + "description": "Create a new goal for user u.", + "method": "POST", + "required_parameters": [ + { + "name": "slug", + "type": "STRING", + "description": "The final part of the URL of the goal, used as an identifier. E.g, if user \u201calice\u201d has a goal at beeminder.com/alice/weight then the goal\u2019s slug is \u201cweight\u201d.", + "default": "" + }, + { + "name": "title", + "type": "STRING", + "description": "The title that the user specified for the goal. E.g., \u201cWeight Loss\u201d.", + "default": "Work Out More" + }, + { + "name": "goal_type", + "type": "STRING", + "description": "One of the following symbols: hustler, biker, fatloser, gainer, inboxer, drinker, custom", + "default": "hustler" + }, + { + "name": "goaldate", + "type": "STRING", + "description": "Unix timestamp (in seconds) of the goal date.", + "default": "" + }, + { + "name": "rate", + "type": "NUMBER", + "description": "The slope of the (final section of the) yellow brick road.", + "default": "" + }, + { + "name": "initval", + "type": "STRING", + "description": "The y-value of the start of the yellow brick road.", + "default": "1400000000" + }, + { + "name": "ephem", + "type": "BOOLEAN", + "description": "Whether the graph was created in test mode. (Test mode goals are periodically garbage-collected.)", + "default": "" + }, + { + "name": "panic", + "type": "STRING", + "description": "Panic threshold. How long before derailment to panic. Default: 54000 (15 hours).", + "default": "" + }, + { + "name": "secret", + "type": "STRING", + "description": "Whether you have to be signed in as owner of the goal to view it. Default: false.", + "default": "" + }, + { + "name": "datapublic", + "type": "STRING", + "description": "Whether you have to be signed in as the owner of the goal to view the datapoints. Default: false.", + "default": "" + }, + { + "name": "username", + "type": "STRING", + "description": "he Beeminder username of the user being charged.", + "default": "alice" + } + ], + "optional_parameters": [ + { + "name": "goalval", + "type": "NUMBER", + "description": "Goal value \u2014 the number the yellow brick road will eventually reach. E.g., 70 kilograms.", + "default": "null" + } + ], + "code": "import requests\n\nurl = \"https://dreeves-beeminder.p.rapidapi.com/users/alice/goals.json\"\nquerystring = {\"slug\": \"\", \"title\": \"Work Out More\", \"goal_type\": \"hustler\", \"goaldate\": \"\", \"goalval\": \"null\", \"rate\": \"\", \"initval\": \"1400000000\", \"ephem\": \"\", \"panic\": \"\", \"secret\": \"\", \"datapublic\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"dreeves-beeminder.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://dreeves-beeminder.p.rapidapi.com/users/{username}/goals.json\"\nquerystring = {\"slug\": \"\", \"title\": \"Work Out More\", \"goal_type\": \"hustler\", \"goaldate\": \"\", \"goalval\": \"null\", \"rate\": \"\", \"initval\": \"1400000000\", \"ephem\": \"\", \"panic\": \"\", \"secret\": \"\", \"datapublic\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"dreeves-beeminder.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Tools/beeminder/api.py b/toolbench/toolenv/tools/Tools/beeminder/api.py new file mode 100644 index 0000000000000000000000000000000000000000..8b791db835d964cc5a2c600e876b3f195c68fe5c --- /dev/null +++ b/toolbench/toolenv/tools/Tools/beeminder/api.py @@ -0,0 +1,115 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def get_information_about_a_user(username: str, goals_filter: str=None, associations: bool=None, diff_since: int=None, skinny: bool=None, datapoints_count: int=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Retrieves information and a list of goal names for the user with username u." + username: Since appending an access_token to the request uniquely identifies a user, you can alternatively make the request to /users/me.json (without the username). + goals_filter: One of {all, frontburner, backburner}. Default: all, which returns an unfiltered list of all goals. Send frontburner if you want the list of goals the user has marked as frontburner goals (those which appear above the fold in the web interface), or backburner for just the below-the-fold goals. + associations: Convenience method to fetch all information about a user. Please use sparingly and see also the diff_since parameter. Default: false Send true if you want to receive all of the user’s goal and datapoints as attributes of the user object. + diff_since: Unix timestamp in seconds. Default: null, which will return all goals and datapoints Send a Unix timestamp to receive a filtered list of the user’s goals and datapoints. Only goals and datapoints that have been created or updated since the timestamp will be returned. Sending diff_since implies that you want the user’s associations, so you don’t need to send both. + skinny: Convenience method to only get a subset of goal attributes and the most recent datapoint for the goal. Default: false, which will return all goal attributes and all datapoints created or updated since diff_since. skinny must be sent along with diff_since. If diff_since is not present, skinny is ignored. Some goal attributes, as well as fetching all datapoints, can take some additional time to compute on the server side, so you can send skinny if you only need the latest datapoint and the following subset of attributes: slug, title, goalval, rate, goaldate, graph_url, thumb_url, goal_type, losedate, id, ephem, queued, panic, updated_at, burner, yaw, runits, lane, frozen, won, lost Instead of a datapoints attribute, sending skinny will replace that attribute with a last_datapoint attribute. Its value is a Datapoint hash. + datapoints_count: number of datapoints. Default: null, which will return all goals and datapoints Send a number n to only recieve the n most recently added datapoints, sorted by updated_at. Note that the most recently added datapoint could have been a datapoint whose timestamp is well in the past and therefore before other datapoints in that respect. + + """ + url = f"https://dreeves-beeminder.p.rapidapi.com/users/{username}.json" + querystring = {} + if goals_filter: + querystring['goals_filter'] = goals_filter + if associations: + querystring['associations'] = associations + if diff_since: + querystring['diff_since'] = diff_since + if skinny: + querystring['skinny'] = skinny + if datapoints_count: + querystring['datapoints_count'] = datapoints_count + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "dreeves-beeminder.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def get_all_the_datapoints(u: str, g: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get the list of datapoints for user u’s goal g — beeminder.com/u/g." + u: user u + g: goal g + + """ + url = f"https://dreeves-beeminder.p.rapidapi.com/users/{u}/goals/{g}/datapoints.json" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "dreeves-beeminder.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def get_information_about_a_goal(datapoints: bool, username: str, goal: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Gets goal details for user u’s goal g — beeminder.com/u/g." + datapoints: Whether to to send the goal’s datapoints in the response. Default: false. + username: Since appending an access_token to the request uniquely identifies a user, you can alternatively make the request to /users/me.json (without the username). + goal: Goal of user + + """ + url = f"https://dreeves-beeminder.p.rapidapi.com/users/{username}/goals/{goal}.json" + querystring = {'datapoints': datapoints, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "dreeves-beeminder.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def get_all_goals_for_a_user(filter: str, username: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get user u’s list of goals." + filter: One of {all, frontburner, backburner}. Default: all. + username: The Beeminder username of the user being charged. + + """ + url = f"https://dreeves-beeminder.p.rapidapi.com/users/{username}/goals.json" + querystring = {'filter': filter, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "dreeves-beeminder.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Tools/bin2dec_converter_api.json b/toolbench/toolenv/tools/Tools/bin2dec_converter_api.json new file mode 100644 index 0000000000000000000000000000000000000000..56d8e6ebef0a57d31f2fbb7d2d2e64076a80655e --- /dev/null +++ b/toolbench/toolenv/tools/Tools/bin2dec_converter_api.json @@ -0,0 +1,54 @@ +{ + "product_id": "api_1a79dcde-cca0-4ae4-9763-61a06cff5c92", + "tool_description": "The Bin2Dec Converter API is a powerful tool for developers and data scientists, offering seamless binary-to-decimal conversion capabilities. Binary (base-2) and decimal (base-10) number systems are common in computer science and mathematics, and this API simplifies the process of converting binary numbers into their decimal equivalents.", + "home_url": "https://rapidapi.com/jaminapayimm/api/bin2dec-converter-api/", + "name": "Bin2Dec Converter API", + "title": "Bin2Dec Converter API", + "pricing": "FREEMIUM", + "tool_name": "Bin2Dec Converter API", + "score": { + "avgServiceLevel": 100, + "avgLatency": 487, + "avgSuccessRate": 99, + "popularityScore": 9.4, + "__typename": "Score" + }, + "host": "bin2dec-converter-api.p.rapidapi.com", + "api_list": [ + { + "name": "postDecimal", + "url": "https://bin2dec-converter-api.p.rapidapi.com/api/convert", + "description": " ", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://bin2dec-converter-api.p.rapidapi.com/api/convert\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"bin2dec-converter-api.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://bin2dec-converter-api.p.rapidapi.com/api/convert\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"bin2dec-converter-api.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "get": { + "type": "string" + }, + "parameters": { + "type": "array" + }, + "errors": { + "type": "array" + }, + "results": { + "type": "integer" + }, + "response": { + "type": "array", + "items": { + "type": "object" + } + } + } + } + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Tools/binary_to_string_converter.json b/toolbench/toolenv/tools/Tools/binary_to_string_converter.json new file mode 100644 index 0000000000000000000000000000000000000000..08a489f8bb986bc7eb0973ff84c8221ee0a746e0 --- /dev/null +++ b/toolbench/toolenv/tools/Tools/binary_to_string_converter.json @@ -0,0 +1,54 @@ +{ + "product_id": "api_72f7d63a-2587-4f6d-b531-4a67fd4a6e0a", + "tool_description": "This API endpoint allows you to convert binary data into a human-readable string. The server takes the binary input from the request body, processes it, and responds with the converted string as a JSON object. To use this API, send a POST request to the /convert endpoint with a JSON body containing the \"binary\" field with the binary data you want to convert. The response will contain the converted string. Please note that the binary input should not contain spaces between each binary digit,...", + "home_url": "https://rapidapi.com/wualdorauccib/api/binary-to-string-converter/", + "name": "Binary to String Converter", + "title": "Binary to String Converter", + "pricing": "FREEMIUM", + "tool_name": "Binary to String Converter", + "score": { + "avgServiceLevel": 100, + "avgLatency": 436, + "avgSuccessRate": 100, + "popularityScore": 9.6, + "__typename": "Score" + }, + "host": "binary-to-string-converter.p.rapidapi.com", + "api_list": [ + { + "name": "postBinaryToString", + "url": "https://binary-to-string-converter.p.rapidapi.com/api/convert", + "description": " ", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://binary-to-string-converter.p.rapidapi.com/api/convert\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"binary-to-string-converter.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://binary-to-string-converter.p.rapidapi.com/api/convert\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"binary-to-string-converter.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "get": { + "type": "string" + }, + "parameters": { + "type": "array" + }, + "errors": { + "type": "array" + }, + "results": { + "type": "integer" + }, + "response": { + "type": "array", + "items": { + "type": "object" + } + } + } + } + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Tools/binarytohex_api.json b/toolbench/toolenv/tools/Tools/binarytohex_api.json new file mode 100644 index 0000000000000000000000000000000000000000..b359cfe633e03b9e6bfdd775f2ebe71d52ca6120 --- /dev/null +++ b/toolbench/toolenv/tools/Tools/binarytohex_api.json @@ -0,0 +1,54 @@ +{ + "product_id": "api_857e47b0-19e6-4b95-ae18-08cd3f6fc458", + "tool_description": "he \"BinaryToHex API\" is a straightforward and efficient conversion service that allows you to convert data between binary and hexadecimal formats. With this API, you can easily perform conversions to work with binary and hex data conveniently.", + "home_url": "https://rapidapi.com/cacasdragaow/api/binarytohex-api/", + "name": "BinaryToHex API", + "title": "BinaryToHex API", + "pricing": "PAID", + "tool_name": "BinaryToHex API", + "score": { + "avgServiceLevel": 100, + "avgLatency": 446, + "avgSuccessRate": 94, + "popularityScore": 9.6, + "__typename": "Score" + }, + "host": "binarytohex-api.p.rapidapi.com", + "api_list": [ + { + "name": "postSpeed", + "url": "https://binarytohex-api.p.rapidapi.com/api/convert", + "description": " ", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://binarytohex-api.p.rapidapi.com/api/convert\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"binarytohex-api.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://binarytohex-api.p.rapidapi.com/api/convert\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"binarytohex-api.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "get": { + "type": "string" + }, + "parameters": { + "type": "array" + }, + "errors": { + "type": "array" + }, + "results": { + "type": "integer" + }, + "response": { + "type": "array", + "items": { + "type": "object" + } + } + } + } + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Tools/bitly.json b/toolbench/toolenv/tools/Tools/bitly.json new file mode 100644 index 0000000000000000000000000000000000000000..b0d24d53873deb6756701a82531465552650b37b --- /dev/null +++ b/toolbench/toolenv/tools/Tools/bitly.json @@ -0,0 +1,44 @@ +{ + "product_id": "53aa3225e4b0a9b1348d8d34", + "tool_description": "Shortens urls", + "home_url": "https://rapidapi.com/ismaelc/api/bitly-2/", + "name": "bitly", + "title": "bitly", + "pricing": "FREE", + "tool_name": "bitly", + "score": { + "avgServiceLevel": 100, + "avgLatency": 107, + "avgSuccessRate": 100, + "popularityScore": 8.8, + "__typename": "Score" + }, + "host": "ismaelc-bitly.p.rapidapi.com", + "api_list": [ + { + "name": "shorten", + "url": "https://ismaelc-bitly.p.rapidapi.com/v3/shorten", + "description": "Given a long URL, returns a bitly short URL.", + "method": "GET", + "required_parameters": [ + { + "name": "longUrl", + "type": "STRING", + "description": "a long URL to be shortened (example: http://betaworks.com/).", + "default": "http://www.mashape.com" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://ismaelc-bitly.p.rapidapi.com/v3/shorten\"\nquerystring = {\"longUrl\": \"http://www.mashape.com\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"ismaelc-bitly.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://ismaelc-bitly.p.rapidapi.com/v3/shorten\"\nquerystring = {\"longUrl\": \"http://www.mashape.com\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"ismaelc-bitly.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": { + "status_code": 500, + "status_txt": "MISSING_ARG_ACCESS_TOKEN", + "data": [] + }, + "statuscode": 1, + "schema": "" + } + ], + "standardized_name": "bitly" +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Tools/bitly/api.py b/toolbench/toolenv/tools/Tools/bitly/api.py new file mode 100644 index 0000000000000000000000000000000000000000..b22b72c9001416bcbaab9b16901a51da5e006be2 --- /dev/null +++ b/toolbench/toolenv/tools/Tools/bitly/api.py @@ -0,0 +1,30 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def shorten(longurl: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Given a long URL, returns a bitly short URL." + longurl: a long URL to be shortened (example: http://betaworks.com/). + + """ + url = f"https://ismaelc-bitly.p.rapidapi.com/v3/shorten" + querystring = {'longUrl': longurl, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "ismaelc-bitly.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Tools/bitly_example.json b/toolbench/toolenv/tools/Tools/bitly_example.json new file mode 100644 index 0000000000000000000000000000000000000000..3e8180959a540832ced0719fe2b39279f1463aff --- /dev/null +++ b/toolbench/toolenv/tools/Tools/bitly_example.json @@ -0,0 +1,62 @@ +{ + "product_id": "59faab8ae4b06b4ed0ef5182", + "tool_description": "this a login api", + "home_url": "https://rapidapi.com/Rashmi_Tembhurne/api/bitly-example/", + "name": "bitly example", + "title": "bitly example", + "pricing": "FREE", + "tool_name": "bitly example", + "score": { + "avgServiceLevel": 100, + "avgLatency": 230, + "avgSuccessRate": 100, + "popularityScore": 5.8, + "__typename": "Score" + }, + "host": "rashmi_tembhurne-bitly-example-v1.p.rapidapi.com", + "api_list": [ + { + "name": "SendSms", + "url": "https://rashmi_tembhurne-bitly-example-v1.p.rapidapi.com/v3/shorten", + "description": "", + "method": "GET", + "required_parameters": [], + "optional_parameters": [ + { + "name": "msg", + "type": "STRING", + "description": "", + "default": "" + }, + { + "name": "phone", + "type": "STRING", + "description": "", + "default": "" + }, + { + "name": "pwd", + "type": "STRING", + "description": "", + "default": "" + }, + { + "name": "uid", + "type": "STRING", + "description": "", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://rashmi_tembhurne-bitly-example-v1.p.rapidapi.com/v3/shorten\"\nquerystring = {\"msg\": \"\", \"phone\": \"\", \"pwd\": \"\", \"uid\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"rashmi_tembhurne-bitly-example-v1.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://rashmi_tembhurne-bitly-example-v1.p.rapidapi.com/v3/shorten\"\nquerystring = {\"msg\": \"\", \"phone\": \"\", \"pwd\": \"\", \"uid\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"rashmi_tembhurne-bitly-example-v1.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": { + "status_code": 500, + "status_txt": "MISSING_ARG_ACCESS_TOKEN", + "data": [] + }, + "statuscode": 1, + "schema": "" + } + ], + "standardized_name": "bitly_example" +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Tools/bitly_example/api.py b/toolbench/toolenv/tools/Tools/bitly_example/api.py new file mode 100644 index 0000000000000000000000000000000000000000..c948021051e48b327a9fa5b09373a9e289798e92 --- /dev/null +++ b/toolbench/toolenv/tools/Tools/bitly_example/api.py @@ -0,0 +1,37 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def sendsms(msg: str=None, phone: str=None, pwd: str=None, uid: str=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "" + + """ + url = f"https://rashmi_tembhurne-bitly-example-v1.p.rapidapi.com/v3/shorten" + querystring = {} + if msg: + querystring['msg'] = msg + if phone: + querystring['phone'] = phone + if pwd: + querystring['pwd'] = pwd + if uid: + querystring['uid'] = uid + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "rashmi_tembhurne-bitly-example-v1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Tools/blog_post_generator_api_seo_optimised_with_keywords.json b/toolbench/toolenv/tools/Tools/blog_post_generator_api_seo_optimised_with_keywords.json new file mode 100644 index 0000000000000000000000000000000000000000..239854c463fb62689d61cda2c040222501b450f9 --- /dev/null +++ b/toolbench/toolenv/tools/Tools/blog_post_generator_api_seo_optimised_with_keywords.json @@ -0,0 +1,32 @@ +{ + "product_id": "api_82937f13-4d1e-478d-a771-7fe383e82f3b", + "tool_description": "Use this API to generate SEO optimised Blog Posts for your application. \n\nOur API uses your generation values to create an SEO optimised blog post that you can embed into any use case you desire. All responses will return keywords you can also embed into your use case to increase domain authority and SEO optimisation.\n\nOne possible use case would be to call this API on a scheduled interval to automate blog post creation.\n\n**PRO TIP**: Frequently change the topic and theme values to ensure you...", + "home_url": "https://rapidapi.com/wirecryptocontact-h9qCX5pYMlJ/api/blog-post-generator-api-seo-optimised-with-keywords/", + "name": "Blog Post Generator API - SEO Optimised with keywords", + "title": "Blog Post Generator API - SEO Optimised with keywords", + "pricing": "FREEMIUM", + "tool_name": "Blog Post Generator API - SEO Optimised with keywords", + "score": { + "avgServiceLevel": 67, + "avgLatency": 9631, + "avgSuccessRate": 67, + "popularityScore": 8.2, + "__typename": "Score" + }, + "host": "blog-post-generator-api-seo-optimised-with-keywords.p.rapidapi.com", + "api_list": [ + { + "name": "Generate blog post", + "url": "https://blog-post-generator-api-seo-optimised-with-keywords.p.rapidapi.com/generate", + "description": "Generates an SEO optimized blog post JSON structure response containing:\n\n- title (the title of the generated blog post)\n- blog_post (the content of the blog post)\n- keywords (SEO keywords you can use to increase domain authority for your website)", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://blog-post-generator-api-seo-optimised-with-keywords.p.rapidapi.com/generate\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"blog-post-generator-api-seo-optimised-with-keywords.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://blog-post-generator-api-seo-optimised-with-keywords.p.rapidapi.com/generate\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"blog-post-generator-api-seo-optimised-with-keywords.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": {} + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Tools/book_suggest.json b/toolbench/toolenv/tools/Tools/book_suggest.json new file mode 100644 index 0000000000000000000000000000000000000000..548a14f58fc85bfe2f56e664fdcba6427bf47bbb --- /dev/null +++ b/toolbench/toolenv/tools/Tools/book_suggest.json @@ -0,0 +1,24 @@ +{ + "tool_name":"Book Suggest", + "tool_description":"API that suggest the book you may want to read", + "title":"Book Suggest", + "pricing":"FREEMIUM", + "score":null, + "home_url":"https://rapidapi.com/carltonscottking3319/api/book-suggest/", + "host":"book-suggest.p.rapidapi.com", + "api_list":[ + { + "name":"default", + "url":"https://book-suggest.p.rapidapi.com/", + "description":"default endpoint", + "method":"GET", + "required_parameters":[], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://book-suggest.p.rapidapi.com/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"book-suggest.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Tools/book_suggest/api.py b/toolbench/toolenv/tools/Tools/book_suggest/api.py new file mode 100644 index 0000000000000000000000000000000000000000..01aeadb047b658b563392636aef45089e4184577 --- /dev/null +++ b/toolbench/toolenv/tools/Tools/book_suggest/api.py @@ -0,0 +1,29 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def default(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "default endpoint" + + """ + url = f"https://book-suggest.p.rapidapi.com/" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "book-suggest.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Tools/boshe.json b/toolbench/toolenv/tools/Tools/boshe.json new file mode 100644 index 0000000000000000000000000000000000000000..31d0c46250811e9252209451db0a29400a1efd85 --- /dev/null +++ b/toolbench/toolenv/tools/Tools/boshe.json @@ -0,0 +1,24 @@ +{ + "tool_name":"boshe", + "tool_description":"API that suggest the book you may want to read", + "title":"boshe", + "pricing":"FREEMIUM", + "score":null, + "home_url":"https://rapidapi.com/sylvesterbradford808/api/boshe/", + "host":"boshe.p.rapidapi.com", + "api_list":[ + { + "name":"default", + "url":"https://boshe.p.rapidapi.com/", + "description":"default Endpoint", + "method":"GET", + "required_parameters":[], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://boshe.p.rapidapi.com/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"boshe.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Tools/boshe/api.py b/toolbench/toolenv/tools/Tools/boshe/api.py new file mode 100644 index 0000000000000000000000000000000000000000..23f8a4ffc01a03843c05c97ea90890db1acc645e --- /dev/null +++ b/toolbench/toolenv/tools/Tools/boshe/api.py @@ -0,0 +1,29 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def default(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "default Endpoint" + + """ + url = f"https://boshe.p.rapidapi.com/" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "boshe.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Tools/bots_detect/api.py b/toolbench/toolenv/tools/Tools/bots_detect/api.py new file mode 100644 index 0000000000000000000000000000000000000000..ca8df5aaf7311d45640fad3a7e205bc95da45ab8 --- /dev/null +++ b/toolbench/toolenv/tools/Tools/bots_detect/api.py @@ -0,0 +1,29 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def bots_crawlers_spiders_detect(ua: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Bots/Crawlers/Spiders via the user agent" + + """ + url = f"https://bots-detect.p.rapidapi.com/crawler/agent.php" + querystring = {'ua': ua, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "bots-detect.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Tools/brandimagegif_qr_code_generator/api.py b/toolbench/toolenv/tools/Tools/brandimagegif_qr_code_generator/api.py new file mode 100644 index 0000000000000000000000000000000000000000..7c032b396e4888dee9657f53e5d0e5c27d35c913 --- /dev/null +++ b/toolbench/toolenv/tools/Tools/brandimagegif_qr_code_generator/api.py @@ -0,0 +1,31 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def qr_code_generator(value: str, option: str, media_path: str='https://s3.amazonaws.com/freecodecamp/relaxing-cat.jpg', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "endpoint for generating brand specific qr code" + + """ + url = f"https://brand-image-gif-qr-code-generator2.p.rapidapi.com/qr-code" + querystring = {'value': value, 'option': option, } + if media_path: + querystring['media_path'] = media_path + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "brand-image-gif-qr-code-generator2.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Tools/broken_api.json b/toolbench/toolenv/tools/Tools/broken_api.json new file mode 100644 index 0000000000000000000000000000000000000000..f974c080f2fc392a330fe508688dd5d7bef089e6 --- /dev/null +++ b/toolbench/toolenv/tools/Tools/broken_api.json @@ -0,0 +1,86 @@ +{ + "product_id": "api_98d1d77d-38e4-4984-b93a-bc2432945478", + "tool_description": "Test your integration against an API that will mimic a broken production RESTFul API : times out, wrong status code, missing or bad body, wrong headers etc.", + "home_url": "https://rapidapi.com/wahrcoder-wahrcoder-default/api/broken-api/", + "name": "Broken API", + "title": "Broken API", + "pricing": "FREEMIUM", + "tool_name": "Broken API", + "score": null, + "host": "broken-api.p.rapidapi.com", + "api_list": [ + { + "name": "/timeout/{time}", + "url": "https://broken-api.p.rapidapi.com/timeout/40", + "description": "Request a specific time to be waited before responding", + "method": "POST", + "required_parameters": [ + { + "name": "time", + "type": "NUMBER", + "description": "time in ms to be waited before responding", + "default": 40 + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://broken-api.p.rapidapi.com/timeout/40\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"broken-api.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://broken-api.p.rapidapi.com/timeout/{time}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"broken-api.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "/broken/{what_should_break}", + "url": "https://broken-api.p.rapidapi.com/broken/timeout", + "description": "Test against a specific broken event", + "method": "POST", + "required_parameters": [ + { + "name": "what_should_break", + "type": "STRING", + "description": "what should break", + "default": "timeout" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://broken-api.p.rapidapi.com/broken/timeout\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"broken-api.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://broken-api.p.rapidapi.com/broken/{what_should_break}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"broken-api.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "/status-code/{code}", + "url": "https://broken-api.p.rapidapi.com/status-code/202", + "description": "Request a specific status code to be returned", + "method": "POST", + "required_parameters": [ + { + "name": "code", + "type": "NUMBER", + "description": "what should break", + "default": 202 + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://broken-api.p.rapidapi.com/status-code/202\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"broken-api.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://broken-api.p.rapidapi.com/status-code/{code}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"broken-api.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "/broken", + "url": "https://broken-api.p.rapidapi.com/broken", + "description": "Test against a random broken event, the API will choose for you", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://broken-api.p.rapidapi.com/broken\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"broken-api.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://broken-api.p.rapidapi.com/broken\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"broken-api.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": {} + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Tools/broken_link_detector/api.py b/toolbench/toolenv/tools/Tools/broken_link_detector/api.py new file mode 100644 index 0000000000000000000000000000000000000000..c34b85941b4dc3fce9a0c8b594562b45d0852809 --- /dev/null +++ b/toolbench/toolenv/tools/Tools/broken_link_detector/api.py @@ -0,0 +1,31 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def broken_link(url: str, email: str='broken@link.url', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "find broken links" + + """ + url = f"https://broken-link-detector.p.rapidapi.com/api/brokenlinkdetector" + querystring = {'url': url, } + if email: + querystring['email'] = email + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "broken-link-detector.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Tools/bsc_rpc.json b/toolbench/toolenv/tools/Tools/bsc_rpc.json new file mode 100644 index 0000000000000000000000000000000000000000..27b3d82eddb3b0db905b521dcb19e22ecd4a7848 --- /dev/null +++ b/toolbench/toolenv/tools/Tools/bsc_rpc.json @@ -0,0 +1,24 @@ +{ + "product_id": "api_12cbec5a-7f63-455a-b20a-0605f15ea4c6", + "tool_description": "Binance Smart Chain RPC", + "home_url": "https://rapidapi.com/akshatcool1234/api/bsc-rpc/", + "name": "BSC RPC", + "title": "BSC RPC", + "pricing": "FREEMIUM", + "tool_name": "BSC RPC", + "score": null, + "host": "bsc-rpc.p.rapidapi.com", + "api_list": [ + { + "name": "RPC", + "url": "https://bsc-rpc.p.rapidapi.com/", + "description": "RPC", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://bsc-rpc.p.rapidapi.com/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"bsc-rpc.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://bsc-rpc.p.rapidapi.com/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"bsc-rpc.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Tools/bulk_domain_check.json b/toolbench/toolenv/tools/Tools/bulk_domain_check.json new file mode 100644 index 0000000000000000000000000000000000000000..c588a469bd8aff4c0460f57187c3025525b2d6f0 --- /dev/null +++ b/toolbench/toolenv/tools/Tools/bulk_domain_check.json @@ -0,0 +1,44 @@ +{ + "tool_name":"Bulk Domain Check", + "tool_description":"Bulk Domain Availability Check. All tlds supported. ", + "title":"Bulk Domain Check", + "pricing":"FREEMIUM", + "score":{ + "avgServiceLevel":100, + "avgLatency":1782, + "avgSuccessRate":100, + "popularityScore":9.5, + "__typename":"Score" + }, + "home_url":"https://rapidapi.com/backend_box/api/bulk-domain-check/", + "host":"pointsdb-bulk-domain-check-v1.p.rapidapi.com", + "api_list":[ + { + "name":"/domain_check", + "url":"https://pointsdb-bulk-domain-check-v1.p.rapidapi.com/domain_check", + "description":"Returns domain availability status", + "method":"GET", + "required_parameters":[ + { + "name":"domains", + "type":"STRING", + "description":"Coma separated list of domains.", + "default":"foo.com,example.org,somefoobardomain.io" + } + ], + "optional_parameters":[ + { + "name":"domain", + "type":"STRING", + "description":"domain name", + "default":"" + } + ], + "code":"import requests\n\nurl = \"https://pointsdb-bulk-domain-check-v1.p.rapidapi.com/domain_check\"\nquerystring = {\"domains\": domains}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"pointsdb-bulk-domain-check-v1.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Tools/bulk_domain_check/api.py b/toolbench/toolenv/tools/Tools/bulk_domain_check/api.py new file mode 100644 index 0000000000000000000000000000000000000000..5ee00d93032cd0eb4ac89f19092f3e6d0ebc9ca6 --- /dev/null +++ b/toolbench/toolenv/tools/Tools/bulk_domain_check/api.py @@ -0,0 +1,33 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def domain_check(domains: str, domain: str=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Returns domain availability status" + domains: Coma separated list of domains. + domain: domain name + + """ + url = f"https://pointsdb-bulk-domain-check-v1.p.rapidapi.com/domain_check" + querystring = {'domains': domains, } + if domain: + querystring['domain'] = domain + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "pointsdb-bulk-domain-check-v1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Tools/bulk_whatsapp_validator.json b/toolbench/toolenv/tools/Tools/bulk_whatsapp_validator.json new file mode 100644 index 0000000000000000000000000000000000000000..0cf9fef74c7aa0b21926485a2419e6b55a544490 --- /dev/null +++ b/toolbench/toolenv/tools/Tools/bulk_whatsapp_validator.json @@ -0,0 +1,155 @@ +{ + "tool_name":"Bulk Whatsapp Validator", + "tool_description":"Check if a number is registered on whatsapp. Add context to whatsapp profiles.", + "title":"Bulk Whatsapp Validator", + "pricing":"FREEMIUM", + "score":{ + "avgServiceLevel":100, + "avgLatency":404, + "avgSuccessRate":100, + "popularityScore":9.8, + "__typename":"Score" + }, + "home_url":"https://rapidapi.com/inutil-inutil-default/api/bulk-whatsapp-validator/", + "host":"bulk-whatsapp-validator.p.rapidapi.com", + "api_list":[ + { + "name":"Is a business?", + "url":"https://bulk-whatsapp-validator.p.rapidapi.com/isbiz", + "description":"Requests to this endpoint will return `true` if the number is a **Whatsapp for Business** account, or `false` if it's not.", + "method":"GET", + "required_parameters":[ + { + "name":"phone", + "type":"NUMBER", + "description":"The whatsapp number must be written as: `countrycode` and `number`; do NOT include any non-number character, spaces, or anything which is not a number.\nExamples: of correct numbers are: `34123456789` (for spain) or `491234567890` (for Germany).", + "default":"34655719560" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://bulk-whatsapp-validator.p.rapidapi.com/isbiz\"\nquerystring = {\"phone\": phone}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"bulk-whatsapp-validator.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + }, + { + "name":"Validate whatsapp number", + "url":"https://bulk-whatsapp-validator.p.rapidapi.com/wchk", + "description":"Enter the phone number you want to validate.\nLearn how to use it on this [video](https://youtu.be/_h5ybzp9UNU).", + "method":"GET", + "required_parameters":[ + { + "name":"phone", + "type":"NUMBER", + "description":"The whatsapp number must be written as: number (including countrycode); do **NOT** include any non-number character, spaces, or anything which is not a number.\nExamples: of correct numbers are: 34123456789 (for spain) or 491234567890 (for Germany).", + "default":"34605797764" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://bulk-whatsapp-validator.p.rapidapi.com/wchk\"\nquerystring = {\"phone\": phone}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"bulk-whatsapp-validator.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + }, + { + "name":"About info", + "url":"https://bulk-whatsapp-validator.p.rapidapi.com/about", + "description":"This endpoint will return the *About* state of the WA number on the query.", + "method":"GET", + "required_parameters":[ + { + "name":"phone", + "type":"NUMBER", + "description":"", + "default":"34605797764" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://bulk-whatsapp-validator.p.rapidapi.com/about\"\nquerystring = {\"phone\": phone}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"bulk-whatsapp-validator.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + }, + { + "name":"About info (free)", + "url":"https://bulk-whatsapp-validator.p.rapidapi.com/free/about", + "description":"You need a **valid token** to use this endpoint, learn how to get it on this [video](https://youtu.be/TcaAwKpAkl8). \nThis endpoint will return the `About` info of the number, and the time when the value was set.", + "method":"GET", + "required_parameters":[ + { + "name":"phone", + "type":"NUMBER", + "description":"The phone number must be written as a number (including countrycode); \ndo **NOT** include: any non-number character, spaces, or anything which is not a number; do **NOT** add zeros (0) at the beginning.", + "default":"34655719560" + }, + { + "name":"token", + "type":"STRING", + "description":"To get a free token, click [here](https://wa.me/34631428039?text=get-token) to send a whatsapp with the command `get-token`.", + "default":"ENTER_HERE_A_TEMP_TOKEN" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://bulk-whatsapp-validator.p.rapidapi.com/free/about\"\nquerystring = {\"phone\": phone, \"token\": token}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"bulk-whatsapp-validator.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + }, + { + "name":"Is a business? (free)", + "url":"https://bulk-whatsapp-validator.p.rapidapi.com/free/isbiz", + "description":"You need a **valid token** to use this endpoint, learn how to get it on this [video](https://youtu.be/TcaAwKpAkl8). \nRequests to this endpoint will return `true` if the number is a **Whatsapp for Business** account, or `false` if it's not.", + "method":"GET", + "required_parameters":[ + { + "name":"phone", + "type":"NUMBER", + "description":"The phone number must be written as a number (including countrycode); \ndo **NOT** include: any non-number character, spaces, or anything which is not a number; do **NOT** add zeros (0) at the beginning.", + "default":"34655719560" + }, + { + "name":"token", + "type":"STRING", + "description":"To get a free token, click [here](https://wa.me/34631428039?text=get-token) to send a whatsapp with the command `get-token`.", + "default":"ENTER_HERE_A_TEMP_TOKEN" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://bulk-whatsapp-validator.p.rapidapi.com/free/isbiz\"\nquerystring = {\"phone\": phone, \"token\": token}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"bulk-whatsapp-validator.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + }, + { + "name":"Validate WA number (free)", + "url":"https://bulk-whatsapp-validator.p.rapidapi.com/free/wchk", + "description":"You need a **valid token** to use this endpoint, learn how to get it on this [video](https://youtu.be/TcaAwKpAkl8). \nThe response is `true` if the phone is registered on whatsapp.", + "method":"GET", + "required_parameters":[ + { + "name":"phone", + "type":"NUMBER", + "description":"The phone number must be written as a number (including countrycode); \ndo **NOT** include: any non-number character, spaces, or anything which is not a number; do **NOT** add zeros (0) at the beginning.", + "default":"34605797764" + }, + { + "name":"token", + "type":"STRING", + "description":"To get a free token, click [here](https://wa.me/34631428039?text=get-token) to send a whatsapp with the command `get-token`.", + "default":"ENTER_HERE_A_TEMP_TOKEN" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://bulk-whatsapp-validator.p.rapidapi.com/free/wchk\"\nquerystring = {\"phone\": phone, \"token\": token}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"bulk-whatsapp-validator.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Tools/bulk_whatsapp_validator/api.py b/toolbench/toolenv/tools/Tools/bulk_whatsapp_validator/api.py new file mode 100644 index 0000000000000000000000000000000000000000..a2b03594e2d49df206562b5751a06b96da316e61 --- /dev/null +++ b/toolbench/toolenv/tools/Tools/bulk_whatsapp_validator/api.py @@ -0,0 +1,151 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def is_a_business(phone: int, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Requests to this endpoint will return `true` if the number is a **Whatsapp for Business** account, or `false` if it's not." + phone: The whatsapp number must be written as: `countrycode` and `number`; do NOT include any non-number character, spaces, or anything which is not a number. +Examples: of correct numbers are: `34123456789` (for spain) or `491234567890` (for Germany). + + """ + url = f"https://bulk-whatsapp-validator.p.rapidapi.com/isbiz" + querystring = {'phone': phone, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "bulk-whatsapp-validator.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def validate_whatsapp_number(phone: int, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Enter the phone number you want to validate. + Learn how to use it on this [video](https://youtu.be/_h5ybzp9UNU)." + phone: The whatsapp number must be written as: number (including countrycode); do **NOT** include any non-number character, spaces, or anything which is not a number. +Examples: of correct numbers are: 34123456789 (for spain) or 491234567890 (for Germany). + + """ + url = f"https://bulk-whatsapp-validator.p.rapidapi.com/wchk" + querystring = {'phone': phone, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "bulk-whatsapp-validator.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def about_info(phone: int, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "This endpoint will return the *About* state of the WA number on the query." + + """ + url = f"https://bulk-whatsapp-validator.p.rapidapi.com/about" + querystring = {'phone': phone, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "bulk-whatsapp-validator.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def about_info_free(phone: int, token: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "You need a **valid token** to use this endpoint, learn how to get it on this [video](https://youtu.be/TcaAwKpAkl8). + This endpoint will return the `About` info of the number, and the time when the value was set." + phone: The phone number must be written as a number (including countrycode); +do **NOT** include: any non-number character, spaces, or anything which is not a number; do **NOT** add zeros (0) at the beginning. + token: To get a free token, click [here](https://wa.me/34631428039?text=get-token) to send a whatsapp with the command `get-token`. + + """ + url = f"https://bulk-whatsapp-validator.p.rapidapi.com/free/about" + querystring = {'phone': phone, 'token': token, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "bulk-whatsapp-validator.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def is_a_business_free(phone: int, token: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "You need a **valid token** to use this endpoint, learn how to get it on this [video](https://youtu.be/TcaAwKpAkl8). + Requests to this endpoint will return `true` if the number is a **Whatsapp for Business** account, or `false` if it's not." + phone: The phone number must be written as a number (including countrycode); +do **NOT** include: any non-number character, spaces, or anything which is not a number; do **NOT** add zeros (0) at the beginning. + token: To get a free token, click [here](https://wa.me/34631428039?text=get-token) to send a whatsapp with the command `get-token`. + + """ + url = f"https://bulk-whatsapp-validator.p.rapidapi.com/free/isbiz" + querystring = {'phone': phone, 'token': token, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "bulk-whatsapp-validator.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def validate_wa_number_free(phone: int, token: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "You need a **valid token** to use this endpoint, learn how to get it on this [video](https://youtu.be/TcaAwKpAkl8). + The response is `true` if the phone is registered on whatsapp." + phone: The phone number must be written as a number (including countrycode); +do **NOT** include: any non-number character, spaces, or anything which is not a number; do **NOT** add zeros (0) at the beginning. + token: To get a free token, click [here](https://wa.me/34631428039?text=get-token) to send a whatsapp with the command `get-token`. + + """ + url = f"https://bulk-whatsapp-validator.p.rapidapi.com/free/wchk" + querystring = {'phone': phone, 'token': token, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "bulk-whatsapp-validator.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Tools/bulk_whois.json b/toolbench/toolenv/tools/Tools/bulk_whois.json new file mode 100644 index 0000000000000000000000000000000000000000..7ce2a7a261635dace145ffdc1e0e575c2a15357b --- /dev/null +++ b/toolbench/toolenv/tools/Tools/bulk_whois.json @@ -0,0 +1,127 @@ +{ + "product_id": "5ab225c4e4b084deb4eaa0f0", + "tool_description": "Bulk WHOIS API. Parsed to JSON. All TLDs supported. Online since 2016.", + "home_url": "https://rapidapi.com/backend_box/api/bulk-whois/", + "name": "Bulk WHOIS", + "title": "Bulk WHOIS", + "pricing": "FREEMIUM", + "tool_name": "Bulk WHOIS", + "score": { + "avgServiceLevel": 98, + "avgLatency": 690, + "avgSuccessRate": 93, + "popularityScore": 8.7, + "__typename": "Score" + }, + "host": "pointsdb-bulk-whois-v1.p.rapidapi.com", + "api_list": [ + { + "name": "Get WHOIS batch", + "url": "https://pointsdb-bulk-whois-v1.p.rapidapi.com/batch/{batch_id}", + "description": "Get WHOIS batch.", + "method": "GET", + "required_parameters": [ + { + "name": "batch_id", + "type": "string", + "description": "", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://pointsdb-bulk-whois-v1.p.rapidapi.com/batch/{batch_id}\"\nquerystring = {\"batch_id\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"pointsdb-bulk-whois-v1.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://pointsdb-bulk-whois-v1.p.rapidapi.com/batch/{batch_id}\"\nquerystring = {\"batch_id\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"pointsdb-bulk-whois-v1.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": { + "error": "Invalid batch id" + } + }, + { + "name": "Bulk WHOIS", + "url": "https://pointsdb-bulk-whois-v1.p.rapidapi.com/whois", + "description": "WHOIS query", + "method": "GET", + "required_parameters": [], + "optional_parameters": [ + { + "name": "ip", + "type": "STRING", + "description": "IP address. Will get resolved to domain.", + "default": "" + }, + { + "name": "format", + "type": "STRING", + "description": "json: rich, structured json, raw: raw data, split: formatted lines", + "default": "split" + }, + { + "name": "domain", + "type": "STRING", + "description": "Domain name", + "default": "" + }, + { + "name": "domains", + "type": "STRING", + "description": "Coma separated domain names", + "default": "foo.com,example.org,google.com" + } + ], + "code": "import requests\n\nurl = \"https://pointsdb-bulk-whois-v1.p.rapidapi.com/whois\"\nquerystring = {\"ip\": \"\", \"format\": \"split\", \"domain\": \"\", \"domains\": \"foo.com,example.org,google.com\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"pointsdb-bulk-whois-v1.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://pointsdb-bulk-whois-v1.p.rapidapi.com/whois\"\nquerystring = {\"ip\": \"\", \"format\": \"split\", \"domain\": \"\", \"domains\": \"foo.com,example.org,google.com\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"pointsdb-bulk-whois-v1.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "properties": { + "_id": { + "type": "string" + }, + "example.org": { + "items": { + "type": "object" + }, + "type": "array" + }, + "foo.com": { + "items": { + "type": "object" + }, + "type": "array" + }, + "google.com": { + "items": { + "type": "object" + }, + "type": "array" + } + }, + "type": "object" + } + }, + { + "name": "Get your WHOIS batches", + "url": "https://pointsdb-bulk-whois-v1.p.rapidapi.com/batch", + "description": "Get a list of your batches.", + "method": "GET", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://pointsdb-bulk-whois-v1.p.rapidapi.com/batch\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"pointsdb-bulk-whois-v1.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://pointsdb-bulk-whois-v1.p.rapidapi.com/batch\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"pointsdb-bulk-whois-v1.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": { + "batches": [] + } + }, + { + "name": "Create WHOIS batch", + "url": "https://pointsdb-bulk-whois-v1.p.rapidapi.com/batch", + "description": "Initiate batch work of WHOIS.", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://pointsdb-bulk-whois-v1.p.rapidapi.com/batch\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"pointsdb-bulk-whois-v1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://pointsdb-bulk-whois-v1.p.rapidapi.com/batch\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"pointsdb-bulk-whois-v1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "" + } + ], + "standardized_name": "bulk_whois" +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Tools/bulk_whois/api.py b/toolbench/toolenv/tools/Tools/bulk_whois/api.py new file mode 100644 index 0000000000000000000000000000000000000000..37f1f35ae7c32af4954832979b732982df494da1 --- /dev/null +++ b/toolbench/toolenv/tools/Tools/bulk_whois/api.py @@ -0,0 +1,83 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def get_whois_batch(batch_id: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get WHOIS batch." + + """ + url = f"https://pointsdb-bulk-whois-v1.p.rapidapi.com/batch/{batch_id}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "pointsdb-bulk-whois-v1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def bulk_whois(ip: str=None, format: str='split', domain: str=None, domains: str='foo.com,example.org,google.com', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "WHOIS query" + ip: IP address. Will get resolved to domain. + format: json: rich, structured json, raw: raw data, split: formatted lines + domain: Domain name + domains: Coma separated domain names + + """ + url = f"https://pointsdb-bulk-whois-v1.p.rapidapi.com/whois" + querystring = {} + if ip: + querystring['ip'] = ip + if format: + querystring['format'] = format + if domain: + querystring['domain'] = domain + if domains: + querystring['domains'] = domains + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "pointsdb-bulk-whois-v1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def get_your_whois_batches(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get a list of your batches." + + """ + url = f"https://pointsdb-bulk-whois-v1.p.rapidapi.com/batch" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "pointsdb-bulk-whois-v1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Tools/byteplant_email_address_online_verification/api.py b/toolbench/toolenv/tools/Tools/byteplant_email_address_online_verification/api.py new file mode 100644 index 0000000000000000000000000000000000000000..92be04d9f3aed037ae4a04b15be9a5354bd44976 --- /dev/null +++ b/toolbench/toolenv/tools/Tools/byteplant_email_address_online_verification/api.py @@ -0,0 +1,33 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def byteplant_email_address_validation(emailaddress: str, timeout: str=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Verify Email Address" + emailaddress: email address to validate (string) + timeout: timeout in seconds (default: 30s, min: 5s, max: 300s) + + """ + url = f"https://community-byteplant-email-address-online-verification.p.rapidapi.com/verify" + querystring = {'EmailAddress': emailaddress, } + if timeout: + querystring['Timeout'] = timeout + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "community-byteplant-email-address-online-verification.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Tools/c99_code_compiler.json b/toolbench/toolenv/tools/Tools/c99_code_compiler.json new file mode 100644 index 0000000000000000000000000000000000000000..f4e2a50a1e731e66b5ab80d05760238501bee01c --- /dev/null +++ b/toolbench/toolenv/tools/Tools/c99_code_compiler.json @@ -0,0 +1,93 @@ +{ + "tool_name": "C99 Code Compiler", + "tool_description": "C99 Code Compiler API", + "title": "C99 Code Compiler", + "pricing": "FREEMIUM", + "score": null, + "home_url": "https://rapidapi.com/UnlimitedAPI/api/c99-code-compiler/", + "host": "c99-code-compiler.p.rapidapi.com", + "api_list": [ + { + "name": "C99 Versions", + "url": "https://c99-code-compiler.p.rapidapi.com/versions/", + "description": "C99 Versions", + "method": "GET", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://c99-code-compiler.p.rapidapi.com/versions/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"c99-code-compiler.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 200, + "body": [ + { + "id": 0, + "version": "GCC 5.3.0" + }, + { + "id": 1, + "version": "GCC 7.2.0" + }, + { + "id": 2, + "version": "GCC 8.1.0" + }, + { + "id": 3, + "version": "GCC 9.1.0" + }, + { + "id": 4, + "version": "GCC 11.1.0" + } + ], + "headers": { + "access-control-allow-credentials": "true", + "access-control-allow-origin": "*", + "content-type": "application/json", + "date": "Mon, 22 Aug 2022 13:44:52 GMT", + "server": "RapidAPI-1.2.8", + "via": "1.1 vegur", + "x-rapidapi-region": "AWS - eu-central-1", + "x-rapidapi-version": "1.2.8" + }, + "schema": {} + }, + { + "name": "C99 Code Compiler", + "url": "https://c99-code-compiler.p.rapidapi.com/", + "description": "C99 Code Compiler", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://c99-code-compiler.p.rapidapi.com/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"c99-code-compiler.p.rapidapi.com\"\n}\n\nresponse = requests.post(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 200, + "body": { + "cpuTime": "0.00", + "memory": "1332", + "output": "Hello, World!" + }, + "headers": { + "access-control-allow-credentials": "true", + "access-control-allow-origin": "*", + "content-type": "application/json", + "date": "Mon, 22 Aug 2022 13:44:33 GMT", + "server": "RapidAPI-1.2.8", + "via": "1.1 vegur", + "x-rapidapi-region": "AWS - eu-central-1", + "x-rapidapi-version": "1.2.8" + }, + "schema": {} + }, + { + "name": "C99 Code Compiler", + "url": "https://c99-code-compiler.p.rapidapi.com/", + "description": "C99 Code Compiler", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://c99-code-compiler.p.rapidapi.com/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"c99-code-compiler.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://c99-code-compiler.p.rapidapi.com/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"c99-code-compiler.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": {} + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Tools/c99_code_compiler/api.py b/toolbench/toolenv/tools/Tools/c99_code_compiler/api.py new file mode 100644 index 0000000000000000000000000000000000000000..f4e64ee8c3525ac63271fd53cda8df22cdb2c919 --- /dev/null +++ b/toolbench/toolenv/tools/Tools/c99_code_compiler/api.py @@ -0,0 +1,29 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def c99_versions(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "C99 Versions" + + """ + url = f"https://c99-code-compiler.p.rapidapi.com/versions/" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "c99-code-compiler.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Tools/c_code_compiler.json b/toolbench/toolenv/tools/Tools/c_code_compiler.json new file mode 100644 index 0000000000000000000000000000000000000000..99678ad6bd5b8fa5df9b3f4b24cc5d816766d765 --- /dev/null +++ b/toolbench/toolenv/tools/Tools/c_code_compiler.json @@ -0,0 +1,103 @@ +{ + "tool_name": "C Code Compiler", + "tool_description": "C Code Compiler API", + "title": "C Code Compiler", + "pricing": "FREEMIUM", + "score": { + "avgServiceLevel": 100, + "avgLatency": 775, + "avgSuccessRate": 100, + "popularityScore": 8.9, + "__typename": "Score" + }, + "home_url": "https://rapidapi.com/UnlimitedAPI/api/c-code-compiler/", + "host": "c-code-compiler.p.rapidapi.com", + "api_list": [ + { + "name": "C Versions", + "url": "https://c-code-compiler.p.rapidapi.com/versions/", + "description": "C Versions", + "method": "GET", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://c-code-compiler.p.rapidapi.com/versions/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"c-code-compiler.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 200, + "body": [ + { + "id": 0, + "version": "GCC 5.3.0" + }, + { + "id": 1, + "version": "Zapcc 5.0.0" + }, + { + "id": 2, + "version": "GCC 7.2.0" + }, + { + "id": 3, + "version": "GCC 8.1.0" + }, + { + "id": 4, + "version": "GCC 9.1.0" + }, + { + "id": 5, + "version": "GCC 11.1.0" + } + ], + "headers": { + "access-control-allow-credentials": "true", + "access-control-allow-origin": "*", + "content-type": "application/json", + "date": "Mon, 22 Aug 2022 13:29:50 GMT", + "server": "RapidAPI-1.2.8", + "via": "1.1 vegur", + "x-rapidapi-region": "AWS - eu-central-1", + "x-rapidapi-version": "1.2.8" + }, + "schema": {} + }, + { + "name": "C Code Compiler", + "url": "https://c-code-compiler.p.rapidapi.com/", + "description": "C Code Compiler", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://c-code-compiler.p.rapidapi.com/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"c-code-compiler.p.rapidapi.com\"\n}\n\nresponse = requests.post(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 200, + "body": { + "cpuTime": "0.00", + "memory": "1376", + "output": "Hello, World!" + }, + "headers": { + "access-control-allow-credentials": "true", + "access-control-allow-origin": "*", + "content-type": "application/json", + "date": "Mon, 22 Aug 2022 13:28:52 GMT", + "server": "RapidAPI-1.2.8", + "via": "1.1 vegur", + "x-rapidapi-region": "AWS - eu-central-1", + "x-rapidapi-version": "1.2.8" + }, + "schema": {} + }, + { + "name": "C Code Compiler", + "url": "https://c-code-compiler.p.rapidapi.com/", + "description": "C Code Compiler", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://c-code-compiler.p.rapidapi.com/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"c-code-compiler.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://c-code-compiler.p.rapidapi.com/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"c-code-compiler.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": {} + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Tools/c_code_compiler/api.py b/toolbench/toolenv/tools/Tools/c_code_compiler/api.py new file mode 100644 index 0000000000000000000000000000000000000000..28d178f2d98b8f641c2217c33ad06bade9dfdff4 --- /dev/null +++ b/toolbench/toolenv/tools/Tools/c_code_compiler/api.py @@ -0,0 +1,29 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def c_versions(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "C Versions" + + """ + url = f"https://c-code-compiler.p.rapidapi.com/versions/" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "c-code-compiler.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Tools/c_sharp_code_compiler.json b/toolbench/toolenv/tools/Tools/c_sharp_code_compiler.json new file mode 100644 index 0000000000000000000000000000000000000000..9acede9eaf09d828bac84cb2417efd708f14a028 --- /dev/null +++ b/toolbench/toolenv/tools/Tools/c_sharp_code_compiler.json @@ -0,0 +1,80 @@ +{ + "tool_name":"C Sharp Code Compiler", + "tool_description":"C# Code Compiler API", + "title":"C Sharp Code Compiler", + "pricing":"FREEMIUM", + "score":null, + "home_url":"https://rapidapi.com/UnlimitedAPI/api/c-sharp-code-compiler/", + "host":"c-sharp-code-compiler.p.rapidapi.com", + "api_list":[ + { + "name":"C# Code Compiler", + "url":"https://c-sharp-code-compiler.p.rapidapi.com/", + "description":"C# Code Compiler", + "method":"POST", + "required_parameters":[], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://c-sharp-code-compiler.p.rapidapi.com/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"c-sharp-code-compiler.p.rapidapi.com\"\n}\n\nresponse = requests.post(url, headers=headers)\n\nprint(response.json())\n", + "statuscode":200, + "body":{ + "cpuTime":"0.01", + "memory":"16196", + "output":"Hello, World!" + }, + "headers":{ + "access-control-allow-credentials":"true", + "access-control-allow-origin":"*", + "content-type":"application/json", + "date":"Thu, 25 Aug 2022 18:14:24 GMT", + "server":"RapidAPI-1.2.8", + "via":"1.1 vegur", + "x-rapidapi-region":"AWS - eu-central-1", + "x-rapidapi-version":"1.2.8" + }, + "schema":{} + }, + { + "name":"C# Versions", + "url":"https://c-sharp-code-compiler.p.rapidapi.com/versions/", + "description":"C# Versions", + "method":"GET", + "required_parameters":[], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://c-sharp-code-compiler.p.rapidapi.com/versions/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"c-sharp-code-compiler.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode":200, + "body":[ + { + "id":0, + "version":"mono 4.2.2" + }, + { + "id":1, + "version":"mono 5.0.0" + }, + { + "id":2, + "version":"mono 5.10.1" + }, + { + "id":3, + "version":"mono 6.0.0" + }, + { + "id":4, + "version":"mono-6.12.0" + } + ], + "headers":{ + "access-control-allow-credentials":"true", + "access-control-allow-origin":"*", + "content-type":"application/json", + "date":"Thu, 25 Aug 2022 18:11:55 GMT", + "server":"RapidAPI-1.2.8", + "via":"1.1 vegur", + "x-rapidapi-region":"AWS - eu-central-1", + "x-rapidapi-version":"1.2.8" + }, + "schema":{} + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Tools/c_sharp_code_compiler/api.py b/toolbench/toolenv/tools/Tools/c_sharp_code_compiler/api.py new file mode 100644 index 0000000000000000000000000000000000000000..41a4db7bacaae8739e411bb3a0252cdb83075f1b --- /dev/null +++ b/toolbench/toolenv/tools/Tools/c_sharp_code_compiler/api.py @@ -0,0 +1,29 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def c_versions(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "C# Versions" + + """ + url = f"https://c-sharp-code-compiler.p.rapidapi.com/versions/" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "c-sharp-code-compiler.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Tools/calculate_travel_time/api.py b/toolbench/toolenv/tools/Tools/calculate_travel_time/api.py new file mode 100644 index 0000000000000000000000000000000000000000..20254863ac56c373a1405af6ff1283ec7b516092 --- /dev/null +++ b/toolbench/toolenv/tools/Tools/calculate_travel_time/api.py @@ -0,0 +1,29 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def default(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "default endpoint" + + """ + url = f"https://calculate-travel-time.p.rapidapi.com/" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "calculate-travel-time.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Tools/calculator/api.py b/toolbench/toolenv/tools/Tools/calculator/api.py new file mode 100644 index 0000000000000000000000000000000000000000..dcfa6db70ee65308cd5a47923724cf91d948e259 --- /dev/null +++ b/toolbench/toolenv/tools/Tools/calculator/api.py @@ -0,0 +1,29 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def ping(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Endpoint to test service status of api" + + """ + url = f"https://calculator17.p.rapidapi.com/ping" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "calculator17.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Tools/calendar_converter.json b/toolbench/toolenv/tools/Tools/calendar_converter.json new file mode 100644 index 0000000000000000000000000000000000000000..f4b4636c218600348432db6597e713e2b86886bf --- /dev/null +++ b/toolbench/toolenv/tools/Tools/calendar_converter.json @@ -0,0 +1,50 @@ +{ + "tool_name":"Calendar Converter", + "tool_description":"Converts dates between different civil, religious, and historical calendars", + "title":"Calendar Converter", + "pricing":"FREEMIUM", + "score":{ + "avgServiceLevel":100, + "avgLatency":4227, + "avgSuccessRate":98, + "popularityScore":9.2, + "__typename":"Score" + }, + "home_url":"https://rapidapi.com/chrisengelsma-q5hmQCD4hUN/api/calendar-converter/", + "host":"calendar-converter.p.rapidapi.com", + "api_list":[ + { + "name":"Convert Date", + "url":"https://calendar-converter.p.rapidapi.com/convert", + "description":"# Converts a date to a specified calendar.", + "method":"GET", + "required_parameters":[ + { + "name":"to", + "type":"ENUM", + "description":"The calendar to convert the specified date.\n\nPossible values are:\n\n- Gregorian\n- Julian\n- FrenchRepublican\n- Maya\n- Islamic\n- Hebrew", + "default":"" + } + ], + "optional_parameters":[ + { + "name":"date", + "type":"STRING", + "description":"A date in \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"yyyy-mm-dd\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\" format.", + "default":"1986-09-03" + }, + { + "name":"from", + "type":"ENUM", + "description":"", + "default":"" + } + ], + "code":"import requests\n\nurl = \"https://calendar-converter.p.rapidapi.com/convert\"\nquerystring = {\"date\": date, \"to\": to}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"calendar-converter.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Tools/calendar_converter/api.py b/toolbench/toolenv/tools/Tools/calendar_converter/api.py new file mode 100644 index 0000000000000000000000000000000000000000..3a64986f3d1d44a2c89c70ebd76b0c5ccfeb7008 --- /dev/null +++ b/toolbench/toolenv/tools/Tools/calendar_converter/api.py @@ -0,0 +1,44 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def convert_date(to: str, date: str='1986-09-03', is_from: str=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "# Converts a date to a specified calendar." + to: The calendar to convert the specified date. + +Possible values are: + +- Gregorian +- Julian +- FrenchRepublican +- Maya +- Islamic +- Hebrew + date: A date in \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"yyyy-mm-dd\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\" format. + + """ + url = f"https://calendar-converter.p.rapidapi.com/convert" + querystring = {'to': to, } + if date: + querystring['date'] = date + if is_from: + querystring['from'] = is_from + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "calendar-converter.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Tools/calendar_f1_races/api.py b/toolbench/toolenv/tools/Tools/calendar_f1_races/api.py new file mode 100644 index 0000000000000000000000000000000000000000..648de3752f9f6407d638d6a0e33493c993dba1e1 --- /dev/null +++ b/toolbench/toolenv/tools/Tools/calendar_f1_races/api.py @@ -0,0 +1,29 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def default(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "default endpoint" + + """ + url = f"https://calendar-f1-races.p.rapidapi.com/" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "calendar-f1-races.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Tools/candybar_barcode_api.json b/toolbench/toolenv/tools/Tools/candybar_barcode_api.json new file mode 100644 index 0000000000000000000000000000000000000000..cabfcee48ec776fb89df3740e3c230bd8984a7c6 --- /dev/null +++ b/toolbench/toolenv/tools/Tools/candybar_barcode_api.json @@ -0,0 +1,61 @@ +{ + "product_id": "api_fa7f5150-1bbf-46af-b086-ae5b7132a283", + "tool_description": "https://candybar.pw Sweet Barcodes Made Easy! ", + "home_url": "https://rapidapi.com/scottu/api/candybar-barcode-api/", + "name": "Candybar Barcode API", + "title": "Candybar Barcode API", + "pricing": "FREE", + "tool_name": "Candybar Barcode API", + "score": { + "avgServiceLevel": 100, + "avgLatency": 168, + "avgSuccessRate": 100, + "popularityScore": 9.2, + "__typename": "Score" + }, + "host": "candybar-barcode-api.p.rapidapi.com", + "api_list": [ + { + "name": "Decode Barcode", + "url": "https://candybar-barcode-api.p.rapidapi.com/v1/decode", + "description": "Translate a barcode file", + "method": "POST", + "required_parameters": [ + { + "name": "file", + "type": "BINARY", + "description": "", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://candybar-barcode-api.p.rapidapi.com/v1/decode\"\nquerystring = {\"file\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"candybar-barcode-api.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://candybar-barcode-api.p.rapidapi.com/v1/decode\"\nquerystring = {\"file\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"candybar-barcode-api.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "title": "Response Post Decode V1 Barcode Decode Post", + "type": "array", + "items": { + "title": "DecodeResult", + "required": [ + "code_type", + "contents" + ], + "type": "object", + "properties": { + "code_type": { + "title": "Code Type", + "type": "string" + }, + "contents": { + "title": "Contents", + "type": "string", + "format": "binary" + } + } + } + } + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Tools/capitalize_my_title.json b/toolbench/toolenv/tools/Tools/capitalize_my_title.json new file mode 100644 index 0000000000000000000000000000000000000000..fa89bbc07a4d9d22bec83d12cc8cb6bca5522004 --- /dev/null +++ b/toolbench/toolenv/tools/Tools/capitalize_my_title.json @@ -0,0 +1,371 @@ +{ + "tool_name": "Capitalize My Title", + "tool_description": "Capitalize your titles using logic from the leading title capitalization tool.", + "title": "Capitalize My Title", + "pricing": "FREEMIUM", + "score": { + "avgServiceLevel": 100, + "avgLatency": 160, + "avgSuccessRate": 100, + "popularityScore": 9.5, + "__typename": "Score" + }, + "home_url": "https://rapidapi.com/capitalize-my-title-cmt/api/capitalize-my-title/", + "host": "capitalize-my-title.p.rapidapi.com", + "api_list": [ + { + "name": "Bulk Title Case", + "url": "https://capitalize-my-title.p.rapidapi.com/title", + "description": "API endpoint for Capitalize My Title for capitalizing multiple titles at once.", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://capitalize-my-title.p.rapidapi.com/title\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"capitalize-my-title.p.rapidapi.com\"\n}\n\nresponse = requests.post(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 200, + "body": { + "code": 200, + "data": [ + [ + "1", + { + "char-count": 24, + "input": "This is the first title.", + "output": "This Is the First Title.", + "style": "apa", + "sub-style": "title-case", + "word-count": 5 + } + ], + [ + "2", + { + "char-count": 25, + "input": "this IS the second TiTle.", + "output": "This is the second title.", + "style": "apa", + "sub-style": "sentence-case", + "word-count": 5 + } + ], + [ + "3", + { + "char-count": 32, + "input": "this is the between third TiTle.", + "output": "This Is the Between Third Title.", + "style": "apa", + "sub-style": "title-case", + "word-count": 6 + } + ], + [ + "4", + { + "char-count": 45, + "input": "fourth TiTle is between the third and fourth.", + "output": "Fourth Title Is between the Third and Fourth.", + "style": "chicago", + "sub-style": "title-case", + "word-count": 8 + } + ] + ], + "message": "OK", + "status": "success" + }, + "headers": {}, + "schema": { + "properties": { + "code": { + "type": "integer" + }, + "data": { + "items": { + "type": "array" + }, + "type": "array" + }, + "message": { + "type": "string" + }, + "status": { + "type": "string" + } + }, + "type": "object" + } + }, + { + "name": "getTitle", + "url": "https://capitalize-my-title.p.rapidapi.com/title/{title}", + "description": "API endpoint for Capitalize My Title", + "method": "GET", + "required_parameters": [ + { + "name": "title", + "type": "string", + "description": "The {title} input is the title that you want to capitalize. Without styles specified, the title will be capitalized using [APA style rules in title case](https://capitalizemytitle.com/#APAStyle).", + "default": "capitalize this title" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://capitalize-my-title.p.rapidapi.com/title/{title}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"capitalize-my-title.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 200, + "body": { + "code": 200, + "data": { + "char-count": 21, + "input": "capitalize this text", + "output": "Capitalize This Text", + "style": "apa", + "sub-style": "title-case", + "word-count": 3 + }, + "message": "OK", + "status": "success" + }, + "headers": {}, + "schema": { + "properties": { + "code": { + "type": "integer" + }, + "data": { + "properties": { + "char-count": { + "type": "integer" + }, + "input": { + "type": "string" + }, + "output": { + "type": "string" + }, + "style": { + "type": "string" + }, + "sub-style": { + "type": "string" + }, + "word-count": { + "type": "integer" + } + }, + "type": "object" + }, + "message": { + "type": "string" + }, + "status": { + "type": "string" + } + }, + "type": "object" + } + }, + { + "name": "getTitleWithStyleAndSubstyle", + "url": "https://capitalize-my-title.p.rapidapi.com/title/{style}/{substyle}/{title}", + "description": "API endpoint for Capitalize My Title with style and sub-style", + "method": "GET", + "required_parameters": [ + { + "name": "title", + "type": "string", + "description": "", + "default": "capitalize this title now" + }, + { + "name": "style", + "type": "STRING", + "description": "The {style} input can be any of the following:\n\n- apa: Capitalize using the APA manual style guidelines.\n- chicago: Capitalize using the Chicago Manual of Style guidelines.\n- ap: Capitalize using the Associated Press Stylebook 2020 (55th edition).\n- mla: Capitalize using the MLA Handbook, 8th edition style rules.\n- nyt: Capitalize with the NY Times style rules.\n- ama: Capitalize using the American Medical Association (AMA) Manual of Style, 11th edition\n- bb: Capitalize using the The Bluebook, 21st edition\n- wikipedia: Capitalize with the Wikipedia style rules.\n- email: Capitalize with standard email style rules.", + "default": "ap" + }, + { + "name": "substyle", + "type": "STRING", + "description": "The {substyle} input can be any of the following:\n\n- title-case: Capitalize the first letter of important words.\n- sentence-case: Capitalize only the first word of each sentence. [More details](https://capitalizemytitle.com/#WhatiosTitleCase).\n- uppercase: Uppercase all letters.\n- lowercase: Lowercase all letters.\n- first-letter: Capitalize the first letter of every word.\n- alt-case: Capitalize every other letter of your text starting with the first letter being capitalized.\n- toggle-case: Change the case of every letter in your string.", + "default": "title-case" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://capitalize-my-title.p.rapidapi.com/title/{style}/{substyle}/{title}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"capitalize-my-title.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 200, + "body": { + "code": 200, + "data": { + "char-count": 21, + "input": "capitalize this title now", + "output": "Capitalize This Title Now", + "style": "ap", + "sub-style": "title-case", + "word-count": 3 + }, + "message": "OK", + "status": "success" + }, + "headers": { + "content-type": "application/json", + "date": "Tue, 15 Sep 2020 22:13:54 GMT", + "server": "RapidAPI-1.2.6", + "x-rapidapi-mock-response": "true", + "x-rapidapi-region": "AWS - us-west-2", + "x-rapidapi-version": "1.2.6", + "content-length": "191", + "connection": "Close" + }, + "schema": { + "properties": { + "code": { + "type": "integer" + }, + "data": { + "properties": { + "char-count": { + "type": "integer" + }, + "input": { + "type": "string" + }, + "output": { + "type": "string" + }, + "style": { + "type": "string" + }, + "sub-style": { + "type": "string" + }, + "word-count": { + "type": "integer" + } + }, + "type": "object" + }, + "message": { + "type": "string" + }, + "status": { + "type": "string" + } + }, + "type": "object" + } + }, + { + "name": "getTitleWithStyle", + "url": "https://capitalize-my-title.p.rapidapi.com/title/{style}/{title}", + "description": "API endpoint for Capitalize My Title with one style.", + "method": "GET", + "required_parameters": [ + { + "name": "style", + "type": "STRING", + "description": "The {style} input can be any of the following:\n\n- apa: Capitalize using the APA manual style guidelines.\n- chicago: Capitalize using the Chicago Manual of Style guidelines.\n- ap: Capitalize using the Associated Press Stylebook 2020 (55th edition).\n- mla: Capitalize using the MLA Handbook, 8th edition style rules.\n- nyt: Capitalize with the NY Times style rules.\n- ama: Capitalize using the American Medical Association (AMA) Manual of Style, 11th edition\n- bb: Capitalize using the The Bluebook, 21st edition\n- wikipedia: Capitalize with the Wikipedia style rules.\n- email: Capitalize with standard email style rules.\n- title-case: Capitalize the first letter of important words.\n- sentence-case: Capitalize only the first word of each sentence. [More details](https://capitalizemytitle.com/#WhatiosTitleCase).\n- uppercase: Uppercase all letters.\n- lowercase: Lowercase all letters.\n- first-letter: Capitalize the first letter of every word.\n- alt-case: Capitalize every other letter of your text starting with the first letter being capitalized.\n- toggle-case: Change the case of every letter in your string.", + "default": "ap" + }, + { + "name": "title", + "type": "string", + "description": "The {title} input is the title that you want to capitalize.", + "default": "capitalize this title now" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://capitalize-my-title.p.rapidapi.com/title/{style}/{title}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"capitalize-my-title.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 200, + "body": { + "code": 200, + "data": { + "char-count": 21, + "input": "capitalize this title now", + "output": "Capitalize This Title Now", + "style": "ap", + "sub-style": "title-case", + "word-count": 3 + }, + "message": "OK", + "status": "success" + }, + "headers": { + "content-type": "application/json", + "date": "Tue, 15 Sep 2020 22:13:54 GMT", + "server": "RapidAPI-1.2.6", + "x-rapidapi-mock-response": "true", + "x-rapidapi-region": "AWS - us-west-2", + "x-rapidapi-version": "1.2.6", + "content-length": "191", + "connection": "Close" + }, + "schema": { + "properties": { + "code": { + "type": "integer" + }, + "data": { + "properties": { + "char-count": { + "type": "integer" + }, + "input": { + "type": "string" + }, + "output": { + "type": "string" + }, + "style": { + "type": "string" + }, + "sub-style": { + "type": "string" + }, + "word-count": { + "type": "integer" + } + }, + "type": "object" + }, + "message": { + "type": "string" + }, + "status": { + "type": "string" + } + }, + "type": "object" + } + }, + { + "name": "Bulk Title Case", + "url": "https://capitalize-my-title.p.rapidapi.com/title", + "description": "API endpoint for Capitalize My Title for capitalizing multiple titles at once.", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://capitalize-my-title.p.rapidapi.com/title\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"capitalize-my-title.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://capitalize-my-title.p.rapidapi.com/title\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"capitalize-my-title.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "properties": { + "code": { + "type": "integer" + }, + "data": { + "items": { + "type": "array" + }, + "type": "array" + }, + "message": { + "type": "string" + }, + "status": { + "type": "string" + } + }, + "type": "object" + } + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Tools/capitalize_my_title/api.py b/toolbench/toolenv/tools/Tools/capitalize_my_title/api.py new file mode 100644 index 0000000000000000000000000000000000000000..b1642729d10bbcce1d35093c7217186aae576844 --- /dev/null +++ b/toolbench/toolenv/tools/Tools/capitalize_my_title/api.py @@ -0,0 +1,111 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def gettitle(title: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "API endpoint for Capitalize My Title" + title: The {title} input is the title that you want to capitalize. Without styles specified, the title will be capitalized using [APA style rules in title case](https://capitalizemytitle.com/#APAStyle). + + """ + url = f"https://capitalize-my-title.p.rapidapi.com/title/{title}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "capitalize-my-title.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def gettitlewithstyleandsubstyle(title: str, style: str, substyle: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "API endpoint for Capitalize My Title with style and sub-style" + style: The {style} input can be any of the following: + +- apa: Capitalize using the APA manual style guidelines. +- chicago: Capitalize using the Chicago Manual of Style guidelines. +- ap: Capitalize using the Associated Press Stylebook 2020 (55th edition). +- mla: Capitalize using the MLA Handbook, 8th edition style rules. +- nyt: Capitalize with the NY Times style rules. +- ama: Capitalize using the American Medical Association (AMA) Manual of Style, 11th edition +- bb: Capitalize using the The Bluebook, 21st edition +- wikipedia: Capitalize with the Wikipedia style rules. +- email: Capitalize with standard email style rules. + substyle: The {substyle} input can be any of the following: + +- title-case: Capitalize the first letter of important words. +- sentence-case: Capitalize only the first word of each sentence. [More details](https://capitalizemytitle.com/#WhatiosTitleCase). +- uppercase: Uppercase all letters. +- lowercase: Lowercase all letters. +- first-letter: Capitalize the first letter of every word. +- alt-case: Capitalize every other letter of your text starting with the first letter being capitalized. +- toggle-case: Change the case of every letter in your string. + + """ + url = f"https://capitalize-my-title.p.rapidapi.com/title/{style}/{substyle}/{title}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "capitalize-my-title.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def gettitlewithstyle(style: str, title: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "API endpoint for Capitalize My Title with one style." + style: The {style} input can be any of the following: + +- apa: Capitalize using the APA manual style guidelines. +- chicago: Capitalize using the Chicago Manual of Style guidelines. +- ap: Capitalize using the Associated Press Stylebook 2020 (55th edition). +- mla: Capitalize using the MLA Handbook, 8th edition style rules. +- nyt: Capitalize with the NY Times style rules. +- ama: Capitalize using the American Medical Association (AMA) Manual of Style, 11th edition +- bb: Capitalize using the The Bluebook, 21st edition +- wikipedia: Capitalize with the Wikipedia style rules. +- email: Capitalize with standard email style rules. +- title-case: Capitalize the first letter of important words. +- sentence-case: Capitalize only the first word of each sentence. [More details](https://capitalizemytitle.com/#WhatiosTitleCase). +- uppercase: Uppercase all letters. +- lowercase: Lowercase all letters. +- first-letter: Capitalize the first letter of every word. +- alt-case: Capitalize every other letter of your text starting with the first letter being capitalized. +- toggle-case: Change the case of every letter in your string. + title: The {title} input is the title that you want to capitalize. + + """ + url = f"https://capitalize-my-title.p.rapidapi.com/title/{style}/{title}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "capitalize-my-title.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Tools/captcha.json b/toolbench/toolenv/tools/Tools/captcha.json new file mode 100644 index 0000000000000000000000000000000000000000..588f1f6d80066b72e1ec4e3585c94a59ff736d95 --- /dev/null +++ b/toolbench/toolenv/tools/Tools/captcha.json @@ -0,0 +1,67 @@ +{ + "product_id": "api_76e0c610-fb7d-419b-97ea-13255f613a8c", + "tool_description": "Feeling nostalgic? Generate the same old alphanumeric captchas.", + "home_url": "https://rapidapi.com/admin-aCJ3BZYkR/api/captcha2/", + "name": "Captcha", + "title": "Captcha", + "pricing": "FREE", + "tool_name": "Captcha", + "score": { + "avgServiceLevel": 100, + "avgLatency": 7, + "avgSuccessRate": 91, + "popularityScore": 8.8, + "__typename": "Score" + }, + "host": "captcha2.p.rapidapi.com", + "api_list": [ + { + "name": "Generate Captcha", + "url": "https://captcha2.p.rapidapi.com/captcha", + "description": "Generates a captcha and returns a UUID.", + "method": "GET", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://captcha2.p.rapidapi.com/captcha\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"captcha2.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://captcha2.p.rapidapi.com/captcha\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"captcha2.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": { + "uuid": "2961c533-b254-4d48-8a0a-234ca85ef250", + "captcha": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKUAAABGCAYAAACt+1T2AAAM60lEQVR4Ae3BfUiVd8PA8e/12+XpdHbUMpeVziHNsiwnCILRbODMSqKENaFiYsGoILZeGG3EisFY/zVYltZWzboRJ4VZ9rJNog2tlKLVnOQ2X/KUL+nJjme+nC6v8/CD+4LznB23eu7uhzP4fT4a4EdRwohAUcKMQFHCjEBRwoxAUcKMQFHCjEBRwoxAUcKMQFHCjEBRwoxAUcKMQFHCjEBRwoxAUcKM4C/k5eXR29uLzWZDUf6/CCYwd+5cLl68yPTp0/nmm294nlJTU/k7NpuNiaSmpvJ3bDYbyj+TYAIDAwNId+/eZcWKFTxP9fX1zJ49m4kUFxczNDSEruuEUl9fz+zZs5lIcXExQ0ND6LqO8s8jmEB/fz9ffPEFIyMjRERE8LwkJSURGRnJ+vXrmUhZWRk2m42UlBSCJSUlERkZyfr165lIWVkZNpuNlJQU/luEEMTExBAVFYXyfOn8hdbWVn766Sd++OEHngdd10lJSUEIQVxcHKEkJiYSERGB1NfXRyBd10lJSUEIQVxcHKEkJiYSERGB1NfXx/O2fPlyjh07RlxcHBa/38+pU6dYt24dPp8P5T+j8xcOHDhATEwMbreb58E0TQYHB5EeP35MMLvdzuHDh7H09fURyDRNBgcHkR4/fkwwu93O4cOHsfT19fE8nT59moKCAoJpmsZbb71Ffn4+U6ZMwefzofzfCf6G2+3meXE4HKSmpiLdv3+fQNnZ2WzdupW8vDyktrY2gjkcDlJTU5Hu379PoOzsbLZu3UpeXh5SW1sbz1N1dTUFBQVIfr+fH3/8kc8//5wtW7Zw//59xsbG+OWXX6ipqUH5z+g8A13X6enpYcaMGRiGQSixsbFERkbS3t5OsJKSEmJjY5E6OjoI1NbWRnFxMZYzZ84QrKSkhNjYWKSOjg4CtbW1UVxcjOXMmTNYdF2np6eHGTNmYBgGocTGxhIZGUl7ezuBEhMT+fLLL8nNzUWqr69n2bJleL1epLlz5/LVV19hGAa5ubmUlpZisdvtLFy4kKamJpSnJ3gG6enpTJs2jW3btjERu93Ozp07CaWhoYFly5Yh3bt3j0APHjxA0zQkv99PVVUVwRoaGli2bBnSvXv3CPTgwQM0TUPy+/1UVVVhSU9PZ9q0aWzbto2J2O12du7cSbD333+fJUuWII2NjbF48WK8Xi+Wu3fv4vP5ME2T5uZm3njjDSQhBPv37+fatWvY7XaUpyd4Bnl5eUirV68mFCEEERERLF26lGBCCHbv3o0QAmnPnj0EysrKoqioCEnTNJqamggkhGD37t0IIZD27NlDoKysLIqKipA0TaOpqQlLXl4e0urVqwlFCEFERARLly4l0Lx58xgfH8dmsyGVlJTwV1wuF52dnUiLFy9m48aNCCHYtWsXytPTmcD06dNpa2tj1qxZeDwehBDMmjULac6cOYSycuVKnE4n8fHxBEtLS2Pq1KlYCgoKME2ToaEhnE4nQggsbrcbwzAIlJaWxtSpU7EUFBRgmiZDQ0M4nU6EEFjcbjeGYSAJIZg1axbSnDlzCGXlypU4nU7i4+OxxMTEMDw8zI4dO7B8+OGHPK34+Hg++OAD9u/fz44dO9i7dy/BUlNTaW5uRvnfdEJ45513KCoq4sUXX6S0tJS1a9fidDoZGBhAio6OJpTs7Gw6Ojqw2+0Ei4uLo7y8nM2bN2MYBpMnT0YyTZOMjAyuX7+OpmlIly5dIlhcXBzl5eVs3rwZwzCYPHkykmmaZGRkcP36dTRNQ7p06RIWp9PJwMAAUnR0NKFkZ2fT0dGB3W5HioqK4s0332RsbAxN05COHDmCz+fjaa1atYrY2FhGR0dxOp0kJSXR3t6O5ZVXXsEwDJQ/EwSJiYmhvr6eJUuWIDU3NyMZhkFkZCSmaaLrOqE4HA727duHpmkEy8nJIT8/H6mxsRHDMDAMA9M06erqQtM0LJWVlQTLyckhPz8fqbGxEcMwMAwD0zTp6upC0zQslZWVWAzDIDIyEtM00XWdUBwOB/v27UPTNKSoqCguXrzIli1bsHz00Uc8i4KCAhYvXkxpaSnSZ599RqDLly/z+uuvo/yZIIjb7SY6OpoXXngB6fTp00irVq3iyZMn+P1+NE0jlOrqahwOB6FMmjQJl8uFVF1dTaCcnBwC1dXVEWzSpEm4XC6k6upqAuXk5BCorq4Oy6pVq3jy5Al+vx9N0wiluroah8OBxeVysW7dOpYuXYo0PDxMf38/T0sIgc1m4+eff6alpQXp7bffRtd1JIfDQVJSEpcvX0b5M0EIV65cQfL7/bS0tCAlJCRgt9vx+/0E0nWdCxcuIFVWVjI2NkYoNTU1pKamIp0/f55AXq+XW7duIY2NjeH1eglWU1NDamoq0vnz5wnk9Xq5desW0tjYGF6vF0tCQgJ2ux2/308gXde5cOECUmVlJWNjY1gSExM5cOAAljt37vAskpKS+OOPP3jvvffIzs7G7XajaRoff/wx0qefforU2dmJ8meCAO+++y7ffvstTqcT6ebNm1jKysrIz8/HNE0suq7j8XjIy8tDGhgYoKSkhGAJCQkcOXKE6OhopJaWFizp6emMj4+TkpKCVFdXR7CEhASOHDlCdHQ0UktLC5b09HTGx8dJSUlBqqurI1BZWRn5+fmYpolF13U8Hg95eXlIAwMDlJSUYHG73Qgh6O7uRnr48CHPIjMzk/nz5xMbG8vo6Cj/+te/kHbv3k1MTAxTpkxhZGQEwzBQ/kwQoLS0lM7OToaHh5FOnjxJoNraWkZHR5GEEMTHx+P1etE0DV3X6e/vZ/v27YyPj2MpLCykq6uLpKQkpO7ubkzTREpOTubYsWOcO3eOO3fuIJWXlxOosLCQrq4ukpKSkLq7uzFNEyk5OZljx45x7tw57ty5g1ReXk6w2tpaRkdHkYQQxMfH4/V60TQNXdfp7+9n+/btjI+PIwkhkGbOnIn00ksv8SxsNhv37t3jzJkz7N27l+bmZiRN0+js7KSoqIhr166hhCYIoGkaGzduxOFwIH333XcEOnHiBC6XCyk5OZn29nacTidSbm4umZmZSB6PB0kIQUVFBYHOnj2Lpbe3l4yMDCTDMJBqa2uxCCGoqKgg0NmzZ7H09vaSkZGBZBgGUm1tLcFOnDiBy+VCSk5Opr29HafTiZSbm0tmZiaSx+NB8ng8BHr11Vd5FhERETidTiSXy0VfXx+//vorktPpRNM0ampqUEIThOD3+5F+//13LB6PB5vNxvz585EaGxvRNI3e3l4aGxvZtWsXDQ0NSLdv38Zy9OhRTNPEcvz4cSwejwfTNJG6u7u5efMmXq+XQEePHsU0TSzHjx/H4vF4ME0Tqbu7m5s3b+L1egnk8Xiw2WzMnz8fqbGxEU3T6O3tpbGxkV27dtHQ0IB0+/ZtJCEEUkNDA9K0adNwOBw8rZ6eHrxeL5LNZiMtLY39+/cT6Pvvv0cJTRCCpmlIo6OjWBwOB1VVVTx8+BApKioKn89HVlYWCxYsIDs7m0WLFiEdOnQIyWaz8ejRI4QQ3Lhxg5GREa5evUoohYWFZGRkEMhms/Ho0SOEENy4cYORkRGuXr1KKIWFhWRkZBDM4XBQVVXFw4cPkaKiovD5fGRlZbFgwQKys7NZtGgR0qFDh5BM0yQzM5MbN24wPDyMtH37dp7WrVu3sPh8PlpaWli4cCGBWltbUUITBDAMg/HxcULx+XzMnDkTl8uFZdOmTfT09HDq1CnGx8fxer2MjIxQVVWFNDo6ysGDB5E2bNiA0+lkIoZhEGx0dJSDBw8ibdiwAafTyUQMwyAUn8/HzJkzcblcWDZt2kRPTw+nTp1ifHwcr9fLyMgIVVVVWJqamnj55ZdpaWlhZGSETz75hNmzZ/M0XC4XgU6fPk1hYSGdnZ34/X58Ph8+nw8lNA3w82+HDh1i7dq1tLe389prr6FpGhabzcaaNWsoKyvD4XDQ2tpKSkoKkq7rGIaBEALTNAknNpuNNWvWUFZWhsPhoLW1lZSUFCRd1zEMAyEEpmkSyooVK4iNjeXrr79G8vv9GIaBaZoUFxdTUVHB30lLS2Pz5s0sX76cwsJC7t69y+DgIEpoGuDn306ePEliYiKTJk0iMzMTTdMIJoSgubmZefPm8U8ihKC5uZl58+bxLKZPn85vv/2G3+/n8ePHNDQ0cOXKFSoqKhgcHER5/jTAT4D+/n7mzJlDQkICt2/fRoGYmBjcbjcxMTG43W6U/y4N8KMoYUSgKGFGoChhRqAoYUagKGFGoChhRqAoYUagKGFGoChhRqAoYUagKGFGoChhRqAoYUagKGFGoChhRqAoYUagKGFGoChhRqAoYUagKGFGoChhRqAoYUagKGFGoChhRqAoYUagKGFGoChhRqAoYUagKGFGoChhRqAoYUagKGHmfwDNW8rPtreWgQAAAABJRU5ErkJggg==" + }, + "statuscode": 200, + "schema": { + "captcha": "Base64 Encoded Image", + "uuid": "UUID" + } + }, + { + "name": "Verify the captcha", + "url": "https://captcha2.p.rapidapi.com/verify", + "description": "Verify the captcha", + "method": "GET", + "required_parameters": [ + { + "name": "captcha", + "type": "STRING", + "description": "", + "default": "Captcha Text" + }, + { + "name": "uuid", + "type": "STRING", + "description": "", + "default": "UUID" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://captcha2.p.rapidapi.com/verify\"\nquerystring = {\"captcha\": \"Captcha Text\", \"uuid\": \"UUID\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"captcha2.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://captcha2.p.rapidapi.com/verify\"\nquerystring = {\"captcha\": \"Captcha Text\", \"uuid\": \"UUID\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"captcha2.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": { + "message": "The captcha UUID has expired!" + }, + "statuscode": 1, + "schema": "" + } + ], + "standardized_name": "captcha" +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Tools/captcha/api.py b/toolbench/toolenv/tools/Tools/captcha/api.py new file mode 100644 index 0000000000000000000000000000000000000000..9af190689a9be7ef1ee1b55c6b5ce56e55049c55 --- /dev/null +++ b/toolbench/toolenv/tools/Tools/captcha/api.py @@ -0,0 +1,50 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def generate_captcha(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Generates a captcha and returns a UUID." + + """ + url = f"https://captcha2.p.rapidapi.com/captcha" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "captcha2.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def verify_the_captcha(captcha: str, uuid: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Verify the captcha" + + """ + url = f"https://captcha2.p.rapidapi.com/verify" + querystring = {'captcha': captcha, 'uuid': uuid, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "captcha2.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Tools/captcha_generator.json b/toolbench/toolenv/tools/Tools/captcha_generator.json new file mode 100644 index 0000000000000000000000000000000000000000..71cf862cd480cc6379fe9f66f32405f2f18ab288 --- /dev/null +++ b/toolbench/toolenv/tools/Tools/captcha_generator.json @@ -0,0 +1,49 @@ +{ + "tool_name":"Captcha Generator", + "tool_description":"A captcha generator tool with different settings for difficulty.", + "title":"Captcha Generator", + "pricing":"FREE", + "score":{ + "avgServiceLevel":100, + "avgLatency":1523, + "avgSuccessRate":100, + "popularityScore":9.5, + "__typename":"Score" + }, + "home_url":"https://rapidapi.com/MenesesGHZ/api/captcha-generator/", + "host":"captcha-generator.p.rapidapi.com", + "api_list":[ + { + "name":"Captcha Generator", + "url":"https://captcha-generator.p.rapidapi.com/", + "description":"This is a captcha generator tool that gives you an image of 270x80 pixels and the text solution. It has different settings that allows you to configure the captcha difficulty, and even create a captcha with a custom text solution.", + "method":"GET", + "required_parameters":[], + "optional_parameters":[ + { + "name":"fontname", + "type":"STRING", + "description":"Supported fontnames: 'sora', 'noto-sans', 'ubuntu'. Default = 'sora'", + "default":"sora" + }, + { + "name":"noise_number", + "type":"NUMBER", + "description":"An integer value. Default = 10", + "default":"10" + }, + { + "name":"text", + "type":"STRING", + "description":"A custom captcha solution text. Default text solution is set aleatory", + "default":"" + } + ], + "code":"import requests\n\nurl = \"https://captcha-generator.p.rapidapi.com/\"\nquerystring = {\"fontname\": fontname, \"noise_number\": noise_number}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"captcha-generator.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Tools/captcha_generator/api.py b/toolbench/toolenv/tools/Tools/captcha_generator/api.py new file mode 100644 index 0000000000000000000000000000000000000000..9e529e9d490016caff8db12455b78ecba4ceef74 --- /dev/null +++ b/toolbench/toolenv/tools/Tools/captcha_generator/api.py @@ -0,0 +1,38 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def captcha_generator(fontname: str='sora', noise_number: int=10, text: str=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "This is a captcha generator tool that gives you an image of 270x80 pixels and the text solution. It has different settings that allows you to configure the captcha difficulty, and even create a captcha with a custom text solution." + fontname: Supported fontnames: 'sora', 'noto-sans', 'ubuntu'. Default = 'sora' + noise_number: An integer value. Default = 10 + text: A custom captcha solution text. Default text solution is set aleatory + + """ + url = f"https://captcha-generator.p.rapidapi.com/" + querystring = {} + if fontname: + querystring['fontname'] = fontname + if noise_number: + querystring['noise_number'] = noise_number + if text: + querystring['text'] = text + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "captcha-generator.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Tools/censor_bad_word/api.py b/toolbench/toolenv/tools/Tools/censor_bad_word/api.py new file mode 100644 index 0000000000000000000000000000000000000000..f3fdde73739b9e5e4cce0fe2102a25b76a33ec21 --- /dev/null +++ b/toolbench/toolenv/tools/Tools/censor_bad_word/api.py @@ -0,0 +1,29 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def default(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "default endpoint" + + """ + url = f"https://censor-bad-word1.p.rapidapi.com/" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "censor-bad-word1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Tools/censor_text.json b/toolbench/toolenv/tools/Tools/censor_text.json new file mode 100644 index 0000000000000000000000000000000000000000..56f02d12ff7bc90df33e8a797a7ae5db2ac3a6ce --- /dev/null +++ b/toolbench/toolenv/tools/Tools/censor_text.json @@ -0,0 +1,24 @@ +{ + "tool_name":"censor text", + "tool_description":"API filter and censor bad word in the text", + "title":"censor text", + "pricing":"FREEMIUM", + "score":null, + "home_url":"https://rapidapi.com/philipkeeling4614/api/censor-text/", + "host":"censor-text.p.rapidapi.com", + "api_list":[ + { + "name":"default", + "url":"https://censor-text.p.rapidapi.com/", + "description":"default endpoint", + "method":"GET", + "required_parameters":[], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://censor-text.p.rapidapi.com/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"censor-text.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Tools/censor_text/api.py b/toolbench/toolenv/tools/Tools/censor_text/api.py new file mode 100644 index 0000000000000000000000000000000000000000..6a9a79b87d19623a5454babe8e5445c851261126 --- /dev/null +++ b/toolbench/toolenv/tools/Tools/censor_text/api.py @@ -0,0 +1,29 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def default(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "default endpoint" + + """ + url = f"https://censor-text.p.rapidapi.com/" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "censor-text.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Tools/character_checker.json b/toolbench/toolenv/tools/Tools/character_checker.json new file mode 100644 index 0000000000000000000000000000000000000000..bde04cc46166df87585525e3458579f851f1bb6e --- /dev/null +++ b/toolbench/toolenv/tools/Tools/character_checker.json @@ -0,0 +1,221 @@ +{ + "tool_name":"Character Checker", + "tool_description":"Check if a string contains certain types of characters.", + "title":"Character Checker", + "pricing":"PAID", + "score":null, + "home_url":"https://rapidapi.com/ExoWatts/api/character-checker/", + "host":"character-checker.p.rapidapi.com", + "api_list":[ + { + "name":"uppercase", + "url":"https://character-checker.p.rapidapi.com/upper.php", + "description":"Checks if all of the characters in the provided string, text, are uppercase characters.", + "method":"GET", + "required_parameters":[ + { + "name":"string", + "type":"STRING", + "description":"", + "default":"ABCDEF" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://character-checker.p.rapidapi.com/upper.php\"\nquerystring = {\"string\": string}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"character-checker.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":200, + "body":{ + "check":true + }, + "headers":{ + "access-control-allow-credentials":"true", + "access-control-allow-origin":"*", + "alt-svc":"h3=\":443\"; ma=86400, h3-29=\":443\"; ma=86400", + "cf-cache-status":"DYNAMIC", + "cf-ray":"768180863f54176e-IAD", + "content-type":"application/json; charset=UTF-8", + "date":"Thu, 10 Nov 2022 20:22:45 GMT", + "nel":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}", + "report-to":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=KYUZ8Mgm%2F9TxkJY39ANs%2FeVK5lZwRV%2FTskkyEIrDQpCXSB5qHnlEcACjt6PAcieqvwotnNLV%2B9S8r%2BZZgax5dLpZCz7OCooRIiotLBsM%2BwCnOTXLq74yHouWezNrCoB1A53U\"}],\"group\":\"cf-nel\",\"max_age\":604800}", + "server":"RapidAPI-1.2.8", + "x-rapidapi-region":"AWS - us-east-1", + "x-rapidapi-version":"1.2.8" + }, + "schema":{} + }, + { + "name":"punctuation", + "url":"https://character-checker.p.rapidapi.com/punct.php", + "description":"Checks if all of the characters in the provided string are punctuation character.", + "method":"GET", + "required_parameters":[ + { + "name":"string", + "type":"STRING", + "description":"", + "default":"*&$()" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://character-checker.p.rapidapi.com/punct.php\"\nquerystring = {\"string\": string}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"character-checker.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":200, + "body":{ + "check":true + }, + "headers":{ + "access-control-allow-credentials":"true", + "access-control-allow-origin":"*", + "alt-svc":"h3=\":443\"; ma=86400, h3-29=\":443\"; ma=86400", + "cf-cache-status":"DYNAMIC", + "cf-ray":"76817dbb5c7e82f6-IAD", + "content-type":"application/json; charset=UTF-8", + "date":"Thu, 10 Nov 2022 20:20:51 GMT", + "nel":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}", + "report-to":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=zUCPlM3gCVz6ht9ZIti5YeaG7lcmRaGk1Na%2F5yzktoYgfdUkjq5PooTByaBl%2B%2FuTqLXz2x9HdR6ETNJfhr6jekeNwgMbgjl3bSrm92BiLl5%2FzLpy7SGQXIOK%2Bx1lu05yXpyt\"}],\"group\":\"cf-nel\",\"max_age\":604800}", + "server":"RapidAPI-1.2.8", + "x-rapidapi-region":"AWS - us-east-1", + "x-rapidapi-version":"1.2.8" + }, + "schema":{} + }, + { + "name":"lowercase", + "url":"https://character-checker.p.rapidapi.com/lower.php", + "description":"Checks if all of the characters in the provided string are lowercase letters.", + "method":"GET", + "required_parameters":[ + { + "name":"string", + "type":"STRING", + "description":"", + "default":"abcdef" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://character-checker.p.rapidapi.com/lower.php\"\nquerystring = {\"string\": string}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"character-checker.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":200, + "body":{ + "check":true + }, + "headers":{ + "access-control-allow-credentials":"true", + "access-control-allow-origin":"*", + "alt-svc":"h3=\":443\"; ma=86400, h3-29=\":443\"; ma=86400", + "cf-cache-status":"DYNAMIC", + "cf-ray":"76817bc6dc0482b1-IAD", + "content-type":"application/json; charset=UTF-8", + "date":"Thu, 10 Nov 2022 20:19:31 GMT", + "nel":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}", + "report-to":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=Em%2B2xnmEFanLKN28sWfxT0NJn%2F5Kryz4dgy7IGdxIlvQJNWF95wof%2FDnQK7N1DwGoxTz34LR%2F7%2BWrqk%2FH5ZDCavwoVi6ezdXyoCwwWy9W9dLD0AZJMY1vX8RTn7dYl2ccHjg\"}],\"group\":\"cf-nel\",\"max_age\":604800}", + "server":"RapidAPI-1.2.8", + "x-rapidapi-region":"AWS - us-east-1", + "x-rapidapi-version":"1.2.8" + }, + "schema":{} + }, + { + "name":"digit", + "url":"https://character-checker.p.rapidapi.com/digit.php", + "description":"Checks if all of the characters in the provided string are numerical.", + "method":"GET", + "required_parameters":[ + { + "name":"string", + "type":"STRING", + "description":"", + "default":"123456" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://character-checker.p.rapidapi.com/digit.php\"\nquerystring = {\"string\": string}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"character-checker.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":200, + "body":{ + "check":true + }, + "headers":{ + "access-control-allow-credentials":"true", + "access-control-allow-origin":"*", + "alt-svc":"h3=\":443\"; ma=86400, h3-29=\":443\"; ma=86400", + "cf-cache-status":"DYNAMIC", + "cf-ray":"7681795e1c5281ed-IAD", + "content-type":"application/json; charset=UTF-8", + "date":"Thu, 10 Nov 2022 20:17:52 GMT", + "nel":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}", + "report-to":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=nAB7dwAIQ5YjRnwM8iFeAA42iDByQEjnsx%2FA965jkh5RK9XoCQQsW9ivBgX%2Bnm4qaP%2B7IBS6Uuf7T8HGX4D%2F1p7aNRv7tq1EyetcbHiLNidsWr30LuH1xkZRQMcMDQ6io2WD\"}],\"group\":\"cf-nel\",\"max_age\":604800}", + "server":"RapidAPI-1.2.8", + "x-rapidapi-region":"AWS - us-east-1", + "x-rapidapi-version":"1.2.8" + }, + "schema":{} + }, + { + "name":"alphabetic", + "url":"https://character-checker.p.rapidapi.com/alpha.php", + "description":"Checks if all of the characters in the provided string are alphabetic.", + "method":"GET", + "required_parameters":[ + { + "name":"string", + "type":"STRING", + "description":"", + "default":"testing" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://character-checker.p.rapidapi.com/alpha.php\"\nquerystring = {\"string\": string}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"character-checker.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":200, + "body":{ + "check":true + }, + "headers":{ + "access-control-allow-credentials":"true", + "access-control-allow-origin":"*", + "alt-svc":"h3=\":443\"; ma=86400, h3-29=\":443\"; ma=86400", + "cf-cache-status":"DYNAMIC", + "cf-ray":"7681712c4c211366-IAD", + "content-type":"application/json; charset=UTF-8", + "date":"Thu, 10 Nov 2022 20:12:16 GMT", + "nel":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}", + "report-to":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=GBZqJC9nRXzUq5%2B3629wMikODLm1UE6Vb2UEQEkl81l3y%2BdoQfXIPTdMAyldFOlLcvkb1sb2HWxDyi%2BXFGmXt6UBcyGwpkg3uhAxkOFE0TE4imx6s4i92F2Zt2WCOkSETmgL\"}],\"group\":\"cf-nel\",\"max_age\":604800}", + "server":"RapidAPI-1.2.8", + "x-rapidapi-region":"AWS - us-east-1", + "x-rapidapi-version":"1.2.8" + }, + "schema":{} + }, + { + "name":"alphanumeric", + "url":"https://character-checker.p.rapidapi.com/alnum.php", + "description":"Checks if all of the characters in the provided string are alphanumeric.", + "method":"GET", + "required_parameters":[ + { + "name":"string", + "type":"STRING", + "description":"", + "default":"testing" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://character-checker.p.rapidapi.com/alnum.php\"\nquerystring = {\"string\": string}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"character-checker.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":200, + "body":{ + "check":true + }, + "headers":{ + "access-control-allow-credentials":"true", + "access-control-allow-origin":"*", + "alt-svc":"h3=\":443\"; ma=86400, h3-29=\":443\"; ma=86400", + "cf-cache-status":"DYNAMIC", + "cf-ray":"76816fb55dfb5806-IAD", + "content-type":"application/json; charset=UTF-8", + "date":"Thu, 10 Nov 2022 20:11:16 GMT", + "nel":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}", + "report-to":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=NOUDeGPjgEt%2BAr1wkW4Dq4pbLgbA%2BrMq6CUySDZG%2BEI0ofQqFCXgtHP8tEgrZb0n3BJTgJGFkvDIFTZiso8Y5%2BA5Ew4wr8sv%2FCK%2BguJdrWa%2Bh%2FVminDDsOTjutBf7aw%2FUNfM\"}],\"group\":\"cf-nel\",\"max_age\":604800}", + "server":"RapidAPI-1.2.8", + "x-rapidapi-region":"AWS - us-east-1", + "x-rapidapi-version":"1.2.8" + }, + "schema":{} + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Tools/character_checker/api.py b/toolbench/toolenv/tools/Tools/character_checker/api.py new file mode 100644 index 0000000000000000000000000000000000000000..65e111c579338139653798be92e07758713c669d --- /dev/null +++ b/toolbench/toolenv/tools/Tools/character_checker/api.py @@ -0,0 +1,134 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def uppercase(string: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Checks if all of the characters in the provided string, text, are uppercase characters." + + """ + url = f"https://character-checker.p.rapidapi.com/upper.php" + querystring = {'string': string, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "character-checker.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def punctuation(string: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Checks if all of the characters in the provided string are punctuation character." + + """ + url = f"https://character-checker.p.rapidapi.com/punct.php" + querystring = {'string': string, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "character-checker.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def lowercase(string: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Checks if all of the characters in the provided string are lowercase letters." + + """ + url = f"https://character-checker.p.rapidapi.com/lower.php" + querystring = {'string': string, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "character-checker.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def digit(string: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Checks if all of the characters in the provided string are numerical." + + """ + url = f"https://character-checker.p.rapidapi.com/digit.php" + querystring = {'string': string, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "character-checker.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def alphabetic(string: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Checks if all of the characters in the provided string are alphabetic." + + """ + url = f"https://character-checker.p.rapidapi.com/alpha.php" + querystring = {'string': string, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "character-checker.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def alphanumeric(string: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Checks if all of the characters in the provided string are alphanumeric." + + """ + url = f"https://character-checker.p.rapidapi.com/alnum.php" + querystring = {'string': string, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "character-checker.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Tools/chart2image.json b/toolbench/toolenv/tools/Tools/chart2image.json new file mode 100644 index 0000000000000000000000000000000000000000..ec0fad44c7418f271e711c2fd7bee1af0b4ca3b7 --- /dev/null +++ b/toolbench/toolenv/tools/Tools/chart2image.json @@ -0,0 +1,41 @@ +{ + "product_id": "api_d082babf-c37c-4d5b-b5e0-437cb491dcf7", + "tool_description": "Generate images(base64) from echart or chartjs simple and fast.", + "home_url": "https://rapidapi.com/izac98ximenes/api/chart2image/", + "name": "chart2image", + "title": "chart2image", + "pricing": "FREEMIUM", + "tool_name": "chart2image", + "score": { + "avgServiceLevel": 100, + "avgLatency": 2568, + "avgSuccessRate": 100, + "popularityScore": 8.5, + "__typename": "Score" + }, + "host": "chart2image.p.rapidapi.com", + "api_list": [ + { + "name": "Chartjs", + "url": "https://chart2image.p.rapidapi.com/chart", + "description": "Generate image(base64) from chartjs", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://chart2image.p.rapidapi.com/chart\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"chart2image.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://chart2image.p.rapidapi.com/chart\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"chart2image.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "Echarts", + "url": "https://chart2image.p.rapidapi.com/chart", + "description": "Generate image(base64) from echarts", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://chart2image.p.rapidapi.com/chart\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"chart2image.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://chart2image.p.rapidapi.com/chart\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"chart2image.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Tools/check_page_or_website_loading_speed.json b/toolbench/toolenv/tools/Tools/check_page_or_website_loading_speed.json new file mode 100644 index 0000000000000000000000000000000000000000..cc9ee4b873372730826cd103864610f92e73a816 --- /dev/null +++ b/toolbench/toolenv/tools/Tools/check_page_or_website_loading_speed.json @@ -0,0 +1,37 @@ +{ + "tool_name":"Check page or website loading speed", + "tool_description":"Check page or website loading speed", + "title":"Check page or website loading speed", + "pricing":"FREEMIUM", + "score":{ + "avgServiceLevel":100, + "avgLatency":1118, + "avgSuccessRate":100, + "popularityScore":8.8, + "__typename":"Score" + }, + "home_url":"https://rapidapi.com/barvanet-barvanet-default/api/check-page-or-website-loading-speed/", + "host":"check-page-or-website-loading-speed.p.rapidapi.com", + "api_list":[ + { + "name":"getPageSpeed", + "url":"https://check-page-or-website-loading-speed.p.rapidapi.com/", + "description":"Get page or website loading speed in seconds", + "method":"GET", + "required_parameters":[ + { + "name":"url", + "type":"STRING", + "description":"", + "default":"" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://check-page-or-website-loading-speed.p.rapidapi.com/\"\nquerystring = {\"url\": url}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"check-page-or-website-loading-speed.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Tools/check_page_or_website_loading_speed/api.py b/toolbench/toolenv/tools/Tools/check_page_or_website_loading_speed/api.py new file mode 100644 index 0000000000000000000000000000000000000000..47dc51f24154c9774035d4d11e67d00a73216404 --- /dev/null +++ b/toolbench/toolenv/tools/Tools/check_page_or_website_loading_speed/api.py @@ -0,0 +1,29 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def getpagespeed(url: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get page or website loading speed in seconds" + + """ + url = f"https://check-page-or-website-loading-speed.p.rapidapi.com/" + querystring = {'url': url, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "check-page-or-website-loading-speed.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Tools/checker.json b/toolbench/toolenv/tools/Tools/checker.json new file mode 100644 index 0000000000000000000000000000000000000000..ee43ad8d2377b6af2ee4a7ce242b01e614533fcf --- /dev/null +++ b/toolbench/toolenv/tools/Tools/checker.json @@ -0,0 +1,24 @@ +{ + "tool_name":"CHECKER", + "tool_description":"md5 decode", + "title":"CHECKER", + "pricing":"FREE", + "score":null, + "home_url":"https://rapidapi.com/pearce-pearce-default/api/checker3/", + "host":"checker3.p.rapidapi.com", + "api_list":[ + { + "name":"Checker", + "url":"https://checker3.p.rapidapi.com/", + "description":"MD5", + "method":"GET", + "required_parameters":[], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://checker3.p.rapidapi.com/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"checker3.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Tools/checker/api.py b/toolbench/toolenv/tools/Tools/checker/api.py new file mode 100644 index 0000000000000000000000000000000000000000..1e7c2d6cee6f2072e0ff1f87134cd45a9a322043 --- /dev/null +++ b/toolbench/toolenv/tools/Tools/checker/api.py @@ -0,0 +1,29 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def checker(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "MD5" + + """ + url = f"https://checker3.p.rapidapi.com/" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "checker3.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Tools/checklist.json b/toolbench/toolenv/tools/Tools/checklist.json new file mode 100644 index 0000000000000000000000000000000000000000..7ff274b26ff581e427ac584e0cdeffd524e79829 --- /dev/null +++ b/toolbench/toolenv/tools/Tools/checklist.json @@ -0,0 +1,59 @@ +{ + "product_id": "53aa34b7e4b0a798dbd190ad", + "tool_description": "The Checklist API gives you access to our To Do Task Management platform. Help your users Get Things Done!", + "home_url": "https://rapidapi.com/checklist/api/checklist/", + "name": "Checklist", + "title": "Checklist", + "pricing": "FREE", + "tool_name": "Checklist", + "score": null, + "host": "checklist-checklist.p.rapidapi.com", + "api_list": [ + { + "name": "Send Message", + "url": "https://checklist-checklist.p.rapidapi.com/users/sendMessage", + "description": "", + "method": "POST", + "required_parameters": [ + { + "name": "emails", + "type": "STRING", + "description": "Comma separated list of email addresses", + "default": "" + }, + { + "name": "message", + "type": "STRING", + "description": "The message body to be sent. Max 500 chars", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://checklist-checklist.p.rapidapi.com/users/sendMessage\"\nquerystring = {\"emails\": \"\", \"message\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"checklist-checklist.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://checklist-checklist.p.rapidapi.com/users/sendMessage\"\nquerystring = {\"emails\": \"\", \"message\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"checklist-checklist.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "Set Avatar", + "url": "https://checklist-checklist.p.rapidapi.com/users/avatar", + "description": "Returns the URL where the Avatar can be found", + "method": "POST", + "required_parameters": [ + { + "name": "File", + "type": "STRING", + "description": "", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://checklist-checklist.p.rapidapi.com/users/avatar\"\nquerystring = {\"File\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"checklist-checklist.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://checklist-checklist.p.rapidapi.com/users/avatar\"\nquerystring = {\"File\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"checklist-checklist.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Tools/chinese_city_list/api.py b/toolbench/toolenv/tools/Tools/chinese_city_list/api.py new file mode 100644 index 0000000000000000000000000000000000000000..491221e3c91bc535f6cb33afad87ab7b6145b3c3 --- /dev/null +++ b/toolbench/toolenv/tools/Tools/chinese_city_list/api.py @@ -0,0 +1,29 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def microservice_cityinfo(cityname: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "citylist" + + """ + url = f"https://maowandong-chinese-city-list-v1.p.rapidapi.com/microservice/cityinfo" + querystring = {'cityname': cityname, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "maowandong-chinese-city-list-v1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Tools/circle/api.py b/toolbench/toolenv/tools/Tools/circle/api.py new file mode 100644 index 0000000000000000000000000000000000000000..b7a718fec914a1274913da6659af962dd86e2edb --- /dev/null +++ b/toolbench/toolenv/tools/Tools/circle/api.py @@ -0,0 +1,29 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def default(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "default Endpoint" + + """ + url = f"https://circle7.p.rapidapi.com/" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "circle7.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Tools/cloud_connector_api.json b/toolbench/toolenv/tools/Tools/cloud_connector_api.json new file mode 100644 index 0000000000000000000000000000000000000000..e917ea075913aca989ef9d23b06b4a3ec3fea53c --- /dev/null +++ b/toolbench/toolenv/tools/Tools/cloud_connector_api.json @@ -0,0 +1,31 @@ +{ + "tool_name":"Cloud Connector API", + "tool_description":"\"Cloud Connector API\" is an API that enables easy integration of cloud-based services into your application.", + "title":"Cloud Connector API", + "pricing":"PAID", + "score":null, + "home_url":"https://rapidapi.com/joelosehioria/api/cloud-connector-api/", + "host":"cloud-connector-api.p.rapidapi.com", + "api_list":[ + { + "name":"QR Code Endpoint", + "url":"https://cloud-connector-api.p.rapidapi.com/qr-code", + "description":"The QR Code API endpoint allows for the creation and reading of QR codes. It enables users to generate QR codes for any type of data by making a GET request to the endpoint and passing the data they want to encode in the QR code as a parameter. The API endpoint also allows for the reading of QR codes by making a POST request to the endpoint and including the QR code image in the request body, the API will then return the data encoded in the QR code.", + "method":"GET", + "required_parameters":[], + "optional_parameters":[ + { + "name":"url", + "type":"STRING", + "description":"", + "default":"" + } + ], + "code":"import requests\n\nurl = \"https://cloud-connector-api.p.rapidapi.com/qr-code\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"cloud-connector-api.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Tools/cloud_connector_api/api.py b/toolbench/toolenv/tools/Tools/cloud_connector_api/api.py new file mode 100644 index 0000000000000000000000000000000000000000..a6ee58aa49cf63d68f7880faebdf774956f3e198 --- /dev/null +++ b/toolbench/toolenv/tools/Tools/cloud_connector_api/api.py @@ -0,0 +1,31 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def qr_code_endpoint(url: str=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "The QR Code API endpoint allows for the creation and reading of QR codes. It enables users to generate QR codes for any type of data by making a GET request to the endpoint and passing the data they want to encode in the QR code as a parameter. The API endpoint also allows for the reading of QR codes by making a POST request to the endpoint and including the QR code image in the request body, the API will then return the data encoded in the QR code." + + """ + url = f"https://cloud-connector-api.p.rapidapi.com/qr-code" + querystring = {} + if url: + querystring['url'] = url + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "cloud-connector-api.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Tools/cloud_storage_put_file/api.py b/toolbench/toolenv/tools/Tools/cloud_storage_put_file/api.py new file mode 100644 index 0000000000000000000000000000000000000000..e73d6ece0bb941a672e7b6d16ac93742208160fd --- /dev/null +++ b/toolbench/toolenv/tools/Tools/cloud_storage_put_file/api.py @@ -0,0 +1,39 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def upload(p: str, path: str, pc: str, u: str, content: str='/Documents/myfile.txt', content64: str=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "With this API you can upload a file to your online account using a simple rest call. If you don't have an account yet go on www.memopal.com, download the software and create one. Or create a free 3GB account here: + https://apps.memopal.com/l/activate-trial.php" + p: mypassword + pc: Memopal is organized in not less then three layers of subfolders: Computer/first_folders/other_folders_or_files so you need to specify always at leat a computer name and a folder + u: email address for accessing to your account + content: at least one folder is required then the name of the file + content64: base64 encoded the content of the file + + """ + url = f"https://memopal-cloud-storage-put-file.p.rapidapi.com/api/file/upload" + querystring = {'p': p, 'path': path, 'pc': pc, 'u': u, } + if content: + querystring['content'] = content + if content64: + querystring['content64'] = content64 + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "memopal-cloud-storage-put-file.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Tools/cloudentify.json b/toolbench/toolenv/tools/Tools/cloudentify.json new file mode 100644 index 0000000000000000000000000000000000000000..c73a60ad2c856558e53c0b41b07665e8935f2f22 --- /dev/null +++ b/toolbench/toolenv/tools/Tools/cloudentify.json @@ -0,0 +1,26 @@ +{ + "product_id": "api_d4ad10b6-2a61-46e3-ae98-2cc3ca529cda", + "tool_description": "Submit a public IP address and find out which cloud it's hosted in", + "home_url": "https://rapidapi.com/cloudentify/api/cloudentify/", + "name": "Cloudentify", + "title": "Cloudentify", + "pricing": "FREEMIUM", + "tool_name": "Cloudentify", + "score": null, + "host": "cloudentify.p.rapidapi.com", + "api_list": [ + { + "name": "Get cloud provider", + "url": "https://cloudentify.p.rapidapi.com/", + "description": "Returns the identified cloud provider", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://cloudentify.p.rapidapi.com/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"cloudentify.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://cloudentify.p.rapidapi.com/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"cloudentify.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": {} + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Tools/code_and_license_key_generator/api.py b/toolbench/toolenv/tools/Tools/code_and_license_key_generator/api.py new file mode 100644 index 0000000000000000000000000000000000000000..944aeb32277c73fd3b4e2859f7f6a1af4755452e --- /dev/null +++ b/toolbench/toolenv/tools/Tools/code_and_license_key_generator/api.py @@ -0,0 +1,142 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def splice(code_string: str, step_count: int, delimiter_string: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "**Summary** + Used to interpolate a delimiter pattern into a string at a specified regular interval. + + **Parameters** + - code_string: the string of text you wish to interpolate a delimiter into + - delimiter_string: the delimiter itself + - step_count: where in the code_string you want to insert the delimiter. It gets inserted ever nth step + + **Example** + - code_string: fioewiof349f83j4fj34jf93498 + - delimiter: == + - step_count: 4 + - result: fioe==wiof==349f==83j4==fj34==jf93==498" + + """ + url = f"https://code-and-license-key-generator.p.rapidapi.com/v1/splice/{code_string}/{delimiter_string}/{step_count}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "code-and-license-key-generator.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def random_codes(type: str, length: int, step: int, quantity: int, delimiter: int=2, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "**Summary** + Bulk generate quantities of generic codes in different formats. Cryptographically selected random numbers included in the strings created. + + **Parameters** + - type: what types of character should be included in each code string. Valid values: ( alphanumeric, lower_alphanumeric, all_alphanumeric, alpha, upper_alpha, lower_alpha, all_alpha, numeric) + - quantity: the quantity of codes to generate + - length: the number of characters to include in each code string + - step: where to insert the delimiter (delimiters are inserted every nth step) + - delimiter (optional): default is a dash '-'" + + """ + url = f"https://code-and-license-key-generator.p.rapidapi.com/v1/codes/{type}/{quantity}/{length}/{step}/{delimiter}" + querystring = {} + if delimiter: + querystring['delimiter'] = delimiter + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "code-and-license-key-generator.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def uuids(quantity: int, uuid_version: int, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "**Summary** + Bulk generates universally [unique identifier (UUID) codes](https://www.uuidtools.com/what-is-uuid). This endpoint can create type 1 (MAC address + timestamp-based) and type 4 (random-based) UUIDs. + + **Parameters** + - uuid_version: The version of UUID that you wish to acquire codes for + - quantity: the number of codes you wish to generate" + + """ + url = f"https://code-and-license-key-generator.p.rapidapi.com/v1/uuid/{uuid_version}/{quantity}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "code-and-license-key-generator.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def patterns(quantity: int, pattern_string: int, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "**Summary** + Bulk generates codes according to the pattern string specified. + + **Parameters** + - quantity: the number of codes you wish to + - pattern_string: a string of numbers used to identify what type of character should be used next in the string. Numbers are mapped as follows: + 1. upper alphanumeric + 2. lower alphanumeric + 3. all alphanumeric (integer or alphabet character either upper or lower or integer) + 4. upper alpha (uppercase alphabet) + 5. lower alpha (lowercase alphabet) + 6. all alpha (either upper or lower case alphabet) + 7. integer + 8. special characters + + **Example** + 123877 would be interpreted as: + - 'upper alpha' (1) + - 'lower alpha' (2) + - 'all alphanumeric' (3) + - 'special' (8) + - 'integer' (7) + - 'integer' (7) + Which could potentially generate a code like this: Ab3_89" + + """ + url = f"https://code-and-license-key-generator.p.rapidapi.com/v1/pattern/{quantity}/{pattern_string}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "code-and-license-key-generator.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Tools/code_compiler.json b/toolbench/toolenv/tools/Tools/code_compiler.json new file mode 100644 index 0000000000000000000000000000000000000000..7287d73398e9ecf0cd13cd0edcd171b0a3346b16 --- /dev/null +++ b/toolbench/toolenv/tools/Tools/code_compiler.json @@ -0,0 +1,50 @@ +{ + "product_id": "api_daac82a2-14a4-4509-b8d0-ea127cf71769", + "tool_description": "Compile your code in more than 35 languages and get detailed responses.", + "home_url": "https://rapidapi.com/abdheshnayak/api/code-compiler/", + "name": "Code Compiler", + "title": "Code Compiler", + "pricing": "FREEMIUM", + "tool_name": "Code Compiler", + "score": { + "avgServiceLevel": 81, + "avgLatency": 2766, + "avgSuccessRate": 72, + "popularityScore": 9.7, + "__typename": "Score" + }, + "host": "code-compiler.p.rapidapi.com", + "api_list": [ + { + "name": "Compile", + "url": "https://code-compiler.p.rapidapi.com/v2", + "description": "Compile your code quickly and get response.", + "method": "POST", + "required_parameters": [ + { + "name": "LanguageChoice", + "type": "NUMBER", + "description": "", + "default": "5" + }, + { + "name": "Program", + "type": "STRING", + "description": "", + "default": "print(\"Hello World!, on python language\")" + } + ], + "optional_parameters": [ + { + "name": "Input", + "type": "STRING", + "description": "", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://code-compiler.p.rapidapi.com/v2\"\nquerystring = {\"LanguageChoice\": \"5\", \"Input\": \"\", \"Program\": \"print(\\\"Hello World!, on python language\\\")\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"code-compiler.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://code-compiler.p.rapidapi.com/v2\"\nquerystring = {\"LanguageChoice\": \"5\", \"Input\": \"\", \"Program\": \"print(\\\"Hello World!, on python language\\\")\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"code-compiler.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Tools/code_to_image.json b/toolbench/toolenv/tools/Tools/code_to_image.json new file mode 100644 index 0000000000000000000000000000000000000000..be1fcc81c3db554e3c31cb8717bab24cabea887c --- /dev/null +++ b/toolbench/toolenv/tools/Tools/code_to_image.json @@ -0,0 +1,24 @@ +{ + "product_id": "api_bdb46cbb-5ebc-4591-94b6-684676f2d440", + "tool_description": "A code to image translater similar to Codeshot", + "home_url": "https://rapidapi.com/ionxccd/api/code-to-image1/", + "name": "Code to Image", + "title": "Code to Image", + "pricing": "FREEMIUM", + "tool_name": "Code to Image", + "score": null, + "host": "code-to-image1.p.rapidapi.com", + "api_list": [ + { + "name": "Code to Image", + "url": "https://code-to-image1.p.rapidapi.com/image", + "description": "Convert code string to formatted image", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://code-to-image1.p.rapidapi.com/image\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"code-to-image1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://code-to-image1.p.rapidapi.com/image\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"code-to-image1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Tools/collection_fun.json b/toolbench/toolenv/tools/Tools/collection_fun.json new file mode 100644 index 0000000000000000000000000000000000000000..ddcd29da547b92b5d44e0f08748cdf9f5ae255d8 --- /dev/null +++ b/toolbench/toolenv/tools/Tools/collection_fun.json @@ -0,0 +1,24 @@ +{ + "tool_name":"Collection Fun", + "tool_description":"API use to get a collection of fun fact about some country", + "title":"Collection Fun", + "pricing":"FREEMIUM", + "score":null, + "home_url":"https://rapidapi.com/keaganrowland21375/api/collection-fun/", + "host":"collection-fun.p.rapidapi.com", + "api_list":[ + { + "name":"default", + "url":"https://collection-fun.p.rapidapi.com/", + "description":"default endpoint", + "method":"GET", + "required_parameters":[], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://collection-fun.p.rapidapi.com/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"collection-fun.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Tools/collection_fun/api.py b/toolbench/toolenv/tools/Tools/collection_fun/api.py new file mode 100644 index 0000000000000000000000000000000000000000..daeaff847863532a32749f97253e9b94dabfff3c --- /dev/null +++ b/toolbench/toolenv/tools/Tools/collection_fun/api.py @@ -0,0 +1,29 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def default(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "default endpoint" + + """ + url = f"https://collection-fun.p.rapidapi.com/" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "collection-fun.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Tools/color_qr_code_with_your_logo.json b/toolbench/toolenv/tools/Tools/color_qr_code_with_your_logo.json new file mode 100644 index 0000000000000000000000000000000000000000..4373fb94089c520d30433125cb4fc4db285a7c36 --- /dev/null +++ b/toolbench/toolenv/tools/Tools/color_qr_code_with_your_logo.json @@ -0,0 +1,44 @@ +{ + "tool_name":"Color QR Code with Your Logo", + "tool_description":"This api receives a link, two optional color parameters and a parameter for the type of logo display. The colors are responsible for the background of the QR code and the color of the dots. the logo.", + "title":"Color QR Code with Your Logo", + "pricing":"FREEMIUM", + "score":null, + "home_url":"https://rapidapi.com/666kasai/api/color-qr-code-with-your-logo1/", + "host":"color-qr-code-with-your-logo1.p.rapidapi.com", + "api_list":[ + { + "name":"Create QR", + "url":"https://color-qr-code-with-your-logo1.p.rapidapi.com/create_qr", + "description":"This api receives a link, two optional color parameters and a parameter for the type of logo display. The colors are responsible for the background of the QR code and the color of the dots.", + "method":"GET", + "required_parameters":[ + { + "name":"url", + "type":"STRING", + "description":"", + "default":"https://www.google.com" + } + ], + "optional_parameters":[ + { + "name":"fill_color", + "type":"STRING", + "description":"", + "default":"purple" + }, + { + "name":"back_color", + "type":"STRING", + "description":"", + "default":"yellow" + } + ], + "code":"import requests\n\nurl = \"https://color-qr-code-with-your-logo1.p.rapidapi.com/create_qr\"\nquerystring = {\"url\": url, \"fill_color\": fill_color, \"back_color\": back_color}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"color-qr-code-with-your-logo1.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Tools/color_qr_code_with_your_logo/api.py b/toolbench/toolenv/tools/Tools/color_qr_code_with_your_logo/api.py new file mode 100644 index 0000000000000000000000000000000000000000..a0f32f23477e459b3ac381e6141088fc5beef163 --- /dev/null +++ b/toolbench/toolenv/tools/Tools/color_qr_code_with_your_logo/api.py @@ -0,0 +1,33 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def create_qr(url: str, fill_color: str='purple', back_color: str='yellow', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "This api receives a link, two optional color parameters and a parameter for the type of logo display. The colors are responsible for the background of the QR code and the color of the dots." + + """ + url = f"https://color-qr-code-with-your-logo1.p.rapidapi.com/create_qr" + querystring = {'url': url, } + if fill_color: + querystring['fill_color'] = fill_color + if back_color: + querystring['back_color'] = back_color + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "color-qr-code-with-your-logo1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Tools/color_to_picture_api.json b/toolbench/toolenv/tools/Tools/color_to_picture_api.json new file mode 100644 index 0000000000000000000000000000000000000000..48f77a1b2aa2ea1c59aaf63dc2029ee2af76f629 --- /dev/null +++ b/toolbench/toolenv/tools/Tools/color_to_picture_api.json @@ -0,0 +1,55 @@ +{ + "tool_name":"Color to picture API", + "tool_description":"Takes prompt of picture mode (L,RGB,RGBA), color in hex (example: ff03bc), width (example: 200), height (example: 200) and makes new image in single color", + "title":"Color to picture API", + "pricing":"FREEMIUM", + "score":{ + "avgServiceLevel":100, + "avgLatency":57957, + "avgSuccessRate":69, + "popularityScore":8.8, + "__typename":"Score" + }, + "home_url":"https://rapidapi.com/sinke100/api/color-to-picture-api/", + "host":"color-to-picture-api.p.rapidapi.com", + "api_list":[ + { + "name":"Color to picture", + "url":"https://color-to-picture-api.p.rapidapi.com/color-image", + "description":"Takes prompt of picture mode (L,RGB,RGBA), color in hex (example: ff03bc), width (example: 200), height (example: 200) and makes new image in single color)", + "method":"GET", + "required_parameters":[], + "optional_parameters":[ + { + "name":"height", + "type":"STRING", + "description":"", + "default":"200" + }, + { + "name":"color", + "type":"STRING", + "description":"", + "default":"ff0000" + }, + { + "name":"width", + "type":"STRING", + "description":"", + "default":"200" + }, + { + "name":"mode", + "type":"STRING", + "description":"", + "default":"RGB" + } + ], + "code":"import requests\n\nurl = \"https://color-to-picture-api.p.rapidapi.com/color-image\"\nquerystring = {\"height\": height, \"color\": color, \"width\": width, \"mode\": mode}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"color-to-picture-api.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Tools/color_to_picture_api/api.py b/toolbench/toolenv/tools/Tools/color_to_picture_api/api.py new file mode 100644 index 0000000000000000000000000000000000000000..6dd6fd410ab2add863d455cc3cd8a34f7680393f --- /dev/null +++ b/toolbench/toolenv/tools/Tools/color_to_picture_api/api.py @@ -0,0 +1,37 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def color_to_picture(height: str='200', color: str='ff0000', width: str='200', mode: str='RGB', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Takes prompt of picture mode (L,RGB,RGBA), color in hex (example: ff03bc), width (example: 200), height (example: 200) and makes new image in single color)" + + """ + url = f"https://color-to-picture-api.p.rapidapi.com/color-image" + querystring = {} + if height: + querystring['height'] = height + if color: + querystring['color'] = color + if width: + querystring['width'] = width + if mode: + querystring['mode'] = mode + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "color-to-picture-api.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Tools/colorme.json b/toolbench/toolenv/tools/Tools/colorme.json new file mode 100644 index 0000000000000000000000000000000000000000..bdddae7d6ad42c43ab3b5c95e005c7210d321ece --- /dev/null +++ b/toolbench/toolenv/tools/Tools/colorme.json @@ -0,0 +1,50 @@ +{ + "tool_name":"ColorMe", + "tool_description":"Get some colors either randomly selected or based on your input base color", + "title":"ColorMe", + "pricing":"FREE", + "score":{ + "avgServiceLevel":100, + "avgLatency":1944, + "avgSuccessRate":100, + "popularityScore":9.3, + "__typename":"Score" + }, + "home_url":"https://rapidapi.com/ReD001/api/colorme/", + "host":"colorme.p.rapidapi.com", + "api_list":[ + { + "name":"SpecificColorSet", + "url":"https://colorme.p.rapidapi.com/api/BasicColorsGenerator/{colorname}", + "description":"Get a set of colors based on input color like - \"yellow\" / \"red\"", + "method":"GET", + "required_parameters":[ + { + "name":"colorname", + "type":"string", + "description":"", + "default":"yellow" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://colorme.p.rapidapi.com/api/BasicColorsGenerator/{colorname}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"colorme.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + }, + { + "name":"RandomColorSet", + "url":"https://colorme.p.rapidapi.com/api/BasicColorsGenerator", + "description":"Get a random set of colors", + "method":"GET", + "required_parameters":[], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://colorme.p.rapidapi.com/api/BasicColorsGenerator\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"colorme.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Tools/colorme/api.py b/toolbench/toolenv/tools/Tools/colorme/api.py new file mode 100644 index 0000000000000000000000000000000000000000..9c0aba2cc218ad42c1b330cc0221b806e8962d4c --- /dev/null +++ b/toolbench/toolenv/tools/Tools/colorme/api.py @@ -0,0 +1,50 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def specificcolorset(colorname: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get a set of colors based on input color like - "yellow" / "red"" + + """ + url = f"https://colorme.p.rapidapi.com/api/basiccolorsgenerator/{colorname}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "colorme.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def randomcolorset(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get a random set of colors" + + """ + url = f"https://colorme.p.rapidapi.com/api/basiccolorsgenerator" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "colorme.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Tools/commonportnumbers.json b/toolbench/toolenv/tools/Tools/commonportnumbers.json new file mode 100644 index 0000000000000000000000000000000000000000..2a147c5283ee8878b6a65542d8aefd18eeb4e8e8 --- /dev/null +++ b/toolbench/toolenv/tools/Tools/commonportnumbers.json @@ -0,0 +1,49 @@ +{ + "tool_name":"CommonPortNumbers", + "tool_description":"Get registered service names and transport protocols port numbers.", + "title":"CommonPortNumbers", + "pricing":"FREEMIUM", + "score":{ + "avgServiceLevel":100, + "avgLatency":3643, + "avgSuccessRate":100, + "popularityScore":9, + "__typename":"Score" + }, + "home_url":"https://rapidapi.com/andrew.svintsitsky/api/commonportnumbers/", + "host":"commonportnumbers.p.rapidapi.com", + "api_list":[ + { + "name":"commonports", + "url":"https://commonportnumbers.p.rapidapi.com/commonportnames", + "description":"Get registered service names and transport protocols port numbers.", + "method":"GET", + "required_parameters":[], + "optional_parameters":[ + { + "name":"port", + "type":"STRING", + "description":"", + "default":"53" + }, + { + "name":"protocol", + "type":"STRING", + "description":"", + "default":"tcp" + }, + { + "name":"service", + "type":"STRING", + "description":"", + "default":"" + } + ], + "code":"import requests\n\nurl = \"https://commonportnumbers.p.rapidapi.com/commonportnames\"\nquerystring = {\"port\": port, \"protocol\": protocol}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"commonportnumbers.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Tools/commonportnumbers/api.py b/toolbench/toolenv/tools/Tools/commonportnumbers/api.py new file mode 100644 index 0000000000000000000000000000000000000000..821ea54b85c097282c9ab758beccbc354185c1b9 --- /dev/null +++ b/toolbench/toolenv/tools/Tools/commonportnumbers/api.py @@ -0,0 +1,35 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def commonports(port: str='53', protocol: str='tcp', service: str=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get registered service names and transport protocols port numbers." + + """ + url = f"https://commonportnumbers.p.rapidapi.com/commonportnames" + querystring = {} + if port: + querystring['port'] = port + if protocol: + querystring['protocol'] = protocol + if service: + querystring['service'] = service + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "commonportnumbers.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Tools/compressjpeg.json b/toolbench/toolenv/tools/Tools/compressjpeg.json new file mode 100644 index 0000000000000000000000000000000000000000..cf7e51ef38b94287a7c44cf0a2bc9cc0d884bc94 --- /dev/null +++ b/toolbench/toolenv/tools/Tools/compressjpeg.json @@ -0,0 +1,37 @@ +{ + "product_id": "api_767cbf4c-fc20-4d5d-af49-964ad083bb99", + "tool_description": "Compress JPEG images", + "home_url": "https://rapidapi.com/jsavajols/api/compressjpeg/", + "name": "CompressJpeg", + "title": "CompressJpeg", + "pricing": "FREE", + "tool_name": "CompressJpeg", + "score": { + "avgServiceLevel": 100, + "avgLatency": 10362, + "avgSuccessRate": 100, + "popularityScore": 8.7, + "__typename": "Score" + }, + "host": "compressjpeg.p.rapidapi.com", + "api_list": [ + { + "name": "jpgCompress", + "url": "https://compressjpeg.p.rapidapi.com/api/jpgCompress", + "description": "jpgCompress", + "method": "POST", + "required_parameters": [ + { + "name": "documents", + "type": "BINARY", + "description": "", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://compressjpeg.p.rapidapi.com/api/jpgCompress\"\nquerystring = {\"documents\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"compressjpeg.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://compressjpeg.p.rapidapi.com/api/jpgCompress\"\nquerystring = {\"documents\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"compressjpeg.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Tools/conditional_base.json b/toolbench/toolenv/tools/Tools/conditional_base.json new file mode 100644 index 0000000000000000000000000000000000000000..5fb45f042ac834408b159d0864ed8816cb804971 --- /dev/null +++ b/toolbench/toolenv/tools/Tools/conditional_base.json @@ -0,0 +1,24 @@ +{ + "tool_name":"Conditional Base", + "tool_description":"API return air conditional base on lat long coordinates", + "title":"Conditional Base", + "pricing":"FREEMIUM", + "score":null, + "home_url":"https://rapidapi.com/foremandanielle814/api/conditional-base/", + "host":"conditional-base.p.rapidapi.com", + "api_list":[ + { + "name":"default", + "url":"https://conditional-base.p.rapidapi.com/", + "description":"default endpoint", + "method":"GET", + "required_parameters":[], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://conditional-base.p.rapidapi.com/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"conditional-base.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Tools/conditional_base/api.py b/toolbench/toolenv/tools/Tools/conditional_base/api.py new file mode 100644 index 0000000000000000000000000000000000000000..fc46202469cfab5dcc97588b92c42ee27a0f51da --- /dev/null +++ b/toolbench/toolenv/tools/Tools/conditional_base/api.py @@ -0,0 +1,29 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def default(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "default endpoint" + + """ + url = f"https://conditional-base.p.rapidapi.com/" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "conditional-base.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Tools/contact_info_removal/api.py b/toolbench/toolenv/tools/Tools/contact_info_removal/api.py new file mode 100644 index 0000000000000000000000000000000000000000..232db0602601ac2c623dd84d532e17ef75f015df --- /dev/null +++ b/toolbench/toolenv/tools/Tools/contact_info_removal/api.py @@ -0,0 +1,148 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def remove_addresses(message: str, greedy: bool=None, replacementtext: str='
', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Remove all addresses from a given string of text. This will match short and longhand address such as: 111 Main St. or 111 Main Street, San Francisco, CA 94107" + message: This is a string which will be stripped of addresses + greedy: Setting greedy to true will cause the replacement to be more likely to match false positives. If this is false, only sure matches will be replaced. Default: false + replacementtext: The text to replace all matches with. If not set, the string "
" will be used + + """ + url = f"https://esseguin-remove-contact-info.p.rapidapi.com/api.php" + querystring = {'message': message, } + if greedy: + querystring['greedy'] = greedy + if replacementtext: + querystring['replacementText'] = replacementtext + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "esseguin-remove-contact-info.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def remove_phone_numbers(message: str, greedy: bool=None, replacementtext: str='', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Remove all phone numbers from a given string of text. Matches formats such as: 555.666.7777, (555) 666-7777, 555 666 7777." + message: This is a string which will be stripped of phone numbers + greedy: Setting greedy to true will cause the replacement to be more likely to match false positives. If this is false, only sure matches will be replaced. Default: false + replacementtext: The text to replace all matches with. If not set, the string "" will be used + + """ + url = f"https://esseguin-remove-contact-info.p.rapidapi.com/api.php" + querystring = {'message': message, } + if greedy: + querystring['greedy'] = greedy + if replacementtext: + querystring['replacementText'] = replacementtext + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "esseguin-remove-contact-info.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def remove_emails(message: str, greedy: bool=None, replacementtext: str='', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Remove all emails from a given string of text. This will match things such as: name@domain.com, name at domain dot com, name@domain dot com" + message: This is a string which will be stripped of emails + greedy: Setting greedy to true will cause the replacement to be more likely to match false positives. If this is false, only sure matches will be replaced. Default: false + replacementtext: The text to replace all matches with. If not set, the string "" will be used + + """ + url = f"https://esseguin-remove-contact-info.p.rapidapi.com/api.php" + querystring = {'message': message, } + if greedy: + querystring['greedy'] = greedy + if replacementtext: + querystring['replacementText'] = replacementtext + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "esseguin-remove-contact-info.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def remove_all(message: str, greedy: bool=None, replacementtext: str='', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Remove all phone numbers, addresses, and emails from a given string of text" + message: This is a string which will be stripped of all contact information + greedy: Setting greedy to true will cause the replacement to be more likely to match false positives. If this is false, only sure matches will be replaced. Default: false + replacementtext: The text to replace all matches with. If not set, the string "" will be used + + """ + url = f"https://esseguin-remove-contact-info.p.rapidapi.com/api.php" + querystring = {'message': message, } + if greedy: + querystring['greedy'] = greedy + if replacementtext: + querystring['replacementText'] = replacementtext + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "esseguin-remove-contact-info.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def remove_all_multiple(messages: str, greedy: bool=None, replacementtext: str='', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Remove all contact information from multiple messages. This endpoint lets you batch conversions and is faster than multiple individual requests." + messages: Multiple URL encoded strings, separated with commas + greedy: Setting greedy to true will cause the replacement to be more likely to match false positives. If this is false, only sure matches will be replaced. Default: false + replacementtext: The text to replace all matches with. If not set, the string "" will be used + + """ + url = f"https://esseguin-remove-contact-info.p.rapidapi.com/api.php" + querystring = {'messages': messages, } + if greedy: + querystring['greedy'] = greedy + if replacementtext: + querystring['replacementText'] = replacementtext + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "esseguin-remove-contact-info.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Tools/convert.json b/toolbench/toolenv/tools/Tools/convert.json new file mode 100644 index 0000000000000000000000000000000000000000..ecedc291e69dfbf8f14c71f5bf6dafb89d1354b4 --- /dev/null +++ b/toolbench/toolenv/tools/Tools/convert.json @@ -0,0 +1,51 @@ +{ + "product_id": "53aa5809e4b07e1f4ebebb40", + "tool_description": "A powerful unit conversion tool. Convert currency (using an up-to-date international currency feed). Convert most known measurement types: imperial, metric, mass, length, temperature, time (and more). The convertor will accept full unit names as well as abbreviations (e.g. millimeter and mm)", + "home_url": "https://rapidapi.com/neutrinoapi/api/convert-1/", + "name": "Convert", + "title": "Convert", + "pricing": "FREE", + "tool_name": "Convert", + "score": { + "avgServiceLevel": 100, + "avgLatency": 190, + "avgSuccessRate": 93, + "popularityScore": 9.6, + "__typename": "Score" + }, + "host": "community-neutrino-currency-conversion.p.rapidapi.com", + "api_list": [ + { + "name": "Convert", + "url": "https://community-neutrino-currency-conversion.p.rapidapi.com/convert", + "description": "", + "method": "POST", + "required_parameters": [ + { + "name": "from-value", + "type": "STRING", + "description": "The value to convert from", + "default": "10" + }, + { + "name": "from-type", + "type": "STRING", + "description": "The type of the value to convert from", + "default": "NZD" + }, + { + "name": "to-type", + "type": "STRING", + "description": "The type to convert to", + "default": "GBP" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://community-neutrino-currency-conversion.p.rapidapi.com/convert\"\nquerystring = {\"from-value\": \"10\", \"from-type\": \"NZD\", \"to-type\": \"GBP\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"community-neutrino-currency-conversion.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://community-neutrino-currency-conversion.p.rapidapi.com/convert\"\nquerystring = {\"from-value\": \"10\", \"from-type\": \"NZD\", \"to-type\": \"GBP\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"community-neutrino-currency-conversion.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Tools/convert_colors/api.py b/toolbench/toolenv/tools/Tools/convert_colors/api.py new file mode 100644 index 0000000000000000000000000000000000000000..bc7ebb3f3e3603f07352eacd2a221fbea370d71e --- /dev/null +++ b/toolbench/toolenv/tools/Tools/convert_colors/api.py @@ -0,0 +1,756 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def harmonies_cielab(a: int, l: int, b: int, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Displays the Harmonies for one CIELab color." + l: 0 - 100 + + """ + url = f"https://convert-colors.p.rapidapi.com/harmonies/cielab/{l}/{a}/{b}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "convert-colors.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def harmonies_android(color: int, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Displays the Harmonies for one Android color." + color: The decimal color value + + """ + url = f"https://convert-colors.p.rapidapi.com/harmonies/android/{color}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "convert-colors.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def harmonies_cielch(h: int, l: int, c: int, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Displays the Harmonies for one CIELch color." + l: 0 - 100 + + """ + url = f"https://convert-colors.p.rapidapi.com/harmonies/cielch/{l}/{c}/{h}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "convert-colors.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def harmonies_cmy(cyan: int, yellow: int, magenta: int, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Displays the Harmonies for one CMY color." + cyan: 0 - 1 + yellow: 0 - 1 + magenta: 0 - 1 + + """ + url = f"https://convert-colors.p.rapidapi.com/harmonies/cmy/{cyan}/{magenta}/{yellow}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "convert-colors.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def harmonies_cmyk(cyan: int, yellow: int, key: int, magenta: int, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Displays the Harmonies for one CMYK color." + cyan: 0 - 1 + yellow: 0 - 1 + key: 0 - 1 + magenta: 0 - 1 + + """ + url = f"https://convert-colors.p.rapidapi.com/harmonies/cmyk/{cyan}/{magenta}/{yellow}/{key}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "convert-colors.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def harmonies_decimal(color: int, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Displays the Harmonies for one Decimal color." + color: The decimal color value + + """ + url = f"https://convert-colors.p.rapidapi.com/harmonies/decimal/{color}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "convert-colors.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def harmonies_hex(color: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Displays the Harmonies for one Hex color." + color: 6 digits color string + + """ + url = f"https://convert-colors.p.rapidapi.com/harmonies/hex/{color}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "convert-colors.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def harmonies_hsl(saturation: int, lightness: int, hue: int, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Displays the Harmonies for one HSL color." + saturation: 0 - 100 + lightness: 0 - 100 + hue: 0 - 360 + + """ + url = f"https://convert-colors.p.rapidapi.com/harmonies/hsl/{hue}/{saturation}/{lightness}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "convert-colors.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def harmonies_hsv(saturation: int, hue: int, value: int, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Displays the Harmonies for one HSV color." + saturation: 0 - 100 + hue: 0 - 360 + value: 0 - 100 + + """ + url = f"https://convert-colors.p.rapidapi.com/harmonies/hsv/{hue}/{saturation}/{value}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "convert-colors.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def harmonies_rgb(green: int, red: int, blue: int, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Displays the Harmonies for one RGB color." + green: 0 - 255 + red: 0 - 255 + blue: 0 - 255 + + """ + url = f"https://convert-colors.p.rapidapi.com/harmonies/rgb/{red}/{green}/{blue}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "convert-colors.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def harmonies_rgb_percent(green: int, blue: int, red: int, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Displays the Harmonies for one RGB Percent color." + green: 0 - 100 + blue: 0 - 100 + red: 0 - 100 + + """ + url = f"https://convert-colors.p.rapidapi.com/harmonies/rgbpercent/{red}/{green}/{blue}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "convert-colors.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def harmonies_ryb(red: int, blue: int, yellow: int, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Displays the Harmonies for one RYB color." + red: 0 - 255 + blue: 0 - 255 + yellow: 0 - 255 + + """ + url = f"https://convert-colors.p.rapidapi.com/harmonies/ryb/{red}/{yellow}/{blue}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "convert-colors.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def harmonies_xyz(z: int, y: int, x: int, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Displays the Harmonies for one XYZ color." + z: 0 - 100 + y: 0 - 100 + x: 0 - 100 + + """ + url = f"https://convert-colors.p.rapidapi.com/harmonies/xyz/{x}/{y}/{z}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "convert-colors.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def harmonies_yuv(u: int, v: int, y: int, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Displays the Harmonies for one YUV color." + + """ + url = f"https://convert-colors.p.rapidapi.com/harmonies/yuv/{y}/{u}/{v}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "convert-colors.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def harmonies_yxy(ytwo: int, yone: int, x: int, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Displays the Harmonies for one Yxy color." + + """ + url = f"https://convert-colors.p.rapidapi.com/harmonies/yxy/{yone}/{x}/{ytwo}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "convert-colors.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def convert_android(target: str, color: int, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Convert one Android color to one of the 15 formats." + target: 'hex', 'rgb', 'ryb', 'hsl', 'hsv', 'cmy', 'cmyk', 'cielab', 'cielch', 'xyz', 'yxy', 'android', 'decimal', 'yuv', 'rgbpercent' + color: The decimal color value + + """ + url = f"https://convert-colors.p.rapidapi.com/convert/android/{target}/{color}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "convert-colors.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def convert_cielab(a: int, b: int, target: str, l: int, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Convert one CIELab color to one of the 15 formats." + target: 'hex', 'rgb', 'ryb', 'hsl', 'hsv', 'cmy', 'cmyk', 'cielab', 'cielch', 'xyz', 'yxy', 'android', 'decimal', 'yuv', 'rgbpercent' + l: 0 - 100 + + """ + url = f"https://convert-colors.p.rapidapi.com/convert/cielab/{target}/{l}/{a}/{b}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "convert-colors.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def convert_cielch(h: int, c: int, l: int, target: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Convert one CIELCh color to one of the 15 formats." + l: 0 - 100 + target: 'hex', 'rgb', 'ryb', 'hsl', 'hsv', 'cmy', 'cmyk', 'cielab', 'cielch', 'xyz', 'yxy', 'android', 'decimal', 'yuv', 'rgbpercent' + + """ + url = f"https://convert-colors.p.rapidapi.com/convert/cielch/{target}/{l}/{c}/{h}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "convert-colors.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def convert_cmy(magenta: int, yellow: int, cyan: int, target: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Convert one CMY color to one of the 15 formats." + magenta: 0 - 1 + yellow: 0 - 1 + cyan: 0 - 1 + target: 'hex', 'rgb', 'ryb', 'hsl', 'hsv', 'cmy', 'cmyk', 'cielab', 'cielch', 'xyz', 'yxy', 'android', 'decimal', 'yuv', 'rgbpercent' + + """ + url = f"https://convert-colors.p.rapidapi.com/convert/cmy/{target}/{cyan}/{magenta}/{yellow}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "convert-colors.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def convert_cmyk(cyan: int, key: int, target: str, yellow: int, magenta: int, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Convert one CMYK color to one of the 15 formats." + cyan: 0 - 1 + key: 0 - 1 + target: 'hex', 'rgb', 'ryb', 'hsl', 'hsv', 'cmy', 'cmyk', 'cielab', 'cielch', 'xyz', 'yxy', 'android', 'decimal', 'yuv', 'rgbpercent' + yellow: 0 - 1 + magenta: 0 - 1 + + """ + url = f"https://convert-colors.p.rapidapi.com/convert/cmyk/{target}/{cyan}/{magenta}/{yellow}/{key}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "convert-colors.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def convert_decimal(target: str, color: int, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Convert one Decimal color to one of the 15 formats." + target: 'hex', 'rgb', 'ryb', 'hsl', 'hsv', 'cmy', 'cmyk', 'cielab', 'cielch', 'xyz', 'yxy', 'android', 'decimal', 'yuv', 'rgbpercent' + color: The decimal color value + + """ + url = f"https://convert-colors.p.rapidapi.com/convert/decimal/{target}/{color}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "convert-colors.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def convert_hex(color: str, target: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Convert one HEX color to one of the 15 formats." + color: 6 digits color string + target: 'hex', 'rgb', 'ryb', 'hsl', 'hsv', 'cmy', 'cmyk', 'cielab', 'cielch', 'xyz', 'yxy', 'android', 'decimal', 'yuv', 'rgbpercent' + + """ + url = f"https://convert-colors.p.rapidapi.com/convert/hex/{target}/{color}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "convert-colors.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def convert_hsl(hue: int, target: str, saturation: int, lightness: int, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Convert one HSL color to one of the 15 formats." + hue: 0 - 360 + target: 'hex', 'rgb', 'ryb', 'hsl', 'hsv', 'cmy', 'cmyk', 'cielab', 'cielch', 'xyz', 'yxy', 'android', 'decimal', 'yuv', 'rgbpercent' + saturation: 0 - 100 + lightness: 0 - 100 + + """ + url = f"https://convert-colors.p.rapidapi.com/convert/hsl/{target}/{hue}/{saturation}/{lightness}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "convert-colors.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def convert_hsv(hue: int, value: int, saturation: int, target: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Convert one HSV color to one of the 15 formats." + hue: 0 - 360 + value: 0 - 100 + saturation: 0 - 100 + target: 'hex', 'rgb', 'ryb', 'hsl', 'hsv', 'cmy', 'cmyk', 'cielab', 'cielch', 'xyz', 'yxy', 'android', 'decimal', 'yuv', 'rgbpercent' + + """ + url = f"https://convert-colors.p.rapidapi.com/convert/hsv/{target}/{hue}/{saturation}/{value}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "convert-colors.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def convert_rgb(target: str, red: int, green: int, blue: int, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Convert one RGB color to one of the 15 formats." + target: 'hex', 'rgb', 'ryb', 'hsl', 'hsv', 'cmy', 'cmyk', 'cielab', 'cielch', 'xyz', 'yxy', 'android', 'decimal', 'yuv', 'rgbpercent' + red: 0 - 255 + green: 0 - 255 + blue: 0 - 255 + + """ + url = f"https://convert-colors.p.rapidapi.com/convert/rgb/{target}/{red}/{green}/{blue}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "convert-colors.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def convert_rgb_percent(red: int, green: int, blue: int, target: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Convert one RGB Percent color to one of the 15 formats." + red: 0 - 100 + green: 0 - 100 + blue: 0 - 100 + target: 'hex', 'rgb', 'ryb', 'hsl', 'hsv', 'cmy', 'cmyk', 'cielab', 'cielch', 'xyz', 'yxy', 'android', 'decimal', 'yuv', 'rgbpercent' + + """ + url = f"https://convert-colors.p.rapidapi.com/convert/rgbpercent/{target}/{red}/{green}/{blue}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "convert-colors.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def convert_ryb(blue: int, red: int, target: str, yellow: int, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Convert one RYB color to one of the 15 formats." + blue: 0 - 255 + red: 0 - 255 + target: 'hex', 'rgb', 'ryb', 'hsl', 'hsv', 'cmy', 'cmyk', 'cielab', 'cielch', 'xyz', 'yxy', 'android', 'decimal', 'yuv', 'rgbpercent' + yellow: 0 - 255 + + """ + url = f"https://convert-colors.p.rapidapi.com/convert/ryb/{target}/{red}/{yellow}/{blue}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "convert-colors.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def convert_xyz(target: str, y: int, z: int, x: int, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Convert one XYZ color to one of the 15 formats." + target: 'hex', 'rgb', 'ryb', 'hsl', 'hsv', 'cmy', 'cmyk', 'cielab', 'cielch', 'xyz', 'yxy', 'android', 'decimal', 'yuv', 'rgbpercent' + y: 0 - 100 + z: 0 - 100 + x: 0 - 100 + + """ + url = f"https://convert-colors.p.rapidapi.com/convert/xyz/{target}/{x}/{y}/{z}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "convert-colors.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def convert_yuv(y: int, u: int, target: str, v: int, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Convert one YUV color to one of the 15 formats." + target: 'hex', 'rgb', 'ryb', 'hsl', 'hsv', 'cmy', 'cmyk', 'cielab', 'cielch', 'xyz', 'yxy', 'android', 'decimal', 'yuv', 'rgbpercent' + + """ + url = f"https://convert-colors.p.rapidapi.com/convert/yuv/{target}/{y}/{u}/{v}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "convert-colors.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def convert_yxy(x: int, yone: int, target: str, ytwo: int, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Convert one Yxy color to one of the 15 formats." + target: 'hex', 'rgb', 'ryb', 'hsl', 'hsv', 'cmy', 'cmyk', 'cielab', 'cielch', 'xyz', 'yxy', 'android', 'decimal', 'yuv', 'rgbpercent' + + """ + url = f"https://convert-colors.p.rapidapi.com/convert/yxy/{target}/{yone}/{x}/{ytwo}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "convert-colors.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def color_format(value: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get a color format guess based on the string passed." + value: Any color string. Some color formats use the same notation, and the API will guess the composition of the input string. As an example, if you pass the string "135°, 96%, 39%" it could be an HSV or HSL color. The API will assume HSL in this case. + + """ + url = f"https://convert-colors.p.rapidapi.com/format/{value}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "convert-colors.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def wcag_color_contrast(hexone: str, hextwo: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get the WCAG Color Contrast for two Hex Colors." + + """ + url = f"https://convert-colors.p.rapidapi.com/wcag/contrast/{hexone}/{hextwo}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "convert-colors.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Tools/convert_torrent_file_to_magneturl/api.py b/toolbench/toolenv/tools/Tools/convert_torrent_file_to_magneturl/api.py new file mode 100644 index 0000000000000000000000000000000000000000..d8132a2f3386808dd366bd35e88dce1bdac44ac4 --- /dev/null +++ b/toolbench/toolenv/tools/Tools/convert_torrent_file_to_magneturl/api.py @@ -0,0 +1,29 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def api(urltorrnet: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Torrent" + + """ + url = f"https://convert-torrent-file-to-magneturl.p.rapidapi.com/torrenttomagnet" + querystring = {'urlTorrnet': urltorrnet, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "convert-torrent-file-to-magneturl.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Tools/convertdocs.json b/toolbench/toolenv/tools/Tools/convertdocs.json new file mode 100644 index 0000000000000000000000000000000000000000..3e1295292bf161e8fcb5c79fc0c627ab03b8fcce --- /dev/null +++ b/toolbench/toolenv/tools/Tools/convertdocs.json @@ -0,0 +1,37 @@ +{ + "product_id": "api_1b3d2d31-fd37-4d61-93ab-634d12db39d0", + "tool_description": "Convert documents to PDF.\n\nSupported files: doc, docx, pps, ppsx, ppt, pptx, rtf, xls, xlsx", + "home_url": "https://rapidapi.com/farolan/api/convertdocs/", + "name": "ConvertDocs", + "title": "ConvertDocs", + "pricing": "FREEMIUM", + "tool_name": "ConvertDocs", + "score": { + "avgServiceLevel": 98, + "avgLatency": 3612, + "avgSuccessRate": 98, + "popularityScore": 9.2, + "__typename": "Score" + }, + "host": "convertdocs.p.rapidapi.com", + "api_list": [ + { + "name": "/convert", + "url": "https://convertdocs.p.rapidapi.com/convert", + "description": "Convert documents to PDF. Supported files: doc, docx, pps, ppsx, ppt, pptx, rtf, xls, xlsx", + "method": "POST", + "required_parameters": [ + { + "name": "file", + "type": "BINARY", + "description": "", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://convertdocs.p.rapidapi.com/convert\"\nquerystring = {\"file\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"convertdocs.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://convertdocs.p.rapidapi.com/convert\"\nquerystring = {\"file\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"convertdocs.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Tools/convertrix/api.py b/toolbench/toolenv/tools/Tools/convertrix/api.py new file mode 100644 index 0000000000000000000000000000000000000000..da2512ac2ce7e0590aad9ab8ab1f499d093e7c0b --- /dev/null +++ b/toolbench/toolenv/tools/Tools/convertrix/api.py @@ -0,0 +1,38 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def get_all_supported_conversion(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "This will return a JSON Dictionary of all the supported conversions. + + In the example below `docx` is what you can convert FROM and all the children are what it can be converted to + + > "docx": [ + "pdf", + "html", + "jpeg", + "rtf" + ]," + + """ + url = f"https://convertrix.p.rapidapi.com/api/filemanagement/getallconversiontypes" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "convertrix.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Tools/convexity.json b/toolbench/toolenv/tools/Tools/convexity.json new file mode 100644 index 0000000000000000000000000000000000000000..fc691a814e884b0d07f3f8993c7c326ac8eea001 --- /dev/null +++ b/toolbench/toolenv/tools/Tools/convexity.json @@ -0,0 +1,1303 @@ +{ + "tool_name":"Convexity", + "tool_description":"Convexity is an Color-convertor API that offers endpoints for converting between different color representations, including RGB, HSL, and CMYK", + "title":"Convexity", + "pricing":"FREEMIUM", + "score":{ + "avgServiceLevel":94, + "avgLatency":33686, + "avgSuccessRate":61, + "popularityScore":9.4, + "__typename":"Score" + }, + "home_url":"https://rapidapi.com/metalovia/api/convexity/", + "host":"convexity.p.rapidapi.com", + "api_list":[ + { + "name":"convert hsv", + "url":"https://convexity.p.rapidapi.com/convert-hsv/", + "description":"Endpoint to converts HSV color code to other color code like Hex , RGB, CMYK,HSL", + "method":"GET", + "required_parameters":[ + { + "name":"s", + "type":"NUMBER", + "description":"", + "default":"78" + }, + { + "name":"h", + "type":"NUMBER", + "description":"", + "default":"250" + }, + { + "name":"v", + "type":"NUMBER", + "description":"", + "default":"45" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://convexity.p.rapidapi.com/convert-hsv/\"\nquerystring = {\"s\": s, \"h\": h, \"v\": v}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"convexity.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":200, + "body":{ + "hex":"#3719cc", + "rgb":{ + "red":55, + "green":25, + "blue":204 + }, + "hsl":{ + "hue":250, + "saturation":78, + "lightness":45 + }, + "cmyk":{ + "cyan":73, + "magenta":88, + "yellow":0, + "key":20 + } + }, + "headers":{ + "access-control-allow-credentials":"true", + "access-control-allow-origin":"*", + "alt-svc":"h3=\":443\"; ma=86400, h3-29=\":443\"; ma=86400", + "cf-cache-status":"DYNAMIC", + "cf-ray":"7ad5e4ca182e40a2-SIN", + "content-type":"application/json", + "date":"Sat, 25 Mar 2023 08:48:14 GMT", + "server":"RapidAPI-1.2.8", + "vary":"Accept-Encoding", + "x-rapidapi-region":"AWS - ap-southeast-1", + "x-rapidapi-version":"1.2.8", + "x-render-origin-server":"uvicorn" + }, + "schema":{} + }, + { + "name":"hsv to hsl", + "url":"https://convexity.p.rapidapi.com/hsv-to-hsl/", + "description":"Converts hsv color code to hsv color code", + "method":"GET", + "required_parameters":[ + { + "name":"s", + "type":"NUMBER", + "description":"", + "default":"78" + }, + { + "name":"h", + "type":"NUMBER", + "description":"", + "default":"250" + }, + { + "name":"v", + "type":"NUMBER", + "description":"", + "default":"45" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://convexity.p.rapidapi.com/hsv-to-hsl/\"\nquerystring = {\"s\": s, \"h\": h, \"v\": v}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"convexity.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":200, + "body":{ + "red":55, + "green":25, + "blue":204 + }, + "headers":{ + "access-control-allow-credentials":"true", + "access-control-allow-origin":"*", + "alt-svc":"h3=\":443\"; ma=86400, h3-29=\":443\"; ma=86400", + "cf-cache-status":"DYNAMIC", + "cf-ray":"7ad5e9d8ed8d3de8-SIN", + "content-type":"application/json", + "date":"Sat, 25 Mar 2023 08:51:41 GMT", + "server":"RapidAPI-1.2.8", + "vary":"Accept-Encoding", + "x-rapidapi-region":"AWS - ap-southeast-1", + "x-rapidapi-version":"1.2.8", + "x-render-origin-server":"uvicorn" + }, + "schema":{} + }, + { + "name":"hsv to cmyk", + "url":"https://convexity.p.rapidapi.com/hsv-to-cmyk/", + "description":"Converts hsv color code to cmyk color code", + "method":"GET", + "required_parameters":[ + { + "name":"h", + "type":"NUMBER", + "description":"", + "default":"250" + }, + { + "name":"v", + "type":"NUMBER", + "description":"", + "default":"45" + }, + { + "name":"s", + "type":"NUMBER", + "description":"", + "default":"78" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://convexity.p.rapidapi.com/hsv-to-cmyk/\"\nquerystring = {\"h\": h, \"v\": v, \"s\": s}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"convexity.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":200, + "body":{ + "cyan":65, + "magenta":78, + "yellow":0, + "key":55 + }, + "headers":{ + "access-control-allow-credentials":"true", + "access-control-allow-origin":"*", + "alt-svc":"h3=\":443\"; ma=86400, h3-29=\":443\"; ma=86400", + "cf-cache-status":"DYNAMIC", + "cf-ray":"7adcc57f2cef4cdd-SIN", + "content-type":"application/json", + "date":"Sun, 26 Mar 2023 04:50:13 GMT", + "server":"RapidAPI-1.2.8", + "vary":"Accept-Encoding", + "x-rapidapi-region":"AWS - ap-southeast-1", + "x-rapidapi-version":"1.2.8", + "x-ratelimit-requests-limit":"100", + "x-ratelimit-requests-remaining":"90", + "x-ratelimit-requests-reset":"18294", + "x-render-origin-server":"uvicorn" + }, + "schema":{} + }, + { + "name":"hsv to hex", + "url":"https://convexity.p.rapidapi.com/hsv-to-hex/", + "description":"Converts hsv color code to hex color code", + "method":"GET", + "required_parameters":[ + { + "name":"v", + "type":"NUMBER", + "description":"", + "default":"45" + }, + { + "name":"h", + "type":"NUMBER", + "description":"", + "default":"250" + }, + { + "name":"s", + "type":"NUMBER", + "description":"", + "default":"78" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://convexity.p.rapidapi.com/hsv-to-hex/\"\nquerystring = {\"v\": v, \"h\": h, \"s\": s}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"convexity.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":200, + "body":{ + "hex":"#281972" + }, + "headers":{ + "access-control-allow-credentials":"true", + "access-control-allow-origin":"*", + "alt-svc":"h3=\":443\"; ma=86400, h3-29=\":443\"; ma=86400", + "cf-cache-status":"DYNAMIC", + "cf-ray":"7adcc4312943a126-SIN", + "content-type":"application/json", + "date":"Sun, 26 Mar 2023 04:49:20 GMT", + "server":"RapidAPI-1.2.8", + "vary":"Accept-Encoding", + "x-rapidapi-region":"AWS - ap-southeast-1", + "x-rapidapi-version":"1.2.8", + "x-ratelimit-requests-limit":"100", + "x-ratelimit-requests-remaining":"91", + "x-ratelimit-requests-reset":"18347", + "x-render-origin-server":"uvicorn" + }, + "schema":{} + }, + { + "name":"hsv to rgb", + "url":"https://convexity.p.rapidapi.com/hsv-to-rgb/", + "description":"Converts hsv color code to rgb color code", + "method":"GET", + "required_parameters":[ + { + "name":"s", + "type":"NUMBER", + "description":"", + "default":"78" + }, + { + "name":"h", + "type":"NUMBER", + "description":"", + "default":"250" + }, + { + "name":"v", + "type":"NUMBER", + "description":"", + "default":"45" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://convexity.p.rapidapi.com/hsv-to-rgb/\"\nquerystring = {\"s\": s, \"h\": h, \"v\": v}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"convexity.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":200, + "body":{ + "red":55, + "green":25, + "blue":204 + }, + "headers":{ + "access-control-allow-credentials":"true", + "access-control-allow-origin":"*", + "alt-svc":"h3=\":443\"; ma=86400, h3-29=\":443\"; ma=86400", + "cf-cache-status":"DYNAMIC", + "cf-ray":"7ad5e9d8ed8d3de8-SIN", + "content-type":"application/json", + "date":"Sat, 25 Mar 2023 08:51:41 GMT", + "server":"RapidAPI-1.2.8", + "vary":"Accept-Encoding", + "x-rapidapi-region":"AWS - ap-southeast-1", + "x-rapidapi-version":"1.2.8", + "x-render-origin-server":"uvicorn" + }, + "schema":{} + }, + { + "name":"cmyk to hsv", + "url":"https://convexity.p.rapidapi.com/cmyk-to-hsv/", + "description":"Converts cmyk color code to hsv color code", + "method":"GET", + "required_parameters":[ + { + "name":"m", + "type":"NUMBER", + "description":"", + "default":"88.5" + }, + { + "name":"k", + "type":"NUMBER", + "description":"", + "default":"20.3" + }, + { + "name":"y", + "type":"NUMBER", + "description":"", + "default":"12" + }, + { + "name":"c", + "type":"NUMBER", + "description":"", + "default":"73" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://convexity.p.rapidapi.com/cmyk-to-hsv/\"\nquerystring = {\"m\": m, \"k\": k, \"y\": y, \"c\": c}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"convexity.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":200, + "body":{ + "hue":252, + "saturation":76.88, + "lightness":39.65 + }, + "headers":{ + "access-control-allow-credentials":"true", + "access-control-allow-origin":"*", + "alt-svc":"h3=\":443\"; ma=86400, h3-29=\":443\"; ma=86400", + "cf-cache-status":"DYNAMIC", + "cf-ray":"7ad600b8b9f48953-SIN", + "content-type":"application/json", + "date":"Sat, 25 Mar 2023 09:07:18 GMT", + "server":"RapidAPI-1.2.8", + "vary":"Accept-Encoding", + "x-rapidapi-region":"AWS - ap-southeast-1", + "x-rapidapi-version":"1.2.8", + "x-render-origin-server":"uvicorn" + }, + "schema":{} + }, + { + "name":"hsl to hsv", + "url":"https://convexity.p.rapidapi.com/hsl-to-hsv/", + "description":"Converts hsl color code to hsv color code", + "method":"GET", + "required_parameters":[ + { + "name":"h", + "type":"NUMBER", + "description":"", + "default":"250" + }, + { + "name":"s", + "type":"NUMBER", + "description":"", + "default":"78" + }, + { + "name":"l", + "type":"NUMBER", + "description":"", + "default":"45" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://convexity.p.rapidapi.com/hsl-to-hsv/\"\nquerystring = {\"h\": h, \"s\": s, \"l\": l}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"convexity.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":200, + "body":{ + "red":55, + "green":25, + "blue":204 + }, + "headers":{ + "access-control-allow-credentials":"true", + "access-control-allow-origin":"*", + "alt-svc":"h3=\":443\"; ma=86400, h3-29=\":443\"; ma=86400", + "cf-cache-status":"DYNAMIC", + "cf-ray":"7ad5e9d8ed8d3de8-SIN", + "content-type":"application/json", + "date":"Sat, 25 Mar 2023 08:51:41 GMT", + "server":"RapidAPI-1.2.8", + "vary":"Accept-Encoding", + "x-rapidapi-region":"AWS - ap-southeast-1", + "x-rapidapi-version":"1.2.8", + "x-render-origin-server":"uvicorn" + }, + "schema":{} + }, + { + "name":"rgb to hsv", + "url":"https://convexity.p.rapidapi.com/rgb-to-hsv/", + "description":"Converts rgb color code to hsv color code", + "method":"GET", + "required_parameters":[ + { + "name":"r", + "type":"NUMBER", + "description":"", + "default":"127" + }, + { + "name":"g", + "type":"NUMBER", + "description":"", + "default":"255" + }, + { + "name":"b", + "type":"NUMBER", + "description":"", + "default":"212" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://convexity.p.rapidapi.com/rgb-to-hsv/\"\nquerystring = {\"r\": r, \"g\": g, \"b\": b}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"convexity.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":200, + "body":{ + "hue":160, + "saturation":50, + "value":100 + }, + "headers":{ + "access-control-allow-credentials":"true", + "access-control-allow-origin":"*", + "alt-svc":"h3=\":443\"; ma=86400, h3-29=\":443\"; ma=86400", + "cf-cache-status":"DYNAMIC", + "cf-ray":"7adcb38348639fc1-SIN", + "content-type":"application/json", + "date":"Sun, 26 Mar 2023 04:38:31 GMT", + "server":"RapidAPI-1.2.8", + "vary":"Accept-Encoding", + "x-rapidapi-region":"AWS - ap-southeast-1", + "x-rapidapi-version":"1.2.8", + "x-ratelimit-requests-limit":"100", + "x-ratelimit-requests-remaining":"98", + "x-ratelimit-requests-reset":"18996", + "x-render-origin-server":"uvicorn" + }, + "schema":{} + }, + { + "name":"hex to hsv", + "url":"https://convexity.p.rapidapi.com/hex-to-hsv/", + "description":"Converts hex color code to hsv color code", + "method":"GET", + "required_parameters":[ + { + "name":"hex", + "type":"STRING", + "description":"", + "default":"ffffff" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://convexity.p.rapidapi.com/hex-to-hsv/\"\nquerystring = {\"hex\": hex}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"convexity.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":200, + "body":{ + "hue":0, + "saturation":0, + "lightness":100 + }, + "headers":{ + "access-control-allow-credentials":"true", + "access-control-allow-origin":"*", + "alt-svc":"h3=\":443\"; ma=86400, h3-29=\":443\"; ma=86400", + "cf-cache-status":"DYNAMIC", + "cf-ray":"7ad5c501e83c40c8-SIN", + "content-type":"application/json", + "date":"Sat, 25 Mar 2023 08:26:32 GMT", + "server":"RapidAPI-1.2.8", + "vary":"Accept-Encoding", + "x-rapidapi-region":"AWS - ap-southeast-1", + "x-rapidapi-version":"1.2.8", + "x-render-origin-server":"uvicorn" + }, + "schema":{} + }, + { + "name":"cmyk to hsl", + "url":"https://convexity.p.rapidapi.com/cmyk-to-hsl/", + "description":"Converts cmyk color code to hsl color code", + "method":"GET", + "required_parameters":[ + { + "name":"c", + "type":"NUMBER", + "description":"", + "default":"73" + }, + { + "name":"m", + "type":"NUMBER", + "description":"", + "default":"88.5" + }, + { + "name":"k", + "type":"NUMBER", + "description":"", + "default":"20.3" + }, + { + "name":"y", + "type":"NUMBER", + "description":"", + "default":"12" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://convexity.p.rapidapi.com/cmyk-to-hsl/\"\nquerystring = {\"c\": c, \"m\": m, \"k\": k, \"y\": y}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"convexity.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":200, + "body":{ + "hue":252, + "saturation":76.88, + "lightness":39.65 + }, + "headers":{ + "access-control-allow-credentials":"true", + "access-control-allow-origin":"*", + "alt-svc":"h3=\":443\"; ma=86400, h3-29=\":443\"; ma=86400", + "cf-cache-status":"DYNAMIC", + "cf-ray":"7ad600b8b9f48953-SIN", + "content-type":"application/json", + "date":"Sat, 25 Mar 2023 09:07:18 GMT", + "server":"RapidAPI-1.2.8", + "vary":"Accept-Encoding", + "x-rapidapi-region":"AWS - ap-southeast-1", + "x-rapidapi-version":"1.2.8", + "x-render-origin-server":"uvicorn" + }, + "schema":{} + }, + { + "name":"cmyk to rgb", + "url":"https://convexity.p.rapidapi.com/cmyk-to-rgb/", + "description":"Converts cmyk color code to rgb color code", + "method":"GET", + "required_parameters":[ + { + "name":"m", + "type":"NUMBER", + "description":"", + "default":"88.5" + }, + { + "name":"k", + "type":"NUMBER", + "description":"", + "default":"20.3" + }, + { + "name":"c", + "type":"NUMBER", + "description":"", + "default":"73" + }, + { + "name":"y", + "type":"NUMBER", + "description":"", + "default":"12" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://convexity.p.rapidapi.com/cmyk-to-rgb/\"\nquerystring = {\"m\": m, \"k\": k, \"c\": c, \"y\": y}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"convexity.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":200, + "body":{ + "red":55, + "green":23, + "blue":179 + }, + "headers":{ + "access-control-allow-credentials":"true", + "access-control-allow-origin":"*", + "alt-svc":"h3=\":443\"; ma=86400, h3-29=\":443\"; ma=86400", + "cf-cache-status":"DYNAMIC", + "cf-ray":"7ad60142097c462b-SIN", + "content-type":"application/json", + "date":"Sat, 25 Mar 2023 09:07:40 GMT", + "server":"RapidAPI-1.2.8", + "vary":"Accept-Encoding", + "x-rapidapi-region":"AWS - ap-southeast-1", + "x-rapidapi-version":"1.2.8", + "x-render-origin-server":"uvicorn" + }, + "schema":{} + }, + { + "name":"cmyk to hex", + "url":"https://convexity.p.rapidapi.com/cmyk-to-hex/", + "description":"Converts cmyk color code to hex color code", + "method":"GET", + "required_parameters":[ + { + "name":"y", + "type":"NUMBER", + "description":"", + "default":"12" + }, + { + "name":"c", + "type":"NUMBER", + "description":"", + "default":"73" + }, + { + "name":"m", + "type":"NUMBER", + "description":"", + "default":"88.5" + }, + { + "name":"k", + "type":"NUMBER", + "description":"", + "default":"20.3" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://convexity.p.rapidapi.com/cmyk-to-hex/\"\nquerystring = {\"y\": y, \"c\": c, \"m\": m, \"k\": k}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"convexity.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":200, + "body":{ + "hex":"#3717b3", + "rgb":{ + "red":55, + "green":23, + "blue":179 + }, + "hsl":{ + "hue":252, + "saturation":76.88, + "lightness":39.65 + }, + "cmyk":{ + "cyan":73, + "magenta":88.5, + "yellow":12, + "key":20.3 + } + }, + "headers":{ + "access-control-allow-credentials":"true", + "access-control-allow-origin":"*", + "alt-svc":"h3=\":443\"; ma=86400, h3-29=\":443\"; ma=86400", + "cf-cache-status":"DYNAMIC", + "cf-ray":"7ad5f48f3e2d9fa1-SIN", + "content-type":"application/json", + "date":"Sat, 25 Mar 2023 08:59:00 GMT", + "server":"RapidAPI-1.2.8", + "vary":"Accept-Encoding", + "x-rapidapi-region":"AWS - ap-southeast-1", + "x-rapidapi-version":"1.2.8", + "x-render-origin-server":"uvicorn" + }, + "schema":{} + }, + { + "name":"convert cmyk", + "url":"https://convexity.p.rapidapi.com/convert-cmyk/", + "description":"Endpoint to converts cmyk color code to other color code like RGB , HSL, Hex", + "method":"GET", + "required_parameters":[ + { + "name":"c", + "type":"NUMBER", + "description":"", + "default":"73" + }, + { + "name":"k", + "type":"NUMBER", + "description":"", + "default":"20.3" + }, + { + "name":"m", + "type":"NUMBER", + "description":"", + "default":"88.5" + }, + { + "name":"y", + "type":"NUMBER", + "description":"", + "default":"12" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://convexity.p.rapidapi.com/convert-cmyk/\"\nquerystring = {\"c\": c, \"k\": k, \"m\": m, \"y\": y}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"convexity.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":200, + "body":{ + "hex":"#3717b3", + "rgb":{ + "red":55, + "green":23, + "blue":179 + }, + "hsl":{ + "hue":252, + "saturation":76.88, + "lightness":39.65 + }, + "cmyk":{ + "cyan":73, + "magenta":88.5, + "yellow":12, + "key":20.3 + } + }, + "headers":{ + "access-control-allow-credentials":"true", + "access-control-allow-origin":"*", + "alt-svc":"h3=\":443\"; ma=86400, h3-29=\":443\"; ma=86400", + "cf-cache-status":"DYNAMIC", + "cf-ray":"7ad5f48f3e2d9fa1-SIN", + "content-type":"application/json", + "date":"Sat, 25 Mar 2023 08:59:00 GMT", + "server":"RapidAPI-1.2.8", + "vary":"Accept-Encoding", + "x-rapidapi-region":"AWS - ap-southeast-1", + "x-rapidapi-version":"1.2.8", + "x-render-origin-server":"uvicorn" + }, + "schema":{} + }, + { + "name":"hsl to cmyk", + "url":"https://convexity.p.rapidapi.com/hsl-to-cmyk/", + "description":"Converts hsl color code to cmyk color code", + "method":"GET", + "required_parameters":[ + { + "name":"s", + "type":"NUMBER", + "description":"", + "default":"78" + }, + { + "name":"h", + "type":"NUMBER", + "description":"", + "default":"250" + }, + { + "name":"l", + "type":"NUMBER", + "description":"", + "default":"45" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://convexity.p.rapidapi.com/hsl-to-cmyk/\"\nquerystring = {\"s\": s, \"h\": h, \"l\": l}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"convexity.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":200, + "body":{ + "cyan":73, + "magenta":88, + "yellow":0, + "key":20 + }, + "headers":{ + "access-control-allow-credentials":"true", + "access-control-allow-origin":"*", + "alt-svc":"h3=\":443\"; ma=86400, h3-29=\":443\"; ma=86400", + "cf-cache-status":"DYNAMIC", + "cf-ray":"7ad5ed8059f7a137-SIN", + "content-type":"application/json", + "date":"Sat, 25 Mar 2023 08:54:11 GMT", + "server":"RapidAPI-1.2.8", + "vary":"Accept-Encoding", + "x-rapidapi-region":"AWS - ap-southeast-1", + "x-rapidapi-version":"1.2.8", + "x-render-origin-server":"uvicorn" + }, + "schema":{} + }, + { + "name":"hsl to hex", + "url":"https://convexity.p.rapidapi.com/hsl-to-hex/", + "description":"Converts hsl color code to hex color code", + "method":"GET", + "required_parameters":[ + { + "name":"s", + "type":"NUMBER", + "description":"", + "default":"78" + }, + { + "name":"h", + "type":"NUMBER", + "description":"", + "default":"250" + }, + { + "name":"l", + "type":"NUMBER", + "description":"", + "default":"45" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://convexity.p.rapidapi.com/hsl-to-hex/\"\nquerystring = {\"s\": s, \"h\": h, \"l\": l}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"convexity.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":200, + "body":{ + "hex":"#3719cc" + }, + "headers":{ + "access-control-allow-credentials":"true", + "access-control-allow-origin":"*", + "alt-svc":"h3=\":443\"; ma=86400, h3-29=\":443\"; ma=86400", + "cf-cache-status":"DYNAMIC", + "cf-ray":"7ad5eb9558103f8f-SIN", + "content-type":"application/json", + "date":"Sat, 25 Mar 2023 08:52:52 GMT", + "server":"RapidAPI-1.2.8", + "vary":"Accept-Encoding", + "x-rapidapi-region":"AWS - ap-southeast-1", + "x-rapidapi-version":"1.2.8", + "x-render-origin-server":"uvicorn" + }, + "schema":{} + }, + { + "name":"hsl to rgb", + "url":"https://convexity.p.rapidapi.com/hsl-to-rgb/", + "description":"Converts hsl color code to rgb color code", + "method":"GET", + "required_parameters":[ + { + "name":"s", + "type":"NUMBER", + "description":"", + "default":"78" + }, + { + "name":"h", + "type":"NUMBER", + "description":"", + "default":"250" + }, + { + "name":"l", + "type":"NUMBER", + "description":"", + "default":"45" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://convexity.p.rapidapi.com/hsl-to-rgb/\"\nquerystring = {\"s\": s, \"h\": h, \"l\": l}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"convexity.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":200, + "body":{ + "red":55, + "green":25, + "blue":204 + }, + "headers":{ + "access-control-allow-credentials":"true", + "access-control-allow-origin":"*", + "alt-svc":"h3=\":443\"; ma=86400, h3-29=\":443\"; ma=86400", + "cf-cache-status":"DYNAMIC", + "cf-ray":"7ad5e9d8ed8d3de8-SIN", + "content-type":"application/json", + "date":"Sat, 25 Mar 2023 08:51:41 GMT", + "server":"RapidAPI-1.2.8", + "vary":"Accept-Encoding", + "x-rapidapi-region":"AWS - ap-southeast-1", + "x-rapidapi-version":"1.2.8", + "x-render-origin-server":"uvicorn" + }, + "schema":{} + }, + { + "name":"convert hsl", + "url":"https://convexity.p.rapidapi.com/convert-hsl/", + "description":"Endpoint to converts HSL color code to other color code like Hex , RGB, CMYK", + "method":"GET", + "required_parameters":[ + { + "name":"s", + "type":"NUMBER", + "description":"", + "default":"78" + }, + { + "name":"h", + "type":"NUMBER", + "description":"", + "default":"250" + }, + { + "name":"l", + "type":"NUMBER", + "description":"", + "default":"45" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://convexity.p.rapidapi.com/convert-hsl/\"\nquerystring = {\"s\": s, \"h\": h, \"l\": l}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"convexity.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":200, + "body":{ + "hex":"#3719cc", + "rgb":{ + "red":55, + "green":25, + "blue":204 + }, + "hsl":{ + "hue":250, + "saturation":78, + "lightness":45 + }, + "cmyk":{ + "cyan":73, + "magenta":88, + "yellow":0, + "key":20 + } + }, + "headers":{ + "access-control-allow-credentials":"true", + "access-control-allow-origin":"*", + "alt-svc":"h3=\":443\"; ma=86400, h3-29=\":443\"; ma=86400", + "cf-cache-status":"DYNAMIC", + "cf-ray":"7ad5e4ca182e40a2-SIN", + "content-type":"application/json", + "date":"Sat, 25 Mar 2023 08:48:14 GMT", + "server":"RapidAPI-1.2.8", + "vary":"Accept-Encoding", + "x-rapidapi-region":"AWS - ap-southeast-1", + "x-rapidapi-version":"1.2.8", + "x-render-origin-server":"uvicorn" + }, + "schema":{} + }, + { + "name":"rgb to cmyk", + "url":"https://convexity.p.rapidapi.com/rgb-to-cmyk/", + "description":"Converts rgb color code to cmyk color code", + "method":"GET", + "required_parameters":[ + { + "name":"r", + "type":"NUMBER", + "description":"", + "default":"127" + }, + { + "name":"g", + "type":"NUMBER", + "description":"", + "default":"255" + }, + { + "name":"b", + "type":"NUMBER", + "description":"", + "default":"212" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://convexity.p.rapidapi.com/rgb-to-cmyk/\"\nquerystring = {\"r\": r, \"g\": g, \"b\": b}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"convexity.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":200, + "body":{ + "cyan":50, + "magenta":0, + "yellow":17, + "key":0 + }, + "headers":{ + "access-control-allow-credentials":"true", + "access-control-allow-origin":"*", + "alt-svc":"h3=\":443\"; ma=86400, h3-29=\":443\"; ma=86400", + "cf-cache-status":"DYNAMIC", + "cf-ray":"7ad5dd9ecc3e6bf4-SIN", + "content-type":"application/json", + "date":"Sat, 25 Mar 2023 08:43:20 GMT", + "server":"RapidAPI-1.2.8", + "vary":"Accept-Encoding", + "x-rapidapi-region":"AWS - ap-southeast-1", + "x-rapidapi-version":"1.2.8", + "x-render-origin-server":"uvicorn" + }, + "schema":{} + }, + { + "name":"rgb to hsl", + "url":"https://convexity.p.rapidapi.com/rgb-to-hsl/", + "description":"Converts rgb color code to hsl color code", + "method":"GET", + "required_parameters":[ + { + "name":"r", + "type":"NUMBER", + "description":"", + "default":"127" + }, + { + "name":"g", + "type":"NUMBER", + "description":"", + "default":"255" + }, + { + "name":"b", + "type":"NUMBER", + "description":"", + "default":"212" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://convexity.p.rapidapi.com/rgb-to-hsl/\"\nquerystring = {\"r\": r, \"g\": g, \"b\": b}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"convexity.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":200, + "body":{ + "hue":160, + "saturation":100, + "lightness":74.9 + }, + "headers":{ + "access-control-allow-credentials":"true", + "access-control-allow-origin":"*", + "alt-svc":"h3=\":443\"; ma=86400, h3-29=\":443\"; ma=86400", + "cf-cache-status":"DYNAMIC", + "cf-ray":"7ad5dc465f564dab-SIN", + "content-type":"application/json", + "date":"Sat, 25 Mar 2023 08:42:25 GMT", + "server":"RapidAPI-1.2.8", + "vary":"Accept-Encoding", + "x-rapidapi-region":"AWS - ap-southeast-1", + "x-rapidapi-version":"1.2.8", + "x-render-origin-server":"uvicorn" + }, + "schema":{} + }, + { + "name":"rgb to hex", + "url":"https://convexity.p.rapidapi.com/rgb-to-hex/", + "description":"Converts rgb color code to hex color code", + "method":"GET", + "required_parameters":[ + { + "name":"b", + "type":"NUMBER", + "description":"", + "default":"212" + }, + { + "name":"g", + "type":"NUMBER", + "description":"", + "default":"255" + }, + { + "name":"r", + "type":"NUMBER", + "description":"", + "default":"127" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://convexity.p.rapidapi.com/rgb-to-hex/\"\nquerystring = {\"b\": b, \"g\": g, \"r\": r}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"convexity.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":200, + "body":{ + "hex":"#7fffd4" + }, + "headers":{ + "access-control-allow-credentials":"true", + "access-control-allow-origin":"*", + "alt-svc":"h3=\":443\"; ma=86400, h3-29=\":443\"; ma=86400", + "cf-cache-status":"DYNAMIC", + "cf-ray":"7ad5d1f0ea6840b8-SIN", + "content-type":"application/json", + "date":"Sat, 25 Mar 2023 08:35:22 GMT", + "server":"RapidAPI-1.2.8", + "vary":"Accept-Encoding", + "x-rapidapi-region":"AWS - ap-southeast-1", + "x-rapidapi-version":"1.2.8", + "x-render-origin-server":"uvicorn" + }, + "schema":{} + }, + { + "name":"convert rgb", + "url":"https://convexity.p.rapidapi.com/convert-rgb/", + "description":"Endpoint to converts RGB color code to other color code like Hex , HSL, CMYK", + "method":"GET", + "required_parameters":[ + { + "name":"r", + "type":"NUMBER", + "description":"", + "default":"127" + }, + { + "name":"g", + "type":"NUMBER", + "description":"", + "default":"255" + }, + { + "name":"b", + "type":"NUMBER", + "description":"", + "default":"212" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://convexity.p.rapidapi.com/convert-rgb/\"\nquerystring = {\"r\": r, \"g\": g, \"b\": b}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"convexity.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":200, + "body":{ + "hex":"#7fffd4", + "rgb":{ + "red":127, + "green":255, + "blue":212 + }, + "hsl":{ + "hue":160, + "saturation":100, + "lightness":74.9 + }, + "cmyk":{ + "cyan":50, + "magenta":0, + "yellow":17, + "key":0 + } + }, + "headers":{ + "access-control-allow-credentials":"true", + "access-control-allow-origin":"*", + "alt-svc":"h3=\":443\"; ma=86400, h3-29=\":443\"; ma=86400", + "cf-cache-status":"DYNAMIC", + "cf-ray":"7ad5cd2218ed44ae-SIN", + "content-type":"application/json", + "date":"Sat, 25 Mar 2023 08:32:05 GMT", + "server":"RapidAPI-1.2.8", + "vary":"Accept-Encoding", + "x-rapidapi-region":"AWS - ap-southeast-1", + "x-rapidapi-version":"1.2.8", + "x-render-origin-server":"uvicorn" + }, + "schema":{} + }, + { + "name":"convert hex", + "url":"https://convexity.p.rapidapi.com/convert-hex/", + "description":"Endpoint to converts hex color code to other color code like RGB , HSL, CMYK", + "method":"GET", + "required_parameters":[ + { + "name":"hex", + "type":"STRING", + "description":"", + "default":"ffffff" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://convexity.p.rapidapi.com/convert-hex/\"\nquerystring = {\"hex\": hex}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"convexity.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":200, + "body":{ + "hex":"ffffff", + "rgb":{ + "red":255, + "green":255, + "blue":255 + }, + "hsl":{ + "hue":0, + "saturation":0, + "lightness":100 + }, + "cmyk":{ + "cyan":0, + "magenta":0, + "yellow":0, + "key":0 + } + }, + "headers":{ + "access-control-allow-credentials":"true", + "access-control-allow-origin":"*", + "alt-svc":"h3=\":443\"; ma=86400, h3-29=\":443\"; ma=86400", + "cf-cache-status":"DYNAMIC", + "cf-ray":"7ad5c29b9d1b3e32-SIN", + "content-type":"application/json", + "date":"Sat, 25 Mar 2023 08:24:54 GMT", + "server":"RapidAPI-1.2.8", + "vary":"Accept-Encoding", + "x-rapidapi-region":"AWS - ap-southeast-1", + "x-rapidapi-version":"1.2.8", + "x-render-origin-server":"uvicorn" + }, + "schema":{} + }, + { + "name":"hex to rgb", + "url":"https://convexity.p.rapidapi.com/hex-to-rgb/", + "description":"Converts hex color code to rgb color code.", + "method":"GET", + "required_parameters":[ + { + "name":"hex", + "type":"STRING", + "description":"", + "default":"ffffff" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://convexity.p.rapidapi.com/hex-to-rgb/\"\nquerystring = {\"hex\": hex}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"convexity.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":200, + "body":{ + "red":255, + "green":255, + "blue":255 + }, + "headers":{ + "access-control-allow-credentials":"true", + "access-control-allow-origin":"*", + "alt-svc":"h3=\":443\"; ma=86400, h3-29=\":443\"; ma=86400", + "cf-cache-status":"DYNAMIC", + "cf-ray":"7ad5be89ba7189b8-SIN", + "content-type":"application/json", + "date":"Sat, 25 Mar 2023 08:22:07 GMT", + "server":"RapidAPI-1.2.8", + "vary":"Accept-Encoding", + "x-rapidapi-region":"AWS - ap-southeast-1", + "x-rapidapi-version":"1.2.8", + "x-render-origin-server":"uvicorn" + }, + "schema":{} + }, + { + "name":"hex to cmyk", + "url":"https://convexity.p.rapidapi.com/hex-to-cmyk/", + "description":"Converts hex color code to cmyk color code", + "method":"GET", + "required_parameters":[ + { + "name":"hex", + "type":"STRING", + "description":"", + "default":"ffffff" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://convexity.p.rapidapi.com/hex-to-cmyk/\"\nquerystring = {\"hex\": hex}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"convexity.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":200, + "body":{ + "cyan":0, + "magenta":0, + "yellow":0, + "key":0 + }, + "headers":{ + "access-control-allow-credentials":"true", + "access-control-allow-origin":"*", + "alt-svc":"h3=\":443\"; ma=86400, h3-29=\":443\"; ma=86400", + "cf-cache-status":"DYNAMIC", + "cf-ray":"7ad5c4943ad33f54-SIN", + "content-type":"application/json", + "date":"Sat, 25 Mar 2023 08:26:15 GMT", + "server":"RapidAPI-1.2.8", + "vary":"Accept-Encoding", + "x-rapidapi-region":"AWS - ap-southeast-1", + "x-rapidapi-version":"1.2.8", + "x-render-origin-server":"uvicorn" + }, + "schema":{} + }, + { + "name":"hex to hsl", + "url":"https://convexity.p.rapidapi.com/hex-to-hsl/", + "description":"Converts hex color code to hsl color code", + "method":"GET", + "required_parameters":[ + { + "name":"hex", + "type":"STRING", + "description":"", + "default":"ffffff" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://convexity.p.rapidapi.com/hex-to-hsl/\"\nquerystring = {\"hex\": hex}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"convexity.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":200, + "body":{ + "hue":0, + "saturation":0, + "lightness":100 + }, + "headers":{ + "access-control-allow-credentials":"true", + "access-control-allow-origin":"*", + "alt-svc":"h3=\":443\"; ma=86400, h3-29=\":443\"; ma=86400", + "cf-cache-status":"DYNAMIC", + "cf-ray":"7ad5c501e83c40c8-SIN", + "content-type":"application/json", + "date":"Sat, 25 Mar 2023 08:26:32 GMT", + "server":"RapidAPI-1.2.8", + "vary":"Accept-Encoding", + "x-rapidapi-region":"AWS - ap-southeast-1", + "x-rapidapi-version":"1.2.8", + "x-render-origin-server":"uvicorn" + }, + "schema":{} + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Tools/convexity/api.py b/toolbench/toolenv/tools/Tools/convexity/api.py new file mode 100644 index 0000000000000000000000000000000000000000..9263e0885b48b7a981c2d4651624d285ca1105fd --- /dev/null +++ b/toolbench/toolenv/tools/Tools/convexity/api.py @@ -0,0 +1,533 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def convert_hsv(s: int, h: int, v: int, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Endpoint to converts HSV color code to other color code like Hex , RGB, CMYK,HSL" + + """ + url = f"https://convexity.p.rapidapi.com/convert-hsv/" + querystring = {'s': s, 'h': h, 'v': v, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "convexity.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def hsv_to_hsl(s: int, h: int, v: int, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Converts hsv color code to hsv color code" + + """ + url = f"https://convexity.p.rapidapi.com/hsv-to-hsl/" + querystring = {'s': s, 'h': h, 'v': v, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "convexity.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def hsv_to_cmyk(h: int, v: int, s: int, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Converts hsv color code to cmyk color code" + + """ + url = f"https://convexity.p.rapidapi.com/hsv-to-cmyk/" + querystring = {'h': h, 'v': v, 's': s, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "convexity.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def hsv_to_hex(v: int, h: int, s: int, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Converts hsv color code to hex color code" + + """ + url = f"https://convexity.p.rapidapi.com/hsv-to-hex/" + querystring = {'v': v, 'h': h, 's': s, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "convexity.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def hsv_to_rgb(s: int, h: int, v: int, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Converts hsv color code to rgb color code" + + """ + url = f"https://convexity.p.rapidapi.com/hsv-to-rgb/" + querystring = {'s': s, 'h': h, 'v': v, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "convexity.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def cmyk_to_hsv(m: int, k: int, y: int, c: int, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Converts cmyk color code to hsv color code" + + """ + url = f"https://convexity.p.rapidapi.com/cmyk-to-hsv/" + querystring = {'m': m, 'k': k, 'y': y, 'c': c, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "convexity.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def hsl_to_hsv(h: int, s: int, l: int, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Converts hsl color code to hsv color code" + + """ + url = f"https://convexity.p.rapidapi.com/hsl-to-hsv/" + querystring = {'h': h, 's': s, 'l': l, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "convexity.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def rgb_to_hsv(r: int, g: int, b: int, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Converts rgb color code to hsv color code" + + """ + url = f"https://convexity.p.rapidapi.com/rgb-to-hsv/" + querystring = {'r': r, 'g': g, 'b': b, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "convexity.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def hex_to_hsv(hex: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Converts hex color code to hsv color code" + + """ + url = f"https://convexity.p.rapidapi.com/hex-to-hsv/" + querystring = {'hex': hex, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "convexity.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def cmyk_to_hsl(c: int, m: int, k: int, y: int, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Converts cmyk color code to hsl color code" + + """ + url = f"https://convexity.p.rapidapi.com/cmyk-to-hsl/" + querystring = {'c': c, 'm': m, 'k': k, 'y': y, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "convexity.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def cmyk_to_rgb(m: int, k: int, c: int, y: int, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Converts cmyk color code to rgb color code" + + """ + url = f"https://convexity.p.rapidapi.com/cmyk-to-rgb/" + querystring = {'m': m, 'k': k, 'c': c, 'y': y, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "convexity.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def cmyk_to_hex(y: int, c: int, m: int, k: int, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Converts cmyk color code to hex color code" + + """ + url = f"https://convexity.p.rapidapi.com/cmyk-to-hex/" + querystring = {'y': y, 'c': c, 'm': m, 'k': k, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "convexity.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def convert_cmyk(c: int, k: int, m: int, y: int, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Endpoint to converts cmyk color code to other color code like RGB , HSL, Hex" + + """ + url = f"https://convexity.p.rapidapi.com/convert-cmyk/" + querystring = {'c': c, 'k': k, 'm': m, 'y': y, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "convexity.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def hsl_to_cmyk(s: int, h: int, l: int, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Converts hsl color code to cmyk color code" + + """ + url = f"https://convexity.p.rapidapi.com/hsl-to-cmyk/" + querystring = {'s': s, 'h': h, 'l': l, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "convexity.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def hsl_to_hex(s: int, h: int, l: int, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Converts hsl color code to hex color code" + + """ + url = f"https://convexity.p.rapidapi.com/hsl-to-hex/" + querystring = {'s': s, 'h': h, 'l': l, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "convexity.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def hsl_to_rgb(s: int, h: int, l: int, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Converts hsl color code to rgb color code" + + """ + url = f"https://convexity.p.rapidapi.com/hsl-to-rgb/" + querystring = {'s': s, 'h': h, 'l': l, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "convexity.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def convert_hsl(s: int, h: int, l: int, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Endpoint to converts HSL color code to other color code like Hex , RGB, CMYK" + + """ + url = f"https://convexity.p.rapidapi.com/convert-hsl/" + querystring = {'s': s, 'h': h, 'l': l, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "convexity.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def rgb_to_cmyk(r: int, g: int, b: int, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Converts rgb color code to cmyk color code" + + """ + url = f"https://convexity.p.rapidapi.com/rgb-to-cmyk/" + querystring = {'r': r, 'g': g, 'b': b, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "convexity.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def rgb_to_hsl(r: int, g: int, b: int, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Converts rgb color code to hsl color code" + + """ + url = f"https://convexity.p.rapidapi.com/rgb-to-hsl/" + querystring = {'r': r, 'g': g, 'b': b, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "convexity.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def rgb_to_hex(b: int, g: int, r: int, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Converts rgb color code to hex color code" + + """ + url = f"https://convexity.p.rapidapi.com/rgb-to-hex/" + querystring = {'b': b, 'g': g, 'r': r, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "convexity.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def convert_rgb(r: int, g: int, b: int, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Endpoint to converts RGB color code to other color code like Hex , HSL, CMYK" + + """ + url = f"https://convexity.p.rapidapi.com/convert-rgb/" + querystring = {'r': r, 'g': g, 'b': b, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "convexity.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def convert_hex(hex: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Endpoint to converts hex color code to other color code like RGB , HSL, CMYK" + + """ + url = f"https://convexity.p.rapidapi.com/convert-hex/" + querystring = {'hex': hex, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "convexity.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def hex_to_rgb(hex: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Converts hex color code to rgb color code." + + """ + url = f"https://convexity.p.rapidapi.com/hex-to-rgb/" + querystring = {'hex': hex, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "convexity.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def hex_to_cmyk(hex: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Converts hex color code to cmyk color code" + + """ + url = f"https://convexity.p.rapidapi.com/hex-to-cmyk/" + querystring = {'hex': hex, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "convexity.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def hex_to_hsl(hex: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Converts hex color code to hsl color code" + + """ + url = f"https://convexity.p.rapidapi.com/hex-to-hsl/" + querystring = {'hex': hex, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "convexity.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Tools/core_js.json b/toolbench/toolenv/tools/Tools/core_js.json new file mode 100644 index 0000000000000000000000000000000000000000..61a36c107a396ebf55574c40c4bf74bcfcbeac7d --- /dev/null +++ b/toolbench/toolenv/tools/Tools/core_js.json @@ -0,0 +1,53 @@ +{ + "tool_name":"core_js", + "tool_description":"javascript", + "title":"core_js", + "pricing":"FREE", + "score":{ + "avgServiceLevel":100, + "avgLatency":342, + "avgSuccessRate":100, + "popularityScore":8.4, + "__typename":"Score" + }, + "home_url":"https://rapidapi.com/dtanapot/api/core_js/", + "host":"core_js.p.rapidapi.com", + "api_list":[ + { + "name":"name", + "url":"https://core_js.p.rapidapi.com/", + "description":"name=?\n? = javascript", + "method":"GET", + "required_parameters":[], + "optional_parameters":[ + { + "name":"name", + "type":"STRING", + "description":"", + "default":"base64.js" + } + ], + "code":"import requests\n\nurl = \"https://core_js.p.rapidapi.com/\"\nquerystring = {\"name\": name}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"core_js.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":200, + "body":"/**\n * base64.ts test 2\n *\n * Licensed under the BSD 3-Clause License.\n * http://opensource.org/licenses/BSD-3-Clause\n *\n * References:\n * http://en.wikipedia.org/wiki/Base64\n *\n * @author Dan Kogai (https://github.com/dankogai)\n */\n const version = '3.7.2';\n /**\n * @deprecated use lowercase `version`.\n */\n const VERSION = version;\n const _hasatob = typeof atob === 'function';\n const _hasbtoa = typeof btoa === 'function';\n const _hasBuffer = typeof Buffer === 'function';\n const _TD = typeof TextDecoder === 'function' ? new TextDecoder() : undefined;\n const _TE = typeof TextEncoder === 'function' ? new TextEncoder() : undefined;\n const b64ch = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';\n const b64chs = Array.prototype.slice.call(b64ch);\n const b64tab = ((a) => {\n let tab = {};\n a.forEach((c, i) => tab[c] = i);\n return tab;\n })(b64chs);\n const b64re = /^(?:[A-Za-z\\d+\\/]{4})*?(?:[A-Za-z\\d+\\/]{2}(?:==)?|[A-Za-z\\d+\\/]{3}=?)?$/;\n const _fromCC = String.fromCharCode.bind(String);\n const _U8Afrom = typeof Uint8Array.from === 'function'\n ? Uint8Array.from.bind(Uint8Array)\n : (it, fn = (x) => x) => new Uint8Array(Array.prototype.slice.call(it, 0).map(fn));\n const _mkUriSafe = (src) => src\n .replace(/=/g, '').replace(/[+\\/]/g, (m0) => m0 == '+' ? '-' : '_');\n const _tidyB64 = (s) => s.replace(/[^A-Za-z0-9\\+\\/]/g, '');\n /**\n * polyfill version of `btoa`\n */\n const btoaPolyfill = (bin) => {\n // console.log('polyfilled');\n let u32, c0, c1, c2, asc = '';\n const pad = bin.length % 3;\n for (let i = 0; i < bin.length;) {\n if ((c0 = bin.charCodeAt(i++)) > 255 ||\n (c1 = bin.charCodeAt(i++)) > 255 ||\n (c2 = bin.charCodeAt(i++)) > 255)\n throw new TypeError('invalid character found');\n u32 = (c0 << 16) | (c1 << 8) | c2;\n asc += b64chs[u32 >> 18 & 63]\n + b64chs[u32 >> 12 & 63]\n + b64chs[u32 >> 6 & 63]\n + b64chs[u32 & 63];\n }\n return pad ? asc.slice(0, pad - 3) + \"===\".substring(pad) : asc;\n };\n /**\n * does what `window.btoa` of web browsers do.\n * @param {String} bin binary string\n * @returns {string} Base64-encoded string\n */\n const _btoa = _hasbtoa ? (bin) => btoa(bin)\n : _hasBuffer ? (bin) => Buffer.from(bin, 'binary').toString('base64')\n : btoaPolyfill;\n const _fromUint8Array = _hasBuffer\n ? (u8a) => Buffer.from(u8a).toString('base64')\n : (u8a) => {\n // cf. https://stackoverflow.com/questions/12710001/how-to-convert-uint8-array-to-base64-encoded-string/12713326#12713326\n const maxargs = 0x1000;\n let strs = [];\n for (let i = 0, l = u8a.length; i < l; i += maxargs) {\n strs.push(_fromCC.apply(null, u8a.subarray(i, i + maxargs)));\n }\n return _btoa(strs.join(''));\n };\n /**\n * converts a Uint8Array to a Base64 string.\n * @param {boolean} [urlsafe] URL-and-filename-safe a la RFC4648 §5\n * @returns {string} Base64 string\n */\n const fromUint8Array = (u8a, urlsafe = false) => urlsafe ? _mkUriSafe(_fromUint8Array(u8a)) : _fromUint8Array(u8a);\n // This trick is found broken https://github.com/dankogai/js-base64/issues/130\n // const utob = (src: string) => unescape(encodeURIComponent(src));\n // reverting good old fationed regexp\n const cb_utob = (c) => {\n if (c.length < 2) {\n var cc = c.charCodeAt(0);\n return cc < 0x80 ? c\n : cc < 0x800 ? (_fromCC(0xc0 | (cc >>> 6))\n + _fromCC(0x80 | (cc & 0x3f)))\n : (_fromCC(0xe0 | ((cc >>> 12) & 0x0f))\n + _fromCC(0x80 | ((cc >>> 6) & 0x3f))\n + _fromCC(0x80 | (cc & 0x3f)));\n }\n else {\n var cc = 0x10000\n + (c.charCodeAt(0) - 0xD800) * 0x400\n + (c.charCodeAt(1) - 0xDC00);\n return (_fromCC(0xf0 | ((cc >>> 18) & 0x07))\n + _fromCC(0x80 | ((cc >>> 12) & 0x3f))\n + _fromCC(0x80 | ((cc >>> 6) & 0x3f))\n + _fromCC(0x80 | (cc & 0x3f)));\n }\n };\n const re_utob = /[\\uD800-\\uDBFF][\\uDC00-\\uDFFFF]|[^\\x00-\\x7F]/g;\n /**\n * @deprecated should have been internal use only.\n * @param {string} src UTF-8 string\n * @returns {string} UTF-16 string\n */\n const utob = (u) => u.replace(re_utob, cb_utob);\n //\n const _encode = _hasBuffer\n ? (s) => Buffer.from(s, 'utf8').toString('base64')\n : _TE\n ? (s) => _fromUint8Array(_TE.encode(s))\n : (s) => _btoa(utob(s));\n /**\n * converts a UTF-8-encoded string to a Base64 string.\n * @param {boolean} [urlsafe] if `true` make the result URL-safe\n * @returns {string} Base64 string\n */\n const encode = (src, urlsafe = false) => urlsafe\n ? _mkUriSafe(_encode(src))\n : _encode(src);\n /**\n * converts a UTF-8-encoded string to URL-safe Base64 RFC4648 §5.\n * @returns {string} Base64 string\n */\n const encodeURI = (src) => encode(src, true);\n // This trick is found broken https://github.com/dankogai/js-base64/issues/130\n // const btou = (src: string) => decodeURIComponent(escape(src));\n // reverting good old fationed regexp\n const re_btou = /[\\xC0-\\xDF][\\x80-\\xBF]|[\\xE0-\\xEF][\\x80-\\xBF]{2}|[\\xF0-\\xF7][\\x80-\\xBF]{3}/g;\n const cb_btou = (cccc) => {\n switch (cccc.length) {\n case 4:\n var cp = ((0x07 & cccc.charCodeAt(0)) << 18)\n | ((0x3f & cccc.charCodeAt(1)) << 12)\n | ((0x3f & cccc.charCodeAt(2)) << 6)\n | (0x3f & cccc.charCodeAt(3)), offset = cp - 0x10000;\n return (_fromCC((offset >>> 10) + 0xD800)\n + _fromCC((offset & 0x3FF) + 0xDC00));\n case 3:\n return _fromCC(((0x0f & cccc.charCodeAt(0)) << 12)\n | ((0x3f & cccc.charCodeAt(1)) << 6)\n | (0x3f & cccc.charCodeAt(2)));\n default:\n return _fromCC(((0x1f & cccc.charCodeAt(0)) << 6)\n | (0x3f & cccc.charCodeAt(1)));\n }\n };\n /**\n * @deprecated should have been internal use only.\n * @param {string} src UTF-16 string\n * @returns {string} UTF-8 string\n */\n const btou = (b) => b.replace(re_btou, cb_btou);\n /**\n * polyfill version of `atob`\n */\n const atobPolyfill = (asc) => {\n // console.log('polyfilled');\n asc = asc.replace(/\\s+/g, '');\n if (!b64re.test(asc))\n throw new TypeError('malformed base64.');\n asc += '=='.slice(2 - (asc.length & 3));\n let u24, bin = '', r1, r2;\n for (let i = 0; i < asc.length;) {\n u24 = b64tab[asc.charAt(i++)] << 18\n | b64tab[asc.charAt(i++)] << 12\n | (r1 = b64tab[asc.charAt(i++)]) << 6\n | (r2 = b64tab[asc.charAt(i++)]);\n bin += r1 === 64 ? _fromCC(u24 >> 16 & 255)\n : r2 === 64 ? _fromCC(u24 >> 16 & 255, u24 >> 8 & 255)\n : _fromCC(u24 >> 16 & 255, u24 >> 8 & 255, u24 & 255);\n }\n return bin;\n };\n /**\n * does what `window.atob` of web browsers do.\n * @param {String} asc Base64-encoded string\n * @returns {string} binary string\n */\n const _atob = _hasatob ? (asc) => atob(_tidyB64(asc))\n : _hasBuffer ? (asc) => Buffer.from(asc, 'base64').toString('binary')\n : atobPolyfill;\n //\n const _toUint8Array = _hasBuffer\n ? (a) => _U8Afrom(Buffer.from(a, 'base64'))\n : (a) => _U8Afrom(_atob(a), c => c.charCodeAt(0));\n /**\n * converts a Base64 string to a Uint8Array.\n */\n const toUint8Array = (a) => _toUint8Array(_unURI(a));\n //\n const _decode = _hasBuffer\n ? (a) => Buffer.from(a, 'base64').toString('utf8')\n : _TD\n ? (a) => _TD.decode(_toUint8Array(a))\n : (a) => btou(_atob(a));\n const _unURI = (a) => _tidyB64(a.replace(/[-_]/g, (m0) => m0 == '-' ? '+' : '/'));\n /**\n * converts a Base64 string to a UTF-8 string.\n * @param {String} src Base64 string. Both normal and URL-safe are supported\n * @returns {string} UTF-8 string\n */\n const decode = (src) => _decode(_unURI(src));\n /**\n * check if a value is a valid Base64 string\n * @param {String} src a value to check\n */\n const isValid = (src) => {\n if (typeof src !== 'string')\n return false;\n const s = src.replace(/\\s+/g, '').replace(/={0,2}$/, '');\n return !/[^\\s0-9a-zA-Z\\+/]/.test(s) || !/[^\\s0-9a-zA-Z\\-_]/.test(s);\n };\n //\n const _noEnum = (v) => {\n return {\n value: v, enumerable: false, writable: true, configurable: true\n };\n };\n /**\n * extend String.prototype with relevant methods\n */\n const extendString = function () {\n const _add = (name, body) => Object.defineProperty(String.prototype, name, _noEnum(body));\n _add('fromBase64', function () { return decode(this); });\n _add('toBase64', function (urlsafe) { return encode(this, urlsafe); });\n _add('toBase64URI', function () { return encode(this, true); });\n _add('toBase64URL', function () { return encode(this, true); });\n _add('toUint8Array', function () { return toUint8Array(this); });\n };\n /**\n * extend Uint8Array.prototype with relevant methods\n */\n const extendUint8Array = function () {\n const _add = (name, body) => Object.defineProperty(Uint8Array.prototype, name, _noEnum(body));\n _add('toBase64', function (urlsafe) { return fromUint8Array(this, urlsafe); });\n _add('toBase64URI', function () { return fromUint8Array(this, true); });\n _add('toBase64URL', function () { return fromUint8Array(this, true); });\n };\n /**\n * extend Builtin prototypes with relevant methods\n */\n const extendBuiltins = () => {\n extendString();\n extendUint8Array();\n };\n const gBase64 = {\n version: version,\n VERSION: VERSION,\n atob: _atob,\n atobPolyfill: atobPolyfill,\n btoa: _btoa,\n btoaPolyfill: btoaPolyfill,\n fromBase64: decode,\n toBase64: encode,\n encode: encode,\n encodeURI: encodeURI,\n encodeURL: encodeURI,\n utob: utob,\n btou: btou,\n decode: decode,\n isValid: isValid,\n fromUint8Array: fromUint8Array,\n toUint8Array: toUint8Array,\n extendString: extendString,\n extendUint8Array: extendUint8Array,\n extendBuiltins: extendBuiltins,\n };\n // makecjs:CUT //\n export { version };\n export { VERSION };\n export { _atob as atob };\n export { atobPolyfill };\n export { _btoa as btoa };\n export { btoaPolyfill };\n export { decode as fromBase64 };\n export { encode as toBase64 };\n export { utob };\n export { encode };\n export { encodeURI };\n export { encodeURI as encodeURL };\n export { btou };\n export { decode };\n export { isValid };\n export { fromUint8Array };\n export { toUint8Array };\n export { extendString };\n export { extendUint8Array };\n export { extendBuiltins };\n // and finally,\n export { gBase64 as Base64 };", + "headers":{ + "access-control-allow-credentials":"true", + "access-control-allow-headers":"Origin, Content-Type, X-Auth-Token , Authorization", + "access-control-allow-methods":"GET", + "access-control-allow-origin":"*", + "access-control-max-age":"31536000", + "cache-control":"max-age=31536000", + "content-length":"10650", + "content-type":"application/javascript; charset=utf-8", + "date":"Thu, 29 Sep 2022 13:04:15 GMT", + "expires":"Fri, 29 Sep 2023 13:04:14 GMT", + "pragma":"cache", + "server":"RapidAPI-1.2.8", + "x-rapidapi-region":"AWS - ap-southeast-1", + "x-rapidapi-version":"1.2.8", + "x-turbo-charged-by":"LiteSpeed" + }, + "schema":{} + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Tools/core_js/api.py b/toolbench/toolenv/tools/Tools/core_js/api.py new file mode 100644 index 0000000000000000000000000000000000000000..c9f61035d15ed56093eb3151de4427d0c1a11ed7 --- /dev/null +++ b/toolbench/toolenv/tools/Tools/core_js/api.py @@ -0,0 +1,32 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def name(name: str='base64.js', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "name=? + ? = javascript" + + """ + url = f"https://core_js.p.rapidapi.com/" + querystring = {} + if name: + querystring['name'] = name + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "core_js.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Tools/cors_proxy.json b/toolbench/toolenv/tools/Tools/cors_proxy.json new file mode 100644 index 0000000000000000000000000000000000000000..826b489d753323e984bf8573f39d98aeee91d294 --- /dev/null +++ b/toolbench/toolenv/tools/Tools/cors_proxy.json @@ -0,0 +1,48 @@ +{ + "product_id": "api_a8edbc50-316e-41d4-a7f4-3f08838a74bd", + "tool_description": "\ud83d\ude80 Solve CORS errors effortlessly! CORS Proxy: Your ultimate tool for seamless cross-origin resource sharing in frontend development", + "home_url": "https://rapidapi.com/joshirajesh448-emyeudCJ4Y-/api/cors-proxy1/", + "name": "CORS Proxy", + "title": "CORS Proxy", + "pricing": "FREEMIUM", + "tool_name": "CORS Proxy", + "score": { + "avgServiceLevel": 100, + "avgLatency": 1607, + "avgSuccessRate": 99, + "popularityScore": 9.6, + "__typename": "Score" + }, + "host": "cors-proxy1.p.rapidapi.com", + "api_list": [ + { + "name": "version1_v1_post", + "url": "https://cors-proxy1.p.rapidapi.com/v1", + "description": " ", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://cors-proxy1.p.rapidapi.com/v1\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"cors-proxy1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://cors-proxy1.p.rapidapi.com/v1\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"cors-proxy1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "title": "V1ResponseModel", + "type": "object", + "properties": { + "status_code": { + "title": "Status Code", + "type": "integer", + "default": 200 + }, + "payload": { + "title": "Payload" + }, + "text": { + "title": "Text" + } + } + } + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Tools/cors_proxy/api.py b/toolbench/toolenv/tools/Tools/cors_proxy/api.py new file mode 100644 index 0000000000000000000000000000000000000000..ef70a5c9806bc4da3f4dcf15bb7ac77c5d294ed6 --- /dev/null +++ b/toolbench/toolenv/tools/Tools/cors_proxy/api.py @@ -0,0 +1,29 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def index_get(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Welcome to CORS Proxy" + + """ + url = f"https://cors-proxy1.p.rapidapi.com/" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "cors-proxy1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Tools/cors_proxy_v2.json b/toolbench/toolenv/tools/Tools/cors_proxy_v2.json new file mode 100644 index 0000000000000000000000000000000000000000..04c7e8242b08384e708a88e653d45b258bd548c9 --- /dev/null +++ b/toolbench/toolenv/tools/Tools/cors_proxy_v2.json @@ -0,0 +1,48 @@ +{ + "product_id": "api_a8edbc50-316e-41d4-a7f4-3f08838a74bd", + "tool_description": "\ud83d\ude80 Solve CORS errors effortlessly! CORS Proxy: Your ultimate tool for seamless cross-origin resource sharing in frontend development", + "home_url": "https://rapidapi.com/joshirajesh448-emyeudCJ4Y-/api/cors-proxy1/", + "name": "CORS Proxy_v2", + "title": "CORS Proxy", + "pricing": "FREEMIUM", + "tool_name": "CORS Proxy_v2", + "score": { + "avgServiceLevel": 99, + "avgLatency": 437, + "avgSuccessRate": 99, + "popularityScore": 9.4, + "__typename": "Score" + }, + "host": "cors-proxy1.p.rapidapi.com", + "api_list": [ + { + "name": "index__get", + "url": "https://cors-proxy1.p.rapidapi.com/", + "description": "Welcome to CORS Proxy", + "method": "GET", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://cors-proxy1.p.rapidapi.com/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"cors-proxy1.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://cors-proxy1.p.rapidapi.com/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"cors-proxy1.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "title": "IndexResponseModel", + "type": "object", + "properties": { + "detail": { + "title": "Detail", + "type": "string", + "default": "Please hit any of the following end point with POST Method" + }, + "Version1": { + "title": "Version1", + "type": "string", + "default": "/v1" + } + } + } + } + ], + "standardized_name": "cors_proxy_v2" +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Tools/cors_proxy_v2/api.py b/toolbench/toolenv/tools/Tools/cors_proxy_v2/api.py new file mode 100644 index 0000000000000000000000000000000000000000..ef70a5c9806bc4da3f4dcf15bb7ac77c5d294ed6 --- /dev/null +++ b/toolbench/toolenv/tools/Tools/cors_proxy_v2/api.py @@ -0,0 +1,29 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def index_get(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Welcome to CORS Proxy" + + """ + url = f"https://cors-proxy1.p.rapidapi.com/" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "cors-proxy1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Tools/countries_cities.json b/toolbench/toolenv/tools/Tools/countries_cities.json new file mode 100644 index 0000000000000000000000000000000000000000..e5fbfa13d6323a32a3b37b4b526c9a36bd748eb7 --- /dev/null +++ b/toolbench/toolenv/tools/Tools/countries_cities.json @@ -0,0 +1,564 @@ +{ + "tool_name": "Countries - Cities", + "tool_description": "Countries & Cities API", + "title": "Countries - Cities", + "pricing": "FREEMIUM", + "score": null, + "home_url": "https://rapidapi.com/auysal60-IwQqyLOPzS/api/countries-cities1/", + "host": "countries-cities1.p.rapidapi.com", + "api_list": [ + { + "name": "Getsinglecountryandunicodeflag", + "url": "https://countries-cities1.p.rapidapi.com/flag/unicode", + "description": "get a single country with its flag in unicode format", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://countries-cities1.p.rapidapi.com/flag/unicode\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"countries-cities1.p.rapidapi.com\"\n}\n\nresponse = requests.post(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 200, + "body": {}, + "headers": {}, + "schema": {} + }, + { + "name": "Getsinglecountrydialcodes", + "url": "https://countries-cities1.p.rapidapi.com/codes", + "description": "Get single country dial codes", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://countries-cities1.p.rapidapi.com/codes\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"countries-cities1.p.rapidapi.com\"\n}\n\nresponse = requests.post(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 200, + "body": {}, + "headers": {}, + "schema": {} + }, + { + "name": "Getcitiesinastate", + "url": "https://countries-cities1.p.rapidapi.com/state/cities", + "description": "Getcitiesinastate", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://countries-cities1.p.rapidapi.com/state/cities\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"countries-cities1.p.rapidapi.com\"\n}\n\nresponse = requests.post(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 200, + "body": {}, + "headers": {}, + "schema": {} + }, + { + "name": "Getsinglecountryanditscurrency", + "url": "https://countries-cities1.p.rapidapi.com/currency", + "description": "Get currencies of a single country", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://countries-cities1.p.rapidapi.com/currency\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"countries-cities1.p.rapidapi.com\"\n}\n\nresponse = requests.post(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 200, + "body": {}, + "headers": {}, + "schema": {} + }, + { + "name": "GetsinglecountryandflagURL", + "url": "https://countries-cities1.p.rapidapi.com/flag/images", + "description": "Get single country with flag image", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://countries-cities1.p.rapidapi.com/flag/images\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"countries-cities1.p.rapidapi.com\"\n}\n\nresponse = requests.post(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 200, + "body": {}, + "headers": {}, + "schema": {} + }, + { + "name": "Getsinglecountryandpopulationdata", + "url": "https://countries-cities1.p.rapidapi.com/population", + "description": "Get single country and population data", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://countries-cities1.p.rapidapi.com/population\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"countries-cities1.p.rapidapi.com\"\n}\n\nresponse = requests.post(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 200, + "body": {}, + "headers": {}, + "schema": {} + }, + { + "name": "Filtercitiesandpopulationdata", + "url": "https://countries-cities1.p.rapidapi.com/population/cities/filter", + "description": "Filter cities and population data by (country, order, limit)", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://countries-cities1.p.rapidapi.com/population/cities/filter\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"countries-cities1.p.rapidapi.com\"\n}\n\nresponse = requests.post(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 200, + "body": {}, + "headers": {}, + "schema": {} + }, + { + "name": "Filtercountriespopulationdata", + "url": "https://countries-cities1.p.rapidapi.com/population/filter", + "description": "allowed queries { year: Number, limit: Number, gt: Number, lt: Number, order: String, orderBy: String }", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://countries-cities1.p.rapidapi.com/population/filter\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"countries-cities1.p.rapidapi.com\"\n}\n\nresponse = requests.post(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 200, + "body": {}, + "headers": {}, + "schema": {} + }, + { + "name": "Getcitiesofaspecifiedcountry", + "url": "https://countries-cities1.p.rapidapi.com/cities", + "description": "Get all cities in a specified country", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://countries-cities1.p.rapidapi.com/cities\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"countries-cities1.p.rapidapi.com\"\n}\n\nresponse = requests.post(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 200, + "body": {}, + "headers": {}, + "schema": {} + }, + { + "name": "Getcountriesandtheircapital", + "url": "https://countries-cities1.p.rapidapi.com/capital", + "description": "Get countries and their capital", + "method": "GET", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://countries-cities1.p.rapidapi.com/capital\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"countries-cities1.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 200, + "body": {}, + "headers": {}, + "schema": {} + }, + { + "name": "Getcountriesandtheircurrencies", + "url": "https://countries-cities1.p.rapidapi.com/currency", + "description": "Get all countries and their currencies", + "method": "GET", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://countries-cities1.p.rapidapi.com/currency\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"countries-cities1.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 200, + "body": {}, + "headers": {}, + "schema": {} + }, + { + "name": "Getasinglecountryandcapital", + "url": "https://countries-cities1.p.rapidapi.com/capital", + "description": "Get a specific country and its capital", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://countries-cities1.p.rapidapi.com/capital\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"countries-cities1.p.rapidapi.com\"\n}\n\nresponse = requests.post(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 200, + "body": {}, + "headers": {}, + "schema": {} + }, + { + "name": "Getcountriesandtheirpositions", + "url": "https://countries-cities1.p.rapidapi.com/positions", + "description": "get all countries with their longitude and latitude", + "method": "GET", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://countries-cities1.p.rapidapi.com/positions\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"countries-cities1.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 200, + "body": {}, + "headers": {}, + "schema": {} + }, + { + "name": "Getallcountriesandrespectivepopulation", + "url": "https://countries-cities1.p.rapidapi.com/population", + "description": "Get all countries and respective population", + "method": "GET", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://countries-cities1.p.rapidapi.com/population\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"countries-cities1.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 200, + "body": {}, + "headers": {}, + "schema": {} + }, + { + "name": "Getcitiesandtheirpopulationdata", + "url": "https://countries-cities1.p.rapidapi.com/population/cities", + "description": "Get cities and their population data", + "method": "GET", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://countries-cities1.p.rapidapi.com/population/cities\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"countries-cities1.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 200, + "body": {}, + "headers": {}, + "schema": {} + }, + { + "name": "Getallcountriesandtheircities", + "url": "https://countries-cities1.p.rapidapi.com//", + "description": "get all countries and thier respective cities", + "method": "GET", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://countries-cities1.p.rapidapi.com//\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"countries-cities1.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 200, + "body": {}, + "headers": {}, + "schema": {} + }, + { + "name": "Getsinglecityanditspopulationdata", + "url": "https://countries-cities1.p.rapidapi.com/population/cities", + "description": "Get a single city and its population data", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://countries-cities1.p.rapidapi.com/population/cities\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"countries-cities1.p.rapidapi.com\"\n}\n\nresponse = requests.post(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 200, + "body": {}, + "headers": {}, + "schema": {} + }, + { + "name": "Getcountriesbypositionrange", + "url": "https://countries-cities1.p.rapidapi.com/positions/range", + "description": "Get countries by position range", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://countries-cities1.p.rapidapi.com/positions/range\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"countries-cities1.p.rapidapi.com\"\n}\n\nresponse = requests.post(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 200, + "body": {}, + "headers": {}, + "schema": {} + }, + { + "name": "Getsinglecountryanditspositions", + "url": "https://countries-cities1.p.rapidapi.com/positions", + "description": "Get single country and its positions", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://countries-cities1.p.rapidapi.com/positions\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"countries-cities1.p.rapidapi.com\"\n}\n\nresponse = requests.post(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 200, + "body": {}, + "headers": {}, + "schema": {} + }, + { + "name": "Getonlyspecifiedcountriesinformation", + "url": "https://countries-cities1.p.rapidapi.com/info", + "description": "Get only specified countries information", + "method": "GET", + "required_parameters": [ + { + "name": "returns", + "type": "STRING", + "description": "", + "default": "currency,flag,unicodeFlag,dialCode" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://countries-cities1.p.rapidapi.com/info\"\nquerystring = {\"returns\": returns}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"countries-cities1.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode": 200, + "body": {}, + "headers": {}, + "schema": {} + }, + { + "name": "Getcitiesanddialcodes", + "url": "https://countries-cities1.p.rapidapi.com/codes", + "description": "Get all countries, country code and dial codes", + "method": "GET", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://countries-cities1.p.rapidapi.com/codes\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"countries-cities1.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 200, + "body": {}, + "headers": {}, + "schema": {} + }, + { + "name": "GetSingleCountryandISO2&3Codes", + "url": "https://countries-cities1.p.rapidapi.com/iso", + "description": "get single country with its ISO2&3 Code", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://countries-cities1.p.rapidapi.com/iso\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"countries-cities1.p.rapidapi.com\"\n}\n\nresponse = requests.post(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 200, + "body": {}, + "headers": {}, + "schema": {} + }, + { + "name": "GetcountriesandISO2&3Codes", + "url": "https://countries-cities1.p.rapidapi.com/iso", + "description": "get all countries with their ISO2&3 Codes", + "method": "GET", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://countries-cities1.p.rapidapi.com/iso\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"countries-cities1.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 200, + "body": {}, + "headers": {}, + "schema": {} + }, + { + "name": "Getsinglecountryanditsstates", + "url": "https://countries-cities1.p.rapidapi.com/states", + "description": "get a country and its states", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://countries-cities1.p.rapidapi.com/states\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"countries-cities1.p.rapidapi.com\"\n}\n\nresponse = requests.post(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 200, + "body": {}, + "headers": {}, + "schema": {} + }, + { + "name": "CountriesandflagURL", + "url": "https://countries-cities1.p.rapidapi.com/flag/images", + "description": "get all countries with their flag images url", + "method": "GET", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://countries-cities1.p.rapidapi.com/flag/images\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"countries-cities1.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 200, + "body": {}, + "headers": {}, + "schema": {} + }, + { + "name": "Getcountriesandunicodeflags", + "url": "https://countries-cities1.p.rapidapi.com/flag/unicode", + "description": "get all countries with their flag in unicode format", + "method": "GET", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://countries-cities1.p.rapidapi.com/flag/unicode\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"countries-cities1.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 200, + "body": {}, + "headers": {}, + "schema": {} + }, + { + "name": "Getallcountriesandtheirstates", + "url": "https://countries-cities1.p.rapidapi.com/states", + "description": "get every country and their respective states ", + "method": "GET", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://countries-cities1.p.rapidapi.com/states\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"countries-cities1.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 200, + "body": {}, + "headers": {}, + "schema": {} + }, + { + "name": "Getsinglecountryandunicodeflag", + "url": "https://countries-cities1.p.rapidapi.com/flag/unicode", + "description": "get a single country with its flag in unicode format", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://countries-cities1.p.rapidapi.com/flag/unicode\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"countries-cities1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://countries-cities1.p.rapidapi.com/flag/unicode\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"countries-cities1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": {} + }, + { + "name": "Getsinglecountrydialcodes", + "url": "https://countries-cities1.p.rapidapi.com/codes", + "description": "Get single country dial codes", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://countries-cities1.p.rapidapi.com/codes\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"countries-cities1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://countries-cities1.p.rapidapi.com/codes\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"countries-cities1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": {} + }, + { + "name": "Getcitiesinastate", + "url": "https://countries-cities1.p.rapidapi.com/state/cities", + "description": "Getcitiesinastate", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://countries-cities1.p.rapidapi.com/state/cities\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"countries-cities1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://countries-cities1.p.rapidapi.com/state/cities\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"countries-cities1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": {} + }, + { + "name": "Getsinglecountryanditscurrency", + "url": "https://countries-cities1.p.rapidapi.com/currency", + "description": "Get currencies of a single country", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://countries-cities1.p.rapidapi.com/currency\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"countries-cities1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://countries-cities1.p.rapidapi.com/currency\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"countries-cities1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": {} + }, + { + "name": "GetsinglecountryandflagURL", + "url": "https://countries-cities1.p.rapidapi.com/flag/images", + "description": "Get single country with flag image", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://countries-cities1.p.rapidapi.com/flag/images\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"countries-cities1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://countries-cities1.p.rapidapi.com/flag/images\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"countries-cities1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": {} + }, + { + "name": "Getsinglecountryandpopulationdata", + "url": "https://countries-cities1.p.rapidapi.com/population", + "description": "Get single country and population data", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://countries-cities1.p.rapidapi.com/population\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"countries-cities1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://countries-cities1.p.rapidapi.com/population\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"countries-cities1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": {} + }, + { + "name": "Filtercitiesandpopulationdata", + "url": "https://countries-cities1.p.rapidapi.com/population/cities/filter", + "description": "Filter cities and population data by (country, order, limit)", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://countries-cities1.p.rapidapi.com/population/cities/filter\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"countries-cities1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://countries-cities1.p.rapidapi.com/population/cities/filter\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"countries-cities1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": {} + }, + { + "name": "Filtercountriespopulationdata", + "url": "https://countries-cities1.p.rapidapi.com/population/filter", + "description": "allowed queries { year: Number, limit: Number, gt: Number, lt: Number, order: String, orderBy: String }", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://countries-cities1.p.rapidapi.com/population/filter\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"countries-cities1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://countries-cities1.p.rapidapi.com/population/filter\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"countries-cities1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": {} + }, + { + "name": "Getcitiesofaspecifiedcountry", + "url": "https://countries-cities1.p.rapidapi.com/cities", + "description": "Get all cities in a specified country", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://countries-cities1.p.rapidapi.com/cities\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"countries-cities1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://countries-cities1.p.rapidapi.com/cities\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"countries-cities1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": {} + }, + { + "name": "Getasinglecountryandcapital", + "url": "https://countries-cities1.p.rapidapi.com/capital", + "description": "Get a specific country and its capital", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://countries-cities1.p.rapidapi.com/capital\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"countries-cities1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://countries-cities1.p.rapidapi.com/capital\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"countries-cities1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": {} + }, + { + "name": "Getsinglecityanditspopulationdata", + "url": "https://countries-cities1.p.rapidapi.com/population/cities", + "description": "Get a single city and its population data", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://countries-cities1.p.rapidapi.com/population/cities\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"countries-cities1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://countries-cities1.p.rapidapi.com/population/cities\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"countries-cities1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": {} + }, + { + "name": "Getcountriesbypositionrange", + "url": "https://countries-cities1.p.rapidapi.com/positions/range", + "description": "Get countries by position range", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://countries-cities1.p.rapidapi.com/positions/range\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"countries-cities1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://countries-cities1.p.rapidapi.com/positions/range\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"countries-cities1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": {} + }, + { + "name": "Getsinglecountryanditspositions", + "url": "https://countries-cities1.p.rapidapi.com/positions", + "description": "Get single country and its positions", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://countries-cities1.p.rapidapi.com/positions\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"countries-cities1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://countries-cities1.p.rapidapi.com/positions\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"countries-cities1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": {} + }, + { + "name": "GetSingleCountryandISO2&3Codes", + "url": "https://countries-cities1.p.rapidapi.com/iso", + "description": "get single country with its ISO2&3 Code", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://countries-cities1.p.rapidapi.com/iso\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"countries-cities1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://countries-cities1.p.rapidapi.com/iso\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"countries-cities1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": {} + }, + { + "name": "Getsinglecountryanditsstates", + "url": "https://countries-cities1.p.rapidapi.com/states", + "description": "get a country and its states", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://countries-cities1.p.rapidapi.com/states\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"countries-cities1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://countries-cities1.p.rapidapi.com/states\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"countries-cities1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": {} + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Tools/countries_cities/api.py b/toolbench/toolenv/tools/Tools/countries_cities/api.py new file mode 100644 index 0000000000000000000000000000000000000000..e2003a5e13cf4c64ad885b2f168da8a34aa0708c --- /dev/null +++ b/toolbench/toolenv/tools/Tools/countries_cities/api.py @@ -0,0 +1,260 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def getcountriesandtheircapital(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get countries and their capital" + + """ + url = f"https://countries-cities1.p.rapidapi.com/capital" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "countries-cities1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def getcountriesandtheircurrencies(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get all countries and their currencies" + + """ + url = f"https://countries-cities1.p.rapidapi.com/currency" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "countries-cities1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def getcountriesandtheirpositions(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "get all countries with their longitude and latitude" + + """ + url = f"https://countries-cities1.p.rapidapi.com/positions" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "countries-cities1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def getallcountriesandrespectivepopulation(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get all countries and respective population" + + """ + url = f"https://countries-cities1.p.rapidapi.com/population" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "countries-cities1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def getcitiesandtheirpopulationdata(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get cities and their population data" + + """ + url = f"https://countries-cities1.p.rapidapi.com/population/cities" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "countries-cities1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def getallcountriesandtheircities(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "get all countries and thier respective cities" + + """ + url = f"https://countries-cities1.p.rapidapi.com//" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "countries-cities1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def getonlyspecifiedcountriesinformation(returns: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get only specified countries information" + + """ + url = f"https://countries-cities1.p.rapidapi.com/info" + querystring = {'returns': returns, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "countries-cities1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def getcitiesanddialcodes(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get all countries, country code and dial codes" + + """ + url = f"https://countries-cities1.p.rapidapi.com/codes" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "countries-cities1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def getcountriesandiso2_3codes(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "get all countries with their ISO2&3 Codes" + + """ + url = f"https://countries-cities1.p.rapidapi.com/iso" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "countries-cities1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def countriesandflagurl(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "get all countries with their flag images url" + + """ + url = f"https://countries-cities1.p.rapidapi.com/flag/images" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "countries-cities1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def getcountriesandunicodeflags(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "get all countries with their flag in unicode format" + + """ + url = f"https://countries-cities1.p.rapidapi.com/flag/unicode" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "countries-cities1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def getallcountriesandtheirstates(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "get every country and their respective states " + + """ + url = f"https://countries-cities1.p.rapidapi.com/states" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "countries-cities1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Tools/country_info_api.json b/toolbench/toolenv/tools/Tools/country_info_api.json new file mode 100644 index 0000000000000000000000000000000000000000..95c88bd4d8c6be4271240506090e536d8a3efacb --- /dev/null +++ b/toolbench/toolenv/tools/Tools/country_info_api.json @@ -0,0 +1,31 @@ +{ + "tool_name":"Country Info API", + "tool_description":"This api takes the name of country as input and return the info json about that country.", + "title":"Country Info API", + "pricing":"FREEMIUM", + "score":null, + "home_url":"https://rapidapi.com/mimonacg/api/country-info-api/", + "host":"country-info-api.p.rapidapi.com", + "api_list":[ + { + "name":"Country Info API", + "url":"https://country-info-api.p.rapidapi.com/country", + "description":"This api takes the name of country as input and returns the json response of country info.", + "method":"GET", + "required_parameters":[], + "optional_parameters":[ + { + "name":"name", + "type":"STRING", + "description":"", + "default":"india" + } + ], + "code":"import requests\n\nurl = \"https://country-info-api.p.rapidapi.com/country\"\nquerystring = {\"name\": name}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"country-info-api.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Tools/country_info_api/api.py b/toolbench/toolenv/tools/Tools/country_info_api/api.py new file mode 100644 index 0000000000000000000000000000000000000000..f56f751097431912be076f091f1e62dc2e8cc314 --- /dev/null +++ b/toolbench/toolenv/tools/Tools/country_info_api/api.py @@ -0,0 +1,31 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def country_info_api(name: str='india', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "This api takes the name of country as input and returns the json response of country info." + + """ + url = f"https://country-info-api.p.rapidapi.com/country" + querystring = {} + if name: + querystring['name'] = name + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "country-info-api.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Tools/covid_history/api.py b/toolbench/toolenv/tools/Tools/covid_history/api.py new file mode 100644 index 0000000000000000000000000000000000000000..810f224e673fcbc8742219e26131cfdd004bcae3 --- /dev/null +++ b/toolbench/toolenv/tools/Tools/covid_history/api.py @@ -0,0 +1,29 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def default(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "default endpoint" + + """ + url = f"https://covid-history.p.rapidapi.com/" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "covid-history.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Tools/covid_history_v2/api.py b/toolbench/toolenv/tools/Tools/covid_history_v2/api.py new file mode 100644 index 0000000000000000000000000000000000000000..9bb9b3f36dc13086ed3dba0d33177aac53ab481a --- /dev/null +++ b/toolbench/toolenv/tools/Tools/covid_history_v2/api.py @@ -0,0 +1,29 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def default(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "default endpoint" + + """ + url = f"https://covid-history1.p.rapidapi.com/" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "covid-history1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Tools/cpp_14_code_compiler.json b/toolbench/toolenv/tools/Tools/cpp_14_code_compiler.json new file mode 100644 index 0000000000000000000000000000000000000000..644773af9e899c4d5fd4cb6a87148a858bde89dd --- /dev/null +++ b/toolbench/toolenv/tools/Tools/cpp_14_code_compiler.json @@ -0,0 +1,93 @@ +{ + "tool_name": "CPP 14 Code Compiler", + "tool_description": "C++ 14 Code Compiler API", + "title": "CPP 14 Code Compiler", + "pricing": "FREEMIUM", + "score": null, + "home_url": "https://rapidapi.com/UnlimitedAPI/api/cpp-14-code-compiler/", + "host": "cpp-14-code-compiler.p.rapidapi.com", + "api_list": [ + { + "name": "C++ 14 Versions", + "url": "https://cpp-14-code-compiler.p.rapidapi.com/versions/", + "description": "C++ 14 Versions", + "method": "GET", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://cpp-14-code-compiler.p.rapidapi.com/versions/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"cpp-14-code-compiler.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 200, + "body": [ + { + "id": 0, + "version": "g++ 14 GCC 5.3.0" + }, + { + "id": 1, + "version": "g++ 14 GCC 7.2.0" + }, + { + "id": 2, + "version": "g++ 14 GCC 8.1.0" + }, + { + "id": 3, + "version": "g++ 14 GCC 9.1.0" + }, + { + "id": 4, + "version": "GCC 11.1.0" + } + ], + "headers": { + "access-control-allow-credentials": "true", + "access-control-allow-origin": "*", + "content-type": "application/json", + "date": "Mon, 22 Aug 2022 13:59:04 GMT", + "server": "RapidAPI-1.2.8", + "via": "1.1 vegur", + "x-rapidapi-region": "AWS - eu-central-1", + "x-rapidapi-version": "1.2.8" + }, + "schema": {} + }, + { + "name": "C++ 14 Code Compiler", + "url": "https://cpp-14-code-compiler.p.rapidapi.com/", + "description": "C++ 14 Code Compiler", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://cpp-14-code-compiler.p.rapidapi.com/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"cpp-14-code-compiler.p.rapidapi.com\"\n}\n\nresponse = requests.post(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 200, + "body": { + "cpuTime": "0.00", + "memory": "3424", + "output": "Hello, World!" + }, + "headers": { + "access-control-allow-credentials": "true", + "access-control-allow-origin": "*", + "content-type": "application/json", + "date": "Mon, 22 Aug 2022 13:58:48 GMT", + "server": "RapidAPI-1.2.8", + "via": "1.1 vegur", + "x-rapidapi-region": "AWS - eu-central-1", + "x-rapidapi-version": "1.2.8" + }, + "schema": {} + }, + { + "name": "C++ 14 Code Compiler", + "url": "https://cpp-14-code-compiler.p.rapidapi.com/", + "description": "C++ 14 Code Compiler", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://cpp-14-code-compiler.p.rapidapi.com/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"cpp-14-code-compiler.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://cpp-14-code-compiler.p.rapidapi.com/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"cpp-14-code-compiler.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": {} + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Tools/cpp_14_code_compiler/api.py b/toolbench/toolenv/tools/Tools/cpp_14_code_compiler/api.py new file mode 100644 index 0000000000000000000000000000000000000000..7b6d911ac06aa7adad03c4ae3943a187a342b83d --- /dev/null +++ b/toolbench/toolenv/tools/Tools/cpp_14_code_compiler/api.py @@ -0,0 +1,29 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def c_14_versions(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "C++ 14 Versions" + + """ + url = f"https://cpp-14-code-compiler.p.rapidapi.com/versions/" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "cpp-14-code-compiler.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Tools/cpp_17_code_compiler.json b/toolbench/toolenv/tools/Tools/cpp_17_code_compiler.json new file mode 100644 index 0000000000000000000000000000000000000000..7e8d6b2918b19e881fd2781165f423c996104239 --- /dev/null +++ b/toolbench/toolenv/tools/Tools/cpp_17_code_compiler.json @@ -0,0 +1,87 @@ +{ + "tool_name": "CPP 17 Code Compiler", + "tool_description": "C++ 17 Code Compiler API", + "title": "CPP 17 Code Compiler", + "pricing": "FREEMIUM", + "score": { + "avgServiceLevel": 100, + "avgLatency": 606, + "avgSuccessRate": 92, + "popularityScore": 9, + "__typename": "Score" + }, + "home_url": "https://rapidapi.com/UnlimitedAPI/api/cpp-17-code-compiler/", + "host": "cpp-17-code-compiler.p.rapidapi.com", + "api_list": [ + { + "name": "C++ 17 Versions", + "url": "https://cpp-17-code-compiler.p.rapidapi.com/versions/", + "description": "C++ 17 Versions", + "method": "GET", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://cpp-17-code-compiler.p.rapidapi.com/versions/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"cpp-17-code-compiler.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 200, + "body": [ + { + "id": 0, + "version": "g++ 17 GCC 9.1.0" + }, + { + "id": 1, + "version": "g++ 17 GCC 11.1.0" + } + ], + "headers": { + "access-control-allow-credentials": "true", + "access-control-allow-origin": "*", + "content-type": "application/json", + "date": "Mon, 22 Aug 2022 14:02:47 GMT", + "server": "RapidAPI-1.2.8", + "via": "1.1 vegur", + "x-rapidapi-region": "AWS - eu-central-1", + "x-rapidapi-version": "1.2.8" + }, + "schema": {} + }, + { + "name": "C++ 17 Code Compiler", + "url": "https://cpp-17-code-compiler.p.rapidapi.com/", + "description": "C++ 17 Code Compiler", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://cpp-17-code-compiler.p.rapidapi.com/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"cpp-17-code-compiler.p.rapidapi.com\"\n}\n\nresponse = requests.post(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 200, + "body": { + "cpuTime": "0.00", + "memory": "3416", + "output": "Hello, World!" + }, + "headers": { + "access-control-allow-credentials": "true", + "access-control-allow-origin": "*", + "content-type": "application/json", + "date": "Mon, 22 Aug 2022 14:02:27 GMT", + "server": "RapidAPI-1.2.8", + "via": "1.1 vegur", + "x-rapidapi-region": "AWS - eu-central-1", + "x-rapidapi-version": "1.2.8" + }, + "schema": {} + }, + { + "name": "C++ 17 Code Compiler", + "url": "https://cpp-17-code-compiler.p.rapidapi.com/", + "description": "C++ 17 Code Compiler", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://cpp-17-code-compiler.p.rapidapi.com/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"cpp-17-code-compiler.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://cpp-17-code-compiler.p.rapidapi.com/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"cpp-17-code-compiler.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": {} + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Tools/cpp_17_code_compiler/api.py b/toolbench/toolenv/tools/Tools/cpp_17_code_compiler/api.py new file mode 100644 index 0000000000000000000000000000000000000000..b4b63bc6c2adff7bc4c9d0f3e38926ce9a5a0259 --- /dev/null +++ b/toolbench/toolenv/tools/Tools/cpp_17_code_compiler/api.py @@ -0,0 +1,29 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def c_17_versions(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "C++ 17 Versions" + + """ + url = f"https://cpp-17-code-compiler.p.rapidapi.com/versions/" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "cpp-17-code-compiler.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Tools/cpp_code_compiler.json b/toolbench/toolenv/tools/Tools/cpp_code_compiler.json new file mode 100644 index 0000000000000000000000000000000000000000..bcf5f4d73bc69f4a7affa810698a14e6c07d5b58 --- /dev/null +++ b/toolbench/toolenv/tools/Tools/cpp_code_compiler.json @@ -0,0 +1,103 @@ +{ + "tool_name": "CPP Code Compiler", + "tool_description": "C++ Code Compiler API", + "title": "CPP Code Compiler", + "pricing": "FREEMIUM", + "score": { + "avgServiceLevel": 100, + "avgLatency": 493, + "avgSuccessRate": 77, + "popularityScore": 9.1, + "__typename": "Score" + }, + "home_url": "https://rapidapi.com/UnlimitedAPI/api/cpp-code-compiler/", + "host": "cpp-code-compiler.p.rapidapi.com", + "api_list": [ + { + "name": "C++ Versions", + "url": "https://cpp-code-compiler.p.rapidapi.com/versions/", + "description": "C++ Versions", + "method": "GET", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://cpp-code-compiler.p.rapidapi.com/versions/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"cpp-code-compiler.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 200, + "body": [ + { + "id": 0, + "version": "GCC 5.3.0" + }, + { + "id": 1, + "version": "Zapcc 5.0.0" + }, + { + "id": 2, + "version": "GCC 7.2.0" + }, + { + "id": 3, + "version": "GCC 8.1.0" + }, + { + "id": 4, + "version": "GCC 9.1.0" + }, + { + "id": 5, + "version": "GCC 11.1.0" + } + ], + "headers": { + "access-control-allow-credentials": "true", + "access-control-allow-origin": "*", + "content-type": "application/json", + "date": "Mon, 22 Aug 2022 13:54:24 GMT", + "server": "RapidAPI-1.2.8", + "via": "1.1 vegur", + "x-rapidapi-region": "AWS - eu-central-1", + "x-rapidapi-version": "1.2.8" + }, + "schema": {} + }, + { + "name": "C++ Code Compiler", + "url": "https://cpp-code-compiler.p.rapidapi.com/", + "description": "C++ Code Compiler", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://cpp-code-compiler.p.rapidapi.com/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"cpp-code-compiler.p.rapidapi.com\"\n}\n\nresponse = requests.post(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 200, + "body": { + "cpuTime": "0.00", + "memory": "3496", + "output": "Hello, World!" + }, + "headers": { + "access-control-allow-credentials": "true", + "access-control-allow-origin": "*", + "content-type": "application/json", + "date": "Mon, 22 Aug 2022 13:52:42 GMT", + "server": "RapidAPI-1.2.8", + "via": "1.1 vegur", + "x-rapidapi-region": "AWS - eu-central-1", + "x-rapidapi-version": "1.2.8" + }, + "schema": {} + }, + { + "name": "C++ Code Compiler", + "url": "https://cpp-code-compiler.p.rapidapi.com/", + "description": "C++ Code Compiler", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://cpp-code-compiler.p.rapidapi.com/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"cpp-code-compiler.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://cpp-code-compiler.p.rapidapi.com/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"cpp-code-compiler.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": {} + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Tools/cpp_code_compiler/api.py b/toolbench/toolenv/tools/Tools/cpp_code_compiler/api.py new file mode 100644 index 0000000000000000000000000000000000000000..8e27abc134bb0edbefe1f739964758ac8c0095fd --- /dev/null +++ b/toolbench/toolenv/tools/Tools/cpp_code_compiler/api.py @@ -0,0 +1,29 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def c_versions(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "C++ Versions" + + """ + url = f"https://cpp-code-compiler.p.rapidapi.com/versions/" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "cpp-code-compiler.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Tools/create_pdf_files_from_json_or_csv_data/api.py b/toolbench/toolenv/tools/Tools/create_pdf_files_from_json_or_csv_data/api.py new file mode 100644 index 0000000000000000000000000000000000000000..dd834ce57dd0cb869d8a6e01b8fc1620f6d45e61 --- /dev/null +++ b/toolbench/toolenv/tools/Tools/create_pdf_files_from_json_or_csv_data/api.py @@ -0,0 +1,61 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def csv2pdf(orientation: str, url: str, filename: str='invoice.pdf', titlealign: str='left', subtitlealign: str='right', highlightfirstcolumn: bool=None, highlightlastcolumn: bool=None, data: str=None, template: str='relax', separator: str=';', subtitle: str='Billing to :
John Customer
Branch Street 10
BB 14021 Charmtown


Invoice Date : 04/05/2016
Invoice Nr : 2016.00001', title: str='Invoice


Example Industries
Main Street 1
AA 25012 Exampleville
Phone: 555-555-555', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Create a PDF from a json or csv file, or a json or csv string" + orientation: Orientation of pdf (portrait/landscape) + url: The (public) url to get the csv file from + filename: The filename of the pdf to be created + titlealign: Horizontal Alignment of the title + subtitlealign: Horizontal alignment of the subtitle + highlightfirstcolumn: Highlight the first column + highlightlastcolumn: Highligh the last column + data: Instead of a url, you can pass the json or csv string to this parameter directly + template: The template for the layout of the pdf. Available templates are : relax,candy,green,red and pink + separator: A character that is the separator for the csv data. By default ';' is used. + subtitle: The subtitle. Following html tags are allowed : ,,
,
,

,
,
. + title: The title. Following html tags are allowed : ,,
,
,

,
,
. + + """ + url = f"https://easypdf.p.rapidapi.com/pdfconvert" + querystring = {'orientation': orientation, 'url': url, } + if filename: + querystring['filename'] = filename + if titlealign: + querystring['titleAlign'] = titlealign + if subtitlealign: + querystring['subtitleAlign'] = subtitlealign + if highlightfirstcolumn: + querystring['highlightFirstColumn'] = highlightfirstcolumn + if highlightlastcolumn: + querystring['highlightLastColumn'] = highlightlastcolumn + if data: + querystring['data'] = data + if template: + querystring['template'] = template + if separator: + querystring['separator'] = separator + if subtitle: + querystring['subtitle'] = subtitle + if title: + querystring['title'] = title + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "easypdf.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Tools/create_qr_code_api/api.py b/toolbench/toolenv/tools/Tools/create_qr_code_api/api.py new file mode 100644 index 0000000000000000000000000000000000000000..2888bd2f54e4de7bea67e81ec533c932f157080a --- /dev/null +++ b/toolbench/toolenv/tools/Tools/create_qr_code_api/api.py @@ -0,0 +1,31 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def qr_code_as_image(url: str='www.google.com', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "The endpoint takes a GET request with a url as a parameter to create and return a qr-code image" + + """ + url = f"https://create-qr-code-api.p.rapidapi.com/qr_code" + querystring = {} + if url: + querystring['url'] = url + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "create-qr-code-api.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Tools/cronweb_webhook_driven_cron_job_scheduler.json b/toolbench/toolenv/tools/Tools/cronweb_webhook_driven_cron_job_scheduler.json new file mode 100644 index 0000000000000000000000000000000000000000..7f7c450d1ff7229125f75d14d75dc5a15e3f7a6a --- /dev/null +++ b/toolbench/toolenv/tools/Tools/cronweb_webhook_driven_cron_job_scheduler.json @@ -0,0 +1,48 @@ +{ + "product_id": "api_bafbef89-fe54-436b-8731-c1b5c025730b", + "tool_description": "CronWeb is a powerful API-based cron job scheduler that allows you to automate tasks and trigger actions at specific times using webhook requests. Simply provide the webhook endpoint, parameters, payload, method, headers, and a cron format, and CronWeb will handle the rest, executing your jobs seamlessly.", + "home_url": "https://rapidapi.com/joshirajesh448-emyeudCJ4Y-/api/cronweb-webhook-driven-cron-job-scheduler/", + "name": "CronWeb - Webhook-Driven Cron Job Scheduler", + "title": "CronWeb - Webhook-Driven Cron Job Scheduler", + "pricing": "FREEMIUM", + "tool_name": "CronWeb - Webhook-Driven Cron Job Scheduler", + "score": null, + "host": "cronweb-webhook-driven-cron-job-scheduler.p.rapidapi.com", + "api_list": [ + { + "name": "schedule_create", + "url": "https://cronweb-webhook-driven-cron-job-scheduler.p.rapidapi.com/schedule/", + "description": "", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://cronweb-webhook-driven-cron-job-scheduler.p.rapidapi.com/schedule/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"cronweb-webhook-driven-cron-job-scheduler.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://cronweb-webhook-driven-cron-job-scheduler.p.rapidapi.com/schedule/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"cronweb-webhook-driven-cron-job-scheduler.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "get": { + "type": "string" + }, + "parameters": { + "type": "array" + }, + "errors": { + "type": "array" + }, + "results": { + "type": "integer" + }, + "response": { + "type": "array", + "items": { + "type": "object" + } + } + } + } + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Tools/crypto_currency.json b/toolbench/toolenv/tools/Tools/crypto_currency.json new file mode 100644 index 0000000000000000000000000000000000000000..b217c8e8c90801729ce9f25cf1d1a51cc571a177 --- /dev/null +++ b/toolbench/toolenv/tools/Tools/crypto_currency.json @@ -0,0 +1,24 @@ +{ + "tool_name":"Crypto Currency", + "tool_description":"API to get trade value for pair of crypto currency", + "title":"Crypto Currency", + "pricing":"FREEMIUM", + "score":null, + "home_url":"https://rapidapi.com/marthamadelinewood1041/api/crypto-currency6/", + "host":"crypto-currency6.p.rapidapi.com", + "api_list":[ + { + "name":"default", + "url":"https://crypto-currency6.p.rapidapi.com/", + "description":"default endpoint", + "method":"GET", + "required_parameters":[], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://crypto-currency6.p.rapidapi.com/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"crypto-currency6.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Tools/crypto_currency/api.py b/toolbench/toolenv/tools/Tools/crypto_currency/api.py new file mode 100644 index 0000000000000000000000000000000000000000..8e2d4022ce947743339f69afa7620d30f08028a9 --- /dev/null +++ b/toolbench/toolenv/tools/Tools/crypto_currency/api.py @@ -0,0 +1,29 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def default(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "default endpoint" + + """ + url = f"https://crypto-currency6.p.rapidapi.com/" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "crypto-currency6.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Tools/csv_to_other_formats.json b/toolbench/toolenv/tools/Tools/csv_to_other_formats.json new file mode 100644 index 0000000000000000000000000000000000000000..051acae0e69cf9cbb568117876ce2d4b67b33f29 --- /dev/null +++ b/toolbench/toolenv/tools/Tools/csv_to_other_formats.json @@ -0,0 +1,329 @@ +{ + "product_id": "api_a8b77ae3-7d00-4415-aa86-ce52ab6d5fdd", + "tool_description": "Convert from csv to other formats", + "home_url": "https://rapidapi.com/tyatinvs-gVjNvBZCzZ7/api/csv-to-other-formats/", + "name": "CSV to other formats", + "title": "CSV to other formats", + "pricing": "FREEMIUM", + "tool_name": "CSV to other formats", + "score": null, + "host": "csv-to-other-formats.p.rapidapi.com", + "api_list": [ + { + "name": "FromCsvToJira", + "url": "https://csv-to-other-formats.p.rapidapi.com/Convert/FromCsvToJira", + "description": "Convert from csv to JIRA table", + "method": "POST", + "required_parameters": [], + "optional_parameters": [ + { + "name": "csvFile", + "type": "BINARY", + "description": "", + "default": "" + }, + { + "name": "hasHeaderRow", + "type": "BOOLEAN", + "description": "", + "default": "true" + } + ], + "code": "import requests\n\nurl = \"https://csv-to-other-formats.p.rapidapi.com/Convert/FromCsvToJira\"\nquerystring = {\"csvFile\": \"\", \"hasHeaderRow\": \"true\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"csv-to-other-formats.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://csv-to-other-formats.p.rapidapi.com/Convert/FromCsvToJira\"\nquerystring = {\"csvFile\": \"\", \"hasHeaderRow\": \"true\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"csv-to-other-formats.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "string" + } + }, + { + "name": "FromCsvStringToJira", + "url": "https://csv-to-other-formats.p.rapidapi.com/Convert/FromCsvStringToJira", + "description": "Convert from csv string to JIRA table", + "method": "POST", + "required_parameters": [], + "optional_parameters": [ + { + "name": "hasHeaderRow", + "type": "BOOLEAN", + "description": "", + "default": "true" + } + ], + "code": "import requests\n\nurl = \"https://csv-to-other-formats.p.rapidapi.com/Convert/FromCsvStringToJira\"\nquerystring = {\"hasHeaderRow\": \"true\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"csv-to-other-formats.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://csv-to-other-formats.p.rapidapi.com/Convert/FromCsvStringToJira\"\nquerystring = {\"hasHeaderRow\": \"true\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"csv-to-other-formats.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "string" + } + }, + { + "name": "FromCsvToMarkdown", + "url": "https://csv-to-other-formats.p.rapidapi.com/Convert/FromCsvToMarkdown", + "description": "Convert from csv to markdown table", + "method": "POST", + "required_parameters": [], + "optional_parameters": [ + { + "name": "csvFile", + "type": "BINARY", + "description": "", + "default": "" + }, + { + "name": "hasHeaderRow", + "type": "BOOLEAN", + "description": "", + "default": "true" + } + ], + "code": "import requests\n\nurl = \"https://csv-to-other-formats.p.rapidapi.com/Convert/FromCsvToMarkdown\"\nquerystring = {\"csvFile\": \"\", \"hasHeaderRow\": \"true\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"csv-to-other-formats.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://csv-to-other-formats.p.rapidapi.com/Convert/FromCsvToMarkdown\"\nquerystring = {\"csvFile\": \"\", \"hasHeaderRow\": \"true\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"csv-to-other-formats.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "string" + } + }, + { + "name": "FromCsvStringToMarkdown", + "url": "https://csv-to-other-formats.p.rapidapi.com/Convert/FromCsvStringToMarkdown", + "description": "Convert from csv string to markdown table", + "method": "POST", + "required_parameters": [], + "optional_parameters": [ + { + "name": "hasHeaderRow", + "type": "BOOLEAN", + "description": "", + "default": "true" + } + ], + "code": "import requests\n\nurl = \"https://csv-to-other-formats.p.rapidapi.com/Convert/FromCsvStringToMarkdown\"\nquerystring = {\"hasHeaderRow\": \"true\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"csv-to-other-formats.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://csv-to-other-formats.p.rapidapi.com/Convert/FromCsvStringToMarkdown\"\nquerystring = {\"hasHeaderRow\": \"true\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"csv-to-other-formats.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "string" + } + }, + { + "name": "FromCsvToHtml", + "url": "https://csv-to-other-formats.p.rapidapi.com/Convert/FromCsvToHtml", + "description": "Convert from csv to html table markup", + "method": "POST", + "required_parameters": [], + "optional_parameters": [ + { + "name": "csvFile", + "type": "BINARY", + "description": "", + "default": "" + }, + { + "name": "hasHeaderRow", + "type": "BOOLEAN", + "description": "", + "default": "true" + } + ], + "code": "import requests\n\nurl = \"https://csv-to-other-formats.p.rapidapi.com/Convert/FromCsvToHtml\"\nquerystring = {\"csvFile\": \"\", \"hasHeaderRow\": \"true\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"csv-to-other-formats.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://csv-to-other-formats.p.rapidapi.com/Convert/FromCsvToHtml\"\nquerystring = {\"csvFile\": \"\", \"hasHeaderRow\": \"true\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"csv-to-other-formats.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "string" + } + }, + { + "name": "FromCsvStringToJson", + "url": "https://csv-to-other-formats.p.rapidapi.com/Convert/FromCsvStringToJsonSpan", + "description": "Convert from csv string to json", + "method": "POST", + "required_parameters": [], + "optional_parameters": [ + { + "name": "delimiter", + "type": "STRING", + "description": "", + "default": "" + }, + { + "name": "hasHeaderRow", + "type": "BOOLEAN", + "description": "", + "default": "true" + } + ], + "code": "import requests\n\nurl = \"https://csv-to-other-formats.p.rapidapi.com/Convert/FromCsvStringToJsonSpan\"\nquerystring = {\"delimiter\": \"\", \"hasHeaderRow\": \"true\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"csv-to-other-formats.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://csv-to-other-formats.p.rapidapi.com/Convert/FromCsvStringToJsonSpan\"\nquerystring = {\"delimiter\": \"\", \"hasHeaderRow\": \"true\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"csv-to-other-formats.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "array", + "items": { + "type": "object", + "additionalProperties": {} + } + } + }, + { + "name": "FromCsvStringToXml", + "url": "https://csv-to-other-formats.p.rapidapi.com/Convert/FromCsvStringToXml", + "description": "Convert from csv string to xml", + "method": "POST", + "required_parameters": [], + "optional_parameters": [ + { + "name": "hasHeaderRow", + "type": "BOOLEAN", + "description": "", + "default": "true" + } + ], + "code": "import requests\n\nurl = \"https://csv-to-other-formats.p.rapidapi.com/Convert/FromCsvStringToXml\"\nquerystring = {\"hasHeaderRow\": \"true\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"csv-to-other-formats.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://csv-to-other-formats.p.rapidapi.com/Convert/FromCsvStringToXml\"\nquerystring = {\"hasHeaderRow\": \"true\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"csv-to-other-formats.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "string" + } + }, + { + "name": "FromCsvToExcel", + "url": "https://csv-to-other-formats.p.rapidapi.com/Convert/FromCsvToExcel", + "description": "Convert from csv to excel file", + "method": "POST", + "required_parameters": [], + "optional_parameters": [ + { + "name": "csvFile", + "type": "BINARY", + "description": "", + "default": "" + }, + { + "name": "delimiter", + "type": "STRING", + "description": "", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://csv-to-other-formats.p.rapidapi.com/Convert/FromCsvToExcel\"\nquerystring = {\"csvFile\": \"\", \"delimiter\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"csv-to-other-formats.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://csv-to-other-formats.p.rapidapi.com/Convert/FromCsvToExcel\"\nquerystring = {\"csvFile\": \"\", \"delimiter\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"csv-to-other-formats.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": {} + }, + { + "name": "FromCsvToJson", + "url": "https://csv-to-other-formats.p.rapidapi.com/Convert/FromCsvToJson", + "description": "Convert from csv file to json", + "method": "POST", + "required_parameters": [], + "optional_parameters": [ + { + "name": "csvFile", + "type": "BINARY", + "description": "", + "default": "" + }, + { + "name": "delimiter", + "type": "STRING", + "description": "", + "default": "" + }, + { + "name": "hasHeaderRow", + "type": "BOOLEAN", + "description": "", + "default": "true" + } + ], + "code": "import requests\n\nurl = \"https://csv-to-other-formats.p.rapidapi.com/Convert/FromCsvToJson\"\nquerystring = {\"csvFile\": \"\", \"delimiter\": \"\", \"hasHeaderRow\": \"true\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"csv-to-other-formats.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://csv-to-other-formats.p.rapidapi.com/Convert/FromCsvToJson\"\nquerystring = {\"csvFile\": \"\", \"delimiter\": \"\", \"hasHeaderRow\": \"true\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"csv-to-other-formats.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "array", + "items": { + "type": "object", + "additionalProperties": {} + } + } + }, + { + "name": "FromCsvStringToExcel", + "url": "https://csv-to-other-formats.p.rapidapi.com/Convert/FromCsvStringToExcel", + "description": "Convert from csv string to excel file", + "method": "POST", + "required_parameters": [], + "optional_parameters": [ + { + "name": "delimiter", + "type": "STRING", + "description": "", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://csv-to-other-formats.p.rapidapi.com/Convert/FromCsvStringToExcel\"\nquerystring = {\"delimiter\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"csv-to-other-formats.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://csv-to-other-formats.p.rapidapi.com/Convert/FromCsvStringToExcel\"\nquerystring = {\"delimiter\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"csv-to-other-formats.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": {} + }, + { + "name": "FromCsvStringToHtml", + "url": "https://csv-to-other-formats.p.rapidapi.com/Convert/FromCsvStringToHtml", + "description": "Convert from csv string to html table markup", + "method": "POST", + "required_parameters": [], + "optional_parameters": [ + { + "name": "hasHeaderRow", + "type": "BOOLEAN", + "description": "", + "default": "true" + } + ], + "code": "import requests\n\nurl = \"https://csv-to-other-formats.p.rapidapi.com/Convert/FromCsvStringToHtml\"\nquerystring = {\"hasHeaderRow\": \"true\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"csv-to-other-formats.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://csv-to-other-formats.p.rapidapi.com/Convert/FromCsvStringToHtml\"\nquerystring = {\"hasHeaderRow\": \"true\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"csv-to-other-formats.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "string" + } + }, + { + "name": "FromCsvToXml", + "url": "https://csv-to-other-formats.p.rapidapi.com/Convert/FromCsvToXml", + "description": "Convert from csv to xml", + "method": "POST", + "required_parameters": [], + "optional_parameters": [ + { + "name": "csvFile", + "type": "BINARY", + "description": "", + "default": "" + }, + { + "name": "hasHeaderRow", + "type": "BOOLEAN", + "description": "", + "default": "true" + } + ], + "code": "import requests\n\nurl = \"https://csv-to-other-formats.p.rapidapi.com/Convert/FromCsvToXml\"\nquerystring = {\"csvFile\": \"\", \"hasHeaderRow\": \"true\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"csv-to-other-formats.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://csv-to-other-formats.p.rapidapi.com/Convert/FromCsvToXml\"\nquerystring = {\"csvFile\": \"\", \"hasHeaderRow\": \"true\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"csv-to-other-formats.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "string" + } + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Tools/currency_converter_api.json b/toolbench/toolenv/tools/Tools/currency_converter_api.json new file mode 100644 index 0000000000000000000000000000000000000000..648c0f427f3e652b7bf27cd38edaeb4c9d9c7453 --- /dev/null +++ b/toolbench/toolenv/tools/Tools/currency_converter_api.json @@ -0,0 +1,122 @@ +{ + "tool_name":"Currency Converter API", + "tool_description":"Currency Converter API allows you to convert currencies in real-time. It converts the amount from one currency to anothe. The result is then returned as a JSON object, making it easy to integrate into any application. This API is perfect for businesses that need to offer real-time currency conversion to their customers, such as e-commerce sites, travel agencies, or financial services. With this API, you can easily add a feature that allows customers to see prices in their own currency and inc...", + "title":"Currency Converter API", + "pricing":"FREEMIUM", + "score":null, + "home_url":"https://rapidapi.com/adarsh-mamgain/api/currency-converter-api/", + "host":"currency-converter-api.p.rapidapi.com", + "api_list":[ + { + "name":"currency symbol", + "url":"https://currency-converter-api.p.rapidapi.com/currency-symbol", + "description":"The '/currency-symbol' endpoint is feature of the API that allows you to get the symbol of the currency by passing the currency code.", + "method":"GET", + "required_parameters":[ + { + "name":"code", + "type":"STRING", + "description":"", + "default":"USD" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://currency-converter-api.p.rapidapi.com/currency-symbol\"\nquerystring = {\"code\": code}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"currency-converter-api.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + }, + { + "name":"currency name", + "url":"https://currency-converter-api.p.rapidapi.com/currency-name", + "description":"The '/currency-name' endpoint is feature of the API that allows you to get the name of the currency by passing the currency code.", + "method":"GET", + "required_parameters":[ + { + "name":"code", + "type":"STRING", + "description":"", + "default":"USD" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://currency-converter-api.p.rapidapi.com/currency-name\"\nquerystring = {\"code\": code}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"currency-converter-api.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + }, + { + "name":"list", + "url":"https://currency-converter-api.p.rapidapi.com/list", + "description":"The '/list' returns you the available currency. By sending a GET request to this endpoint, you will receive the list of currency as a JSON object.", + "method":"GET", + "required_parameters":[], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://currency-converter-api.p.rapidapi.com/list\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"currency-converter-api.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + }, + { + "name":"convert", + "url":"https://currency-converter-api.p.rapidapi.com/convert", + "description":"The '/convert' endpoint is a powerful feature of the API that allows you to convert an amount of one currency to another in real-time. It takes three query parameters, 'from', 'to' and 'amount', which specify the currencies that you want to convert, and the amount of the 'from' currency. By sending a GET request to this endpoint, you will receive the converted amount in the 'to' currency as a JSON object.", + "method":"GET", + "required_parameters":[ + { + "name":"from", + "type":"STRING", + "description":"", + "default":"USD" + }, + { + "name":"amount", + "type":"STRING", + "description":"", + "default":"100" + }, + { + "name":"to", + "type":"STRING", + "description":"", + "default":"INR" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://currency-converter-api.p.rapidapi.com/convert\"\nquerystring = {\"from\": is_from, \"amount\": amount, \"to\": to}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"currency-converter-api.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + }, + { + "name":"rate", + "url":"https://currency-converter-api.p.rapidapi.com/rate", + "description":"The '/rate' endpoint is a powerful feature of the API that allows you to retrieve the current exchange rate between two currencies in real-time. It takes two query parameters, 'from' and 'to', which specify the currencies that you want to convert. By sending a GET request to this endpoint, you will receive the current exchange rate between the specified currencies as a JSON object.", + "method":"GET", + "required_parameters":[ + { + "name":"to", + "type":"STRING", + "description":"", + "default":"INR" + }, + { + "name":"from", + "type":"STRING", + "description":"", + "default":"USD" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://currency-converter-api.p.rapidapi.com/rate\"\nquerystring = {\"to\": to, \"from\": is_from}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"currency-converter-api.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Tools/currency_converter_api/api.py b/toolbench/toolenv/tools/Tools/currency_converter_api/api.py new file mode 100644 index 0000000000000000000000000000000000000000..23085d2aad216ddea3ea1f0ffa66b05bf8f3c2af --- /dev/null +++ b/toolbench/toolenv/tools/Tools/currency_converter_api/api.py @@ -0,0 +1,113 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def currency_symbol(code: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "The '/currency-symbol' endpoint is feature of the API that allows you to get the symbol of the currency by passing the currency code." + + """ + url = f"https://currency-converter-api.p.rapidapi.com/currency-symbol" + querystring = {'code': code, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "currency-converter-api.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def currency_name(code: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "The '/currency-name' endpoint is feature of the API that allows you to get the name of the currency by passing the currency code." + + """ + url = f"https://currency-converter-api.p.rapidapi.com/currency-name" + querystring = {'code': code, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "currency-converter-api.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def list(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "The '/list' returns you the available currency. By sending a GET request to this endpoint, you will receive the list of currency as a JSON object." + + """ + url = f"https://currency-converter-api.p.rapidapi.com/list" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "currency-converter-api.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def convert(is_from: str, amount: str, to: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "The '/convert' endpoint is a powerful feature of the API that allows you to convert an amount of one currency to another in real-time. It takes three query parameters, 'from', 'to' and 'amount', which specify the currencies that you want to convert, and the amount of the 'from' currency. By sending a GET request to this endpoint, you will receive the converted amount in the 'to' currency as a JSON object." + + """ + url = f"https://currency-converter-api.p.rapidapi.com/convert" + querystring = {'from': is_from, 'amount': amount, 'to': to, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "currency-converter-api.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def rate(to: str, is_from: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "The '/rate' endpoint is a powerful feature of the API that allows you to retrieve the current exchange rate between two currencies in real-time. It takes two query parameters, 'from' and 'to', which specify the currencies that you want to convert. By sending a GET request to this endpoint, you will receive the current exchange rate between the specified currencies as a JSON object." + + """ + url = f"https://currency-converter-api.p.rapidapi.com/rate" + querystring = {'to': to, 'from': is_from, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "currency-converter-api.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Tools/custom_qr_code_api.json b/toolbench/toolenv/tools/Tools/custom_qr_code_api.json new file mode 100644 index 0000000000000000000000000000000000000000..3e7f7205480c2e8a4fcb6acf1a56d4521d36eabb --- /dev/null +++ b/toolbench/toolenv/tools/Tools/custom_qr_code_api.json @@ -0,0 +1,43 @@ +{ + "tool_name":"Custom QR Code API", + "tool_description":"This api takes URL and returns the QR code image with custom color and mime types.", + "title":"Custom QR Code API", + "pricing":"FREEMIUM", + "score":null, + "home_url":"https://rapidapi.com/shankaranarayanasharma/api/custom-qr-code-api/", + "host":"custom-qr-code-api.p.rapidapi.com", + "api_list":[ + { + "name":"QR Code Image", + "url":"https://custom-qr-code-api.p.rapidapi.com/generate", + "description":"This end point takes a 'GET' request with url / string, color / string, mime_type / string as a parameter and returns QR code image.", + "method":"GET", + "required_parameters":[], + "optional_parameters":[ + { + "name":"url", + "type":"STRING", + "description":"", + "default":"www.google.com" + }, + { + "name":"mime_type", + "type":"STRING", + "description":"", + "default":"image/png" + }, + { + "name":"color", + "type":"STRING", + "description":"", + "default":"red" + } + ], + "code":"import requests\n\nurl = \"https://custom-qr-code-api.p.rapidapi.com/generate\"\nquerystring = {\"url\": url, \"mime_type\": mime_type, \"color\": color}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"custom-qr-code-api.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Tools/custom_qr_code_api/api.py b/toolbench/toolenv/tools/Tools/custom_qr_code_api/api.py new file mode 100644 index 0000000000000000000000000000000000000000..559f89db31d9bcfd2fb2ee1297fa301512ab8bfc --- /dev/null +++ b/toolbench/toolenv/tools/Tools/custom_qr_code_api/api.py @@ -0,0 +1,35 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def qr_code_image(url: str='www.google.com', mime_type: str='image/png', color: str='red', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "This end point takes a 'GET' request with url / string, color / string, mime_type / string as a parameter and returns QR code image." + + """ + url = f"https://custom-qr-code-api.p.rapidapi.com/generate" + querystring = {} + if url: + querystring['url'] = url + if mime_type: + querystring['mime_type'] = mime_type + if color: + querystring['color'] = color + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "custom-qr-code-api.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Tools/custom_qr_code_with_logo.json b/toolbench/toolenv/tools/Tools/custom_qr_code_with_logo.json new file mode 100644 index 0000000000000000000000000000000000000000..20643cb70b03fcc2ad32f3cbd659545e08ac1b14 --- /dev/null +++ b/toolbench/toolenv/tools/Tools/custom_qr_code_with_logo.json @@ -0,0 +1,58 @@ +{ + "product_id": "58f72776e4b08bc9ee736016", + "tool_description": "Create unique looking QR codes with logo, color and design as PNG, SVG, PDF or EPS. QR Codes can be generated in high quality for print and professional use cases. Extended documentation can be found here: https://www.qrcode-monkey.com/qr-code-api-with-logo", + "home_url": "https://rapidapi.com/qrcode-monkey/api/custom-qr-code-with-logo/", + "name": "Custom QR Code with Logo", + "title": "Custom QR Code with Logo", + "pricing": "PAID", + "tool_name": "Custom QR Code with Logo", + "score": { + "avgServiceLevel": 97, + "avgLatency": 795, + "avgSuccessRate": 97, + "popularityScore": 9.9, + "__typename": "Score" + }, + "host": "qrcode-monkey.p.rapidapi.com", + "api_list": [ + { + "name": "Upload Image", + "url": "https://qrcode-monkey.p.rapidapi.com/qr/uploadImage", + "description": "Upload a logo or an image that you want to add to your QR code. The upload request needs to have content-type \"multipart/form-data\" and the name of the image form field is \"file\". Use the filename as 'logo' value in the 'config' JSON object when creating a custom QR code. IMPORTANT: uploaded images are cached for 24 hours before getting deleted!", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://qrcode-monkey.p.rapidapi.com/qr/uploadImage\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"qrcode-monkey.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://qrcode-monkey.p.rapidapi.com/qr/uploadImage\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"qrcode-monkey.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": {} + }, + { + "name": "Create Custom QR Code", + "url": "https://qrcode-monkey.p.rapidapi.com/qr/custom", + "description": "Create a QR code with logo, color and custom design.", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://qrcode-monkey.p.rapidapi.com/qr/custom\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"qrcode-monkey.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://qrcode-monkey.p.rapidapi.com/qr/custom\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"qrcode-monkey.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": {} + }, + { + "name": "Create Transparent QR Code", + "url": "https://qrcode-monkey.p.rapidapi.com/qr/transparent", + "description": "Create a transparent QR Code that can be used as an overlay for any background.", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://qrcode-monkey.p.rapidapi.com/qr/transparent\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"qrcode-monkey.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://qrcode-monkey.p.rapidapi.com/qr/transparent\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"qrcode-monkey.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": {} + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Tools/custom_qr_code_with_logo/api.py b/toolbench/toolenv/tools/Tools/custom_qr_code_with_logo/api.py new file mode 100644 index 0000000000000000000000000000000000000000..c8da610f7bf31ab15809cdef38c649b889edb073 --- /dev/null +++ b/toolbench/toolenv/tools/Tools/custom_qr_code_with_logo/api.py @@ -0,0 +1,80 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def create_custom_qr_code_with_get(data: str, config: str='{"bodyColor": "#0277BD", "body":"mosaic"}', download: bool=None, file: str='png', size: int=600, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Create custom QR Code with logo, color and design." + data: The content of your QR code like a URL, text or any other formats that work with QR Codes. String should be URL encoded. + config: JSON object for configuration of custom QR code design. If you add a logo file to your config make sure you uploaded the image before. JSON needs to be URL encoded. + download: Set to true to force your browser to download your created file instead of displaying it. + file: Set the type of your output image file. There are different formats available: png, jpg, svg (support all design options), pdf (no support for color gradients), eps (only classic QR codes). + size: The minimum width and height of your QR code image in pixel. + + """ + url = f"https://qrcode-monkey.p.rapidapi.com/qr/custom" + querystring = {'data': data, } + if config: + querystring['config'] = config + if download: + querystring['download'] = download + if file: + querystring['file'] = file + if size: + querystring['size'] = size + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "qrcode-monkey.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def create_transparent_qr_code_with_get(data: str, size: int, y: int=0, crop: bool=None, download: bool=None, image: str=None, x: int=0, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Create a direct link for a transparent QR code." + data: The content of your QR code like a URL, text or any other formats that work with QR Codes. String should be URL encoded. + size: The width and height of the QR code displayed on your image. + y: The y position of your QR code in your image canvas. + crop: Return only the QR code without the surrounding image when set to true. + download: Set to true to force direct download of image file in Browser. + image: The filename of the uploaded image or an image URL. This image is the background and canvas for your QR code. + x: The x position of your QR code in your image canvas. + + """ + url = f"https://qrcode-monkey.p.rapidapi.com/qr/transparent" + querystring = {'data': data, 'size': size, } + if y: + querystring['y'] = y + if crop: + querystring['crop'] = crop + if download: + querystring['download'] = download + if image: + querystring['image'] = image + if x: + querystring['x'] = x + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "qrcode-monkey.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Tools/custom_qr_code_with_logo_v2.json b/toolbench/toolenv/tools/Tools/custom_qr_code_with_logo_v2.json new file mode 100644 index 0000000000000000000000000000000000000000..c9723bf09a5d6ce4c7289e790607d23426abe986 --- /dev/null +++ b/toolbench/toolenv/tools/Tools/custom_qr_code_with_logo_v2.json @@ -0,0 +1,47 @@ +{ + "product_id": "api_24d36aec-c43e-4010-8119-97e0629d1225", + "tool_description": "Custom QR codes with a logo allow businesses to create personalized QR codes with their own brand logo integrated into the code. Try it today!", + "home_url": "https://rapidapi.com/belchiorarkad-FqvHs2EDOtP/api/custom-qr-code-with-logo2/", + "name": "Custom QR Code with Logo_v2", + "title": "Custom QR Code with Logo", + "pricing": "FREEMIUM", + "tool_name": "Custom QR Code with Logo_v2", + "score": { + "avgServiceLevel": 67, + "avgLatency": 5065, + "avgSuccessRate": 67, + "popularityScore": 6.8, + "__typename": "Score" + }, + "host": "custom-qr-code-with-logo2.p.rapidapi.com", + "api_list": [ + { + "name": "Simple QR Code", + "url": "https://custom-qr-code-with-logo2.p.rapidapi.com/simple-qrcode", + "description": "This endpoin returns simple qr code with the possiblity to customize the color.", + "method": "GET", + "required_parameters": [ + { + "name": "link", + "type": "STRING", + "description": "", + "default": "https://www.google.com/" + } + ], + "optional_parameters": [ + { + "name": "color", + "type": "STRING", + "description": "Optional. Default: #000", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://custom-qr-code-with-logo2.p.rapidapi.com/simple-qrcode\"\nquerystring = {\"color\": \"\", \"link\": \"https://www.google.com/\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"custom-qr-code-with-logo2.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://custom-qr-code-with-logo2.p.rapidapi.com/simple-qrcode\"\nquerystring = {\"color\": \"\", \"link\": \"https://www.google.com/\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"custom-qr-code-with-logo2.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": {} + } + ], + "standardized_name": "custom_qr_code_with_logo_v2" +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Tools/custom_qr_code_with_logo_v2/api.py b/toolbench/toolenv/tools/Tools/custom_qr_code_with_logo_v2/api.py new file mode 100644 index 0000000000000000000000000000000000000000..a0c9ea6c90ae2c05ac6525e535cdf436f6d717bb --- /dev/null +++ b/toolbench/toolenv/tools/Tools/custom_qr_code_with_logo_v2/api.py @@ -0,0 +1,32 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def simple_qr_code(link: str, color: str=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "This endpoin returns simple qr code with the possiblity to customize the color." + color: Optional. Default: #000 + + """ + url = f"https://custom-qr-code-with-logo2.p.rapidapi.com/simple-qrcode" + querystring = {'link': link, } + if color: + querystring['color'] = color + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "custom-qr-code-with-logo2.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Tools/customisable_qr_code_generator_with_insane_graphics.json b/toolbench/toolenv/tools/Tools/customisable_qr_code_generator_with_insane_graphics.json new file mode 100644 index 0000000000000000000000000000000000000000..d08eaacd4be14e7e2a137c51af2e94f93707155d --- /dev/null +++ b/toolbench/toolenv/tools/Tools/customisable_qr_code_generator_with_insane_graphics.json @@ -0,0 +1,39 @@ +{ + "product_id": "api_d5206816-24b0-4238-a3df-6e384e87a981", + "tool_description": "Give life to your QR Code with colors and custom graphics. Forget the dull black and white QR Code and start using the Customisable QR Code Generator to create a better connection with your customers", + "home_url": "https://rapidapi.com/kodacode-kodacode-default/api/customisable-qr-code-generator-with-insane-graphics/", + "name": "Customisable QR Code Generator with insane graphics", + "title": "Customisable QR Code Generator with insane graphics", + "pricing": "FREEMIUM", + "tool_name": "Customisable QR Code Generator with insane graphics", + "score": null, + "host": "customisable-qr-code-generator-with-insane-graphics.p.rapidapi.com", + "api_list": [ + { + "name": "POST-/public/generate-simple-qr-code", + "url": "https://customisable-qr-code-generator-with-insane-graphics.p.rapidapi.com/public/generate-simple-qr-code", + "description": "Generates a simple, non trackable qr code", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://customisable-qr-code-generator-with-insane-graphics.p.rapidapi.com/public/generate-simple-qr-code\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"customisable-qr-code-generator-with-insane-graphics.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://customisable-qr-code-generator-with-insane-graphics.p.rapidapi.com/public/generate-simple-qr-code\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"customisable-qr-code-generator-with-insane-graphics.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "POST-/public/generate-custom-themed-qr-code", + "url": "https://customisable-qr-code-generator-with-insane-graphics.p.rapidapi.com/public/generate-custom-themed-qr-code", + "description": "Generates a qr code based on the provided parameters", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://customisable-qr-code-generator-with-insane-graphics.p.rapidapi.com/public/generate-custom-themed-qr-code\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"customisable-qr-code-generator-with-insane-graphics.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://customisable-qr-code-generator-with-insane-graphics.p.rapidapi.com/public/generate-custom-themed-qr-code\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"customisable-qr-code-generator-with-insane-graphics.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Tools/customizable_qr_with_logo_moruqr.json b/toolbench/toolenv/tools/Tools/customizable_qr_with_logo_moruqr.json new file mode 100644 index 0000000000000000000000000000000000000000..8edf2b727520555e12c8e308b6f6ed2cba1c8acd --- /dev/null +++ b/toolbench/toolenv/tools/Tools/customizable_qr_with_logo_moruqr.json @@ -0,0 +1,24 @@ +{ + "product_id": "api_68eed1a0-deb9-4cdc-9d49-5a10234f4f43", + "tool_description": "You can generate custom QR codes using this API for any text, in any color and a custom logo on it.\nDefaults:\n\"color\": \"black\"\n\"bg_color\": \"white\"\n\"img_b64\": null", + "home_url": "https://rapidapi.com/moruqapps-moruqapps-default/api/customizable-qr-with-logo-moruqr/", + "name": "Customizable QR with Logo - MoruQR", + "title": "Customizable QR with Logo - MoruQR", + "pricing": "FREEMIUM", + "tool_name": "Customizable QR with Logo - MoruQR", + "score": null, + "host": "customizable-qr-with-logo-moruqr.p.rapidapi.com", + "api_list": [ + { + "name": "Create QR", + "url": "https://customizable-qr-with-logo-moruqr.p.rapidapi.com/create-qr", + "description": "You can create QR codes of given data in any color and a custom logo on it. \nDefaults:\n\"color\": \"black\"\n\"bg_color\": \"white\"\n\"img_b64\": null", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://customizable-qr-with-logo-moruqr.p.rapidapi.com/create-qr\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"customizable-qr-with-logo-moruqr.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://customizable-qr-with-logo-moruqr.p.rapidapi.com/create-qr\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"customizable-qr-with-logo-moruqr.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Tools/cw/api.py b/toolbench/toolenv/tools/Tools/cw/api.py new file mode 100644 index 0000000000000000000000000000000000000000..01cb1d1a2982a5f044ef4647c9907e614ee472cd --- /dev/null +++ b/toolbench/toolenv/tools/Tools/cw/api.py @@ -0,0 +1,29 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def default(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "default Endpoint" + + """ + url = f"https://cw5.p.rapidapi.com/" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "cw5.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Tools/cw2.json b/toolbench/toolenv/tools/Tools/cw2.json new file mode 100644 index 0000000000000000000000000000000000000000..0908bd7ff7796a41681fbae7b7ca09d0c0211873 --- /dev/null +++ b/toolbench/toolenv/tools/Tools/cw2.json @@ -0,0 +1,24 @@ +{ + "tool_name":"cw2", + "tool_description":"API that count the number of word in a sentence", + "title":"cw2", + "pricing":"FREEMIUM", + "score":null, + "home_url":"https://rapidapi.com/yudelkaeamirez3121/api/cw21/", + "host":"cw21.p.rapidapi.com", + "api_list":[ + { + "name":"default", + "url":"https://cw21.p.rapidapi.com/", + "description":"default Endpoint", + "method":"GET", + "required_parameters":[], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://cw21.p.rapidapi.com/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"cw21.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Tools/cw2/api.py b/toolbench/toolenv/tools/Tools/cw2/api.py new file mode 100644 index 0000000000000000000000000000000000000000..c517d0f14d30c66a92c31022f69295918c5e8260 --- /dev/null +++ b/toolbench/toolenv/tools/Tools/cw2/api.py @@ -0,0 +1,29 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def default(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "default Endpoint" + + """ + url = f"https://cw21.p.rapidapi.com/" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "cw21.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Tools/daddy_hash.json b/toolbench/toolenv/tools/Tools/daddy_hash.json new file mode 100644 index 0000000000000000000000000000000000000000..3389ab8e910e86ebeaba07e0f9936797f493b8cf --- /dev/null +++ b/toolbench/toolenv/tools/Tools/daddy_hash.json @@ -0,0 +1,249 @@ +{ + "product_id": "api_ad68a97b-36db-459a-966a-6dd85398457c", + "tool_description": "Text -> HASH (MD5, SHA1, SHA2, SHA3, BLAKE2)", + "home_url": "https://rapidapi.com/DaddyApi/api/daddy-hash/", + "name": "Daddy: HASH", + "title": "Daddy: HASH", + "pricing": "FREEMIUM", + "tool_name": "Daddy: HASH", + "score": { + "avgServiceLevel": 100, + "avgLatency": 211, + "avgSuccessRate": 100, + "popularityScore": 8.9, + "__typename": "Score" + }, + "host": "daddy-hash.p.rapidapi.com", + "api_list": [ + { + "name": "sha3_384", + "url": "https://daddy-hash.p.rapidapi.com/sha3_384", + "description": "Convert Text to Sha3_384", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://daddy-hash.p.rapidapi.com/sha3_384\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"daddy-hash.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://daddy-hash.p.rapidapi.com/sha3_384\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"daddy-hash.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "type": { + "type": "string" + }, + "result": { + "type": "string" + } + } + } + }, + { + "name": "md5", + "url": "https://daddy-hash.p.rapidapi.com/md5", + "description": "Convert Text to md5", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://daddy-hash.p.rapidapi.com/md5\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"daddy-hash.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://daddy-hash.p.rapidapi.com/md5\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"daddy-hash.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "type": { + "type": "string" + }, + "result": { + "type": "string" + } + } + } + }, + { + "name": "sha1", + "url": "https://daddy-hash.p.rapidapi.com/sha1", + "description": "Convert Text to Sha1", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://daddy-hash.p.rapidapi.com/sha1\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"daddy-hash.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://daddy-hash.p.rapidapi.com/sha1\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"daddy-hash.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "type": { + "type": "string" + }, + "result": { + "type": "string" + } + } + } + }, + { + "name": "blake2b", + "url": "https://daddy-hash.p.rapidapi.com/blake2b", + "description": "Convert Text to Blake2b", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://daddy-hash.p.rapidapi.com/blake2b\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"daddy-hash.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://daddy-hash.p.rapidapi.com/blake2b\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"daddy-hash.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "type": { + "type": "string" + }, + "result": { + "type": "string" + } + } + } + }, + { + "name": "blake2s", + "url": "https://daddy-hash.p.rapidapi.com/blake2s", + "description": "Convert Text to Blake2s", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://daddy-hash.p.rapidapi.com/blake2s\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"daddy-hash.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://daddy-hash.p.rapidapi.com/blake2s\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"daddy-hash.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "type": { + "type": "string" + }, + "result": { + "type": "string" + } + } + } + }, + { + "name": "sha3_224", + "url": "https://daddy-hash.p.rapidapi.com/sha3_224", + "description": "Convert Text to Sha3_224", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://daddy-hash.p.rapidapi.com/sha3_224\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"daddy-hash.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://daddy-hash.p.rapidapi.com/sha3_224\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"daddy-hash.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "type": { + "type": "string" + }, + "result": { + "type": "string" + } + } + } + }, + { + "name": "sha3_256", + "url": "https://daddy-hash.p.rapidapi.com/sha3_256", + "description": "Convert Text to Sha3_256", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://daddy-hash.p.rapidapi.com/sha3_256\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"daddy-hash.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://daddy-hash.p.rapidapi.com/sha3_256\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"daddy-hash.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "type": { + "type": "string" + }, + "result": { + "type": "string" + } + } + } + }, + { + "name": "sha3_512", + "url": "https://daddy-hash.p.rapidapi.com/sha3_512", + "description": "Convert Text to Sha3_512", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://daddy-hash.p.rapidapi.com/sha3_512\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"daddy-hash.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://daddy-hash.p.rapidapi.com/sha3_512\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"daddy-hash.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "type": { + "type": "string" + }, + "result": { + "type": "string" + } + } + } + }, + { + "name": "sha224", + "url": "https://daddy-hash.p.rapidapi.com/sha224", + "description": "Convert Text to Sha224", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://daddy-hash.p.rapidapi.com/sha224\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"daddy-hash.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://daddy-hash.p.rapidapi.com/sha224\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"daddy-hash.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "type": { + "type": "string" + }, + "result": { + "type": "string" + } + } + } + }, + { + "name": "sha256", + "url": "https://daddy-hash.p.rapidapi.com/sha256", + "description": "Convert Text to Sha256", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://daddy-hash.p.rapidapi.com/sha256\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"daddy-hash.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://daddy-hash.p.rapidapi.com/sha256\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"daddy-hash.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "type": { + "type": "string" + }, + "result": { + "type": "string" + } + } + } + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Tools/dailycred.json b/toolbench/toolenv/tools/Tools/dailycred.json new file mode 100644 index 0000000000000000000000000000000000000000..a68d696dc3e9cfb17beb57b206a6b1af08ad27f2 --- /dev/null +++ b/toolbench/toolenv/tools/Tools/dailycred.json @@ -0,0 +1,182 @@ +{ + "product_id": "53aa3d28e4b07e1f4ebeabc6", + "tool_description": "Identity made simple: everything you need to manage users for your website or app.\r\n\r\nDailyCred wraps all of your OAuth providers into a single OAuth call. You can also use DailyCred to authenticate email and password users as well as Twitter and LinkedIn users using OAuth 2.\r\n\r\nDailyCred aggregates all of your user data and combines it with page view information in a single place. View the demo of the DailyCred dashboard here:\r\n\r\nhttps://www.dailycred.com/demo", + "home_url": "https://rapidapi.com/juliuss/api/dailycred/", + "name": "DailyCred", + "title": "DailyCred", + "pricing": "FREE", + "tool_name": "DailyCred", + "score": null, + "host": "juliuss-dailycred.p.rapidapi.com", + "api_list": [ + { + "name": "User Event Timeline", + "url": "https://juliuss-dailycred.p.rapidapi.com/admin/api/user/activity.json", + "description": "", + "method": "GET", + "required_parameters": [ + { + "name": "event_type", + "type": "STRING", + "description": "The type of event you wish to see the user's activity for.", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://juliuss-dailycred.p.rapidapi.com/admin/api/user/activity.json\"\nquerystring = {\"event_type\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"juliuss-dailycred.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://juliuss-dailycred.p.rapidapi.com/admin/api/user/activity.json\"\nquerystring = {\"event_type\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"juliuss-dailycred.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "Create a User With Only an Email", + "url": "https://juliuss-dailycred.p.rapidapi.com/admin/api/email", + "description": "", + "method": "GET", + "required_parameters": [ + { + "name": "email", + "type": "STRING", + "description": "The user's email.", + "default": "" + }, + { + "name": "client_id", + "type": "STRING", + "description": "Your client id, found on your settings page.", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://juliuss-dailycred.p.rapidapi.com/admin/api/email\"\nquerystring = {\"email\": \"\", \"client_id\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"juliuss-dailycred.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://juliuss-dailycred.p.rapidapi.com/admin/api/email\"\nquerystring = {\"email\": \"\", \"client_id\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"juliuss-dailycred.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "Account Event Timeline", + "url": "https://juliuss-dailycred.p.rapidapi.com/admin/api/eventgraph.json", + "description": "", + "method": "GET", + "required_parameters": [ + { + "name": "event_type", + "type": "STRING", + "description": "The specific event type you want to query for.", + "default": "" + }, + { + "name": "client_id", + "type": "STRING", + "description": "Your client id, found on your settings page.", + "default": "" + }, + { + "name": "client_secret", + "type": "STRING", + "description": "Your client secret key, found on your settings page.", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://juliuss-dailycred.p.rapidapi.com/admin/api/eventgraph.json\"\nquerystring = {\"event_type\": \"\", \"client_id\": \"\", \"client_secret\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"juliuss-dailycred.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://juliuss-dailycred.p.rapidapi.com/admin/api/eventgraph.json\"\nquerystring = {\"event_type\": \"\", \"client_id\": \"\", \"client_secret\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"juliuss-dailycred.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "Find a User", + "url": "https://juliuss-dailycred.p.rapidapi.com/admin/api/user.json", + "description": "", + "method": "GET", + "required_parameters": [ + { + "name": "client_id", + "type": "STRING", + "description": "Your client id, found on your settings page.", + "default": "" + }, + { + "name": "client_secret", + "type": "STRING", + "description": "Your client secret key, found on your settings page.", + "default": "" + } + ], + "optional_parameters": [ + { + "name": "user_id", + "type": "STRING", + "description": "The user's dailycred user id.", + "default": "" + }, + { + "name": "email", + "type": "STRING", + "description": "The user's email.", + "default": "" + }, + { + "name": "access_token", + "type": "STRING", + "description": "An access token for your user.", + "default": "" + }, + { + "name": "username", + "type": "STRING", + "description": "The user's username.", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://juliuss-dailycred.p.rapidapi.com/admin/api/user.json\"\nquerystring = {\"client_id\": \"\", \"client_secret\": \"\", \"user_id\": \"\", \"email\": \"\", \"access_token\": \"\", \"username\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"juliuss-dailycred.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://juliuss-dailycred.p.rapidapi.com/admin/api/user.json\"\nquerystring = {\"client_id\": \"\", \"client_secret\": \"\", \"user_id\": \"\", \"email\": \"\", \"access_token\": \"\", \"username\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"juliuss-dailycred.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "Connect an Existing User with a New Identity Provider", + "url": "https://juliuss-dailycred.p.rapidapi.com/connect", + "description": "", + "method": "GET", + "required_parameters": [ + { + "name": "identity_provider", + "type": "STRING", + "description": "The desired social network your user to authenticate with. If no identity_provider parameter is provided, it will default to email and password authentication. You can also set identity_provider to gateway to use our UI to let the user choose who to sign in with.", + "default": "" + }, + { + "name": "client_id", + "type": "STRING", + "description": "Your DailyCred client ID", + "default": "" + } + ], + "optional_parameters": [ + { + "name": "redirect_uri", + "type": "STRING", + "description": "After authentication, the user will be redirected to this url. The url must be within one of your approved domains in your account settings. If omitted we will use your account default callback.", + "default": "" + }, + { + "name": "state", + "type": "STRING", + "description": "You can include a state parameter to help prevent cross-site request forgery. When your user is redirected back to your site after authenticating, the state parameter will be included.", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://juliuss-dailycred.p.rapidapi.com/connect\"\nquerystring = {\"identity_provider\": \"\", \"client_id\": \"\", \"redirect_uri\": \"\", \"state\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"juliuss-dailycred.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://juliuss-dailycred.p.rapidapi.com/connect\"\nquerystring = {\"identity_provider\": \"\", \"client_id\": \"\", \"redirect_uri\": \"\", \"state\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"juliuss-dailycred.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + } + ], + "standardized_name": "dailycred" +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Tools/dailycred/api.py b/toolbench/toolenv/tools/Tools/dailycred/api.py new file mode 100644 index 0000000000000000000000000000000000000000..54fa87295141224ed181f2e2611d23bb088a3a8b --- /dev/null +++ b/toolbench/toolenv/tools/Tools/dailycred/api.py @@ -0,0 +1,141 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def user_event_timeline(event_type: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "" + event_type: The type of event you wish to see the user's activity for. + + """ + url = f"https://juliuss-dailycred.p.rapidapi.com/admin/api/user/activity.json" + querystring = {'event_type': event_type, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "juliuss-dailycred.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def create_a_user_with_only_an_email(email: str, client_id: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "" + email: The user's email. + client_id: Your client id, found on your settings page. + + """ + url = f"https://juliuss-dailycred.p.rapidapi.com/admin/api/email" + querystring = {'email': email, 'client_id': client_id, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "juliuss-dailycred.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def account_event_timeline(event_type: str, client_id: str, client_secret: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "" + event_type: The specific event type you want to query for. + client_id: Your client id, found on your settings page. + client_secret: Your client secret key, found on your settings page. + + """ + url = f"https://juliuss-dailycred.p.rapidapi.com/admin/api/eventgraph.json" + querystring = {'event_type': event_type, 'client_id': client_id, 'client_secret': client_secret, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "juliuss-dailycred.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def find_a_user(client_id: str, client_secret: str, user_id: str=None, email: str=None, access_token: str=None, username: str=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "" + client_id: Your client id, found on your settings page. + client_secret: Your client secret key, found on your settings page. + user_id: The user's dailycred user id. + email: The user's email. + access_token: An access token for your user. + username: The user's username. + + """ + url = f"https://juliuss-dailycred.p.rapidapi.com/admin/api/user.json" + querystring = {'client_id': client_id, 'client_secret': client_secret, } + if user_id: + querystring['user_id'] = user_id + if email: + querystring['email'] = email + if access_token: + querystring['access_token'] = access_token + if username: + querystring['username'] = username + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "juliuss-dailycred.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def connect_an_existing_user_with_a_new_identity_provider(identity_provider: str, client_id: str, redirect_uri: str=None, state: str=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "" + identity_provider: The desired social network your user to authenticate with. If no identity_provider parameter is provided, it will default to email and password authentication. You can also set identity_provider to gateway to use our UI to let the user choose who to sign in with. + client_id: Your DailyCred client ID + redirect_uri: After authentication, the user will be redirected to this url. The url must be within one of your approved domains in your account settings. If omitted we will use your account default callback. + state: You can include a state parameter to help prevent cross-site request forgery. When your user is redirected back to your site after authenticating, the state parameter will be included. + + """ + url = f"https://juliuss-dailycred.p.rapidapi.com/connect" + querystring = {'identity_provider': identity_provider, 'client_id': client_id, } + if redirect_uri: + querystring['redirect_uri'] = redirect_uri + if state: + querystring['state'] = state + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "juliuss-dailycred.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Tools/danbulant_eu/api.py b/toolbench/toolenv/tools/Tools/danbulant_eu/api.py new file mode 100644 index 0000000000000000000000000000000000000000..28a59d2404bd546f16a913a74e3a5d6c7ab5f8f7 --- /dev/null +++ b/toolbench/toolenv/tools/Tools/danbulant_eu/api.py @@ -0,0 +1,147 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def bakalari(domain: str, password: str, name: str, info: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Remove the hassle with setting up XML parser and formatting tools." + domain: Domain of school (domain.tld) + password: Password for the username + name: Username + info: Which resource on Bakalari to get + + """ + url = f"https://danbulant-eu.p.rapidapi.com/bakalari/{info}/{name}/{domain}/{password}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "danbulant-eu.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def ester(msg: str, name: str, key: str, is_id: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Ester AI API" + msg: Actual message to get answer to + name: The name of the user (used when reffering to User) + key: API key for Ester API. Used for differentiating users. + id: User id + + """ + url = f"https://danbulant-eu.p.rapidapi.com/ester" + querystring = {'msg': msg, 'name': name, 'key': key, 'id': is_id, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "danbulant-eu.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def http_status_codes(code: int, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Gets information about status codes" + code: HTTP code to get info about + + """ + url = f"https://danbulant-eu.p.rapidapi.com/http/{code}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "danbulant-eu.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def reddit_shortener(subreddit: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Gets a random image from given subreddit. Might not work on sureddits that allow non-image posts." + subreddit: Subreddit name (can include r/, but works without it too) + + """ + url = f"https://danbulant-eu.p.rapidapi.com/reddit/{subreddit}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "danbulant-eu.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def image_datasets(dataset: str, type: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Random image from given dataset" + dataset: Gets image from given dataset + type: Type of image in dataset + + """ + url = f"https://danbulant-eu.p.rapidapi.com/datasets/{dataset}/{type}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "danbulant-eu.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def list_of_dataset_types(dataset: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "List of types in given dataset" + dataset: Dataset to get list from + + """ + url = f"https://danbulant-eu.p.rapidapi.com/datasets/{dataset}/" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "danbulant-eu.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Tools/dash_rewriter.json b/toolbench/toolenv/tools/Tools/dash_rewriter.json new file mode 100644 index 0000000000000000000000000000000000000000..88a97138368f21706bac288604dcd225986c5aa4 --- /dev/null +++ b/toolbench/toolenv/tools/Tools/dash_rewriter.json @@ -0,0 +1,45 @@ +{ + "product_id": "api_9d35a71a-9866-4866-9a91-d2dbdf8a7d9c", + "tool_description": "If you are looking for a simple rewriter for your website without the expensive cost, try Dash Rewriter", + "home_url": "https://rapidapi.com/webcreativemaster/api/dash-rewriter/", + "name": "Dash Rewriter", + "title": "Dash Rewriter", + "pricing": "FREEMIUM", + "tool_name": "Dash Rewriter", + "score": { + "avgServiceLevel": 100, + "avgLatency": 477, + "avgSuccessRate": 100, + "popularityScore": 8.1, + "__typename": "Score" + }, + "host": "dash-rewriter.p.rapidapi.com", + "api_list": [ + { + "name": "RewriteArticle", + "url": "https://dash-rewriter.p.rapidapi.com/rewrite.php", + "description": " ", + "method": "POST", + "required_parameters": [ + { + "name": "text", + "type": "STRING", + "description": "", + "default": "The internet is a powerful tool that everybody can use to achieve their goal market. internet engineers are answerable for creating and retaining the infrastructure of net websites, from growing the primary requirements to imposing terrific answers. They art work with customers and teams to create adorable, practical websites that speak records effectively and correctly." + }, + { + "name": "apikey", + "type": "STRING", + "description": "", + "default": "erjf0rej430jergfij99djdj" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://dash-rewriter.p.rapidapi.com/rewrite.php\"\nquerystring = {\"text\": \"The internet is a powerful tool that everybody can use to achieve their goal market. internet engineers are answerable for creating and retaining the infrastructure of net websites, from growing the primary requirements to imposing terrific answers. They art work with customers and teams to create adorable, practical websites that speak records effectively and correctly.\", \"apikey\": \"erjf0rej430jergfij99djdj\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"dash-rewriter.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://dash-rewriter.p.rapidapi.com/rewrite.php\"\nquerystring = {\"text\": \"The internet is a powerful tool that everybody can use to achieve their goal market. internet engineers are answerable for creating and retaining the infrastructure of net websites, from growing the primary requirements to imposing terrific answers. They art work with customers and teams to create adorable, practical websites that speak records effectively and correctly.\", \"apikey\": \"erjf0rej430jergfij99djdj\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"dash-rewriter.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": {} + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Tools/data2doc/api.py b/toolbench/toolenv/tools/Tools/data2doc/api.py new file mode 100644 index 0000000000000000000000000000000000000000..7062589a7da9670867e15e3f1792825b53143584 --- /dev/null +++ b/toolbench/toolenv/tools/Tools/data2doc/api.py @@ -0,0 +1,29 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def rowcount(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get the total counter of files processed by the service. Nothing useful, just a test." + + """ + url = f"https://data2doc.p.rapidapi.com/rowcount" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "data2doc.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Tools/date_and_time.json b/toolbench/toolenv/tools/Tools/date_and_time.json new file mode 100644 index 0000000000000000000000000000000000000000..4554444fc2f2488373ba9281356e2c45ab68c844 --- /dev/null +++ b/toolbench/toolenv/tools/Tools/date_and_time.json @@ -0,0 +1,24 @@ +{ + "tool_name":"Date and Time", + "tool_description":"Date and time API. Returns the Current date and time in UTC timezone. This API is expensive because I use a VM with 64GB RAM and 128 core CPU, and I added NVIDIA TITAN V GPU in order to calculate the current date and time. So subscribe or I will be homeless in 1 month :(\n\nJust messing up man. Truth is, I just used the free version of AWS XD :D.", + "title":"Date and Time", + "pricing":"PAID", + "score":null, + "home_url":"https://rapidapi.com/ejlungay/api/date-and-time1/", + "host":"date-and-time1.p.rapidapi.com", + "api_list":[ + { + "name":"Get Current Date and Time (Rich People Version)", + "url":"https://date-and-time1.p.rapidapi.com/prod/get-time", + "description":"Returns the Date and Time requested by Rich People. This is in UTC, so you need to use my other API to convert the result from this API to other timezone XD", + "method":"GET", + "required_parameters":[], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://date-and-time1.p.rapidapi.com/prod/get-time\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"date-and-time1.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Tools/date_and_time/api.py b/toolbench/toolenv/tools/Tools/date_and_time/api.py new file mode 100644 index 0000000000000000000000000000000000000000..24d5106dc1488917e8f5363c00e4e6417cab6a26 --- /dev/null +++ b/toolbench/toolenv/tools/Tools/date_and_time/api.py @@ -0,0 +1,29 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def get_current_date_and_time_rich_people_version(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Returns the Date and Time requested by Rich People. This is in UTC, so you need to use my other API to convert the result from this API to other timezone XD" + + """ + url = f"https://date-and-time1.p.rapidapi.com/prod/get-time" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "date-and-time1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Tools/date_calculator_api.json b/toolbench/toolenv/tools/Tools/date_calculator_api.json new file mode 100644 index 0000000000000000000000000000000000000000..57e4be4bbffaa6c9397483595d55c529909f6b1d --- /dev/null +++ b/toolbench/toolenv/tools/Tools/date_calculator_api.json @@ -0,0 +1,54 @@ +{ + "product_id": "api_798509fe-1328-4f9d-9700-7e0285cbf47e", + "tool_description": "The Date Calculator API is a simple yet powerful tool for performing date calculations, allowing you to count the number of days between two given dates or calculate a future date based on a starting date.", + "home_url": "https://rapidapi.com/rysikrainarz/api/date-calculator-api/", + "name": "Date Calculator API", + "title": "Date Calculator API", + "pricing": "PAID", + "tool_name": "Date Calculator API", + "score": { + "avgServiceLevel": 100, + "avgLatency": 444, + "avgSuccessRate": 100, + "popularityScore": 9.6, + "__typename": "Score" + }, + "host": "date-calculator-api.p.rapidapi.com", + "api_list": [ + { + "name": "postCheckDayDiff", + "url": "https://date-calculator-api.p.rapidapi.com/api/count-days", + "description": " ", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://date-calculator-api.p.rapidapi.com/api/count-days\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"date-calculator-api.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://date-calculator-api.p.rapidapi.com/api/count-days\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"date-calculator-api.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "get": { + "type": "string" + }, + "parameters": { + "type": "array" + }, + "errors": { + "type": "array" + }, + "results": { + "type": "integer" + }, + "response": { + "type": "array", + "items": { + "type": "object" + } + } + } + } + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Tools/date_to_text.json b/toolbench/toolenv/tools/Tools/date_to_text.json new file mode 100644 index 0000000000000000000000000000000000000000..5ba799e8ad77e41d06bc6b352fc9c324ab10ebfd --- /dev/null +++ b/toolbench/toolenv/tools/Tools/date_to_text.json @@ -0,0 +1,57 @@ +{ + "tool_name":"Date to Text", + "tool_description":"With the Date to Text API you can convert a date to a textual representation. It is also possible to get a human readable format of the difference between a given date and the current time. ", + "title":"Date to Text", + "pricing":"FREEMIUM", + "score":null, + "home_url":"https://rapidapi.com/ariepiscator/api/date-to-text/", + "host":"date-to-text.p.rapidapi.com", + "api_list":[ + { + "name":"Date Difference", + "url":"https://date-to-text.p.rapidapi.com/difference", + "description":"Get a human readable, textual representation of the difference between now and a given date.", + "method":"GET", + "required_parameters":[ + { + "name":"date", + "type":"STRING", + "description":"", + "default":"1934-06-09" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://date-to-text.p.rapidapi.com/difference\"\nquerystring = {\"date\": date}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"date-to-text.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":200, + "body":{ + "key1":"value", + "key2":"value" + }, + "headers":{}, + "schema":{} + }, + { + "name":"Date To Text", + "url":"https://date-to-text.p.rapidapi.com/date", + "description":"Get the textual representation of a given date", + "method":"GET", + "required_parameters":[ + { + "name":"date", + "type":"STRING", + "description":"", + "default":"2022-10-11" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://date-to-text.p.rapidapi.com/date\"\nquerystring = {\"date\": date}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"date-to-text.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":200, + "body":{ + "key1":"value", + "key2":"value" + }, + "headers":{}, + "schema":{} + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Tools/date_to_text/api.py b/toolbench/toolenv/tools/Tools/date_to_text/api.py new file mode 100644 index 0000000000000000000000000000000000000000..cf3d0dc35990a5cc04efdf14149267c42f57ee25 --- /dev/null +++ b/toolbench/toolenv/tools/Tools/date_to_text/api.py @@ -0,0 +1,50 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def date_difference(date: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get a human readable, textual representation of the difference between now and a given date." + + """ + url = f"https://date-to-text.p.rapidapi.com/difference" + querystring = {'date': date, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "date-to-text.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def date_to_text(date: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get the textual representation of a given date" + + """ + url = f"https://date-to-text.p.rapidapi.com/date" + querystring = {'date': date, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "date-to-text.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Tools/dateclock.json b/toolbench/toolenv/tools/Tools/dateclock.json new file mode 100644 index 0000000000000000000000000000000000000000..d503cb2e85a342ee2ade57cc102b920a1c3fe8bf --- /dev/null +++ b/toolbench/toolenv/tools/Tools/dateclock.json @@ -0,0 +1,238 @@ +{ + "tool_name":"DateClock", + "tool_description":"Complete Converter Date Report also Between, Birthday and many more!\n#date #birthday #between #query #islamic #calendar\nI’m on telegram chat me if there a problem/request\nhttps://t.me/franc0jr", + "title":"DateClock", + "pricing":"FREEMIUM", + "score":{ + "avgServiceLevel":100, + "avgLatency":417, + "avgSuccessRate":100, + "popularityScore":9.4, + "__typename":"Score" + }, + "home_url":"https://rapidapi.com/tsunderechan25/api/dateclock/", + "host":"dateclock.p.rapidapi.com", + "api_list":[ + { + "name":"Convert to Islamic / (Hijri) (Hijriah)", + "url":"https://dateclock.p.rapidapi.com/time/convert-islamic", + "description":"Convert date to Islamic or (Hijri) (Hijriah)", + "method":"GET", + "required_parameters":[], + "optional_parameters":[ + { + "name":"date", + "type":"STRING", + "description":"", + "default":"2022-12-25" + } + ], + "code":"import requests\n\nurl = \"https://dateclock.p.rapidapi.com/time/convert-islamic\"\nquerystring = {\"date\": date}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"dateclock.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":200, + "body":{ + "result":"1 Jumadil Akhir 1444 H" + }, + "headers":{ + "access-control-allow-credentials":"true", + "access-control-allow-origin":"*", + "cache-control":"no-cache, private", + "content-security-policy":"default-src 'self' newassets.hcaptcha.com hcaptcha.com fonts.gstatic.com www.google-analytics.com ajax.googleapis.com fonts.googleapis.com www.google.com google.com gstatic.com www.gstatic.com www.youtube.com youtube.com connect.facebook.net facebook.com googleads.g.doubleclick.net; img-src * 'self' data: https: blob:; script-src 'self' 'unsafe-inline' 'unsafe-eval' *; style-src 'self' 'unsafe-inline' *;", + "content-type":"application/json", + "date":"Sat, 24 Dec 2022 07:19:05 GMT", + "referrer-policy":"origin", + "server":"RapidAPI-1.2.8", + "strict-transport-security":"max-age=31536000; includeSubDomains; always", + "vary":"Accept-Encoding", + "x-content-type-options":"nosniff", + "x-frame-options":"DENY", + "x-powered-by":"PHP/8.1.13", + "x-rapidapi-region":"AWS - ap-southeast-1", + "x-rapidapi-version":"1.2.8", + "x-xss-protection":"1; mode=block" + }, + "schema":{} + }, + { + "name":"Between Checker", + "url":"https://dateclock.p.rapidapi.com/time/between", + "description":"Check if given date is between two dates", + "method":"GET", + "required_parameters":[ + { + "name":"to", + "type":"STRING", + "description":"", + "default":"1 week ago" + }, + { + "name":"date", + "type":"STRING", + "description":"", + "default":"Yesterday" + }, + { + "name":"from", + "type":"STRING", + "description":"", + "default":"1980-06-06 00:00:00" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://dateclock.p.rapidapi.com/time/between\"\nquerystring = {\"to\": to, \"date\": date, \"from\": is_from}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"dateclock.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + }, + { + "name":"Birthday", + "url":"https://dateclock.p.rapidapi.com/time/birthday", + "description":"Return complete a birthday detail", + "method":"GET", + "required_parameters":[ + { + "name":"date", + "type":"STRING", + "description":"", + "default":"1993-12-24" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://dateclock.p.rapidapi.com/time/birthday\"\nquerystring = {\"date\": date}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"dateclock.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":200, + "body":{ + "is_today_birthday":true, + "years":29, + "months":348, + "days":10592, + "hours":254214, + "human":"29 years ago", + "long_absolute_human":"29 years", + "long_relative_human":"29 years ago", + "short_absolute_human":"29yrs", + "short_relative_human":"29yrs ago" + }, + "headers":{ + "access-control-allow-credentials":"true", + "access-control-allow-origin":"*", + "cache-control":"no-cache, private", + "content-security-policy":"default-src 'self' newassets.hcaptcha.com hcaptcha.com fonts.gstatic.com www.google-analytics.com ajax.googleapis.com fonts.googleapis.com www.google.com google.com gstatic.com www.gstatic.com www.youtube.com youtube.com connect.facebook.net facebook.com googleads.g.doubleclick.net; img-src * 'self' data: https: blob:; script-src 'self' 'unsafe-inline' 'unsafe-eval' *; style-src 'self' 'unsafe-inline' *;", + "content-type":"application/json", + "date":"Sat, 24 Dec 2022 06:38:47 GMT", + "referrer-policy":"origin", + "server":"RapidAPI-1.2.8", + "strict-transport-security":"max-age=31536000; includeSubDomains; always", + "vary":"Accept-Encoding", + "x-content-type-options":"nosniff", + "x-frame-options":"DENY", + "x-powered-by":"PHP/8.1.13", + "x-rapidapi-region":"AWS - ap-southeast-1", + "x-rapidapi-version":"1.2.8", + "x-xss-protection":"1; mode=block" + }, + "schema":{} + }, + { + "name":"Date Converter Timezone", + "url":"https://dateclock.p.rapidapi.com/time/date", + "description":"Simply Date Converter Timezone to complete response report", + "method":"GET", + "required_parameters":[], + "optional_parameters":[ + { + "name":"format", + "type":"STRING", + "description":"", + "default":"" + }, + { + "name":"date", + "type":"STRING", + "description":"", + "default":"7 Days Ago" + }, + { + "name":"tz", + "type":"STRING", + "description":"", + "default":"UTC+8" + } + ], + "code":"import requests\n\nurl = \"https://dateclock.p.rapidapi.com/time/date\"\nquerystring = {\"date\": date, \"tz\": tz}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"dateclock.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":200, + "body":{ + "utc_datetime":{ + "year":2022, + "month":12, + "day":17, + "dayOfWeek":6, + "dayOfYear":351, + "hour":6, + "minute":38, + "second":31, + "micro":0, + "timestamp":1671259111, + "formatted":"2022-12-17 06:38:31", + "timezone":{ + "timezone_type":3, + "timezone":"UTC" + } + }, + "date":{ + "year":2022, + "month":12, + "day":17, + "dayOfWeek":6, + "dayOfYear":351, + "hour":14, + "minute":38, + "second":31, + "micro":0, + "timestamp":1671259111, + "formatted":"2022-12-17 14:38:31", + "timezone":{ + "timezone_type":3, + "timezone":"etc/gmt-8" + } + }, + "utc_offset":480, + "offset":"+08:00", + "datetime":"2022-12-17T14:38:31Z", + "datetime_general":"2022-12-17 14:38:31", + "is_day_light_savings_time":false, + "day_of_week":"Saturday", + "seconds_until_end_of_day":33688, + "timestamp":1671259111, + "until":"1 week from now", + "is_future":false, + "is_past":true, + "is_current_century":true, + "is_current_decade":true, + "is_current_day":false, + "is_current_hour":false, + "is_current_week":false, + "is_weekend":true, + "is_weekday":false + }, + "headers":{ + "access-control-allow-credentials":"true", + "access-control-allow-origin":"*", + "cache-control":"no-cache, private", + "content-security-policy":"default-src 'self' newassets.hcaptcha.com hcaptcha.com fonts.gstatic.com www.google-analytics.com ajax.googleapis.com fonts.googleapis.com www.google.com google.com gstatic.com www.gstatic.com www.youtube.com youtube.com connect.facebook.net facebook.com googleads.g.doubleclick.net; img-src * 'self' data: https: blob:; script-src 'self' 'unsafe-inline' 'unsafe-eval' *; style-src 'self' 'unsafe-inline' *;", + "content-type":"application/json", + "date":"Sat, 24 Dec 2022 06:38:31 GMT", + "referrer-policy":"origin", + "server":"RapidAPI-1.2.8", + "strict-transport-security":"max-age=31536000; includeSubDomains; always", + "vary":"Accept-Encoding", + "x-content-type-options":"nosniff", + "x-frame-options":"DENY", + "x-powered-by":"PHP/8.1.13", + "x-rapidapi-region":"AWS - ap-southeast-1", + "x-rapidapi-version":"1.2.8", + "x-xss-protection":"1; mode=block" + }, + "schema":{} + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Tools/dateclock/api.py b/toolbench/toolenv/tools/Tools/dateclock/api.py new file mode 100644 index 0000000000000000000000000000000000000000..dea5dfb4f7f07ac902abe0b67c9f29cb467fe6cd --- /dev/null +++ b/toolbench/toolenv/tools/Tools/dateclock/api.py @@ -0,0 +1,100 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def convert_to_islamic_hijri_hijriah(date: str='2022-12-25', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Convert date to Islamic or (Hijri) (Hijriah)" + + """ + url = f"https://dateclock.p.rapidapi.com/time/convert-islamic" + querystring = {} + if date: + querystring['date'] = date + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "dateclock.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def between_checker(to: str, date: str, is_from: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Check if given date is between two dates" + + """ + url = f"https://dateclock.p.rapidapi.com/time/between" + querystring = {'to': to, 'date': date, 'from': is_from, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "dateclock.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def birthday(date: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Return complete a birthday detail" + + """ + url = f"https://dateclock.p.rapidapi.com/time/birthday" + querystring = {'date': date, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "dateclock.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def date_converter_timezone(format: str=None, date: str='7 Days Ago', tz: str='UTC+8', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Simply Date Converter Timezone to complete response report" + + """ + url = f"https://dateclock.p.rapidapi.com/time/date" + querystring = {} + if format: + querystring['format'] = format + if date: + querystring['date'] = date + if tz: + querystring['tz'] = tz + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "dateclock.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Tools/definition_topic.json b/toolbench/toolenv/tools/Tools/definition_topic.json new file mode 100644 index 0000000000000000000000000000000000000000..e42f3470fe88199f748e55fe922e3f73c072d828 --- /dev/null +++ b/toolbench/toolenv/tools/Tools/definition_topic.json @@ -0,0 +1,24 @@ +{ + "tool_name":"definition topic", + "tool_description":"word definition and related word in topic", + "title":"definition topic", + "pricing":"FREEMIUM", + "score":null, + "home_url":"https://rapidapi.com/andrewoglesby13183/api/definition-topic/", + "host":"definition-topic.p.rapidapi.com", + "api_list":[ + { + "name":"default", + "url":"https://definition-topic.p.rapidapi.com/", + "description":"default endpoint", + "method":"GET", + "required_parameters":[], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://definition-topic.p.rapidapi.com/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"definition-topic.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Tools/definition_topic/api.py b/toolbench/toolenv/tools/Tools/definition_topic/api.py new file mode 100644 index 0000000000000000000000000000000000000000..d9e2df81fd683b909c948dfeedff4297ec571c7b --- /dev/null +++ b/toolbench/toolenv/tools/Tools/definition_topic/api.py @@ -0,0 +1,29 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def default(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "default endpoint" + + """ + url = f"https://definition-topic.p.rapidapi.com/" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "definition-topic.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Tools/demo_project.json b/toolbench/toolenv/tools/Tools/demo_project.json new file mode 100644 index 0000000000000000000000000000000000000000..15843630571a1f29c5ca3ac0a6a86a7f982bd99c --- /dev/null +++ b/toolbench/toolenv/tools/Tools/demo_project.json @@ -0,0 +1,105 @@ +{ + "product_id": "api_78a99f66-8064-41ac-9097-8d059c9059d2", + "tool_description": "This Project is created by the onboarding process", + "home_url": "https://rapidapi.com/uwnnkr66/api/demo-project50260/", + "name": "\ud83d\udc4b Demo Project", + "title": "\ud83d\udc4b Demo Project", + "pricing": "FREE", + "tool_name": "\ud83d\udc4b Demo Project", + "score": null, + "host": "demo-project50260.p.rapidapi.com", + "api_list": [ + { + "name": "Place Order", + "url": "https://demo-project50260.p.rapidapi.com/order/{id}/place", + "description": " ", + "method": "POST", + "required_parameters": [ + { + "name": "id", + "type": "STRING", + "description": "", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://demo-project50260.p.rapidapi.com/order/{id}/place\"\nquerystring = {\"id\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"demo-project50260.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://demo-project50260.p.rapidapi.com/order/{id}/place\"\nquerystring = {\"id\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"demo-project50260.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "Login", + "url": "https://demo-project50260.p.rapidapi.com/auth/login", + "description": " ", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://demo-project50260.p.rapidapi.com/auth/login\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"demo-project50260.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://demo-project50260.p.rapidapi.com/auth/login\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"demo-project50260.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "Create Order", + "url": "https://demo-project50260.p.rapidapi.com/order/new", + "description": " ", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://demo-project50260.p.rapidapi.com/order/new\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"demo-project50260.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://demo-project50260.p.rapidapi.com/order/new\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"demo-project50260.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "Add to Order", + "url": "https://demo-project50260.p.rapidapi.com/order/{id}/product", + "description": " ", + "method": "POST", + "required_parameters": [ + { + "name": "id", + "type": "STRING", + "description": "", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://demo-project50260.p.rapidapi.com/order/{id}/product\"\nquerystring = {\"id\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"demo-project50260.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://demo-project50260.p.rapidapi.com/order/{id}/product\"\nquerystring = {\"id\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"demo-project50260.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "Create User (Sign Up)", + "url": "https://demo-project50260.p.rapidapi.com/auth/user", + "description": " ", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://demo-project50260.p.rapidapi.com/auth/user\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"demo-project50260.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://demo-project50260.p.rapidapi.com/auth/user\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"demo-project50260.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "Create Product", + "url": "https://demo-project50260.p.rapidapi.com/catalog/product", + "description": " ", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://demo-project50260.p.rapidapi.com/catalog/product\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"demo-project50260.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://demo-project50260.p.rapidapi.com/catalog/product\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"demo-project50260.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Tools/demo_project/api.py b/toolbench/toolenv/tools/Tools/demo_project/api.py new file mode 100644 index 0000000000000000000000000000000000000000..880ad477493fba41383e7cc42086aa34996106f7 --- /dev/null +++ b/toolbench/toolenv/tools/Tools/demo_project/api.py @@ -0,0 +1,155 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def get_posts_copy(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get Posts" + + """ + url = f"https://demo-project20473.p.rapidapi.com/posts" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "demo-project20473.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def me(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + " " + + """ + url = f"https://demo-project20473.p.rapidapi.com/auth/me" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "demo-project20473.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def get_product(is_id: int, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + " " + + """ + url = f"https://demo-project20473.p.rapidapi.com/catalog/product/{is_id}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "demo-project20473.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def get_posts(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get Posts" + + """ + url = f"https://demo-project20473.p.rapidapi.com/posts" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "demo-project20473.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def get_products_in_category(category: str, limit: int, skip: int, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + " " + + """ + url = f"https://demo-project20473.p.rapidapi.com/catalog/category/{category}/products" + querystring = {'limit': limit, 'skip': skip, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "demo-project20473.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def get_order(is_id: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + " " + + """ + url = f"https://demo-project20473.p.rapidapi.com/order/{is_id}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "demo-project20473.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def get_user_orders(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + " " + + """ + url = f"https://demo-project20473.p.rapidapi.com/order/my" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "demo-project20473.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Tools/demo_project_v12.json b/toolbench/toolenv/tools/Tools/demo_project_v12.json new file mode 100644 index 0000000000000000000000000000000000000000..cab24ad2d05f603b35dcd419d1c48e42d117706b --- /dev/null +++ b/toolbench/toolenv/tools/Tools/demo_project_v12.json @@ -0,0 +1,281 @@ +{ + "product_id": "api_4e5aabe5-c7d9-4af8-9d10-0845eff1c08c", + "tool_description": "This Project is created by the onboarding process", + "home_url": "https://rapidapi.com/ossab98/api/demo-project20473/", + "name": "\ud83d\udc4b Demo Project_v12", + "title": "\ud83d\udc4b Demo Project", + "pricing": "FREE", + "tool_name": "\ud83d\udc4b Demo Project_v12", + "score": { + "avgServiceLevel": 100, + "avgLatency": 168, + "avgSuccessRate": 100, + "popularityScore": 5.9, + "__typename": "Score" + }, + "host": "demo-project20473.p.rapidapi.com", + "api_list": [ + { + "name": "Get Posts_copy", + "url": "https://demo-project20473.p.rapidapi.com/posts", + "description": "Get Posts", + "method": "GET", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://demo-project20473.p.rapidapi.com/posts\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"demo-project20473.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://demo-project20473.p.rapidapi.com/posts\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"demo-project20473.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "array", + "items": { + "type": "object" + } + } + }, + { + "name": "Me", + "url": "https://demo-project20473.p.rapidapi.com/auth/me", + "description": " ", + "method": "GET", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://demo-project20473.p.rapidapi.com/auth/me\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"demo-project20473.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://demo-project20473.p.rapidapi.com/auth/me\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"demo-project20473.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "get": { + "type": "string" + }, + "parameters": { + "type": "array" + }, + "errors": { + "type": "array" + }, + "results": { + "type": "integer" + }, + "response": { + "type": "array", + "items": { + "type": "object" + } + } + } + } + }, + { + "name": "Get Product", + "url": "https://demo-project20473.p.rapidapi.com/catalog/product/{id}", + "description": " ", + "method": "GET", + "required_parameters": [ + { + "name": "id", + "type": "NUMBER", + "description": "", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://demo-project20473.p.rapidapi.com/catalog/product/{id}\"\nquerystring = {\"id\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"demo-project20473.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://demo-project20473.p.rapidapi.com/catalog/product/{id}\"\nquerystring = {\"id\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"demo-project20473.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "get": { + "type": "string" + }, + "parameters": { + "type": "array" + }, + "errors": { + "type": "array" + }, + "results": { + "type": "integer" + }, + "response": { + "type": "array", + "items": { + "type": "object" + } + } + } + } + }, + { + "name": "Get Posts", + "url": "https://demo-project20473.p.rapidapi.com/posts", + "description": "Get Posts", + "method": "GET", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://demo-project20473.p.rapidapi.com/posts\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"demo-project20473.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://demo-project20473.p.rapidapi.com/posts\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"demo-project20473.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "get": { + "type": "string" + }, + "parameters": { + "type": "array" + }, + "errors": { + "type": "array" + }, + "results": { + "type": "integer" + }, + "response": { + "type": "array", + "items": { + "type": "object" + } + } + } + } + }, + { + "name": "Get Products in Category", + "url": "https://demo-project20473.p.rapidapi.com/catalog/category/{category}/products", + "description": " ", + "method": "GET", + "required_parameters": [ + { + "name": "category", + "type": "STRING", + "description": "", + "default": "" + }, + { + "name": "limit", + "type": "NUMBER", + "description": "", + "default": "" + }, + { + "name": "skip", + "type": "NUMBER", + "description": "", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://demo-project20473.p.rapidapi.com/catalog/category/{category}/products\"\nquerystring = {\"category\": \"\", \"limit\": \"\", \"skip\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"demo-project20473.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://demo-project20473.p.rapidapi.com/catalog/category/{category}/products\"\nquerystring = {\"category\": \"\", \"limit\": \"\", \"skip\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"demo-project20473.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "get": { + "type": "string" + }, + "parameters": { + "type": "array" + }, + "errors": { + "type": "array" + }, + "results": { + "type": "integer" + }, + "response": { + "type": "array", + "items": { + "type": "object" + } + } + } + } + }, + { + "name": "Get Order", + "url": "https://demo-project20473.p.rapidapi.com/order/{id}", + "description": " ", + "method": "GET", + "required_parameters": [ + { + "name": "id", + "type": "STRING", + "description": "", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://demo-project20473.p.rapidapi.com/order/{id}\"\nquerystring = {\"id\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"demo-project20473.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://demo-project20473.p.rapidapi.com/order/{id}\"\nquerystring = {\"id\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"demo-project20473.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "get": { + "type": "string" + }, + "parameters": { + "type": "array" + }, + "errors": { + "type": "array" + }, + "results": { + "type": "integer" + }, + "response": { + "type": "array", + "items": { + "type": "object" + } + } + } + } + }, + { + "name": "Get User Orders", + "url": "https://demo-project20473.p.rapidapi.com/order/my", + "description": " ", + "method": "GET", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://demo-project20473.p.rapidapi.com/order/my\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"demo-project20473.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://demo-project20473.p.rapidapi.com/order/my\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"demo-project20473.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "get": { + "type": "string" + }, + "parameters": { + "type": "array" + }, + "errors": { + "type": "array" + }, + "results": { + "type": "integer" + }, + "response": { + "type": "array", + "items": { + "type": "object" + } + } + } + } + } + ], + "standardized_name": "demo_project_v12" +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Tools/demo_project_v12/api.py b/toolbench/toolenv/tools/Tools/demo_project_v12/api.py new file mode 100644 index 0000000000000000000000000000000000000000..880ad477493fba41383e7cc42086aa34996106f7 --- /dev/null +++ b/toolbench/toolenv/tools/Tools/demo_project_v12/api.py @@ -0,0 +1,155 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def get_posts_copy(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get Posts" + + """ + url = f"https://demo-project20473.p.rapidapi.com/posts" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "demo-project20473.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def me(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + " " + + """ + url = f"https://demo-project20473.p.rapidapi.com/auth/me" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "demo-project20473.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def get_product(is_id: int, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + " " + + """ + url = f"https://demo-project20473.p.rapidapi.com/catalog/product/{is_id}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "demo-project20473.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def get_posts(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get Posts" + + """ + url = f"https://demo-project20473.p.rapidapi.com/posts" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "demo-project20473.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def get_products_in_category(category: str, limit: int, skip: int, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + " " + + """ + url = f"https://demo-project20473.p.rapidapi.com/catalog/category/{category}/products" + querystring = {'limit': limit, 'skip': skip, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "demo-project20473.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def get_order(is_id: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + " " + + """ + url = f"https://demo-project20473.p.rapidapi.com/order/{is_id}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "demo-project20473.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def get_user_orders(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + " " + + """ + url = f"https://demo-project20473.p.rapidapi.com/order/my" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "demo-project20473.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Tools/demo_project_v13.json b/toolbench/toolenv/tools/Tools/demo_project_v13.json new file mode 100644 index 0000000000000000000000000000000000000000..c48a8c99bbb1ad681c5f90b8bb94332f8b02ee7a --- /dev/null +++ b/toolbench/toolenv/tools/Tools/demo_project_v13.json @@ -0,0 +1,311 @@ +{ + "product_id": "api_3088fbb4-df8b-42e0-8cf3-946c924d3815", + "tool_description": "This Project is created by the onboarding process", + "home_url": "https://rapidapi.com/s26752/api/demo-project19049/", + "name": "\ud83d\udc4b Demo Project_v13", + "title": "\ud83d\udc4b Demo Project", + "pricing": "FREE", + "tool_name": "\ud83d\udc4b Demo Project_v13", + "score": { + "avgServiceLevel": 100, + "avgLatency": 685, + "avgSuccessRate": 100, + "popularityScore": 5.7, + "__typename": "Score" + }, + "host": "demo-project19049.p.rapidapi.com", + "api_list": [ + { + "name": "Get Products in Category", + "url": "https://demo-project19049.p.rapidapi.com/catalog/category/{category}/products", + "description": " ", + "method": "GET", + "required_parameters": [ + { + "name": "limit", + "type": "NUMBER", + "description": "", + "default": "" + }, + { + "name": "skip", + "type": "NUMBER", + "description": "", + "default": "" + }, + { + "name": "category", + "type": "STRING", + "description": "", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://demo-project19049.p.rapidapi.com/catalog/category/{category}/products\"\nquerystring = {\"limit\": \"\", \"skip\": \"\", \"category\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"demo-project19049.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://demo-project19049.p.rapidapi.com/catalog/category/{category}/products\"\nquerystring = {\"limit\": \"\", \"skip\": \"\", \"category\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"demo-project19049.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "get": { + "type": "string" + }, + "parameters": { + "type": "array" + }, + "errors": { + "type": "array" + }, + "results": { + "type": "integer" + }, + "response": { + "type": "array", + "items": { + "type": "object" + } + } + } + } + }, + { + "name": "Me", + "url": "https://demo-project19049.p.rapidapi.com/auth/me", + "description": " ", + "method": "GET", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://demo-project19049.p.rapidapi.com/auth/me\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"demo-project19049.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://demo-project19049.p.rapidapi.com/auth/me\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"demo-project19049.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "get": { + "type": "string" + }, + "parameters": { + "type": "array" + }, + "errors": { + "type": "array" + }, + "results": { + "type": "integer" + }, + "response": { + "type": "array", + "items": { + "type": "object" + } + } + } + } + }, + { + "name": "Get Product", + "url": "https://demo-project19049.p.rapidapi.com/catalog/product/{id}", + "description": " ", + "method": "GET", + "required_parameters": [ + { + "name": "id", + "type": "NUMBER", + "description": "", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://demo-project19049.p.rapidapi.com/catalog/product/{id}\"\nquerystring = {\"id\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"demo-project19049.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://demo-project19049.p.rapidapi.com/catalog/product/{id}\"\nquerystring = {\"id\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"demo-project19049.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "get": { + "type": "string" + }, + "parameters": { + "type": "array" + }, + "errors": { + "type": "array" + }, + "results": { + "type": "integer" + }, + "response": { + "type": "array", + "items": { + "type": "object" + } + } + } + } + }, + { + "name": "Get Categories", + "url": "https://demo-project19049.p.rapidapi.com/catalog/categories", + "description": " ", + "method": "GET", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://demo-project19049.p.rapidapi.com/catalog/categories\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"demo-project19049.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://demo-project19049.p.rapidapi.com/catalog/categories\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"demo-project19049.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "get": { + "type": "string" + }, + "parameters": { + "type": "array" + }, + "errors": { + "type": "array" + }, + "results": { + "type": "integer" + }, + "response": { + "type": "array", + "items": { + "type": "object" + } + } + } + } + }, + { + "name": "Get User Orders", + "url": "https://demo-project19049.p.rapidapi.com/order/my", + "description": " ", + "method": "GET", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://demo-project19049.p.rapidapi.com/order/my\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"demo-project19049.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://demo-project19049.p.rapidapi.com/order/my\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"demo-project19049.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "get": { + "type": "string" + }, + "parameters": { + "type": "array" + }, + "errors": { + "type": "array" + }, + "results": { + "type": "integer" + }, + "response": { + "type": "array", + "items": { + "type": "object" + } + } + } + } + }, + { + "name": "Get Products", + "url": "https://demo-project19049.p.rapidapi.com/catalog/products", + "description": " ", + "method": "GET", + "required_parameters": [ + { + "name": "limit", + "type": "NUMBER", + "description": "", + "default": "" + }, + { + "name": "skip", + "type": "NUMBER", + "description": "", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://demo-project19049.p.rapidapi.com/catalog/products\"\nquerystring = {\"limit\": \"\", \"skip\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"demo-project19049.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://demo-project19049.p.rapidapi.com/catalog/products\"\nquerystring = {\"limit\": \"\", \"skip\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"demo-project19049.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "get": { + "type": "string" + }, + "parameters": { + "type": "array" + }, + "errors": { + "type": "array" + }, + "results": { + "type": "integer" + }, + "response": { + "type": "array", + "items": { + "type": "object" + } + } + } + } + }, + { + "name": "Get Order", + "url": "https://demo-project19049.p.rapidapi.com/order/{id}", + "description": " ", + "method": "GET", + "required_parameters": [ + { + "name": "id", + "type": "STRING", + "description": "", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://demo-project19049.p.rapidapi.com/order/{id}\"\nquerystring = {\"id\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"demo-project19049.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://demo-project19049.p.rapidapi.com/order/{id}\"\nquerystring = {\"id\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"demo-project19049.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "get": { + "type": "string" + }, + "parameters": { + "type": "array" + }, + "errors": { + "type": "array" + }, + "results": { + "type": "integer" + }, + "response": { + "type": "array", + "items": { + "type": "object" + } + } + } + } + } + ], + "standardized_name": "demo_project_v13" +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Tools/demo_project_v13/api.py b/toolbench/toolenv/tools/Tools/demo_project_v13/api.py new file mode 100644 index 0000000000000000000000000000000000000000..a851bf01194007d9d3529bf065a39f08c3f9bd12 --- /dev/null +++ b/toolbench/toolenv/tools/Tools/demo_project_v13/api.py @@ -0,0 +1,155 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def get_products_in_category(limit: int, skip: int, category: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + " " + + """ + url = f"https://demo-project19049.p.rapidapi.com/catalog/category/{category}/products" + querystring = {'limit': limit, 'skip': skip, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "demo-project19049.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def me(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + " " + + """ + url = f"https://demo-project19049.p.rapidapi.com/auth/me" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "demo-project19049.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def get_product(is_id: int, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + " " + + """ + url = f"https://demo-project19049.p.rapidapi.com/catalog/product/{is_id}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "demo-project19049.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def get_categories(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + " " + + """ + url = f"https://demo-project19049.p.rapidapi.com/catalog/categories" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "demo-project19049.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def get_user_orders(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + " " + + """ + url = f"https://demo-project19049.p.rapidapi.com/order/my" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "demo-project19049.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def get_products(limit: int, skip: int, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + " " + + """ + url = f"https://demo-project19049.p.rapidapi.com/catalog/products" + querystring = {'limit': limit, 'skip': skip, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "demo-project19049.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def get_order(is_id: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + " " + + """ + url = f"https://demo-project19049.p.rapidapi.com/order/{is_id}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "demo-project19049.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Tools/demo_project_v4/api.py b/toolbench/toolenv/tools/Tools/demo_project_v4/api.py new file mode 100644 index 0000000000000000000000000000000000000000..46168d946506a049a15df03fa4299d49e6b9e485 --- /dev/null +++ b/toolbench/toolenv/tools/Tools/demo_project_v4/api.py @@ -0,0 +1,155 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def get_products_in_category(category: str, limit: int, skip: int, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + " " + + """ + url = f"https://demo-project9686.p.rapidapi.com/catalog/category/{category}/products" + querystring = {'limit': limit, 'skip': skip, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "demo-project9686.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def get_categories(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + " " + + """ + url = f"https://demo-project9686.p.rapidapi.com/catalog/categories" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "demo-project9686.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def get_user_orders(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + " " + + """ + url = f"https://demo-project9686.p.rapidapi.com/order/my" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "demo-project9686.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def get_order(is_id: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + " " + + """ + url = f"https://demo-project9686.p.rapidapi.com/order/{is_id}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "demo-project9686.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def get_products(skip: int, limit: int, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + " " + + """ + url = f"https://demo-project9686.p.rapidapi.com/catalog/products" + querystring = {'skip': skip, 'limit': limit, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "demo-project9686.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def me(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + " " + + """ + url = f"https://demo-project9686.p.rapidapi.com/auth/me" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "demo-project9686.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def get_product(is_id: int, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + " " + + """ + url = f"https://demo-project9686.p.rapidapi.com/catalog/product/{is_id}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "demo-project9686.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Tools/design_tokens_extractor_for_sketch.json b/toolbench/toolenv/tools/Tools/design_tokens_extractor_for_sketch.json new file mode 100644 index 0000000000000000000000000000000000000000..1a451ef8a9d8baca52225377aeb41a224880fbea --- /dev/null +++ b/toolbench/toolenv/tools/Tools/design_tokens_extractor_for_sketch.json @@ -0,0 +1,24 @@ +{ + "product_id": "api_c9833e42-5453-4233-befa-53bab49bc14b", + "tool_description": "Use this api to extract Design Tokens from your Sketch document as json data.", + "home_url": "https://rapidapi.com/sketch2react-ab-sketch2react-ab-default/api/design-tokens-extractor-for-sketch/", + "name": "Design Tokens Extractor For Sketch", + "title": "Design Tokens Extractor For Sketch", + "pricing": "FREE", + "tool_name": "Design Tokens Extractor For Sketch", + "score": null, + "host": "design-tokens-extractor-for-sketch.p.rapidapi.com", + "api_list": [ + { + "name": "/v1/sketch/extract", + "url": "https://design-tokens-extractor-for-sketch.p.rapidapi.com/v1/sketch/extract", + "description": ".", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://design-tokens-extractor-for-sketch.p.rapidapi.com/v1/sketch/extract\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"design-tokens-extractor-for-sketch.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://design-tokens-extractor-for-sketch.p.rapidapi.com/v1/sketch/extract\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"design-tokens-extractor-for-sketch.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Tools/detect_sentence.json b/toolbench/toolenv/tools/Tools/detect_sentence.json new file mode 100644 index 0000000000000000000000000000000000000000..cff68145a84aba441a018017da741b4e10db2d3a --- /dev/null +++ b/toolbench/toolenv/tools/Tools/detect_sentence.json @@ -0,0 +1,24 @@ +{ + "tool_name":"detect sentence", + "tool_description":"detect gramma error in a sentence", + "title":"detect sentence", + "pricing":"FREEMIUM", + "score":null, + "home_url":"https://rapidapi.com/habibrahman119/api/detect-sentence/", + "host":"detect-sentence.p.rapidapi.com", + "api_list":[ + { + "name":"default", + "url":"https://detect-sentence.p.rapidapi.com/", + "description":"default endpoint", + "method":"GET", + "required_parameters":[], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://detect-sentence.p.rapidapi.com/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"detect-sentence.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Tools/detect_sentence/api.py b/toolbench/toolenv/tools/Tools/detect_sentence/api.py new file mode 100644 index 0000000000000000000000000000000000000000..bf00f228a140722f3564f1ab9817caba9feea114 --- /dev/null +++ b/toolbench/toolenv/tools/Tools/detect_sentence/api.py @@ -0,0 +1,29 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def default(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "default endpoint" + + """ + url = f"https://detect-sentence.p.rapidapi.com/" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "detect-sentence.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Tools/dimondevosint.json b/toolbench/toolenv/tools/Tools/dimondevosint.json new file mode 100644 index 0000000000000000000000000000000000000000..0f9def775bd5a6c1f2c4097dbd929d5dac3df695 --- /dev/null +++ b/toolbench/toolenv/tools/Tools/dimondevosint.json @@ -0,0 +1,122 @@ +{ + "tool_name":"dimondevosint", + "tool_description":"It is an API for mobile phone number OSINT. If you abuse it, you will be immediately banned!", + "title":"dimondevosint", + "pricing":"FREEMIUM", + "score":{ + "avgServiceLevel":47, + "avgLatency":6751, + "avgSuccessRate":47, + "popularityScore":9.7, + "__typename":"Score" + }, + "home_url":"https://rapidapi.com/segnayt-e1RorVbq3qe/api/dimondevosint/", + "host":"dimondevosint.p.rapidapi.com", + "api_list":[ + { + "name":"Photo from given number", + "url":"https://dimondevosint.p.rapidapi.com/photo", + "description":"It searches for a photo in the internet about the phone number, if it matches, it returns the photo in bytes.", + "method":"GET", + "required_parameters":[ + { + "name":"phone", + "type":"STRING", + "description":"", + "default":"+79999999999" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://dimondevosint.p.rapidapi.com/photo\"\nquerystring = {\"phone\": phone}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"dimondevosint.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":200, + "body":"b'\\xff\\xd8\\xff\\xe0\\x00\\x10JFIF\\x00\\x01\\x01\\x00\\x00\\x01\\x00\\x01\\x00\\x00\\xff\\xed\\x00\\x9cPhotoshop 3.0\\x008BIM\\x04\\x04\\x00\\x00\\x00\\x00\\x00\\x80\\x1c\\x02g\\x00\\x14Oo_4h-UroqduidscdVKp\\x1c\\x02(\\x00bFBMD0a000a8201000060060000210800004a080000850800008c0900007b0b00007d0f0000d90f00004f10000082130000\\xff\\xdb\\x00C\\x00\\x06\\x04\\x05\\x06\\x05\\x04\\x06\\x06\\x05\\x06\\x07\\x07\\x06\\x08\\n\\x10\\n\\n\\t\\t\\n\\x14\\x0e\\x0f\\x0c\\x10\\x17\\x14\\x18\\x18\\x17\\x14\\x16\\x16\\x1a\\x1d%\\x1f\\x1a\\x1b#\\x1c\\x16\\x16 , #&\\')*)\\x19\\x1f-0-(0%()(\\xff\\xdb\\x00C\\x01\\x07\\x07\\x07\\n\\x08\\n\\x13\\n\\n\\x13(\\x1a\\x16\\x1a((((((((((((((((((((((((((((((((((((((((((((((((((\\xff\\xc2\\x00\\x11\\x08\\x01\\xc6\\x02\\xd0\\x03\\x01\"\\x00\\x02\\x11\\x01\\x03\\x11\\x01\\xff\\xc4\\x00\\x1a\\x00\\x01\\x00\\x03\\x01\\x01\\x01\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x03\\x04\\x05\\x02\\x01\\x06\\xff\\xc4\\x00\\x15\\x01\\x01\\x01\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x01\\xff\\xda\\x00\\x0c\\x03\\x01\\x00\\x02\\x10\\x03\\x10\\x00\\x00\\x01\\xfb\\x91`\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x07v\\n\\x8d9L\\x8fvF/\\x9bq\\x99\\x0bU@\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x17\\x08.\\xd9@(\\x00\\x00\\xa3xb\\'\\x8a\\xce@\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\t\\xc9\\xaf\\x12\\x80\\x00\\x00\\x00\\x00\\x15\\xf3\\xf68Lw|P\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x005\\xe8i\\x81(\\x00\\x00\\x00\\x00\\x00\\x05|\\xcd\\xbc\\xab!\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x1a6\\xb8\\xeeP\\x00\\x00\\x00\\x00\\x00\\x00\\x14\\xae\\xd73\\x05\\x80\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x0e\\xb9\\x94\\xd6\\x12\\x80\\x00\\x00\\x00\\x00\\x00\\x00\\x8aX\\xcc\\x81`\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x02hg5\\x04\\xa0\\x00\\x00\\x00\\x00\\x00\\x00#\\x92#$X\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x96.\\xcd\\x81(\\x00\\x00\\x00\\x00\\x00\\x00\\x08f\\xaef\\x0b\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x05\\xd2\\xf3\\xcfe\\x00\\x00\\x00\\x00\\x00\\x00\\x01V\\xd4fBhl\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\xf7k\\x17h\\t@\\x00\\x00\\x00\\x00\\x00\\x00\\x02\\xb6n\\x9ee\\x80\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\r\\x9cmBq(\\x00\\x00\\x00\\x00\\x00\\x00\\x00V\\xcd\\xbdF\\xc0\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x05\\xda]\\x1b.z\\x94\\x00\\x00\\x00\\x00\\x00\\x00\\x01\\\\\\xa5\\t`\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x1d\\xea\\xe3\\xe9\\x16D\\xa0\\x00\\x00\\x00\\x00\\x00\\x15\\xb3\\xacV\\xb0\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x16\\xeavl\\t@\\x00\\x00\\x00\\x00\\x01\\x11\\x99\\xc1`\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x01\\xa5g\\x1fZ:\\n\\x00\\x00\\x00\\x00\\x0c\\xfbYV\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00&\\x84m{^\\xc4\\xa0\\x00\\x00\\x008\\xee\\xb9\\x9f\\xc1`\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x1a\\xb3q\\xdc\\xa0\\x00\\x00\\x00!\\x9b\\x83\\x1cX\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00;5\\xfd%\\x00\\x00\\x00\\x01\\xe7\\xa3\\x11\\xdf\\x16\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00,\\xd7\\xd6$\\x12\\x80\\x00\\x00\\x00\\x06mm|\\x9b<\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00:\\x9e\\xf9\\x15\\x82P\\x00\\x00\\x00\\x00\\x01^\\xc0\\xc6\\xe7b\\x85\\x95\\x80\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x16.\\x94\\xafJ\\x80P\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x8a\\x8e\\x991\\x1a\\xb4\\xaa\\xb8\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x02[\\xc5;\\xd3 \\x14\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00!\\xa3\\xa8LF\\x9d\\x1a\\x88\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\xb6V\\xbfg\\xd8\\x05\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\n\\xb46|LU\\xba\\x94\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x03\\xdfu\\x0e,\\x12\\x80\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\xaf`b\\xf9\\xad\\x95g\\x80\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x019n\\xc9(\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\xaddb\\'\\x82\\xc0\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00i\\xe6\\xed\\x01(\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x05|\\xcd\\xack<\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x13j\\x90\\n\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\xca\\x12\\x11@\\x00\\x00\\x00\\x00\\x00\\x1f\\xff\\xc4\\x00%\\x10\\x00\\x02\\x01\\x03\\x03\\x04\\x03\\x01\\x01\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x01\\x02\\x03\\x12@`\\x00\\x11P\\x04023!\"1 \\x80\\xff\\xda\\x00\\x08\\x01\\x01\\x00\\x01\\x05\\x02\\xff\\x00J\\xecqP\\xa4\\xe8Bt!]\\x05Q\\xfc\\x14S\\xa7\\x8blA\\x10\\xb6\\x96 ;SG\\x87G\\x17u\\xa3!\\x88#\\x0b\\x86;\\x07\\x88\\x1d2\\x958r5\\x1eq\\x1f2\\x7fp\\xff\\x00r\\x7f=\\x002\\xa6\\xcf\\xff\\xc4\\x00\\'\\x10\\x00\\x01\\x02\\x05\\x04\\x02\\x03\\x00\\x03\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x01\\x11!\\x001@Q`APa\\xa10q\\x81\\x91\\xb1 \\x80\\xf1\\xff\\xda\\x00\\x08\\x01\\x01\\x00\\x01?!\\xfe\\xca\"\\xca?\\xc8\\x82\\x08\\x988\\xa4\\xee0t\\xa1\\x02\\xcd}\\xa2I\\xf5\\x7f\\ti\\x07{]\\xe2\\x123^\\x1f\\xdc\\x80\\xd2\\xf0\\xa5\\xda0\\xe5\\xec\\xda\\x00@\\x83\\xc6^\\r\\x01\\x08\\xd2&\\x00\\xf7\\x85\\xca\\x0f\\xa1B\\xe1 8D\\xeaI\\xd1\\x8c9pq\\x0fV\\xb4n\\x83\\x06\\x13\\xec\\xeaTV\\x85\\xc6\\n\\x81\\xdci\\x7f\\x0b\\x05K\\xf1J*\\\\\\x1c\\x10TW4\\xdd\\\\\\x11\\xfe\\xcan\\xb64\\xfaX\\xd3\\xe8`\\x9d\\x9ci\\x92\\x17\\x9acw\\xbc\\x12P\\n\\x80iM\\xaep@\\x84\\x85\\xf4\\x10\\x08\\x0bR\\xa09\\xad\\x07\\xb8R\\xc0\\x83\\x98\\x0c)\\xc1Wc\\x81\\t\\x8a\\x89\\xbf\\x18\\x19\\xa9.)\\xc9\\xbe\\xf0?Pjr\\xfd\\xb07\\xfeQO\\xc7\\x83`e\\x08L@CJ6\\x89\\xf0R\\ni\\x1c\\xb8(\\xc4\\x84\\xe6\\t$\\xa9*pe\\x11cF\\xb2l0t\\xae\\x05\\x1f6\\x1c\\x1f\\x85\\r\\x12\\xfbYa.\\xca\\x114e6\\x12p\\x84\\x042<\\xfe\\xcd(.p\\xa2\\\\\\xd4 b\"\\x8f(\\x0ePl1$yC\\r\\xba\\xfe^\\xbe\\x1a(\\x1e<\\xa2\\xa1\\xe3\\r\\x04\\x01\\xe5\\x05!\\x86\\x02>|\\xe0\\x8f\\x9c/\\x8cy\\xdcc\\n\\x00H\\x013\\x08\\xc3]|\\xea\\xc3] \\x82\\t\\x05\\x88\\xc2\\x0c\\x90)\\x81\\n\\x97\\xa1\\x80T4L\\x90!\\xc1\\x9d\\xda\\xee\\x06 \\xd1\\x8cA\\x87v\\xbb\\xc0\\xdd\\xd8\\xe6%\\xe7\\xbd<\\xbc\\xf7\\x87v8\\xdf\\xdc\\x8f\\xc9\\x120\\xa6\\xe6\\xaef\\x10\\xdcC\\x90\\xf87\\xb7dK\\x8cr\\xd7\\x1a\\xfd\\x19.\\x10\\xec\\x8bp\\xdd\\xe4\\xe6\\xb9\\x87#\\xf2lnC\\xe0\\x899\\xae72\\x88+\\x0e\\x0eu\\xb3\\xb89\\xd4\\x14AM\\xc0\\xae`\\xb4$\\x81\\x06\\xd2$\\x81D\\x15\\xce\\x16\\xd7m\"\\x00\\xa6\\x06\\xe7~v\\xd1\\xb9\\x9f\\xb8!\\x00!\\xda\\x8c)\\x86\\x03sQ\\xdb\\xc1cA\\x83\\x19\\x826\\x9b\\xc8\\xdcm#\\xbd\\xa2c\\'nr\\x19;gu\\xd5\\xdb\\x9b\\xae\\xae\\xd9\\x81@^\\x01\\x00\\x03M\\xcc\\x14\\x10u\\x82\\x14\\x16\\xd9E~\\xdd\\xd4S\\xed\\xa3\\xff\\xda\\x00\\x0c\\x03\\x01\\x00\\x02\\x00\\x03\\x00\\x00\\x00\\x10\\xfb\\xef\\xbe\\xfb\\xef\\xbe\\xfb\\xef\\xbe\\xfb\\xef\\xbe\\xfb\\xef\\xbe\\xfb\\xef\\xbe\\xfb\\xef\\xbe\\xfb\\xef\\xbe\\xfb\\xef\\xbe\\xfb\\xef\\xbe\\xfb\\xef\\xbe\\xfb\\xef\\xbe\\xfb\\xef\\xbe\\xfb\\xef\\xbe\\xfb\\xef\\xbe\\xfb\\xef\\xbe\\xfb\\xef\\xbe\\xfb\\xef\\xbe\\xfb\\xef\\xbe\\xfb\\xef\\xbe\\xfb\\xef\\xbe\\xfb\\xef\\xbe\\xfb\\xef\\xbe\\xfb\\xef\\xbe\\xfb\\xef\\xbe\\xfb\\xef\\xbe\\xfb\\xef\\xbe\\xfb\\xed\\xb55\\x9f\\xbe\\xfb\\xef\\xbe\\xfb\\xef\\xbe\\xfb\\xef\\xbe\\xfb\\xef\\xbe\\xfb\\xef\\xbe\\xfb\\xef\\xbe\\xfb\\xef\\xbe\\xfb\\xef\\xbe\\xfb\\xef\\xbe\\xfb\\xe5\\xdc\\xf3\\xcf,\\xcb\\xef\\xbe\\xfb\\xef\\xbe\\xfb\\xef\\xbe\\xfb\\xef\\xbe\\xfb\\xef\\xbe\\xfb\\xef\\xbe\\xfb\\xef\\xbe\\xfb\\xef\\xbe\\xfb\\xef\\xbe\\xfb\\xef<\\xf3\\xcf<\\xf3\\xc2\\xf6\\xfb\\xef\\xbe\\xfb\\xef\\xbe\\xfb\\xef\\xbe\\xfb\\xef\\xbe\\xfb\\xef\\xbe\\xfb\\xef\\xbe\\xfb\\xef\\xbe\\xfb\\xef\\xbe\\xfb\\xe9|\\xf3\\xcf<\\xf3\\xcf<\\xe7\\xef\\xbe\\xfb\\xef\\xbe\\xfb\\xef\\xbe\\xfb\\xef\\xbe\\xfb\\xef\\xbe\\xfb\\xef\\xbe\\xfb\\xef\\xbe\\xfb\\xef\\xbe\\xfb\\xee\\xb4\\xf3\\xcf<\\xf3\\xcf<\\xf2\\xef\\xbe\\xfb\\xef\\xbe\\xfb\\xef\\xbe\\xfb\\xef\\xbe\\xfb\\xef\\xbe\\xfb\\xef\\xbe\\xfb\\xef\\xbe\\xfb\\xef\\xbe\\xfb\\xef\\xaa\\xf3\\xcf<\\xf3\\xcf<\\xf3\\xca>\\xfb\\xef\\xbe\\xfb\\xef\\xbe\\xfb\\xef\\xbe\\xfb\\xef\\xbe\\xfb\\xef\\xbe\\xfb\\xef\\xbe\\xfb\\xef\\xbe\\xfb\\xef\\xbe\\xeb\\xcf<\\xf3\\xcf<\\xf3\\xcf<\\xfb\\xef\\xbe\\xfb\\xef\\xbe\\xfb\\xef\\xbe\\xfb\\xef\\xbe\\xfb\\xef\\xbe\\xfb\\xef\\xbe\\xfb\\xef\\xbe\\xfb\\xef\\xbe\\xfb\\xef<\\xf3\\xcf<\\xf3\\xcf<\\xf3\\xef\\xbe\\xfb\\xef\\xbe\\xfb\\xef\\xbe\\xfb\\xef\\xbe\\xfb\\xef\\xbe\\xfb\\xef\\xbe\\xfb\\xef\\xbe\\xfb\\xef\\xbe\\xfb\\xee\\x9c\\xf3\\xcf<\\xf3\\xcf<\\xf2\\x8f\\xbe\\xfb\\xef\\xbe\\xfb\\xef\\xbe\\xfb\\xef\\xbe\\xfb\\xef\\xbe\\xfb\\xef\\xbe\\xfb\\xef\\xbe\\xfb\\xef\\xbe\\xfb\\xef\\x85\\xf3\\xcf<\\xf3\\xcf<\\xf3\\xcf<\\xfb\\xef\\xbe\\xfb\\xef\\xbe\\xfb\\xef\\xbe\\xfb\\xef\\xbe\\xfb\\xef\\xbe\\xfb\\xef\\xbe\\xfb\\xef\\xbe\\xfb\\xef\\xbew\\xcf<\\xf3\\xcf<\\xf3\\xcf\\xfb\\xef\\xbe\\xfb\\xef\\xbe\\xfb\\xef\\xbe\\xfb\\xef\\xbe\\xfb\\xef\\xbe\\xfb\\xef\\xbe\\xfb\\xef\\xbe\\xfb\\xef\\xbe\\xfb\\xeb|\\xf3\\xcf<\\xf3\\xcf\\xba\\t\\t%\\x04\\xa4\\xce\\x0b\\x1e\\xd4\\x9e#\\x83\\x83\\xb6\\x88\\xb6\\x0e?WJ\\x08,\\xe0T\\x06\\xce#\\x9d\\x0fV\\x98\\xe6g\\xa1\\x82X-Z=\\xc8\\xb3x9\\xd3\\xc6:\\x98\\x9a\\x1ap\\x98\\x8d\\xf0\\xe1c\\x02=\\x81\\xd0\\xb3\\xe1o\\x88\\xfex[\\x08qW\\xce\\x84n\\xae\\x82\\x89\\xdf\\x85\\x90d?_z\\x13\\xa5!\\xe6\\x8e\\x14\\xc9\\xee\\xd0\\x86\\x06\\xfe\\x18N\\xf7B\\x19\\xee|<7\\x99\\xf8\\xd0\\x9f3\\xe1\\xe1\\x94nt#\\x8e\\xdb\\xc7\\x0c\\xa3d<\\xe8N\\x85\\x1f\\x9e\\x1a\\x02\\xcc\\x1et \\xc8L\\x19\\xa8\\x92\\xe4\\x9e\\x16,\\xe7\\xd5\\xd0\\x83\\xc1\\t,,\\xebF\\n\\xa0\\x02xR\\x03\\x04\\xa2Q@\\xc9\\xc4>\\x9d\\x04 3b\\x80\\x01qg\\x0e9\\xa0~\\xb4\\x12\\x86\\xc9\\x1e!\\xc6\\xef\\xcbA7WF\\xc7\\xc7\\x0f\\x10f~\\xf4\\x1fQ\\xc9v\\xe1\\xfc\\xb2\\xf8\\xd0q-\\xbf\\xf7}p\\xf2\\xc1\\x9b\\x07m\\x07|y1\\x9fJx$|t\\xe1I\\x9e\\xc6\\x08\\xc0\\xcfB\\xcf\\xcc\\xaf0jK\\xbc\\x17~\\rH\\t\\xedI\\x82\\x9d\\xa9/\\\\t4\\x9e6;_\\xc1\\xedh\\xfb\\xd0\\xf2\\xa3d\\xc6\\xe7\\x04\\xdd]b\\x13m\\x0f\\x94\\xf6\\x9bcC$\\x97p9\\xd4!\\xbb\\xa2m\\x13\\x03s\\x07\\x81\\x98X\\x9b\\xb4M\\xff\\x00e\\xe6fT\\xf0J\\xf1\\xd3\\xd7\\t\\xc4l\\x87\\xdd%\\x15\\x95\\xb5tT\\xf4\\xb4\\xff\\x00M\\xeanF>\\xac\\x95\\xc1`\\x18\\xb4\\x99mn0\\x0c\\xb4a\\x87\\xcd_>\\xac\\xdd\\x04|\\xe8\\xd3\\x03\\xbb\\xcf\\xaadwy\\xd1\\xbd.?\\x1e\\xafZ\\x9f\\xc6\\x8c\\x89\\xb3:\\xe8\\x00\\x1e\\xafP\\x04\\xa8\\x8b2\\xd1}U?>\\xbfE_\\xce\\x8bdE\\x84\\xf7\\x7f\\x9f]\\x80\\x16\\x13\\xdc\\xfe4Q\\x97)\\x00cEf\\xae\\xd5\\x9b\\xeb\\x95\\x9a\\x1bVM\\x1bj!\\x1c4@\\xc7&\\x05Y\\xad\\x0b\\xf0:\\x1c\\r\\x8a\\xc0\\xb1\\xc1\\xe8\\xd2\\xc7\\x06\\x0e\\x85-@\\xb5p\\xa8\\xcd\\x8d\\xbd\\xda\\xa0\\xe4\\xcd\\xc5\\xdf\\x83\\x83\\x97\\'\\x13j\\x94\\xecw;Sb\\x8d\\x89\\x86\\x82\\x83\\x0e\\xbd\\xe7\\xb5\\x15{\\x9fk\\xc3\\x95s\\x97cRa\\xd7\\xbcv\\xe7\\xf0A\\xd4\\xbc\\xecT\\x13\\xdeg\\xf5\\xc5\\xc9=\\xa6\\x7fu$\\x1dK\\xc6\\xe7;\\x83\\x12\\xbf\\x80\\xa84?\\xa2\\xce>M{#\\xde\\xa4\\xd7\\xf2-9\\xbaW\\x1d\\xb5C\\x07R\\xe1\\xb1\\xc8\\xe5\\x83\\xa9q\\xdc\\xa4\\xaf;ng-\\xab\\xc1\\xbdD!\\x93\\x83\\xf3@\\x00\\x04\\x1c\\x95\\x04D\\x92\\xa6\\x10\\xc9\\xc5\\xf8\\xa9m^\\x1d\\xb9\\x84<\\xfe\\xf9\\xfcP\\x83\\x06\\x07)Xd\\xc1\\xa9y\\xf1\\xf0?<\\xb4\\xb3\\x16\\xe0\\xa1\\xc8\\xf3\\xb0\\xd9\\xcbGc\\xce\\xc3u6A\\xbcyPA-\\x01QR\\xd3\\xb9\\xfa\\xe5\\xf1\\xd6\\xc3\\xb1\\xfa\\xa0\\x82T\\')\\xb1+?c.cbV~\\xcc\\xb9D*&\\xd9\\xd7#\\x99\\xcb\\xa2,\\x9d39