Upload folder using huggingface_hub (part 19)
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- .gitattributes +4 -0
- toolbench/toolenv/tools/News_Media/fresh_crypto_news/api.py +29 -0
- toolbench/toolenv/tools/News_Media/gaming_news/api.py +88 -0
- toolbench/toolenv/tools/News_Media/gamings/api.py +29 -0
- toolbench/toolenv/tools/News_Media/german_police_and_crime_news_live.json +0 -0
- toolbench/toolenv/tools/News_Media/german_police_and_crime_news_live/api.py +50 -0
- toolbench/toolenv/tools/News_Media/get_all_news_were_word/api.py +50 -0
- toolbench/toolenv/tools/News_Media/get_crypto_news_from_different_sources/api.py +50 -0
- toolbench/toolenv/tools/News_Media/get_top_news_headlines_by_region.json +32 -0
- toolbench/toolenv/tools/News_Media/getmedia.json +62 -0
- toolbench/toolenv/tools/News_Media/getmedia/api.py +31 -0
- toolbench/toolenv/tools/News_Media/ghost.json +551 -0
- toolbench/toolenv/tools/News_Media/glasgow_live_news/api.py +50 -0
- toolbench/toolenv/tools/News_Media/global_climate_change/api.py +50 -0
- toolbench/toolenv/tools/News_Media/global_climatechange_news/api.py +50 -0
- toolbench/toolenv/tools/News_Media/global_news_api/api.py +71 -0
- toolbench/toolenv/tools/News_Media/global_recession_live.json +275 -0
- toolbench/toolenv/tools/News_Media/global_recession_live/api.py +50 -0
- toolbench/toolenv/tools/News_Media/global_stock_news/api.py +61 -0
- toolbench/toolenv/tools/News_Media/gnepro.json +181 -0
- toolbench/toolenv/tools/News_Media/go_hackernews/api.py +140 -0
- toolbench/toolenv/tools/News_Media/golf_news_live/api.py +50 -0
- toolbench/toolenv/tools/News_Media/google_news.json +0 -0
- toolbench/toolenv/tools/News_Media/google_news/api.py +256 -0
- toolbench/toolenv/tools/News_Media/google_news_api.json +136 -0
- toolbench/toolenv/tools/News_Media/google_news_api/api.py +100 -0
- toolbench/toolenv/tools/News_Media/goverlytics.json +167 -0
- toolbench/toolenv/tools/News_Media/goverlytics/api.py +99 -0
- toolbench/toolenv/tools/News_Media/greek_news_in_english.json +691 -0
- toolbench/toolenv/tools/News_Media/greek_news_in_english/api.py +71 -0
- toolbench/toolenv/tools/News_Media/green_gold.json +321 -0
- toolbench/toolenv/tools/News_Media/green_gold/api.py +50 -0
- toolbench/toolenv/tools/News_Media/green_pass_live_italy/api.py +50 -0
- toolbench/toolenv/tools/News_Media/guardian.json +480 -0
- toolbench/toolenv/tools/News_Media/guardiola_news_live/api.py +52 -0
- toolbench/toolenv/tools/News_Media/guitar_haven/api.py +155 -0
- toolbench/toolenv/tools/News_Media/h_crypto_news.json +147 -0
- toolbench/toolenv/tools/News_Media/h_crypto_news/api.py +29 -0
- toolbench/toolenv/tools/News_Media/hacker_news_graphql_proxy.json +30 -0
- toolbench/toolenv/tools/News_Media/hacker_noon.json +46 -0
- toolbench/toolenv/tools/News_Media/hackers_updates/api.py +54 -0
- toolbench/toolenv/tools/News_Media/haro_query_search.json +32 -0
- toolbench/toolenv/tools/News_Media/harry_first/api.py +50 -0
- toolbench/toolenv/tools/News_Media/harry_potter_news/api.py +50 -0
- toolbench/toolenv/tools/News_Media/heath_news/api.py +29 -0
- toolbench/toolenv/tools/News_Media/horoscope/api.py +72 -0
- toolbench/toolenv/tools/News_Media/hot_air_live/api.py +50 -0
- toolbench/toolenv/tools/News_Media/hot_breaking_news_latest_news/api.py +50 -0
- toolbench/toolenv/tools/News_Media/https_api_openload_co1.json +24 -0
- toolbench/toolenv/tools/News_Media/huffingtonpostpollster.json +246 -0
.gitattributes
CHANGED
|
@@ -72,3 +72,7 @@ toolbench/toolenv/tools/Food/tasty.json filter=lfs diff=lfs merge=lfs -text
|
|
| 72 |
toolbench/toolenv/tools/Gaming/cod_api_2_0.json filter=lfs diff=lfs merge=lfs -text
|
| 73 |
toolbench/toolenv/tools/Mapping/boundaries_io.json filter=lfs diff=lfs merge=lfs -text
|
| 74 |
toolbench/toolenv/tools/Medical/the_cancer_imaging_archive.json filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 72 |
toolbench/toolenv/tools/Gaming/cod_api_2_0.json filter=lfs diff=lfs merge=lfs -text
|
| 73 |
toolbench/toolenv/tools/Mapping/boundaries_io.json filter=lfs diff=lfs merge=lfs -text
|
| 74 |
toolbench/toolenv/tools/Medical/the_cancer_imaging_archive.json filter=lfs diff=lfs merge=lfs -text
|
| 75 |
+
toolbench/toolenv/tools/News_Media/imdb.json filter=lfs diff=lfs merge=lfs -text
|
| 76 |
+
toolbench/toolenv/tools/News_Media/online_movie_database.json filter=lfs diff=lfs merge=lfs -text
|
| 77 |
+
toolbench/toolenv/tools/News_Media/reuters_business_and_financial_news.json filter=lfs diff=lfs merge=lfs -text
|
| 78 |
+
toolbench/toolenv/tools/Other/quran_com.json filter=lfs diff=lfs merge=lfs -text
|
toolbench/toolenv/tools/News_Media/fresh_crypto_news/api.py
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import requests
|
| 2 |
+
import json
|
| 3 |
+
from datetime import date, datetime, timedelta
|
| 4 |
+
import os
|
| 5 |
+
|
| 6 |
+
from typing import Optional, Dict, Union, List
|
| 7 |
+
|
| 8 |
+
|
| 9 |
+
def get(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 10 |
+
"""
|
| 11 |
+
"Returns URL's from scraped websites in JSON format."
|
| 12 |
+
|
| 13 |
+
"""
|
| 14 |
+
url = f"https://fresh-crypto-news.p.rapidapi.com/"
|
| 15 |
+
querystring = {}
|
| 16 |
+
|
| 17 |
+
headers = {
|
| 18 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 19 |
+
"X-RapidAPI-Host": "fresh-crypto-news.p.rapidapi.com"
|
| 20 |
+
}
|
| 21 |
+
|
| 22 |
+
|
| 23 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 24 |
+
try:
|
| 25 |
+
observation = response.json()
|
| 26 |
+
except:
|
| 27 |
+
observation = response.text
|
| 28 |
+
return observation
|
| 29 |
+
|
toolbench/toolenv/tools/News_Media/gaming_news/api.py
ADDED
|
@@ -0,0 +1,88 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import requests
|
| 2 |
+
import json
|
| 3 |
+
from datetime import date, datetime, timedelta
|
| 4 |
+
import os
|
| 5 |
+
|
| 6 |
+
from typing import Optional, Dict, Union, List
|
| 7 |
+
|
| 8 |
+
|
| 9 |
+
def get_individual_publisher_news(publisherid: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 10 |
+
"""
|
| 11 |
+
"Gets News about a specific Gaming Publisher.
|
| 12 |
+
|
| 13 |
+
Available Publishers (36):
|
| 14 |
+
- rockstar (Rockstar Games)
|
| 15 |
+
- ubisoft
|
| 16 |
+
- valve
|
| 17 |
+
- activision
|
| 18 |
+
- blizzard
|
| 19 |
+
- bethesda
|
| 20 |
+
- ea (Electronic Arts)
|
| 21 |
+
- taketwo (Take-Two)
|
| 22 |
+
- bandai
|
| 23 |
+
- epic (Epic Games)
|
| 24 |
+
- nintendo
|
| 25 |
+
- capcom
|
| 26 |
+
- squareenix (Square Enix)
|
| 27 |
+
- playstation
|
| 28 |
+
- microsoft
|
| 29 |
+
- xbox
|
| 30 |
+
- riot
|
| 31 |
+
- 2k
|
| 32 |
+
- amazon (Amazon Games)
|
| 33 |
+
- cdprojektred (CD Projekt RED)
|
| 34 |
+
- codemasters
|
| 35 |
+
- crytek
|
| 36 |
+
- gameloft
|
| 37 |
+
- konami
|
| 38 |
+
- mojang
|
| 39 |
+
- supercell
|
| 40 |
+
- tencent
|
| 41 |
+
- origin
|
| 42 |
+
- respawn
|
| 43 |
+
- niantic
|
| 44 |
+
- naughtydog (Naughty Dog)
|
| 45 |
+
- treyarch
|
| 46 |
+
- frontier
|
| 47 |
+
- raven
|
| 48 |
+
- infinityward
|
| 49 |
+
- sledgehammer"
|
| 50 |
+
|
| 51 |
+
"""
|
| 52 |
+
url = f"https://gaming-news1.p.rapidapi.com/news/{publisherid}"
|
| 53 |
+
querystring = {}
|
| 54 |
+
|
| 55 |
+
headers = {
|
| 56 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 57 |
+
"X-RapidAPI-Host": "gaming-news1.p.rapidapi.com"
|
| 58 |
+
}
|
| 59 |
+
|
| 60 |
+
|
| 61 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 62 |
+
try:
|
| 63 |
+
observation = response.json()
|
| 64 |
+
except:
|
| 65 |
+
observation = response.text
|
| 66 |
+
return observation
|
| 67 |
+
|
| 68 |
+
def get_all_news(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 69 |
+
"""
|
| 70 |
+
"This endpoint will return back all news about gaming publisher from all over the world."
|
| 71 |
+
|
| 72 |
+
"""
|
| 73 |
+
url = f"https://gaming-news1.p.rapidapi.com/news"
|
| 74 |
+
querystring = {}
|
| 75 |
+
|
| 76 |
+
headers = {
|
| 77 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 78 |
+
"X-RapidAPI-Host": "gaming-news1.p.rapidapi.com"
|
| 79 |
+
}
|
| 80 |
+
|
| 81 |
+
|
| 82 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 83 |
+
try:
|
| 84 |
+
observation = response.json()
|
| 85 |
+
except:
|
| 86 |
+
observation = response.text
|
| 87 |
+
return observation
|
| 88 |
+
|
toolbench/toolenv/tools/News_Media/gamings/api.py
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import requests
|
| 2 |
+
import json
|
| 3 |
+
from datetime import date, datetime, timedelta
|
| 4 |
+
import os
|
| 5 |
+
|
| 6 |
+
from typing import Optional, Dict, Union, List
|
| 7 |
+
|
| 8 |
+
|
| 9 |
+
def gaming_news(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 10 |
+
"""
|
| 11 |
+
"This will help you to get news easily"
|
| 12 |
+
|
| 13 |
+
"""
|
| 14 |
+
url = f"https://gamings.p.rapidapi.com/news"
|
| 15 |
+
querystring = {}
|
| 16 |
+
|
| 17 |
+
headers = {
|
| 18 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 19 |
+
"X-RapidAPI-Host": "gamings.p.rapidapi.com"
|
| 20 |
+
}
|
| 21 |
+
|
| 22 |
+
|
| 23 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 24 |
+
try:
|
| 25 |
+
observation = response.json()
|
| 26 |
+
except:
|
| 27 |
+
observation = response.text
|
| 28 |
+
return observation
|
| 29 |
+
|
toolbench/toolenv/tools/News_Media/german_police_and_crime_news_live.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
toolbench/toolenv/tools/News_Media/german_police_and_crime_news_live/api.py
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import requests
|
| 2 |
+
import json
|
| 3 |
+
from datetime import date, datetime, timedelta
|
| 4 |
+
import os
|
| 5 |
+
|
| 6 |
+
from typing import Optional, Dict, Union, List
|
| 7 |
+
|
| 8 |
+
|
| 9 |
+
def get_individual_source_news(newspaperid: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 10 |
+
"""
|
| 11 |
+
"This endpoint will return back all news about police, crime, accidents and more like this from germany from a specific news source."
|
| 12 |
+
|
| 13 |
+
"""
|
| 14 |
+
url = f"https://german-police-and-crime-news-live.p.rapidapi.com/news/{newspaperid}"
|
| 15 |
+
querystring = {}
|
| 16 |
+
|
| 17 |
+
headers = {
|
| 18 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 19 |
+
"X-RapidAPI-Host": "german-police-and-crime-news-live.p.rapidapi.com"
|
| 20 |
+
}
|
| 21 |
+
|
| 22 |
+
|
| 23 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 24 |
+
try:
|
| 25 |
+
observation = response.json()
|
| 26 |
+
except:
|
| 27 |
+
observation = response.text
|
| 28 |
+
return observation
|
| 29 |
+
|
| 30 |
+
def get_all_police_news(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 31 |
+
"""
|
| 32 |
+
"This endpoint will return back all news about police, crime, accidents and more like this from germany."
|
| 33 |
+
|
| 34 |
+
"""
|
| 35 |
+
url = f"https://german-police-and-crime-news-live.p.rapidapi.com/news"
|
| 36 |
+
querystring = {}
|
| 37 |
+
|
| 38 |
+
headers = {
|
| 39 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 40 |
+
"X-RapidAPI-Host": "german-police-and-crime-news-live.p.rapidapi.com"
|
| 41 |
+
}
|
| 42 |
+
|
| 43 |
+
|
| 44 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 45 |
+
try:
|
| 46 |
+
observation = response.json()
|
| 47 |
+
except:
|
| 48 |
+
observation = response.text
|
| 49 |
+
return observation
|
| 50 |
+
|
toolbench/toolenv/tools/News_Media/get_all_news_were_word/api.py
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import requests
|
| 2 |
+
import json
|
| 3 |
+
from datetime import date, datetime, timedelta
|
| 4 |
+
import os
|
| 5 |
+
|
| 6 |
+
from typing import Optional, Dict, Union, List
|
| 7 |
+
|
| 8 |
+
|
| 9 |
+
def get_all_news_by_specific_word(newspaperid: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 10 |
+
"""
|
| 11 |
+
"This endpoind will return all news about word in the code"
|
| 12 |
+
|
| 13 |
+
"""
|
| 14 |
+
url = f"https://get-all-news-were-word.p.rapidapi.com/news/{newspaperid}"
|
| 15 |
+
querystring = {}
|
| 16 |
+
|
| 17 |
+
headers = {
|
| 18 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 19 |
+
"X-RapidAPI-Host": "get-all-news-were-word.p.rapidapi.com"
|
| 20 |
+
}
|
| 21 |
+
|
| 22 |
+
|
| 23 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 24 |
+
try:
|
| 25 |
+
observation = response.json()
|
| 26 |
+
except:
|
| 27 |
+
observation = response.text
|
| 28 |
+
return observation
|
| 29 |
+
|
| 30 |
+
def get_individual_news_by_word(newspaperid: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 31 |
+
"""
|
| 32 |
+
"Get individual news by word"
|
| 33 |
+
|
| 34 |
+
"""
|
| 35 |
+
url = f"https://get-all-news-were-word.p.rapidapi.com/news/{newspaperid}"
|
| 36 |
+
querystring = {}
|
| 37 |
+
|
| 38 |
+
headers = {
|
| 39 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 40 |
+
"X-RapidAPI-Host": "get-all-news-were-word.p.rapidapi.com"
|
| 41 |
+
}
|
| 42 |
+
|
| 43 |
+
|
| 44 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 45 |
+
try:
|
| 46 |
+
observation = response.json()
|
| 47 |
+
except:
|
| 48 |
+
observation = response.text
|
| 49 |
+
return observation
|
| 50 |
+
|
toolbench/toolenv/tools/News_Media/get_crypto_news_from_different_sources/api.py
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import requests
|
| 2 |
+
import json
|
| 3 |
+
from datetime import date, datetime, timedelta
|
| 4 |
+
import os
|
| 5 |
+
|
| 6 |
+
from typing import Optional, Dict, Union, List
|
| 7 |
+
|
| 8 |
+
|
| 9 |
+
def get_bitcoin_news_from_specific_source(name: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 10 |
+
"""
|
| 11 |
+
"Get Bitcoin news from specific source"
|
| 12 |
+
|
| 13 |
+
"""
|
| 14 |
+
url = f"https://get-crypto-news-from-different-sources.p.rapidapi.com/{name}"
|
| 15 |
+
querystring = {}
|
| 16 |
+
|
| 17 |
+
headers = {
|
| 18 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 19 |
+
"X-RapidAPI-Host": "get-crypto-news-from-different-sources.p.rapidapi.com"
|
| 20 |
+
}
|
| 21 |
+
|
| 22 |
+
|
| 23 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 24 |
+
try:
|
| 25 |
+
observation = response.json()
|
| 26 |
+
except:
|
| 27 |
+
observation = response.text
|
| 28 |
+
return observation
|
| 29 |
+
|
| 30 |
+
def get_scrapping_source_and_how_to_use(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 31 |
+
"""
|
| 32 |
+
"It will give detailed info about how the api could be used and will list down all the source"
|
| 33 |
+
|
| 34 |
+
"""
|
| 35 |
+
url = f"https://get-crypto-news-from-different-sources.p.rapidapi.com/"
|
| 36 |
+
querystring = {}
|
| 37 |
+
|
| 38 |
+
headers = {
|
| 39 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 40 |
+
"X-RapidAPI-Host": "get-crypto-news-from-different-sources.p.rapidapi.com"
|
| 41 |
+
}
|
| 42 |
+
|
| 43 |
+
|
| 44 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 45 |
+
try:
|
| 46 |
+
observation = response.json()
|
| 47 |
+
except:
|
| 48 |
+
observation = response.text
|
| 49 |
+
return observation
|
| 50 |
+
|
toolbench/toolenv/tools/News_Media/get_top_news_headlines_by_region.json
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"product_id": "api_12088752-411d-499d-a040-3cb678a77076",
|
| 3 |
+
"tool_description": "This API gets top news and headlines based on a country and region (city, state). If you want full fledged news API, check out https://rapidapi.com/jaypat87/api/latest-news1",
|
| 4 |
+
"home_url": "https://rapidapi.com/jaypat87/api/get-top-news-headlines-by-region/",
|
| 5 |
+
"name": "Get top news headlines by region",
|
| 6 |
+
"title": "Get top news headlines by region",
|
| 7 |
+
"pricing": "FREEMIUM",
|
| 8 |
+
"tool_name": "Get top news headlines by region",
|
| 9 |
+
"score": {
|
| 10 |
+
"avgServiceLevel": 100,
|
| 11 |
+
"avgLatency": 2580,
|
| 12 |
+
"avgSuccessRate": 100,
|
| 13 |
+
"popularityScore": 8.3,
|
| 14 |
+
"__typename": "Score"
|
| 15 |
+
},
|
| 16 |
+
"host": "get-top-news-headlines-by-region.p.rapidapi.com",
|
| 17 |
+
"api_list": [
|
| 18 |
+
{
|
| 19 |
+
"name": "Get latest headlines",
|
| 20 |
+
"url": "https://get-top-news-headlines-by-region.p.rapidapi.com/",
|
| 21 |
+
"description": "get latest headlines by specifying country and region (city, state).",
|
| 22 |
+
"method": "POST",
|
| 23 |
+
"required_parameters": [],
|
| 24 |
+
"optional_parameters": [],
|
| 25 |
+
"code": "import requests\n\nurl = \"https://get-top-news-headlines-by-region.p.rapidapi.com/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"get-top-news-headlines-by-region.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
|
| 26 |
+
"convert_code": "import requests\n\nurl = \"https://get-top-news-headlines-by-region.p.rapidapi.com/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"get-top-news-headlines-by-region.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
|
| 27 |
+
"test_endpoint": "",
|
| 28 |
+
"statuscode": 200,
|
| 29 |
+
"schema": {}
|
| 30 |
+
}
|
| 31 |
+
]
|
| 32 |
+
}
|
toolbench/toolenv/tools/News_Media/getmedia.json
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"product_id": "api_42055b27-b7c0-4fe2-9881-34dfacc87cb3",
|
| 3 |
+
"tool_description": "Get media files",
|
| 4 |
+
"home_url": "https://rapidapi.com/prentic.anes/api/getmedia/",
|
| 5 |
+
"name": "getMedia",
|
| 6 |
+
"title": "getMedia",
|
| 7 |
+
"pricing": "FREE",
|
| 8 |
+
"tool_name": "getMedia",
|
| 9 |
+
"score": {
|
| 10 |
+
"avgServiceLevel": 0,
|
| 11 |
+
"avgLatency": 0,
|
| 12 |
+
"avgSuccessRate": 0,
|
| 13 |
+
"popularityScore": 0.1,
|
| 14 |
+
"__typename": "Score"
|
| 15 |
+
},
|
| 16 |
+
"host": "getmedia.p.rapidapi.com",
|
| 17 |
+
"api_list": [
|
| 18 |
+
{
|
| 19 |
+
"name": "get media",
|
| 20 |
+
"url": "https://getmedia.p.rapidapi.com/get-media",
|
| 21 |
+
"description": "Get Media",
|
| 22 |
+
"method": "GET",
|
| 23 |
+
"required_parameters": [],
|
| 24 |
+
"optional_parameters": [
|
| 25 |
+
{
|
| 26 |
+
"name": "title",
|
| 27 |
+
"type": "STRING",
|
| 28 |
+
"description": "",
|
| 29 |
+
"default": ""
|
| 30 |
+
}
|
| 31 |
+
],
|
| 32 |
+
"code": "import requests\n\nurl = \"https://getmedia.p.rapidapi.com/get-media\"\nquerystring = {\"title\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"getmedia.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n",
|
| 33 |
+
"convert_code": "import requests\n\nurl = \"https://getmedia.p.rapidapi.com/get-media\"\nquerystring = {\"title\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"getmedia.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n",
|
| 34 |
+
"test_endpoint": ""
|
| 35 |
+
},
|
| 36 |
+
{
|
| 37 |
+
"name": "save media",
|
| 38 |
+
"url": "https://getmedia.p.rapidapi.com/post",
|
| 39 |
+
"description": "Save Media",
|
| 40 |
+
"method": "POST",
|
| 41 |
+
"required_parameters": [],
|
| 42 |
+
"optional_parameters": [
|
| 43 |
+
{
|
| 44 |
+
"name": "id",
|
| 45 |
+
"type": "NUMBER",
|
| 46 |
+
"description": "",
|
| 47 |
+
"default": ""
|
| 48 |
+
},
|
| 49 |
+
{
|
| 50 |
+
"name": "title",
|
| 51 |
+
"type": "STRING",
|
| 52 |
+
"description": "",
|
| 53 |
+
"default": ""
|
| 54 |
+
}
|
| 55 |
+
],
|
| 56 |
+
"code": "import requests\n\nurl = \"https://getmedia.p.rapidapi.com/post\"\nquerystring = {\"id\": \"\", \"title\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"getmedia.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n",
|
| 57 |
+
"convert_code": "import requests\n\nurl = \"https://getmedia.p.rapidapi.com/post\"\nquerystring = {\"id\": \"\", \"title\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"getmedia.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n",
|
| 58 |
+
"test_endpoint": ""
|
| 59 |
+
}
|
| 60 |
+
],
|
| 61 |
+
"standardized_name": "getmedia"
|
| 62 |
+
}
|
toolbench/toolenv/tools/News_Media/getmedia/api.py
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import requests
|
| 2 |
+
import json
|
| 3 |
+
from datetime import date, datetime, timedelta
|
| 4 |
+
import os
|
| 5 |
+
|
| 6 |
+
from typing import Optional, Dict, Union, List
|
| 7 |
+
|
| 8 |
+
|
| 9 |
+
def get_media(title: str=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 10 |
+
"""
|
| 11 |
+
"Get Media"
|
| 12 |
+
|
| 13 |
+
"""
|
| 14 |
+
url = f"https://getmedia.p.rapidapi.com/get-media"
|
| 15 |
+
querystring = {}
|
| 16 |
+
if title:
|
| 17 |
+
querystring['title'] = title
|
| 18 |
+
|
| 19 |
+
headers = {
|
| 20 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 21 |
+
"X-RapidAPI-Host": "getmedia.p.rapidapi.com"
|
| 22 |
+
}
|
| 23 |
+
|
| 24 |
+
|
| 25 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 26 |
+
try:
|
| 27 |
+
observation = response.json()
|
| 28 |
+
except:
|
| 29 |
+
observation = response.text
|
| 30 |
+
return observation
|
| 31 |
+
|
toolbench/toolenv/tools/News_Media/ghost.json
ADDED
|
@@ -0,0 +1,551 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"product_id": "615",
|
| 3 |
+
"tool_description": "Ghost is a fully open source, hackable platform for building and running a modern online publication.",
|
| 4 |
+
"home_url": "https://rapidapi.com/dimas/api/Ghost/",
|
| 5 |
+
"name": "Ghost",
|
| 6 |
+
"title": "Ghost",
|
| 7 |
+
"pricing": "FREE",
|
| 8 |
+
"tool_name": "Ghost",
|
| 9 |
+
"score": {
|
| 10 |
+
"avgServiceLevel": 0,
|
| 11 |
+
"avgLatency": 127264,
|
| 12 |
+
"avgSuccessRate": 0,
|
| 13 |
+
"popularityScore": 4.3,
|
| 14 |
+
"__typename": "Score"
|
| 15 |
+
},
|
| 16 |
+
"host": "GhostdimasV1.p.rapidapi.com",
|
| 17 |
+
"api_list": [
|
| 18 |
+
{
|
| 19 |
+
"name": "getAllPosts",
|
| 20 |
+
"url": "https://GhostdimasV1.p.rapidapi.com/getAllPosts",
|
| 21 |
+
"description": "The getAllPosts endpoint allows you to browse all published posts on a particular blog.",
|
| 22 |
+
"method": "POST",
|
| 23 |
+
"required_parameters": [
|
| 24 |
+
{
|
| 25 |
+
"name": "blogUrl",
|
| 26 |
+
"type": "STRING",
|
| 27 |
+
"description": "Link of the blog on which we will receive data.",
|
| 28 |
+
"default": ""
|
| 29 |
+
},
|
| 30 |
+
{
|
| 31 |
+
"name": "clientId",
|
| 32 |
+
"type": "CREDENTIALS",
|
| 33 |
+
"description": "API client id.",
|
| 34 |
+
"default": ""
|
| 35 |
+
},
|
| 36 |
+
{
|
| 37 |
+
"name": "clientSecret",
|
| 38 |
+
"type": "CREDENTIALS",
|
| 39 |
+
"description": "API client secret.",
|
| 40 |
+
"default": ""
|
| 41 |
+
}
|
| 42 |
+
],
|
| 43 |
+
"optional_parameters": [
|
| 44 |
+
{
|
| 45 |
+
"name": "page",
|
| 46 |
+
"type": "NUMBER",
|
| 47 |
+
"description": "Which page of paginated results to retrieve.",
|
| 48 |
+
"default": ""
|
| 49 |
+
},
|
| 50 |
+
{
|
| 51 |
+
"name": "limit",
|
| 52 |
+
"type": "NUMBER",
|
| 53 |
+
"description": "How many posts to retrieve.",
|
| 54 |
+
"default": ""
|
| 55 |
+
},
|
| 56 |
+
{
|
| 57 |
+
"name": "order",
|
| 58 |
+
"type": "STRING",
|
| 59 |
+
"description": "Choose which field to order by and direction of ordering.Example - asc id.",
|
| 60 |
+
"default": ""
|
| 61 |
+
},
|
| 62 |
+
{
|
| 63 |
+
"name": "resource",
|
| 64 |
+
"type": "STRING",
|
| 65 |
+
"description": "Id or slug changes query to a read request.",
|
| 66 |
+
"default": ""
|
| 67 |
+
},
|
| 68 |
+
{
|
| 69 |
+
"name": "include",
|
| 70 |
+
"type": "SELECT",
|
| 71 |
+
"description": "Include related data.",
|
| 72 |
+
"default": ""
|
| 73 |
+
},
|
| 74 |
+
{
|
| 75 |
+
"name": "showAllPosts",
|
| 76 |
+
"type": "SELECT",
|
| 77 |
+
"description": "Retrieve all posts.",
|
| 78 |
+
"default": ""
|
| 79 |
+
},
|
| 80 |
+
{
|
| 81 |
+
"name": "filter",
|
| 82 |
+
"type": "STRING",
|
| 83 |
+
"description": "Use Ghost Query Language to build complex query.Example - featured:false.",
|
| 84 |
+
"default": ""
|
| 85 |
+
},
|
| 86 |
+
{
|
| 87 |
+
"name": "fields",
|
| 88 |
+
"type": "LIST",
|
| 89 |
+
"description": "Allows you to specify which resource fields to retrieve rather than retrieving the. whole object.",
|
| 90 |
+
"default": ""
|
| 91 |
+
}
|
| 92 |
+
],
|
| 93 |
+
"code": "import requests\n\nurl = \"https://GhostdimasV1.p.rapidapi.com/getAllPosts\"\nquerystring = {\"page\": \"\", \"blogUrl\": \"\", \"clientId\": \"\", \"limit\": \"\", \"clientSecret\": \"\", \"order\": \"\", \"resource\": \"\", \"include\": \"\", \"showAllPosts\": \"\", \"filter\": \"\", \"fields\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"GhostdimasV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n",
|
| 94 |
+
"convert_code": "import requests\n\nurl = \"https://GhostdimasV1.p.rapidapi.com/getAllPosts\"\nquerystring = {\"page\": \"\", \"blogUrl\": \"\", \"clientId\": \"\", \"limit\": \"\", \"clientSecret\": \"\", \"order\": \"\", \"resource\": \"\", \"include\": \"\", \"showAllPosts\": \"\", \"filter\": \"\", \"fields\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"GhostdimasV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n",
|
| 95 |
+
"test_endpoint": ""
|
| 96 |
+
},
|
| 97 |
+
{
|
| 98 |
+
"name": "getAllTags",
|
| 99 |
+
"url": "https://GhostdimasV1.p.rapidapi.com/getAllTags",
|
| 100 |
+
"description": "The getAllTags endpoints allow you to browse all tags on a particular blog.",
|
| 101 |
+
"method": "POST",
|
| 102 |
+
"required_parameters": [
|
| 103 |
+
{
|
| 104 |
+
"name": "clientSecret",
|
| 105 |
+
"type": "CREDENTIALS",
|
| 106 |
+
"description": "API client secret.",
|
| 107 |
+
"default": ""
|
| 108 |
+
},
|
| 109 |
+
{
|
| 110 |
+
"name": "blogUrl",
|
| 111 |
+
"type": "STRING",
|
| 112 |
+
"description": "Link of the blog on which we will receive data.",
|
| 113 |
+
"default": ""
|
| 114 |
+
},
|
| 115 |
+
{
|
| 116 |
+
"name": "clientId",
|
| 117 |
+
"type": "CREDENTIALS",
|
| 118 |
+
"description": "API client id.",
|
| 119 |
+
"default": ""
|
| 120 |
+
}
|
| 121 |
+
],
|
| 122 |
+
"optional_parameters": [
|
| 123 |
+
{
|
| 124 |
+
"name": "order",
|
| 125 |
+
"type": "STRING",
|
| 126 |
+
"description": "Choose which field to order by and direction of ordering.Example - asc id.",
|
| 127 |
+
"default": ""
|
| 128 |
+
},
|
| 129 |
+
{
|
| 130 |
+
"name": "includeCountPosts",
|
| 131 |
+
"type": "SELECT",
|
| 132 |
+
"description": "Include related count posts data.",
|
| 133 |
+
"default": ""
|
| 134 |
+
},
|
| 135 |
+
{
|
| 136 |
+
"name": "showAllPosts",
|
| 137 |
+
"type": "SELECT",
|
| 138 |
+
"description": "Retrieve all posts on page.",
|
| 139 |
+
"default": ""
|
| 140 |
+
},
|
| 141 |
+
{
|
| 142 |
+
"name": "limit",
|
| 143 |
+
"type": "NUMBER",
|
| 144 |
+
"description": "How many posts to retrieve.",
|
| 145 |
+
"default": ""
|
| 146 |
+
},
|
| 147 |
+
{
|
| 148 |
+
"name": "page",
|
| 149 |
+
"type": "NUMBER",
|
| 150 |
+
"description": "Which page of paginated results to retrieve.",
|
| 151 |
+
"default": ""
|
| 152 |
+
},
|
| 153 |
+
{
|
| 154 |
+
"name": "resource",
|
| 155 |
+
"type": "STRING",
|
| 156 |
+
"description": "Id changes query to a read request.",
|
| 157 |
+
"default": ""
|
| 158 |
+
},
|
| 159 |
+
{
|
| 160 |
+
"name": "filter",
|
| 161 |
+
"type": "STRING",
|
| 162 |
+
"description": "Use Ghost Query Language to build complex query.Example - feature_image:null.",
|
| 163 |
+
"default": ""
|
| 164 |
+
},
|
| 165 |
+
{
|
| 166 |
+
"name": "fields",
|
| 167 |
+
"type": "LIST",
|
| 168 |
+
"description": "Allows you to specify which resource fields to retrieve rather than retrieving the. whole object.",
|
| 169 |
+
"default": ""
|
| 170 |
+
}
|
| 171 |
+
],
|
| 172 |
+
"code": "import requests\n\nurl = \"https://GhostdimasV1.p.rapidapi.com/getAllTags\"\nquerystring = {\"order\": \"\", \"clientSecret\": \"\", \"includeCountPosts\": \"\", \"showAllPosts\": \"\", \"limit\": \"\", \"blogUrl\": \"\", \"clientId\": \"\", \"page\": \"\", \"resource\": \"\", \"filter\": \"\", \"fields\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"GhostdimasV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n",
|
| 173 |
+
"convert_code": "import requests\n\nurl = \"https://GhostdimasV1.p.rapidapi.com/getAllTags\"\nquerystring = {\"order\": \"\", \"clientSecret\": \"\", \"includeCountPosts\": \"\", \"showAllPosts\": \"\", \"limit\": \"\", \"blogUrl\": \"\", \"clientId\": \"\", \"page\": \"\", \"resource\": \"\", \"filter\": \"\", \"fields\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"GhostdimasV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n",
|
| 174 |
+
"test_endpoint": ""
|
| 175 |
+
},
|
| 176 |
+
{
|
| 177 |
+
"name": "getAllUsers",
|
| 178 |
+
"url": "https://GhostdimasV1.p.rapidapi.com/getAllUsers",
|
| 179 |
+
"description": "The getAllUsers endpoint allows you to browse all active users on a particular blog.",
|
| 180 |
+
"method": "POST",
|
| 181 |
+
"required_parameters": [
|
| 182 |
+
{
|
| 183 |
+
"name": "clientSecret",
|
| 184 |
+
"type": "CREDENTIALS",
|
| 185 |
+
"description": "API client secret.",
|
| 186 |
+
"default": ""
|
| 187 |
+
},
|
| 188 |
+
{
|
| 189 |
+
"name": "blogUrl",
|
| 190 |
+
"type": "STRING",
|
| 191 |
+
"description": "Link of the blog on which we will receive data.",
|
| 192 |
+
"default": ""
|
| 193 |
+
},
|
| 194 |
+
{
|
| 195 |
+
"name": "clientId",
|
| 196 |
+
"type": "CREDENTIALS",
|
| 197 |
+
"description": "API client id.",
|
| 198 |
+
"default": ""
|
| 199 |
+
}
|
| 200 |
+
],
|
| 201 |
+
"optional_parameters": [
|
| 202 |
+
{
|
| 203 |
+
"name": "includeCountPosts",
|
| 204 |
+
"type": "SELECT",
|
| 205 |
+
"description": "Include related count posts data.",
|
| 206 |
+
"default": ""
|
| 207 |
+
},
|
| 208 |
+
{
|
| 209 |
+
"name": "showAllPosts",
|
| 210 |
+
"type": "SELECT",
|
| 211 |
+
"description": "Retrieve all posts on page.",
|
| 212 |
+
"default": ""
|
| 213 |
+
},
|
| 214 |
+
{
|
| 215 |
+
"name": "order",
|
| 216 |
+
"type": "STRING",
|
| 217 |
+
"description": "Choose which field to order by and direction of ordering.Example - asc id.",
|
| 218 |
+
"default": ""
|
| 219 |
+
},
|
| 220 |
+
{
|
| 221 |
+
"name": "limit",
|
| 222 |
+
"type": "NUMBER",
|
| 223 |
+
"description": "How many posts to retrieve.",
|
| 224 |
+
"default": ""
|
| 225 |
+
},
|
| 226 |
+
{
|
| 227 |
+
"name": "page",
|
| 228 |
+
"type": "NUMBER",
|
| 229 |
+
"description": "Which page of paginated results to retrieve.",
|
| 230 |
+
"default": ""
|
| 231 |
+
},
|
| 232 |
+
{
|
| 233 |
+
"name": "filter",
|
| 234 |
+
"type": "STRING",
|
| 235 |
+
"description": "Use Ghost Query Language to build complex query.Example - cover_image:null.",
|
| 236 |
+
"default": ""
|
| 237 |
+
},
|
| 238 |
+
{
|
| 239 |
+
"name": "fields",
|
| 240 |
+
"type": "LIST",
|
| 241 |
+
"description": "Allows you to specify which resource fields to retrieve rather than retrieving the. whole object.",
|
| 242 |
+
"default": ""
|
| 243 |
+
}
|
| 244 |
+
],
|
| 245 |
+
"code": "import requests\n\nurl = \"https://GhostdimasV1.p.rapidapi.com/getAllUsers\"\nquerystring = {\"clientSecret\": \"\", \"includeCountPosts\": \"\", \"showAllPosts\": \"\", \"order\": \"\", \"limit\": \"\", \"blogUrl\": \"\", \"clientId\": \"\", \"page\": \"\", \"filter\": \"\", \"fields\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"GhostdimasV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n",
|
| 246 |
+
"convert_code": "import requests\n\nurl = \"https://GhostdimasV1.p.rapidapi.com/getAllUsers\"\nquerystring = {\"clientSecret\": \"\", \"includeCountPosts\": \"\", \"showAllPosts\": \"\", \"order\": \"\", \"limit\": \"\", \"blogUrl\": \"\", \"clientId\": \"\", \"page\": \"\", \"filter\": \"\", \"fields\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"GhostdimasV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n",
|
| 247 |
+
"test_endpoint": ""
|
| 248 |
+
},
|
| 249 |
+
{
|
| 250 |
+
"name": "getPost",
|
| 251 |
+
"url": "https://GhostdimasV1.p.rapidapi.com/getPost",
|
| 252 |
+
"description": "This endpoint allows you to read a specific post based on its id.",
|
| 253 |
+
"method": "POST",
|
| 254 |
+
"required_parameters": [
|
| 255 |
+
{
|
| 256 |
+
"name": "postId",
|
| 257 |
+
"type": "STRING",
|
| 258 |
+
"description": "Post id you need to get.",
|
| 259 |
+
"default": ""
|
| 260 |
+
},
|
| 261 |
+
{
|
| 262 |
+
"name": "clientSecret",
|
| 263 |
+
"type": "CREDENTIALS",
|
| 264 |
+
"description": "API client secret.",
|
| 265 |
+
"default": ""
|
| 266 |
+
},
|
| 267 |
+
{
|
| 268 |
+
"name": "blogUrl",
|
| 269 |
+
"type": "STRING",
|
| 270 |
+
"description": "Link of the blog on which we will receive data.",
|
| 271 |
+
"default": ""
|
| 272 |
+
},
|
| 273 |
+
{
|
| 274 |
+
"name": "clientId",
|
| 275 |
+
"type": "CREDENTIALS",
|
| 276 |
+
"description": "API client id.",
|
| 277 |
+
"default": ""
|
| 278 |
+
}
|
| 279 |
+
],
|
| 280 |
+
"optional_parameters": [
|
| 281 |
+
{
|
| 282 |
+
"name": "include",
|
| 283 |
+
"type": "SELECT",
|
| 284 |
+
"description": "Include related data.",
|
| 285 |
+
"default": ""
|
| 286 |
+
}
|
| 287 |
+
],
|
| 288 |
+
"code": "import requests\n\nurl = \"https://GhostdimasV1.p.rapidapi.com/getPost\"\nquerystring = {\"postId\": \"\", \"clientSecret\": \"\", \"blogUrl\": \"\", \"include\": \"\", \"clientId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"GhostdimasV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n",
|
| 289 |
+
"convert_code": "import requests\n\nurl = \"https://GhostdimasV1.p.rapidapi.com/getPost\"\nquerystring = {\"postId\": \"\", \"clientSecret\": \"\", \"blogUrl\": \"\", \"include\": \"\", \"clientId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"GhostdimasV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n",
|
| 290 |
+
"test_endpoint": ""
|
| 291 |
+
},
|
| 292 |
+
{
|
| 293 |
+
"name": "getPostBySlug",
|
| 294 |
+
"url": "https://GhostdimasV1.p.rapidapi.com/getPostBySlug",
|
| 295 |
+
"description": "This endpoint allows you to read a specific post based on its slug.",
|
| 296 |
+
"method": "POST",
|
| 297 |
+
"required_parameters": [
|
| 298 |
+
{
|
| 299 |
+
"name": "slug",
|
| 300 |
+
"type": "STRING",
|
| 301 |
+
"description": "Post slug you need to get.",
|
| 302 |
+
"default": ""
|
| 303 |
+
},
|
| 304 |
+
{
|
| 305 |
+
"name": "clientSecret",
|
| 306 |
+
"type": "CREDENTIALS",
|
| 307 |
+
"description": "API client secret.",
|
| 308 |
+
"default": ""
|
| 309 |
+
},
|
| 310 |
+
{
|
| 311 |
+
"name": "blogUrl",
|
| 312 |
+
"type": "STRING",
|
| 313 |
+
"description": "Link of the blog on which we will receive data.",
|
| 314 |
+
"default": ""
|
| 315 |
+
},
|
| 316 |
+
{
|
| 317 |
+
"name": "clientId",
|
| 318 |
+
"type": "CREDENTIALS",
|
| 319 |
+
"description": "API client id.",
|
| 320 |
+
"default": ""
|
| 321 |
+
}
|
| 322 |
+
],
|
| 323 |
+
"optional_parameters": [
|
| 324 |
+
{
|
| 325 |
+
"name": "include",
|
| 326 |
+
"type": "SELECT",
|
| 327 |
+
"description": "Include related data.",
|
| 328 |
+
"default": ""
|
| 329 |
+
}
|
| 330 |
+
],
|
| 331 |
+
"code": "import requests\n\nurl = \"https://GhostdimasV1.p.rapidapi.com/getPostBySlug\"\nquerystring = {\"slug\": \"\", \"clientSecret\": \"\", \"blogUrl\": \"\", \"clientId\": \"\", \"include\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"GhostdimasV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n",
|
| 332 |
+
"convert_code": "import requests\n\nurl = \"https://GhostdimasV1.p.rapidapi.com/getPostBySlug\"\nquerystring = {\"slug\": \"\", \"clientSecret\": \"\", \"blogUrl\": \"\", \"clientId\": \"\", \"include\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"GhostdimasV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n",
|
| 333 |
+
"test_endpoint": ""
|
| 334 |
+
},
|
| 335 |
+
{
|
| 336 |
+
"name": "getTag",
|
| 337 |
+
"url": "https://GhostdimasV1.p.rapidapi.com/getTag",
|
| 338 |
+
"description": "This endpoint allows you to read a specific tag based on its id.",
|
| 339 |
+
"method": "POST",
|
| 340 |
+
"required_parameters": [
|
| 341 |
+
{
|
| 342 |
+
"name": "clientSecret",
|
| 343 |
+
"type": "CREDENTIALS",
|
| 344 |
+
"description": "API client secret.",
|
| 345 |
+
"default": ""
|
| 346 |
+
},
|
| 347 |
+
{
|
| 348 |
+
"name": "tagId",
|
| 349 |
+
"type": "STRING",
|
| 350 |
+
"description": "Tag id you need to get.",
|
| 351 |
+
"default": ""
|
| 352 |
+
},
|
| 353 |
+
{
|
| 354 |
+
"name": "clientId",
|
| 355 |
+
"type": "CREDENTIALS",
|
| 356 |
+
"description": "API client id.",
|
| 357 |
+
"default": ""
|
| 358 |
+
},
|
| 359 |
+
{
|
| 360 |
+
"name": "blogUrl",
|
| 361 |
+
"type": "STRING",
|
| 362 |
+
"description": "Link of the blog on which we will receive data.",
|
| 363 |
+
"default": ""
|
| 364 |
+
}
|
| 365 |
+
],
|
| 366 |
+
"optional_parameters": [
|
| 367 |
+
{
|
| 368 |
+
"name": "includeCountPosts",
|
| 369 |
+
"type": "SELECT",
|
| 370 |
+
"description": "Include related count posts data.",
|
| 371 |
+
"default": ""
|
| 372 |
+
}
|
| 373 |
+
],
|
| 374 |
+
"code": "import requests\n\nurl = \"https://GhostdimasV1.p.rapidapi.com/getTag\"\nquerystring = {\"clientSecret\": \"\", \"tagId\": \"\", \"clientId\": \"\", \"includeCountPosts\": \"\", \"blogUrl\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"GhostdimasV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n",
|
| 375 |
+
"convert_code": "import requests\n\nurl = \"https://GhostdimasV1.p.rapidapi.com/getTag\"\nquerystring = {\"clientSecret\": \"\", \"tagId\": \"\", \"clientId\": \"\", \"includeCountPosts\": \"\", \"blogUrl\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"GhostdimasV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n",
|
| 376 |
+
"test_endpoint": ""
|
| 377 |
+
},
|
| 378 |
+
{
|
| 379 |
+
"name": "getTagBySlug",
|
| 380 |
+
"url": "https://GhostdimasV1.p.rapidapi.com/getTagBySlug",
|
| 381 |
+
"description": "This endpoint allows you to read a specific tag based on its slug.",
|
| 382 |
+
"method": "POST",
|
| 383 |
+
"required_parameters": [
|
| 384 |
+
{
|
| 385 |
+
"name": "clientSecret",
|
| 386 |
+
"type": "CREDENTIALS",
|
| 387 |
+
"description": "API client secret.",
|
| 388 |
+
"default": ""
|
| 389 |
+
},
|
| 390 |
+
{
|
| 391 |
+
"name": "slug",
|
| 392 |
+
"type": "STRING",
|
| 393 |
+
"description": "Tag slug you need to get.",
|
| 394 |
+
"default": ""
|
| 395 |
+
},
|
| 396 |
+
{
|
| 397 |
+
"name": "blogUrl",
|
| 398 |
+
"type": "STRING",
|
| 399 |
+
"description": "Link of the blog on which we will receive data.",
|
| 400 |
+
"default": ""
|
| 401 |
+
},
|
| 402 |
+
{
|
| 403 |
+
"name": "clientId",
|
| 404 |
+
"type": "CREDENTIALS",
|
| 405 |
+
"description": "API client id.",
|
| 406 |
+
"default": ""
|
| 407 |
+
}
|
| 408 |
+
],
|
| 409 |
+
"optional_parameters": [
|
| 410 |
+
{
|
| 411 |
+
"name": "includeCountPosts",
|
| 412 |
+
"type": "SELECT",
|
| 413 |
+
"description": "Include related count posts data.",
|
| 414 |
+
"default": ""
|
| 415 |
+
}
|
| 416 |
+
],
|
| 417 |
+
"code": "import requests\n\nurl = \"https://GhostdimasV1.p.rapidapi.com/getTagBySlug\"\nquerystring = {\"clientSecret\": \"\", \"slug\": \"\", \"blogUrl\": \"\", \"includeCountPosts\": \"\", \"clientId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"GhostdimasV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n",
|
| 418 |
+
"convert_code": "import requests\n\nurl = \"https://GhostdimasV1.p.rapidapi.com/getTagBySlug\"\nquerystring = {\"clientSecret\": \"\", \"slug\": \"\", \"blogUrl\": \"\", \"includeCountPosts\": \"\", \"clientId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"GhostdimasV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n",
|
| 419 |
+
"test_endpoint": ""
|
| 420 |
+
},
|
| 421 |
+
{
|
| 422 |
+
"name": "getUser",
|
| 423 |
+
"url": "https://GhostdimasV1.p.rapidapi.com/getUser",
|
| 424 |
+
"description": "This endpoint allows you to read a specific user based on its id.",
|
| 425 |
+
"method": "POST",
|
| 426 |
+
"required_parameters": [
|
| 427 |
+
{
|
| 428 |
+
"name": "blogUrl",
|
| 429 |
+
"type": "STRING",
|
| 430 |
+
"description": "Link of the blog on which we will receive data.",
|
| 431 |
+
"default": ""
|
| 432 |
+
},
|
| 433 |
+
{
|
| 434 |
+
"name": "clientId",
|
| 435 |
+
"type": "CREDENTIALS",
|
| 436 |
+
"description": "API client id.",
|
| 437 |
+
"default": ""
|
| 438 |
+
},
|
| 439 |
+
{
|
| 440 |
+
"name": "userId",
|
| 441 |
+
"type": "STRING",
|
| 442 |
+
"description": "User id you need to get.",
|
| 443 |
+
"default": ""
|
| 444 |
+
},
|
| 445 |
+
{
|
| 446 |
+
"name": "clientSecret",
|
| 447 |
+
"type": "CREDENTIALS",
|
| 448 |
+
"description": "API client secret.",
|
| 449 |
+
"default": ""
|
| 450 |
+
}
|
| 451 |
+
],
|
| 452 |
+
"optional_parameters": [
|
| 453 |
+
{
|
| 454 |
+
"name": "includeCountPosts",
|
| 455 |
+
"type": "SELECT",
|
| 456 |
+
"description": "Include related count posts data.",
|
| 457 |
+
"default": ""
|
| 458 |
+
}
|
| 459 |
+
],
|
| 460 |
+
"code": "import requests\n\nurl = \"https://GhostdimasV1.p.rapidapi.com/getUser\"\nquerystring = {\"includeCountPosts\": \"\", \"blogUrl\": \"\", \"clientId\": \"\", \"userId\": \"\", \"clientSecret\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"GhostdimasV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n",
|
| 461 |
+
"convert_code": "import requests\n\nurl = \"https://GhostdimasV1.p.rapidapi.com/getUser\"\nquerystring = {\"includeCountPosts\": \"\", \"blogUrl\": \"\", \"clientId\": \"\", \"userId\": \"\", \"clientSecret\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"GhostdimasV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n",
|
| 462 |
+
"test_endpoint": ""
|
| 463 |
+
},
|
| 464 |
+
{
|
| 465 |
+
"name": "getUserByEmail",
|
| 466 |
+
"url": "https://GhostdimasV1.p.rapidapi.com/getUserByEmail",
|
| 467 |
+
"description": "This endpoint allows you to read a specific user based on its email.",
|
| 468 |
+
"method": "POST",
|
| 469 |
+
"required_parameters": [
|
| 470 |
+
{
|
| 471 |
+
"name": "clientId",
|
| 472 |
+
"type": "CREDENTIALS",
|
| 473 |
+
"description": "API client id.",
|
| 474 |
+
"default": ""
|
| 475 |
+
},
|
| 476 |
+
{
|
| 477 |
+
"name": "blogUrl",
|
| 478 |
+
"type": "STRING",
|
| 479 |
+
"description": "Link of the blog on which we will receive data.",
|
| 480 |
+
"default": ""
|
| 481 |
+
},
|
| 482 |
+
{
|
| 483 |
+
"name": "clientSecret",
|
| 484 |
+
"type": "CREDENTIALS",
|
| 485 |
+
"description": "API client secret.",
|
| 486 |
+
"default": ""
|
| 487 |
+
},
|
| 488 |
+
{
|
| 489 |
+
"name": "email",
|
| 490 |
+
"type": "STRING",
|
| 491 |
+
"description": "User email you need to get.",
|
| 492 |
+
"default": ""
|
| 493 |
+
}
|
| 494 |
+
],
|
| 495 |
+
"optional_parameters": [
|
| 496 |
+
{
|
| 497 |
+
"name": "includeCountPosts",
|
| 498 |
+
"type": "SELECT",
|
| 499 |
+
"description": "Include related count posts data.",
|
| 500 |
+
"default": ""
|
| 501 |
+
}
|
| 502 |
+
],
|
| 503 |
+
"code": "import requests\n\nurl = \"https://GhostdimasV1.p.rapidapi.com/getUserByEmail\"\nquerystring = {\"clientId\": \"\", \"includeCountPosts\": \"\", \"blogUrl\": \"\", \"clientSecret\": \"\", \"email\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"GhostdimasV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n",
|
| 504 |
+
"convert_code": "import requests\n\nurl = \"https://GhostdimasV1.p.rapidapi.com/getUserByEmail\"\nquerystring = {\"clientId\": \"\", \"includeCountPosts\": \"\", \"blogUrl\": \"\", \"clientSecret\": \"\", \"email\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"GhostdimasV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n",
|
| 505 |
+
"test_endpoint": ""
|
| 506 |
+
},
|
| 507 |
+
{
|
| 508 |
+
"name": "getUserBySlug",
|
| 509 |
+
"url": "https://GhostdimasV1.p.rapidapi.com/getUserBySlug",
|
| 510 |
+
"description": "This endpoint allows you to read a specific user based on its slug.",
|
| 511 |
+
"method": "POST",
|
| 512 |
+
"required_parameters": [
|
| 513 |
+
{
|
| 514 |
+
"name": "clientId",
|
| 515 |
+
"type": "CREDENTIALS",
|
| 516 |
+
"description": "API client id.",
|
| 517 |
+
"default": ""
|
| 518 |
+
},
|
| 519 |
+
{
|
| 520 |
+
"name": "blogUrl",
|
| 521 |
+
"type": "STRING",
|
| 522 |
+
"description": "Link of the blog on which we will receive data.",
|
| 523 |
+
"default": ""
|
| 524 |
+
},
|
| 525 |
+
{
|
| 526 |
+
"name": "clientSecret",
|
| 527 |
+
"type": "CREDENTIALS",
|
| 528 |
+
"description": "API client secret.",
|
| 529 |
+
"default": ""
|
| 530 |
+
},
|
| 531 |
+
{
|
| 532 |
+
"name": "slug",
|
| 533 |
+
"type": "STRING",
|
| 534 |
+
"description": "User slug you need to get.",
|
| 535 |
+
"default": ""
|
| 536 |
+
}
|
| 537 |
+
],
|
| 538 |
+
"optional_parameters": [
|
| 539 |
+
{
|
| 540 |
+
"name": "includeCountPosts",
|
| 541 |
+
"type": "SELECT",
|
| 542 |
+
"description": "Include related count posts data.",
|
| 543 |
+
"default": ""
|
| 544 |
+
}
|
| 545 |
+
],
|
| 546 |
+
"code": "import requests\n\nurl = \"https://GhostdimasV1.p.rapidapi.com/getUserBySlug\"\nquerystring = {\"clientId\": \"\", \"includeCountPosts\": \"\", \"blogUrl\": \"\", \"clientSecret\": \"\", \"slug\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"GhostdimasV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n",
|
| 547 |
+
"convert_code": "import requests\n\nurl = \"https://GhostdimasV1.p.rapidapi.com/getUserBySlug\"\nquerystring = {\"clientId\": \"\", \"includeCountPosts\": \"\", \"blogUrl\": \"\", \"clientSecret\": \"\", \"slug\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"GhostdimasV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n",
|
| 548 |
+
"test_endpoint": ""
|
| 549 |
+
}
|
| 550 |
+
]
|
| 551 |
+
}
|
toolbench/toolenv/tools/News_Media/glasgow_live_news/api.py
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import requests
|
| 2 |
+
import json
|
| 3 |
+
from datetime import date, datetime, timedelta
|
| 4 |
+
import os
|
| 5 |
+
|
| 6 |
+
from typing import Optional, Dict, Union, List
|
| 7 |
+
|
| 8 |
+
|
| 9 |
+
def get_individual_news_source(glasgowliveid: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 10 |
+
"""
|
| 11 |
+
"Get specific news from resource"
|
| 12 |
+
|
| 13 |
+
"""
|
| 14 |
+
url = f"https://glasgow-live-news.p.rapidapi.com/news/{glasgowliveid}"
|
| 15 |
+
querystring = {}
|
| 16 |
+
|
| 17 |
+
headers = {
|
| 18 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 19 |
+
"X-RapidAPI-Host": "glasgow-live-news.p.rapidapi.com"
|
| 20 |
+
}
|
| 21 |
+
|
| 22 |
+
|
| 23 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 24 |
+
try:
|
| 25 |
+
observation = response.json()
|
| 26 |
+
except:
|
| 27 |
+
observation = response.text
|
| 28 |
+
return observation
|
| 29 |
+
|
| 30 |
+
def get_all_glasgow_news(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 31 |
+
"""
|
| 32 |
+
"This endpoint will return back all news about Glasgow News"
|
| 33 |
+
|
| 34 |
+
"""
|
| 35 |
+
url = f"https://glasgow-live-news.p.rapidapi.com/news"
|
| 36 |
+
querystring = {}
|
| 37 |
+
|
| 38 |
+
headers = {
|
| 39 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 40 |
+
"X-RapidAPI-Host": "glasgow-live-news.p.rapidapi.com"
|
| 41 |
+
}
|
| 42 |
+
|
| 43 |
+
|
| 44 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 45 |
+
try:
|
| 46 |
+
observation = response.json()
|
| 47 |
+
except:
|
| 48 |
+
observation = response.text
|
| 49 |
+
return observation
|
| 50 |
+
|
toolbench/toolenv/tools/News_Media/global_climate_change/api.py
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import requests
|
| 2 |
+
import json
|
| 3 |
+
from datetime import date, datetime, timedelta
|
| 4 |
+
import os
|
| 5 |
+
|
| 6 |
+
from typing import Optional, Dict, Union, List
|
| 7 |
+
|
| 8 |
+
|
| 9 |
+
def individual_news_sources(newspaperid: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 10 |
+
"""
|
| 11 |
+
"Obtain climate change and global warming news from independent news sources."
|
| 12 |
+
|
| 13 |
+
"""
|
| 14 |
+
url = f"https://global-climate-change.p.rapidapi.com/news/{newspaperid}"
|
| 15 |
+
querystring = {}
|
| 16 |
+
|
| 17 |
+
headers = {
|
| 18 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 19 |
+
"X-RapidAPI-Host": "global-climate-change.p.rapidapi.com"
|
| 20 |
+
}
|
| 21 |
+
|
| 22 |
+
|
| 23 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 24 |
+
try:
|
| 25 |
+
observation = response.json()
|
| 26 |
+
except:
|
| 27 |
+
observation = response.text
|
| 28 |
+
return observation
|
| 29 |
+
|
| 30 |
+
def news_updates(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 31 |
+
"""
|
| 32 |
+
"This endpoint will give all the global climate change information as required."
|
| 33 |
+
|
| 34 |
+
"""
|
| 35 |
+
url = f"https://global-climate-change.p.rapidapi.com/news"
|
| 36 |
+
querystring = {}
|
| 37 |
+
|
| 38 |
+
headers = {
|
| 39 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 40 |
+
"X-RapidAPI-Host": "global-climate-change.p.rapidapi.com"
|
| 41 |
+
}
|
| 42 |
+
|
| 43 |
+
|
| 44 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 45 |
+
try:
|
| 46 |
+
observation = response.json()
|
| 47 |
+
except:
|
| 48 |
+
observation = response.text
|
| 49 |
+
return observation
|
| 50 |
+
|
toolbench/toolenv/tools/News_Media/global_climatechange_news/api.py
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import requests
|
| 2 |
+
import json
|
| 3 |
+
from datetime import date, datetime, timedelta
|
| 4 |
+
import os
|
| 5 |
+
|
| 6 |
+
from typing import Optional, Dict, Union, List
|
| 7 |
+
|
| 8 |
+
|
| 9 |
+
def get_climate_news_from_an_individual_source_news(newspaperid: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 10 |
+
"""
|
| 11 |
+
"Get climate news from an Individual Source News"
|
| 12 |
+
|
| 13 |
+
"""
|
| 14 |
+
url = f"https://global-climatechange-news.p.rapidapi.com/news/{newspaperid}"
|
| 15 |
+
querystring = {}
|
| 16 |
+
|
| 17 |
+
headers = {
|
| 18 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 19 |
+
"X-RapidAPI-Host": "global-climatechange-news.p.rapidapi.com"
|
| 20 |
+
}
|
| 21 |
+
|
| 22 |
+
|
| 23 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 24 |
+
try:
|
| 25 |
+
observation = response.json()
|
| 26 |
+
except:
|
| 27 |
+
observation = response.text
|
| 28 |
+
return observation
|
| 29 |
+
|
| 30 |
+
def get_all_climate_crisis_news(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 31 |
+
"""
|
| 32 |
+
"this endpoint will return back all climte crisis related news all aroun the world."
|
| 33 |
+
|
| 34 |
+
"""
|
| 35 |
+
url = f"https://global-climatechange-news.p.rapidapi.com/news"
|
| 36 |
+
querystring = {}
|
| 37 |
+
|
| 38 |
+
headers = {
|
| 39 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 40 |
+
"X-RapidAPI-Host": "global-climatechange-news.p.rapidapi.com"
|
| 41 |
+
}
|
| 42 |
+
|
| 43 |
+
|
| 44 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 45 |
+
try:
|
| 46 |
+
observation = response.json()
|
| 47 |
+
except:
|
| 48 |
+
observation = response.text
|
| 49 |
+
return observation
|
| 50 |
+
|
toolbench/toolenv/tools/News_Media/global_news_api/api.py
ADDED
|
@@ -0,0 +1,71 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import requests
|
| 2 |
+
import json
|
| 3 |
+
from datetime import date, datetime, timedelta
|
| 4 |
+
import os
|
| 5 |
+
|
| 6 |
+
from typing import Optional, Dict, Union, List
|
| 7 |
+
|
| 8 |
+
|
| 9 |
+
def specific_newspaper_articles(searchstring: str, newspaperid: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 10 |
+
"""
|
| 11 |
+
"Get all the newspaper articles from the specified newspaper containing the search string"
|
| 12 |
+
|
| 13 |
+
"""
|
| 14 |
+
url = f"https://global-news-api.p.rapidapi.com/news/{newspaperid}/{searchstring}"
|
| 15 |
+
querystring = {}
|
| 16 |
+
|
| 17 |
+
headers = {
|
| 18 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 19 |
+
"X-RapidAPI-Host": "global-news-api.p.rapidapi.com"
|
| 20 |
+
}
|
| 21 |
+
|
| 22 |
+
|
| 23 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 24 |
+
try:
|
| 25 |
+
observation = response.json()
|
| 26 |
+
except:
|
| 27 |
+
observation = response.text
|
| 28 |
+
return observation
|
| 29 |
+
|
| 30 |
+
def all_newspaper_articles(searchstring: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 31 |
+
"""
|
| 32 |
+
"Get all the newspaper articles from all the available newspapers containing the search string"
|
| 33 |
+
|
| 34 |
+
"""
|
| 35 |
+
url = f"https://global-news-api.p.rapidapi.com/news/{searchstring}"
|
| 36 |
+
querystring = {}
|
| 37 |
+
|
| 38 |
+
headers = {
|
| 39 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 40 |
+
"X-RapidAPI-Host": "global-news-api.p.rapidapi.com"
|
| 41 |
+
}
|
| 42 |
+
|
| 43 |
+
|
| 44 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 45 |
+
try:
|
| 46 |
+
observation = response.json()
|
| 47 |
+
except:
|
| 48 |
+
observation = response.text
|
| 49 |
+
return observation
|
| 50 |
+
|
| 51 |
+
def newspapers(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 52 |
+
"""
|
| 53 |
+
"Gets all the available newspapers to search in"
|
| 54 |
+
|
| 55 |
+
"""
|
| 56 |
+
url = f"https://global-news-api.p.rapidapi.com/newspapers"
|
| 57 |
+
querystring = {}
|
| 58 |
+
|
| 59 |
+
headers = {
|
| 60 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 61 |
+
"X-RapidAPI-Host": "global-news-api.p.rapidapi.com"
|
| 62 |
+
}
|
| 63 |
+
|
| 64 |
+
|
| 65 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 66 |
+
try:
|
| 67 |
+
observation = response.json()
|
| 68 |
+
except:
|
| 69 |
+
observation = response.text
|
| 70 |
+
return observation
|
| 71 |
+
|
toolbench/toolenv/tools/News_Media/global_recession_live.json
ADDED
|
@@ -0,0 +1,275 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"product_id": "api_0ff68eb6-eb28-4f34-aaf7-300791ffff4f",
|
| 3 |
+
"tool_description": "An API showing all the latest recession news around the world, collected from The New York Times, The Guardian, World Economic Forum, The Economist, AP News, Reuters, and Politico.",
|
| 4 |
+
"home_url": "https://rapidapi.com/Tasnimmo/api/global-recession-live/",
|
| 5 |
+
"name": "Global Recession Live",
|
| 6 |
+
"title": "Global Recession Live",
|
| 7 |
+
"pricing": "FREE",
|
| 8 |
+
"tool_name": "Global Recession Live",
|
| 9 |
+
"score": {
|
| 10 |
+
"avgServiceLevel": 100,
|
| 11 |
+
"avgLatency": 51811,
|
| 12 |
+
"avgSuccessRate": 100,
|
| 13 |
+
"popularityScore": 6.9,
|
| 14 |
+
"__typename": "Score"
|
| 15 |
+
},
|
| 16 |
+
"host": "global-recession-live.p.rapidapi.com",
|
| 17 |
+
"api_list": [
|
| 18 |
+
{
|
| 19 |
+
"name": "Get Specific News Articles By Publication",
|
| 20 |
+
"url": "https://global-recession-live.p.rapidapi.com/news/theguardian",
|
| 21 |
+
"description": "This endpoint will return the latest articles from a specific publication.",
|
| 22 |
+
"method": "GET",
|
| 23 |
+
"required_parameters": [
|
| 24 |
+
{
|
| 25 |
+
"name": "newspaperId",
|
| 26 |
+
"type": "string",
|
| 27 |
+
"description": "",
|
| 28 |
+
"default": "theguardian"
|
| 29 |
+
}
|
| 30 |
+
],
|
| 31 |
+
"optional_parameters": [],
|
| 32 |
+
"code": "import requests\n\nurl = \"https://global-recession-live.p.rapidapi.com/news/theguardian\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"global-recession-live.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n",
|
| 33 |
+
"convert_code": "import requests\n\nurl = \"https://global-recession-live.p.rapidapi.com/news/{newspaperid}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"global-recession-live.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n",
|
| 34 |
+
"test_endpoint": [
|
| 35 |
+
{
|
| 36 |
+
"title": " Why are oil prices rising and what does it mean for inflation? ",
|
| 37 |
+
"url": "https://www.theguardian.com/business/2023/apr/03/why-are-oil-prices-rising-opec",
|
| 38 |
+
"source": "theguardian"
|
| 39 |
+
},
|
| 40 |
+
{
|
| 41 |
+
"title": "Why are oil prices rising and what does it mean for inflation?",
|
| 42 |
+
"url": "https://www.theguardian.com/business/2023/apr/03/why-are-oil-prices-rising-opec",
|
| 43 |
+
"source": "theguardian"
|
| 44 |
+
},
|
| 45 |
+
{
|
| 46 |
+
"title": " Fight against inflation raises spectre of global recession ",
|
| 47 |
+
"url": "https://www.theguardian.com/business/2022/jun/17/fight-against-inflation-raises-spectre-of-global-recession",
|
| 48 |
+
"source": "theguardian"
|
| 49 |
+
},
|
| 50 |
+
{
|
| 51 |
+
"title": "Fight against inflation raises spectre of global recession",
|
| 52 |
+
"url": "https://www.theguardian.com/business/2022/jun/17/fight-against-inflation-raises-spectre-of-global-recession",
|
| 53 |
+
"source": "theguardian"
|
| 54 |
+
},
|
| 55 |
+
{
|
| 56 |
+
"title": "\n \n Covid crisis watch\n \n \n Only a large-scale skills programme can protect against Covid's fallout ",
|
| 57 |
+
"url": "https://www.theguardian.com/business/2021/mar/31/only-a-large-scale-skills-programme-can-protect-against-covids-fallout",
|
| 58 |
+
"source": "theguardian"
|
| 59 |
+
},
|
| 60 |
+
{
|
| 61 |
+
"title": "\n \n Project Syndicate economists\n \n \n Why the Covid economic crisis has hit poorer nations less deeply than feared ",
|
| 62 |
+
"url": "https://www.theguardian.com/business/2020/dec/14/why-the-covid-economic-crisis-has-hit-poorer-nations-less-deeply-than-feared",
|
| 63 |
+
"source": "theguardian"
|
| 64 |
+
},
|
| 65 |
+
{
|
| 66 |
+
"title": "Why the Covid economic crisis has hit poorer nations less deeply than feared",
|
| 67 |
+
"url": "https://www.theguardian.com/business/2020/dec/14/why-the-covid-economic-crisis-has-hit-poorer-nations-less-deeply-than-feared",
|
| 68 |
+
"source": "theguardian"
|
| 69 |
+
},
|
| 70 |
+
{
|
| 71 |
+
"title": " IMF estimates global Covid cost at $28tn in lost output ",
|
| 72 |
+
"url": "https://www.theguardian.com/business/2020/oct/13/imf-covid-cost-world-economic-outlook",
|
| 73 |
+
"source": "theguardian"
|
| 74 |
+
},
|
| 75 |
+
{
|
| 76 |
+
"title": "IMF estimates global Covid cost at $28tn in lost output",
|
| 77 |
+
"url": "https://www.theguardian.com/business/2020/oct/13/imf-covid-cost-world-economic-outlook",
|
| 78 |
+
"source": "theguardian"
|
| 79 |
+
},
|
| 80 |
+
{
|
| 81 |
+
"title": "\n \n Project Syndicate economists\n \n \n We must use the Covid crisis to reshape our society and economy ",
|
| 82 |
+
"url": "https://www.theguardian.com/business/2020/sep/16/we-must-use-the-covid-crisis-to-reshape-our-society-and-economy",
|
| 83 |
+
"source": "theguardian"
|
| 84 |
+
},
|
| 85 |
+
{
|
| 86 |
+
"title": "We must use the Covid crisis to reshape our society and economy",
|
| 87 |
+
"url": "https://www.theguardian.com/business/2020/sep/16/we-must-use-the-covid-crisis-to-reshape-our-society-and-economy",
|
| 88 |
+
"source": "theguardian"
|
| 89 |
+
},
|
| 90 |
+
{
|
| 91 |
+
"title": " 'Nobody is safe': why Australia's Covid jobs crisis could last years ",
|
| 92 |
+
"url": "https://www.theguardian.com/business/2020/sep/06/nobody-is-safe-why-australias-covid-jobs-crisis-could-last-years",
|
| 93 |
+
"source": "theguardian"
|
| 94 |
+
},
|
| 95 |
+
{
|
| 96 |
+
"title": "'Nobody is safe': why Australia's Covid jobs crisis could last years",
|
| 97 |
+
"url": "https://www.theguardian.com/business/2020/sep/06/nobody-is-safe-why-australias-covid-jobs-crisis-could-last-years",
|
| 98 |
+
"source": "theguardian"
|
| 99 |
+
},
|
| 100 |
+
{
|
| 101 |
+
"title": " Summer statement: the UK's Covid-19 economic crisis in five key charts ",
|
| 102 |
+
"url": "https://www.theguardian.com/business/2020/jul/08/summer-statement-the-uks-covid-19-economic-crisis-in-five-key-charts",
|
| 103 |
+
"source": "theguardian"
|
| 104 |
+
},
|
| 105 |
+
{
|
| 106 |
+
"title": "Summer statement: the UK's Covid-19 economic crisis in five key charts",
|
| 107 |
+
"url": "https://www.theguardian.com/business/2020/jul/08/summer-statement-the-uks-covid-19-economic-crisis-in-five-key-charts",
|
| 108 |
+
"source": "theguardian"
|
| 109 |
+
}
|
| 110 |
+
],
|
| 111 |
+
"statuscode": 200,
|
| 112 |
+
"schema": {}
|
| 113 |
+
},
|
| 114 |
+
{
|
| 115 |
+
"name": "Get All Global Recession News",
|
| 116 |
+
"url": "https://global-recession-live.p.rapidapi.com/news",
|
| 117 |
+
"description": "This endpoint will return the latest articles from 7 publications about worldwide recession news.",
|
| 118 |
+
"method": "GET",
|
| 119 |
+
"required_parameters": [],
|
| 120 |
+
"optional_parameters": [],
|
| 121 |
+
"code": "import requests\n\nurl = \"https://global-recession-live.p.rapidapi.com/news\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"global-recession-live.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n",
|
| 122 |
+
"convert_code": "import requests\n\nurl = \"https://global-recession-live.p.rapidapi.com/news\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"global-recession-live.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n",
|
| 123 |
+
"test_endpoint": [
|
| 124 |
+
{
|
| 125 |
+
"title": "Fed hikes rates one more time as war on inflation enters new phase",
|
| 126 |
+
"url": "https://www.politico.com/news/2023/05/03/fed-powell-rates-inflation-00095092",
|
| 127 |
+
"source": "politico"
|
| 128 |
+
},
|
| 129 |
+
{
|
| 130 |
+
"title": "\u2018Economy is unwell\u2019: GDP report underlines recession concern",
|
| 131 |
+
"url": "https://www.politico.com/news/2023/04/27/wall-street-biden-economy-00094157",
|
| 132 |
+
"source": "politico"
|
| 133 |
+
},
|
| 134 |
+
{
|
| 135 |
+
"title": "Powell\u2019s inflation war faces unforeseen obstacle: collapsing banks ",
|
| 136 |
+
"url": "https://www.politico.com/news/2023/03/22/jerome-powell-federal-reserve-inflation-00088163",
|
| 137 |
+
"source": "politico"
|
| 138 |
+
},
|
| 139 |
+
{
|
| 140 |
+
"title": "Defying the odds: Jobs, inflation news spark hope U.S. may skirt a 2023 slump",
|
| 141 |
+
"url": "https://www.politico.com/news/2023/01/05/not-a-lost-cause-the-argument-for-economic-survival-in-2023-00075805",
|
| 142 |
+
"source": "politico"
|
| 143 |
+
},
|
| 144 |
+
{
|
| 145 |
+
"title": "The big recession risk that no one is talking about ",
|
| 146 |
+
"url": "https://www.politico.com/news/2022/10/24/biden-finances-liz-truss-recession-00063012",
|
| 147 |
+
"source": "politico"
|
| 148 |
+
},
|
| 149 |
+
{
|
| 150 |
+
"title": "Explainer: Why is UK food inflation so stubbornly high?",
|
| 151 |
+
"url": "https://www.reuters.com/world/uk/why-is-uk-food-inflation-so-stubbornly-high-2023-06-16/",
|
| 152 |
+
"source": "reuters"
|
| 153 |
+
},
|
| 154 |
+
{
|
| 155 |
+
"title": "What is a rolling recession? And are we in one right now?",
|
| 156 |
+
"url": "https://www.weforum.org/agenda/2023/03/what-is-a-rolling-recession-economy-news/",
|
| 157 |
+
"source": "wef"
|
| 158 |
+
},
|
| 159 |
+
{
|
| 160 |
+
"title": " Why are oil prices rising and what does it mean for inflation? ",
|
| 161 |
+
"url": "https://www.theguardian.com/business/2023/apr/03/why-are-oil-prices-rising-opec",
|
| 162 |
+
"source": "theguardian"
|
| 163 |
+
},
|
| 164 |
+
{
|
| 165 |
+
"title": "Why are oil prices rising and what does it mean for inflation?",
|
| 166 |
+
"url": "https://www.theguardian.com/business/2023/apr/03/why-are-oil-prices-rising-opec",
|
| 167 |
+
"source": "theguardian"
|
| 168 |
+
},
|
| 169 |
+
{
|
| 170 |
+
"title": " Fight against inflation raises spectre of global recession ",
|
| 171 |
+
"url": "https://www.theguardian.com/business/2022/jun/17/fight-against-inflation-raises-spectre-of-global-recession",
|
| 172 |
+
"source": "theguardian"
|
| 173 |
+
},
|
| 174 |
+
{
|
| 175 |
+
"title": "Fight against inflation raises spectre of global recession",
|
| 176 |
+
"url": "https://www.theguardian.com/business/2022/jun/17/fight-against-inflation-raises-spectre-of-global-recession",
|
| 177 |
+
"source": "theguardian"
|
| 178 |
+
},
|
| 179 |
+
{
|
| 180 |
+
"title": "\n \n Covid crisis watch\n \n \n Only a large-scale skills programme can protect against Covid's fallout ",
|
| 181 |
+
"url": "https://www.theguardian.com/business/2021/mar/31/only-a-large-scale-skills-programme-can-protect-against-covids-fallout",
|
| 182 |
+
"source": "theguardian"
|
| 183 |
+
},
|
| 184 |
+
{
|
| 185 |
+
"title": "\n \n Project Syndicate economists\n \n \n Why the Covid economic crisis has hit poorer nations less deeply than feared ",
|
| 186 |
+
"url": "https://www.theguardian.com/business/2020/dec/14/why-the-covid-economic-crisis-has-hit-poorer-nations-less-deeply-than-feared",
|
| 187 |
+
"source": "theguardian"
|
| 188 |
+
},
|
| 189 |
+
{
|
| 190 |
+
"title": "Why the Covid economic crisis has hit poorer nations less deeply than feared",
|
| 191 |
+
"url": "https://www.theguardian.com/business/2020/dec/14/why-the-covid-economic-crisis-has-hit-poorer-nations-less-deeply-than-feared",
|
| 192 |
+
"source": "theguardian"
|
| 193 |
+
},
|
| 194 |
+
{
|
| 195 |
+
"title": " IMF estimates global Covid cost at $28tn in lost output ",
|
| 196 |
+
"url": "https://www.theguardian.com/business/2020/oct/13/imf-covid-cost-world-economic-outlook",
|
| 197 |
+
"source": "theguardian"
|
| 198 |
+
},
|
| 199 |
+
{
|
| 200 |
+
"title": "IMF estimates global Covid cost at $28tn in lost output",
|
| 201 |
+
"url": "https://www.theguardian.com/business/2020/oct/13/imf-covid-cost-world-economic-outlook",
|
| 202 |
+
"source": "theguardian"
|
| 203 |
+
},
|
| 204 |
+
{
|
| 205 |
+
"title": "\n \n Project Syndicate economists\n \n \n We must use the Covid crisis to reshape our society and economy ",
|
| 206 |
+
"url": "https://www.theguardian.com/business/2020/sep/16/we-must-use-the-covid-crisis-to-reshape-our-society-and-economy",
|
| 207 |
+
"source": "theguardian"
|
| 208 |
+
},
|
| 209 |
+
{
|
| 210 |
+
"title": "We must use the Covid crisis to reshape our society and economy",
|
| 211 |
+
"url": "https://www.theguardian.com/business/2020/sep/16/we-must-use-the-covid-crisis-to-reshape-our-society-and-economy",
|
| 212 |
+
"source": "theguardian"
|
| 213 |
+
},
|
| 214 |
+
{
|
| 215 |
+
"title": " 'Nobody is safe': why Australia's Covid jobs crisis could last years ",
|
| 216 |
+
"url": "https://www.theguardian.com/business/2020/sep/06/nobody-is-safe-why-australias-covid-jobs-crisis-could-last-years",
|
| 217 |
+
"source": "theguardian"
|
| 218 |
+
},
|
| 219 |
+
{
|
| 220 |
+
"title": "'Nobody is safe': why Australia's Covid jobs crisis could last years",
|
| 221 |
+
"url": "https://www.theguardian.com/business/2020/sep/06/nobody-is-safe-why-australias-covid-jobs-crisis-could-last-years",
|
| 222 |
+
"source": "theguardian"
|
| 223 |
+
},
|
| 224 |
+
{
|
| 225 |
+
"title": " Summer statement: the UK's Covid-19 economic crisis in five key charts ",
|
| 226 |
+
"url": "https://www.theguardian.com/business/2020/jul/08/summer-statement-the-uks-covid-19-economic-crisis-in-five-key-charts",
|
| 227 |
+
"source": "theguardian"
|
| 228 |
+
},
|
| 229 |
+
{
|
| 230 |
+
"title": "Summer statement: the UK's Covid-19 economic crisis in five key charts",
|
| 231 |
+
"url": "https://www.theguardian.com/business/2020/jul/08/summer-statement-the-uks-covid-19-economic-crisis-in-five-key-charts",
|
| 232 |
+
"source": "theguardian"
|
| 233 |
+
},
|
| 234 |
+
{
|
| 235 |
+
"title": "Job Openings Rose in April, Defying Cooling TrendThe Labor Department report may put pressure on the Federal Reserve to raise interest rates further to stem inflation.By Talmon Joseph Smith",
|
| 236 |
+
"url": "https://www.nytimes.com/2023/05/31/business/economy/jobs-layoffs-openings-jolts.html",
|
| 237 |
+
"source": "nytimes"
|
| 238 |
+
},
|
| 239 |
+
{
|
| 240 |
+
"title": "U.S. Job Growth Retains Vigor Despite Economic WorriesEmployers added 253,000 jobs in April and unemployment fell to 3.4 percent, but the labor market\u2019s strength complicates the Fed\u2019s inflation fight.By Lydia DePillis",
|
| 241 |
+
"url": "https://www.nytimes.com/2023/05/05/business/economy/jobs-report-april.html",
|
| 242 |
+
"source": "nytimes"
|
| 243 |
+
},
|
| 244 |
+
{
|
| 245 |
+
"title": "Recession Fears Abound, but the Fed Chair Bets This Time Is DifferentJerome H. Powell, the Federal Reserve chair, thinks his central bank can defy history to clinch slower inflation and a soft economic landing.By Jeanna Smialek",
|
| 246 |
+
"url": "https://www.nytimes.com/2023/05/04/business/economy/recession-fed-powell-interest-rates-jobs.html",
|
| 247 |
+
"source": "nytimes"
|
| 248 |
+
},
|
| 249 |
+
{
|
| 250 |
+
"title": "America faces a debt nightmare",
|
| 251 |
+
"url": "https://www.economist.com/finance-and-economics/2023/05/03/america-faces-a-debt-nightmare",
|
| 252 |
+
"source": "theeconomist"
|
| 253 |
+
},
|
| 254 |
+
{
|
| 255 |
+
"title": "What happens if America defaults on its debt?",
|
| 256 |
+
"url": "https://www.economist.com/finance-and-economics/2023/05/22/what-happens-if-america-defaults-on-its-debt",
|
| 257 |
+
"source": "theeconomist"
|
| 258 |
+
},
|
| 259 |
+
{
|
| 260 |
+
"title": "Joe Biden\u2019s effort to remake the economy is ambitious, risky\u2014and selfish",
|
| 261 |
+
"url": "https://www.economist.com/leaders/2023/02/02/joe-bidens-effort-to-remake-the-economy-is-ambitious-risky-and-selfish",
|
| 262 |
+
"source": "theeconomist"
|
| 263 |
+
},
|
| 264 |
+
{
|
| 265 |
+
"title": "China\u2019s local-debt crisis is about to get nasty",
|
| 266 |
+
"url": "https://www.economist.com/finance-and-economics/2023/05/04/chinas-local-debt-crisis-is-about-to-get-nasty",
|
| 267 |
+
"source": "theeconomist"
|
| 268 |
+
}
|
| 269 |
+
],
|
| 270 |
+
"statuscode": 200,
|
| 271 |
+
"schema": {}
|
| 272 |
+
}
|
| 273 |
+
],
|
| 274 |
+
"standardized_name": "global_recession_live"
|
| 275 |
+
}
|
toolbench/toolenv/tools/News_Media/global_recession_live/api.py
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import requests
|
| 2 |
+
import json
|
| 3 |
+
from datetime import date, datetime, timedelta
|
| 4 |
+
import os
|
| 5 |
+
|
| 6 |
+
from typing import Optional, Dict, Union, List
|
| 7 |
+
|
| 8 |
+
|
| 9 |
+
def get_specific_news_articles_by_publication(newspaperid: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 10 |
+
"""
|
| 11 |
+
"This endpoint will return the latest articles from a specific publication."
|
| 12 |
+
|
| 13 |
+
"""
|
| 14 |
+
url = f"https://global-recession-live.p.rapidapi.com/news/{newspaperid}"
|
| 15 |
+
querystring = {}
|
| 16 |
+
|
| 17 |
+
headers = {
|
| 18 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 19 |
+
"X-RapidAPI-Host": "global-recession-live.p.rapidapi.com"
|
| 20 |
+
}
|
| 21 |
+
|
| 22 |
+
|
| 23 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 24 |
+
try:
|
| 25 |
+
observation = response.json()
|
| 26 |
+
except:
|
| 27 |
+
observation = response.text
|
| 28 |
+
return observation
|
| 29 |
+
|
| 30 |
+
def get_all_global_recession_news(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 31 |
+
"""
|
| 32 |
+
"This endpoint will return the latest articles from 7 publications about worldwide recession news."
|
| 33 |
+
|
| 34 |
+
"""
|
| 35 |
+
url = f"https://global-recession-live.p.rapidapi.com/news"
|
| 36 |
+
querystring = {}
|
| 37 |
+
|
| 38 |
+
headers = {
|
| 39 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 40 |
+
"X-RapidAPI-Host": "global-recession-live.p.rapidapi.com"
|
| 41 |
+
}
|
| 42 |
+
|
| 43 |
+
|
| 44 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 45 |
+
try:
|
| 46 |
+
observation = response.json()
|
| 47 |
+
except:
|
| 48 |
+
observation = response.text
|
| 49 |
+
return observation
|
| 50 |
+
|
toolbench/toolenv/tools/News_Media/global_stock_news/api.py
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import requests
|
| 2 |
+
import json
|
| 3 |
+
from datetime import date, datetime, timedelta
|
| 4 |
+
import os
|
| 5 |
+
|
| 6 |
+
from typing import Optional, Dict, Union, List
|
| 7 |
+
|
| 8 |
+
|
| 9 |
+
def search_news_with_translation(target_lang: str, nextpage: int=None, symbol: str='AAPL, AMZN, MSFT', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 10 |
+
"""
|
| 11 |
+
"Search live news articles by stock symbols and also get translations of your specified target language. 10 articles are returned per request"
|
| 12 |
+
target_lang: An ISO language code to translate the articles
|
| 13 |
+
|
| 14 |
+
"""
|
| 15 |
+
url = f"https://global-stock-news.p.rapidapi.com/feed/translated"
|
| 16 |
+
querystring = {'target_lang': target_lang, }
|
| 17 |
+
if nextpage:
|
| 18 |
+
querystring['nextPage'] = nextpage
|
| 19 |
+
if symbol:
|
| 20 |
+
querystring['symbol'] = symbol
|
| 21 |
+
|
| 22 |
+
headers = {
|
| 23 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 24 |
+
"X-RapidAPI-Host": "global-stock-news.p.rapidapi.com"
|
| 25 |
+
}
|
| 26 |
+
|
| 27 |
+
|
| 28 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 29 |
+
try:
|
| 30 |
+
observation = response.json()
|
| 31 |
+
except:
|
| 32 |
+
observation = response.text
|
| 33 |
+
return observation
|
| 34 |
+
|
| 35 |
+
def search_news_english(nextpage: int=None, symbol: str='AAPL, AMZN, MSFT', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 36 |
+
"""
|
| 37 |
+
"Search live news articles by stock symbols (English). 10 articles are returned per request."
|
| 38 |
+
nextpage: Article ID to search from. Articles are returned in the order of the published time.
|
| 39 |
+
symbol: Stock symbols to search, separated by comma
|
| 40 |
+
|
| 41 |
+
"""
|
| 42 |
+
url = f"https://global-stock-news.p.rapidapi.com/feed"
|
| 43 |
+
querystring = {}
|
| 44 |
+
if nextpage:
|
| 45 |
+
querystring['nextPage'] = nextpage
|
| 46 |
+
if symbol:
|
| 47 |
+
querystring['symbol'] = symbol
|
| 48 |
+
|
| 49 |
+
headers = {
|
| 50 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 51 |
+
"X-RapidAPI-Host": "global-stock-news.p.rapidapi.com"
|
| 52 |
+
}
|
| 53 |
+
|
| 54 |
+
|
| 55 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 56 |
+
try:
|
| 57 |
+
observation = response.json()
|
| 58 |
+
except:
|
| 59 |
+
observation = response.text
|
| 60 |
+
return observation
|
| 61 |
+
|
toolbench/toolenv/tools/News_Media/gnepro.json
ADDED
|
@@ -0,0 +1,181 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"product_id": "api_a4603f14-b924-4d0f-9c01-a5c5e8f69d53",
|
| 3 |
+
"tool_description": "Extract articles/news detail from a url.",
|
| 4 |
+
"home_url": "https://rapidapi.com/kingname/api/gnepro/",
|
| 5 |
+
"name": "GnePro",
|
| 6 |
+
"title": "GnePro",
|
| 7 |
+
"pricing": "FREEMIUM",
|
| 8 |
+
"tool_name": "GnePro",
|
| 9 |
+
"score": null,
|
| 10 |
+
"host": "gnepro.p.rapidapi.com",
|
| 11 |
+
"api_list": [
|
| 12 |
+
{
|
| 13 |
+
"name": "Crawl API",
|
| 14 |
+
"url": "https://gnepro.p.rapidapi.com/crawl",
|
| 15 |
+
"description": "Crawl a article page.",
|
| 16 |
+
"method": "POST",
|
| 17 |
+
"required_parameters": [],
|
| 18 |
+
"optional_parameters": [],
|
| 19 |
+
"code": "import requests\n\nurl = \"https://gnepro.p.rapidapi.com/crawl\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"gnepro.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
|
| 20 |
+
"convert_code": "import requests\n\nurl = \"https://gnepro.p.rapidapi.com/crawl\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"gnepro.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
|
| 21 |
+
"test_endpoint": "",
|
| 22 |
+
"statuscode": 200,
|
| 23 |
+
"schema": {
|
| 24 |
+
"type": "object",
|
| 25 |
+
"properties": {
|
| 26 |
+
"title": {
|
| 27 |
+
"type": "string"
|
| 28 |
+
},
|
| 29 |
+
"publish_time_ts": {
|
| 30 |
+
"type": "integer"
|
| 31 |
+
},
|
| 32 |
+
"publish_time": {
|
| 33 |
+
"type": "string"
|
| 34 |
+
},
|
| 35 |
+
"content": {
|
| 36 |
+
"type": "string"
|
| 37 |
+
},
|
| 38 |
+
"content_list": {
|
| 39 |
+
"type": "array",
|
| 40 |
+
"items": {
|
| 41 |
+
"type": "object",
|
| 42 |
+
"properties": {
|
| 43 |
+
"type": {
|
| 44 |
+
"type": "string"
|
| 45 |
+
},
|
| 46 |
+
"data": {
|
| 47 |
+
"type": "string"
|
| 48 |
+
},
|
| 49 |
+
"caption": {
|
| 50 |
+
"type": "string"
|
| 51 |
+
}
|
| 52 |
+
}
|
| 53 |
+
}
|
| 54 |
+
},
|
| 55 |
+
"summary": {
|
| 56 |
+
"type": "string"
|
| 57 |
+
},
|
| 58 |
+
"canonical_url": {
|
| 59 |
+
"type": "string"
|
| 60 |
+
},
|
| 61 |
+
"image_count": {
|
| 62 |
+
"type": "integer"
|
| 63 |
+
},
|
| 64 |
+
"image_urls": {
|
| 65 |
+
"type": "array",
|
| 66 |
+
"items": {
|
| 67 |
+
"type": "string"
|
| 68 |
+
}
|
| 69 |
+
},
|
| 70 |
+
"image_captions": {
|
| 71 |
+
"type": "array",
|
| 72 |
+
"items": {
|
| 73 |
+
"type": "string"
|
| 74 |
+
}
|
| 75 |
+
},
|
| 76 |
+
"head_meta": {
|
| 77 |
+
"type": "object",
|
| 78 |
+
"properties": {
|
| 79 |
+
"og:type": {
|
| 80 |
+
"type": "string"
|
| 81 |
+
},
|
| 82 |
+
"description": {
|
| 83 |
+
"type": "string"
|
| 84 |
+
},
|
| 85 |
+
"al:android:package": {
|
| 86 |
+
"type": "string"
|
| 87 |
+
},
|
| 88 |
+
"twitter:image": {
|
| 89 |
+
"type": "string"
|
| 90 |
+
},
|
| 91 |
+
"al:ios:app_name": {
|
| 92 |
+
"type": "string"
|
| 93 |
+
},
|
| 94 |
+
"twitter:image:src": {
|
| 95 |
+
"type": "string"
|
| 96 |
+
},
|
| 97 |
+
"og:description": {
|
| 98 |
+
"type": "string"
|
| 99 |
+
},
|
| 100 |
+
"twitter:creator": {
|
| 101 |
+
"type": "string"
|
| 102 |
+
},
|
| 103 |
+
"al:android:app_name": {
|
| 104 |
+
"type": "string"
|
| 105 |
+
},
|
| 106 |
+
"og:site_name": {
|
| 107 |
+
"type": "string"
|
| 108 |
+
},
|
| 109 |
+
"al:ios:app_store_id": {
|
| 110 |
+
"type": "string"
|
| 111 |
+
},
|
| 112 |
+
"twitter:title": {
|
| 113 |
+
"type": "string"
|
| 114 |
+
},
|
| 115 |
+
"og:image": {
|
| 116 |
+
"type": "string"
|
| 117 |
+
},
|
| 118 |
+
"og:image:height": {
|
| 119 |
+
"type": "string"
|
| 120 |
+
},
|
| 121 |
+
"twitter:site": {
|
| 122 |
+
"type": "string"
|
| 123 |
+
},
|
| 124 |
+
"og:url": {
|
| 125 |
+
"type": "string"
|
| 126 |
+
},
|
| 127 |
+
"og:title": {
|
| 128 |
+
"type": "string"
|
| 129 |
+
},
|
| 130 |
+
"al:ios:url": {
|
| 131 |
+
"type": "string"
|
| 132 |
+
},
|
| 133 |
+
"og:image:width": {
|
| 134 |
+
"type": "string"
|
| 135 |
+
},
|
| 136 |
+
"oath:guce:consent-host": {
|
| 137 |
+
"type": "string"
|
| 138 |
+
},
|
| 139 |
+
"al:android:url": {
|
| 140 |
+
"type": "string"
|
| 141 |
+
},
|
| 142 |
+
"twitter:dnt": {
|
| 143 |
+
"type": "string"
|
| 144 |
+
},
|
| 145 |
+
"twitter:card": {
|
| 146 |
+
"type": "string"
|
| 147 |
+
},
|
| 148 |
+
"news_keywords": {
|
| 149 |
+
"type": "string"
|
| 150 |
+
},
|
| 151 |
+
"robots": {
|
| 152 |
+
"type": "string"
|
| 153 |
+
},
|
| 154 |
+
"twitter:description": {
|
| 155 |
+
"type": "string"
|
| 156 |
+
}
|
| 157 |
+
}
|
| 158 |
+
},
|
| 159 |
+
"author": {
|
| 160 |
+
"type": "array",
|
| 161 |
+
"items": {
|
| 162 |
+
"type": "string"
|
| 163 |
+
}
|
| 164 |
+
},
|
| 165 |
+
"timezone": {
|
| 166 |
+
"type": "string"
|
| 167 |
+
},
|
| 168 |
+
"url": {
|
| 169 |
+
"type": "string"
|
| 170 |
+
},
|
| 171 |
+
"amp_url": {
|
| 172 |
+
"type": "string"
|
| 173 |
+
},
|
| 174 |
+
"breadcrumb": {
|
| 175 |
+
"type": "array"
|
| 176 |
+
}
|
| 177 |
+
}
|
| 178 |
+
}
|
| 179 |
+
}
|
| 180 |
+
]
|
| 181 |
+
}
|
toolbench/toolenv/tools/News_Media/go_hackernews/api.py
ADDED
|
@@ -0,0 +1,140 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import requests
|
| 2 |
+
import json
|
| 3 |
+
from datetime import date, datetime, timedelta
|
| 4 |
+
import os
|
| 5 |
+
|
| 6 |
+
from typing import Optional, Dict, Union, List
|
| 7 |
+
|
| 8 |
+
|
| 9 |
+
def get_job_stories(limit: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 10 |
+
"""
|
| 11 |
+
"Using this api you can get the detailed information of job stories on hackernews."
|
| 12 |
+
limit: Limit can't be more than 200
|
| 13 |
+
|
| 14 |
+
"""
|
| 15 |
+
url = f"https://go-hackernews.p.rapidapi.com/api/v1/jobstories/{limit}"
|
| 16 |
+
querystring = {}
|
| 17 |
+
|
| 18 |
+
headers = {
|
| 19 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 20 |
+
"X-RapidAPI-Host": "go-hackernews.p.rapidapi.com"
|
| 21 |
+
}
|
| 22 |
+
|
| 23 |
+
|
| 24 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 25 |
+
try:
|
| 26 |
+
observation = response.json()
|
| 27 |
+
except:
|
| 28 |
+
observation = response.text
|
| 29 |
+
return observation
|
| 30 |
+
|
| 31 |
+
def get_show_stories(limit: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 32 |
+
"""
|
| 33 |
+
"Using this api you can get the detailed information of show stories on hackernews."
|
| 34 |
+
limit: Limit can't be more than 200
|
| 35 |
+
|
| 36 |
+
"""
|
| 37 |
+
url = f"https://go-hackernews.p.rapidapi.com/api/v1/showstories/{limit}"
|
| 38 |
+
querystring = {}
|
| 39 |
+
|
| 40 |
+
headers = {
|
| 41 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 42 |
+
"X-RapidAPI-Host": "go-hackernews.p.rapidapi.com"
|
| 43 |
+
}
|
| 44 |
+
|
| 45 |
+
|
| 46 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 47 |
+
try:
|
| 48 |
+
observation = response.json()
|
| 49 |
+
except:
|
| 50 |
+
observation = response.text
|
| 51 |
+
return observation
|
| 52 |
+
|
| 53 |
+
def get_ask_stories(limit: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 54 |
+
"""
|
| 55 |
+
"Using this api you can get the detailed information of ask stories on hackernews."
|
| 56 |
+
limit: Limit can't be more than 200.
|
| 57 |
+
|
| 58 |
+
"""
|
| 59 |
+
url = f"https://go-hackernews.p.rapidapi.com/api/v1/askstories/{limit}"
|
| 60 |
+
querystring = {}
|
| 61 |
+
|
| 62 |
+
headers = {
|
| 63 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 64 |
+
"X-RapidAPI-Host": "go-hackernews.p.rapidapi.com"
|
| 65 |
+
}
|
| 66 |
+
|
| 67 |
+
|
| 68 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 69 |
+
try:
|
| 70 |
+
observation = response.json()
|
| 71 |
+
except:
|
| 72 |
+
observation = response.text
|
| 73 |
+
return observation
|
| 74 |
+
|
| 75 |
+
def get_best_stories(limit: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 76 |
+
"""
|
| 77 |
+
"Using this api you can get the detailed information of best stories on hackernews."
|
| 78 |
+
limit: Limit can't be more than 500
|
| 79 |
+
|
| 80 |
+
"""
|
| 81 |
+
url = f"https://go-hackernews.p.rapidapi.com/api/v1/beststories/{limit}"
|
| 82 |
+
querystring = {}
|
| 83 |
+
|
| 84 |
+
headers = {
|
| 85 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 86 |
+
"X-RapidAPI-Host": "go-hackernews.p.rapidapi.com"
|
| 87 |
+
}
|
| 88 |
+
|
| 89 |
+
|
| 90 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 91 |
+
try:
|
| 92 |
+
observation = response.json()
|
| 93 |
+
except:
|
| 94 |
+
observation = response.text
|
| 95 |
+
return observation
|
| 96 |
+
|
| 97 |
+
def get_new_stories(limit: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 98 |
+
"""
|
| 99 |
+
"Using new stories you can get hackernews new posts."
|
| 100 |
+
limit: Limit is required and your limit can't be more than 500
|
| 101 |
+
|
| 102 |
+
"""
|
| 103 |
+
url = f"https://go-hackernews.p.rapidapi.com/api/v1/newstories/{limit}"
|
| 104 |
+
querystring = {}
|
| 105 |
+
|
| 106 |
+
headers = {
|
| 107 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 108 |
+
"X-RapidAPI-Host": "go-hackernews.p.rapidapi.com"
|
| 109 |
+
}
|
| 110 |
+
|
| 111 |
+
|
| 112 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 113 |
+
try:
|
| 114 |
+
observation = response.json()
|
| 115 |
+
except:
|
| 116 |
+
observation = response.text
|
| 117 |
+
return observation
|
| 118 |
+
|
| 119 |
+
def get_top_stories(limit: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 120 |
+
"""
|
| 121 |
+
"Using this api you can get the detailed information of top stories on hackernews."
|
| 122 |
+
limit: The default limit set by official api of hackernews is 500 so you can't pass limit more than 500.
|
| 123 |
+
|
| 124 |
+
"""
|
| 125 |
+
url = f"https://go-hackernews.p.rapidapi.com/api/v1/topstories/{limit}"
|
| 126 |
+
querystring = {}
|
| 127 |
+
|
| 128 |
+
headers = {
|
| 129 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 130 |
+
"X-RapidAPI-Host": "go-hackernews.p.rapidapi.com"
|
| 131 |
+
}
|
| 132 |
+
|
| 133 |
+
|
| 134 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 135 |
+
try:
|
| 136 |
+
observation = response.json()
|
| 137 |
+
except:
|
| 138 |
+
observation = response.text
|
| 139 |
+
return observation
|
| 140 |
+
|
toolbench/toolenv/tools/News_Media/golf_news_live/api.py
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import requests
|
| 2 |
+
import json
|
| 3 |
+
from datetime import date, datetime, timedelta
|
| 4 |
+
import os
|
| 5 |
+
|
| 6 |
+
from typing import Optional, Dict, Union, List
|
| 7 |
+
|
| 8 |
+
|
| 9 |
+
def get_individual_golf_news_source(newspaperid: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 10 |
+
"""
|
| 11 |
+
"Gets News about Golf from a specific news resource"
|
| 12 |
+
|
| 13 |
+
"""
|
| 14 |
+
url = f"https://golf-news-live.p.rapidapi.com/news/{newspaperid}"
|
| 15 |
+
querystring = {}
|
| 16 |
+
|
| 17 |
+
headers = {
|
| 18 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 19 |
+
"X-RapidAPI-Host": "golf-news-live.p.rapidapi.com"
|
| 20 |
+
}
|
| 21 |
+
|
| 22 |
+
|
| 23 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 24 |
+
try:
|
| 25 |
+
observation = response.json()
|
| 26 |
+
except:
|
| 27 |
+
observation = response.text
|
| 28 |
+
return observation
|
| 29 |
+
|
| 30 |
+
def get_all_golf_news(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 31 |
+
"""
|
| 32 |
+
"This endpoint will return back all golf news from around the world"
|
| 33 |
+
|
| 34 |
+
"""
|
| 35 |
+
url = f"https://golf-news-live.p.rapidapi.com/news"
|
| 36 |
+
querystring = {}
|
| 37 |
+
|
| 38 |
+
headers = {
|
| 39 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 40 |
+
"X-RapidAPI-Host": "golf-news-live.p.rapidapi.com"
|
| 41 |
+
}
|
| 42 |
+
|
| 43 |
+
|
| 44 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 45 |
+
try:
|
| 46 |
+
observation = response.json()
|
| 47 |
+
except:
|
| 48 |
+
observation = response.text
|
| 49 |
+
return observation
|
| 50 |
+
|
toolbench/toolenv/tools/News_Media/google_news.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
toolbench/toolenv/tools/News_Media/google_news/api.py
ADDED
|
@@ -0,0 +1,256 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import requests
|
| 2 |
+
import json
|
| 3 |
+
from datetime import date, datetime, timedelta
|
| 4 |
+
import os
|
| 5 |
+
|
| 6 |
+
from typing import Optional, Dict, Union, List
|
| 7 |
+
|
| 8 |
+
|
| 9 |
+
def supported_languages_and_regions(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 10 |
+
"""
|
| 11 |
+
"This endpoint is used to retrieve a list of supported languages and regions."
|
| 12 |
+
|
| 13 |
+
"""
|
| 14 |
+
url = f"https://google-news13.p.rapidapi.com/languageregions"
|
| 15 |
+
querystring = {}
|
| 16 |
+
|
| 17 |
+
headers = {
|
| 18 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 19 |
+
"X-RapidAPI-Host": "google-news13.p.rapidapi.com"
|
| 20 |
+
}
|
| 21 |
+
|
| 22 |
+
|
| 23 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 24 |
+
try:
|
| 25 |
+
observation = response.json()
|
| 26 |
+
except:
|
| 27 |
+
observation = response.text
|
| 28 |
+
return observation
|
| 29 |
+
|
| 30 |
+
def suggest(keyword: str, lr: str='en-US', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 31 |
+
"""
|
| 32 |
+
"This endpoint is used to get autocomplete suggestions or query predictions as a user types a search query. The endpoint requires the **keyword** parameter, which represents the partial text entered by the user. You can send a request with the partial text, and the request will generate a JSON response containing a list of relevant autocomplete suggestions for the search query."
|
| 33 |
+
keyword: The mandatory parameter to specify the search term
|
| 34 |
+
lr: language region, ex: en-US
|
| 35 |
+
|
| 36 |
+
"""
|
| 37 |
+
url = f"https://google-news13.p.rapidapi.com/search/suggest"
|
| 38 |
+
querystring = {'keyword': keyword, }
|
| 39 |
+
if lr:
|
| 40 |
+
querystring['lr'] = lr
|
| 41 |
+
|
| 42 |
+
headers = {
|
| 43 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 44 |
+
"X-RapidAPI-Host": "google-news13.p.rapidapi.com"
|
| 45 |
+
}
|
| 46 |
+
|
| 47 |
+
|
| 48 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 49 |
+
try:
|
| 50 |
+
observation = response.json()
|
| 51 |
+
except:
|
| 52 |
+
observation = response.text
|
| 53 |
+
return observation
|
| 54 |
+
|
| 55 |
+
def search(keyword: str, lr: str='en-US', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 56 |
+
"""
|
| 57 |
+
"This endpoint is used to search for news from Google News based on keywords. The mandatory parameter to be used is **keyword** to specify the search term"
|
| 58 |
+
keyword: The mandatory parameter to specify the search term
|
| 59 |
+
lr: language region, ex: en-US
|
| 60 |
+
|
| 61 |
+
"""
|
| 62 |
+
url = f"https://google-news13.p.rapidapi.com/search"
|
| 63 |
+
querystring = {'keyword': keyword, }
|
| 64 |
+
if lr:
|
| 65 |
+
querystring['lr'] = lr
|
| 66 |
+
|
| 67 |
+
headers = {
|
| 68 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 69 |
+
"X-RapidAPI-Host": "google-news13.p.rapidapi.com"
|
| 70 |
+
}
|
| 71 |
+
|
| 72 |
+
|
| 73 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 74 |
+
try:
|
| 75 |
+
observation = response.json()
|
| 76 |
+
except:
|
| 77 |
+
observation = response.text
|
| 78 |
+
return observation
|
| 79 |
+
|
| 80 |
+
def world(lr: str='en-US', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 81 |
+
"""
|
| 82 |
+
"This endpoint is used to get world news from Google News. The optional parameter that can be used is "lr" to determine the region"
|
| 83 |
+
|
| 84 |
+
"""
|
| 85 |
+
url = f"https://google-news13.p.rapidapi.com/world"
|
| 86 |
+
querystring = {}
|
| 87 |
+
if lr:
|
| 88 |
+
querystring['lr'] = lr
|
| 89 |
+
|
| 90 |
+
headers = {
|
| 91 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 92 |
+
"X-RapidAPI-Host": "google-news13.p.rapidapi.com"
|
| 93 |
+
}
|
| 94 |
+
|
| 95 |
+
|
| 96 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 97 |
+
try:
|
| 98 |
+
observation = response.json()
|
| 99 |
+
except:
|
| 100 |
+
observation = response.text
|
| 101 |
+
return observation
|
| 102 |
+
|
| 103 |
+
def sport(lr: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 104 |
+
"""
|
| 105 |
+
"This endpoint is used to get sport news from Google News."
|
| 106 |
+
lr: language region, ex: en-US
|
| 107 |
+
|
| 108 |
+
"""
|
| 109 |
+
url = f"https://google-news13.p.rapidapi.com/sport"
|
| 110 |
+
querystring = {'lr': lr, }
|
| 111 |
+
|
| 112 |
+
headers = {
|
| 113 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 114 |
+
"X-RapidAPI-Host": "google-news13.p.rapidapi.com"
|
| 115 |
+
}
|
| 116 |
+
|
| 117 |
+
|
| 118 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 119 |
+
try:
|
| 120 |
+
observation = response.json()
|
| 121 |
+
except:
|
| 122 |
+
observation = response.text
|
| 123 |
+
return observation
|
| 124 |
+
|
| 125 |
+
def science(lr: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 126 |
+
"""
|
| 127 |
+
"This endpoint is used to get science news from Google News."
|
| 128 |
+
lr: language region, ex: en-US
|
| 129 |
+
|
| 130 |
+
"""
|
| 131 |
+
url = f"https://google-news13.p.rapidapi.com/science"
|
| 132 |
+
querystring = {'lr': lr, }
|
| 133 |
+
|
| 134 |
+
headers = {
|
| 135 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 136 |
+
"X-RapidAPI-Host": "google-news13.p.rapidapi.com"
|
| 137 |
+
}
|
| 138 |
+
|
| 139 |
+
|
| 140 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 141 |
+
try:
|
| 142 |
+
observation = response.json()
|
| 143 |
+
except:
|
| 144 |
+
observation = response.text
|
| 145 |
+
return observation
|
| 146 |
+
|
| 147 |
+
def health(lr: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 148 |
+
"""
|
| 149 |
+
"This endpoint is used to get health news from Google News."
|
| 150 |
+
lr: language region, ex: en-US
|
| 151 |
+
|
| 152 |
+
"""
|
| 153 |
+
url = f"https://google-news13.p.rapidapi.com/health"
|
| 154 |
+
querystring = {'lr': lr, }
|
| 155 |
+
|
| 156 |
+
headers = {
|
| 157 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 158 |
+
"X-RapidAPI-Host": "google-news13.p.rapidapi.com"
|
| 159 |
+
}
|
| 160 |
+
|
| 161 |
+
|
| 162 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 163 |
+
try:
|
| 164 |
+
observation = response.json()
|
| 165 |
+
except:
|
| 166 |
+
observation = response.text
|
| 167 |
+
return observation
|
| 168 |
+
|
| 169 |
+
def entertainment(lr: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 170 |
+
"""
|
| 171 |
+
"This endpoint is used to get entertainment news from Google News."
|
| 172 |
+
lr: language region, ex: en-US
|
| 173 |
+
|
| 174 |
+
"""
|
| 175 |
+
url = f"https://google-news13.p.rapidapi.com/entertainment"
|
| 176 |
+
querystring = {'lr': lr, }
|
| 177 |
+
|
| 178 |
+
headers = {
|
| 179 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 180 |
+
"X-RapidAPI-Host": "google-news13.p.rapidapi.com"
|
| 181 |
+
}
|
| 182 |
+
|
| 183 |
+
|
| 184 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 185 |
+
try:
|
| 186 |
+
observation = response.json()
|
| 187 |
+
except:
|
| 188 |
+
observation = response.text
|
| 189 |
+
return observation
|
| 190 |
+
|
| 191 |
+
def business(lr: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 192 |
+
"""
|
| 193 |
+
"This endpoint is used to get business news from Google News."
|
| 194 |
+
lr: language region, ex: en-US
|
| 195 |
+
|
| 196 |
+
"""
|
| 197 |
+
url = f"https://google-news13.p.rapidapi.com/business"
|
| 198 |
+
querystring = {'lr': lr, }
|
| 199 |
+
|
| 200 |
+
headers = {
|
| 201 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 202 |
+
"X-RapidAPI-Host": "google-news13.p.rapidapi.com"
|
| 203 |
+
}
|
| 204 |
+
|
| 205 |
+
|
| 206 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 207 |
+
try:
|
| 208 |
+
observation = response.json()
|
| 209 |
+
except:
|
| 210 |
+
observation = response.text
|
| 211 |
+
return observation
|
| 212 |
+
|
| 213 |
+
def latest(lr: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 214 |
+
"""
|
| 215 |
+
"This endpoint is used to get the latest news from Google News."
|
| 216 |
+
lr: language region, ex: en-US
|
| 217 |
+
|
| 218 |
+
"""
|
| 219 |
+
url = f"https://google-news13.p.rapidapi.com/latest"
|
| 220 |
+
querystring = {'lr': lr, }
|
| 221 |
+
|
| 222 |
+
headers = {
|
| 223 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 224 |
+
"X-RapidAPI-Host": "google-news13.p.rapidapi.com"
|
| 225 |
+
}
|
| 226 |
+
|
| 227 |
+
|
| 228 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 229 |
+
try:
|
| 230 |
+
observation = response.json()
|
| 231 |
+
except:
|
| 232 |
+
observation = response.text
|
| 233 |
+
return observation
|
| 234 |
+
|
| 235 |
+
def technology(lr: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 236 |
+
"""
|
| 237 |
+
"This endpoint is used to get technology news from Google News."
|
| 238 |
+
lr: language region, ex: en-US
|
| 239 |
+
|
| 240 |
+
"""
|
| 241 |
+
url = f"https://google-news13.p.rapidapi.com/technology"
|
| 242 |
+
querystring = {'lr': lr, }
|
| 243 |
+
|
| 244 |
+
headers = {
|
| 245 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 246 |
+
"X-RapidAPI-Host": "google-news13.p.rapidapi.com"
|
| 247 |
+
}
|
| 248 |
+
|
| 249 |
+
|
| 250 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 251 |
+
try:
|
| 252 |
+
observation = response.json()
|
| 253 |
+
except:
|
| 254 |
+
observation = response.text
|
| 255 |
+
return observation
|
| 256 |
+
|
toolbench/toolenv/tools/News_Media/google_news_api.json
ADDED
|
@@ -0,0 +1,136 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"product_id": "api_643872a6-4af9-4188-8125-fc3713ac81f1",
|
| 3 |
+
"tool_description": "By using the Google News API, which is a straightforward REST API, you may look through over 1,000,000 news sources, both current and archived. You may also aggregate and arrange today's most talked-about news stories in accordance with Google News's rating with the help of this news API. You can also use filters and a keyword search to sift through all the articles.\n\nWe have compiled tens of millions of articles from over 250,000 sources in ten different languages for inclusion in our databa...",
|
| 4 |
+
"home_url": "https://rapidapi.com/ctr-ou-ctr-ou-default/api/google-news-api1/",
|
| 5 |
+
"name": "Google News API",
|
| 6 |
+
"title": "Google News API",
|
| 7 |
+
"pricing": "FREEMIUM",
|
| 8 |
+
"tool_name": "Google News API",
|
| 9 |
+
"score": {
|
| 10 |
+
"avgServiceLevel": 100,
|
| 11 |
+
"avgLatency": 573,
|
| 12 |
+
"avgSuccessRate": 88,
|
| 13 |
+
"popularityScore": 9.7,
|
| 14 |
+
"__typename": "Score"
|
| 15 |
+
},
|
| 16 |
+
"host": "google-news-api1.p.rapidapi.com",
|
| 17 |
+
"api_list": [
|
| 18 |
+
{
|
| 19 |
+
"name": "Get articles",
|
| 20 |
+
"url": "https://google-news-api1.p.rapidapi.com/search",
|
| 21 |
+
"description": "Get, filter, smart search google news articles.",
|
| 22 |
+
"method": "GET",
|
| 23 |
+
"required_parameters": [
|
| 24 |
+
{
|
| 25 |
+
"name": "language",
|
| 26 |
+
"type": "STRING",
|
| 27 |
+
"description": "Supported by 10 languages. \n\nLanguage request codes:\n\n TR, EN, FR, DE, IT, ZH, ES, RU, KO, PT",
|
| 28 |
+
"default": ""
|
| 29 |
+
}
|
| 30 |
+
],
|
| 31 |
+
"optional_parameters": [
|
| 32 |
+
{
|
| 33 |
+
"name": "sort",
|
| 34 |
+
"type": "STRING",
|
| 35 |
+
"description": "You can arrange the articles systematically in groups; separate according to type, class, etc.\n\nSorting refers to ordering articles in an increasing or decreasing manner according to some linear relationship among the article items. You can order the articles and arrange them in a sequence ordered by category with similar properties.\n\nExpected values:\n\ndate:asc\ndate:desc\n\n_score:asc\n_score:desc",
|
| 36 |
+
"default": ""
|
| 37 |
+
},
|
| 38 |
+
{
|
| 39 |
+
"name": "required_props",
|
| 40 |
+
"type": "STRING",
|
| 41 |
+
"description": "Required props are delimited by commas. Each property must have a name. If one of the property names is missing from the article, that property is excluded.\n\nExample:\n\ntitle, image\n\n",
|
| 42 |
+
"default": ""
|
| 43 |
+
},
|
| 44 |
+
{
|
| 45 |
+
"name": "cursor",
|
| 46 |
+
"type": "STRING",
|
| 47 |
+
"description": "This defines the returned value of the \\\\\\\"next_cursor\\\\\\\". It allows you to navigate to next article list.",
|
| 48 |
+
"default": ""
|
| 49 |
+
},
|
| 50 |
+
{
|
| 51 |
+
"name": "to",
|
| 52 |
+
"type": "STRING",
|
| 53 |
+
"description": "\\\\\\\"to\\\\\\\" when used defines the date of items published before the specified date.\n\nFormat:\nISO date standart format is used. \nYYYY-MM-DDTHH:mm:ss\n\nExample:\n2022-10-17T18:41:34.306Z",
|
| 54 |
+
"default": ""
|
| 55 |
+
},
|
| 56 |
+
{
|
| 57 |
+
"name": "limit",
|
| 58 |
+
"type": "NUMBER",
|
| 59 |
+
"description": "With \\\\\\\"limit,\\\\\\\" you can specify the number of articles required per request. Maximum limit is set to 100 articles per request.",
|
| 60 |
+
"default": ""
|
| 61 |
+
},
|
| 62 |
+
{
|
| 63 |
+
"name": "from",
|
| 64 |
+
"type": "STRING",
|
| 65 |
+
"description": "\\\\\\\"from\\\\\\\" when used defines the date of items published after the specified date.\n\nFormat:\nISO date standart format is used. \nYYYY-MM-DDTHH:mm:ss\n\nExample:\n2022-10-17T18:41:34.306Z\n\n",
|
| 66 |
+
"default": ""
|
| 67 |
+
},
|
| 68 |
+
{
|
| 69 |
+
"name": "q",
|
| 70 |
+
"type": "STRING",
|
| 71 |
+
"description": "The search term or terms used to locate the article.\n\n\\\\\\\"AND\\\\\\\" or \\\\\\\"OR\\\\\\\" may be placed between the keywords.\n\nIf you wish to group the keywords, you may include them in parenthesis.\n\nFor instance: (cats and dogs) OR (fish)\n\nIf you wish to omit articles by term, you can do so by prefixing the keyword with a (-) sign.\n\nExample: cats -dogs\n(This will return articles featuring cats but exclude those with the term \\\\\\\"dog.\\\\\\\"\n\n",
|
| 72 |
+
"default": ""
|
| 73 |
+
}
|
| 74 |
+
],
|
| 75 |
+
"code": "import requests\n\nurl = \"https://google-news-api1.p.rapidapi.com/search\"\nquerystring = {\"sort\": \"\", \"required_props\": \"\", \"cursor\": \"\", \"to\": \"\", \"limit\": \"\", \"from\": \"\", \"language\": \"\", \"q\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"google-news-api1.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n",
|
| 76 |
+
"convert_code": "import requests\n\nurl = \"https://google-news-api1.p.rapidapi.com/search\"\nquerystring = {\"sort\": \"\", \"required_props\": \"\", \"cursor\": \"\", \"to\": \"\", \"limit\": \"\", \"from\": \"\", \"language\": \"\", \"q\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"google-news-api1.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n",
|
| 77 |
+
"test_endpoint": {
|
| 78 |
+
"success": false,
|
| 79 |
+
"messsage": "ERROR.INVALID_NEXT_CURSOR"
|
| 80 |
+
},
|
| 81 |
+
"statuscode": 200,
|
| 82 |
+
"schema": {
|
| 83 |
+
"type": "object",
|
| 84 |
+
"properties": {
|
| 85 |
+
"success": {
|
| 86 |
+
"type": "boolean"
|
| 87 |
+
},
|
| 88 |
+
"news": {
|
| 89 |
+
"type": "object",
|
| 90 |
+
"properties": {
|
| 91 |
+
"total": {
|
| 92 |
+
"type": "integer"
|
| 93 |
+
},
|
| 94 |
+
"news": {
|
| 95 |
+
"type": "array",
|
| 96 |
+
"items": {
|
| 97 |
+
"type": "object",
|
| 98 |
+
"properties": {
|
| 99 |
+
"title": {
|
| 100 |
+
"type": "string"
|
| 101 |
+
},
|
| 102 |
+
"link": {
|
| 103 |
+
"type": "string"
|
| 104 |
+
},
|
| 105 |
+
"description": {
|
| 106 |
+
"type": "string"
|
| 107 |
+
},
|
| 108 |
+
"source": {
|
| 109 |
+
"type": "string"
|
| 110 |
+
},
|
| 111 |
+
"date": {
|
| 112 |
+
"type": "string"
|
| 113 |
+
},
|
| 114 |
+
"props": {
|
| 115 |
+
"type": "object"
|
| 116 |
+
},
|
| 117 |
+
"language": {
|
| 118 |
+
"type": "string"
|
| 119 |
+
},
|
| 120 |
+
"created_at": {
|
| 121 |
+
"type": "string"
|
| 122 |
+
}
|
| 123 |
+
}
|
| 124 |
+
}
|
| 125 |
+
},
|
| 126 |
+
"next_cursor": {
|
| 127 |
+
"type": "string"
|
| 128 |
+
}
|
| 129 |
+
}
|
| 130 |
+
}
|
| 131 |
+
}
|
| 132 |
+
}
|
| 133 |
+
}
|
| 134 |
+
],
|
| 135 |
+
"standardized_name": "google_news_api"
|
| 136 |
+
}
|
toolbench/toolenv/tools/News_Media/google_news_api/api.py
ADDED
|
@@ -0,0 +1,100 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import requests
|
| 2 |
+
import json
|
| 3 |
+
from datetime import date, datetime, timedelta
|
| 4 |
+
import os
|
| 5 |
+
|
| 6 |
+
from typing import Optional, Dict, Union, List
|
| 7 |
+
|
| 8 |
+
|
| 9 |
+
def get_articles(language: str, sort: str=None, required_props: str=None, cursor: str=None, to: str=None, limit: int=None, is_from: str=None, q: str=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 10 |
+
"""
|
| 11 |
+
"Get, filter, smart search google news articles."
|
| 12 |
+
language: Supported by 10 languages.
|
| 13 |
+
|
| 14 |
+
Language request codes:
|
| 15 |
+
|
| 16 |
+
TR, EN, FR, DE, IT, ZH, ES, RU, KO, PT
|
| 17 |
+
sort: You can arrange the articles systematically in groups; separate according to type, class, etc.
|
| 18 |
+
|
| 19 |
+
Sorting refers to ordering articles in an increasing or decreasing manner according to some linear relationship among the article items. You can order the articles and arrange them in a sequence ordered by category with similar properties.
|
| 20 |
+
|
| 21 |
+
Expected values:
|
| 22 |
+
|
| 23 |
+
date:asc
|
| 24 |
+
date:desc
|
| 25 |
+
|
| 26 |
+
_score:asc
|
| 27 |
+
_score:desc
|
| 28 |
+
required_props: Required props are delimited by commas. Each property must have a name. If one of the property names is missing from the article, that property is excluded.
|
| 29 |
+
|
| 30 |
+
Example:
|
| 31 |
+
|
| 32 |
+
title, image
|
| 33 |
+
|
| 34 |
+
|
| 35 |
+
cursor: This defines the returned value of the \\\"next_cursor\\\". It allows you to navigate to next article list.
|
| 36 |
+
to: \\\"to\\\" when used defines the date of items published before the specified date.
|
| 37 |
+
|
| 38 |
+
Format:
|
| 39 |
+
ISO date standart format is used.
|
| 40 |
+
YYYY-MM-DDTHH:mm:ss
|
| 41 |
+
|
| 42 |
+
Example:
|
| 43 |
+
2022-10-17T18:41:34.306Z
|
| 44 |
+
limit: With \\\"limit,\\\" you can specify the number of articles required per request. Maximum limit is set to 100 articles per request.
|
| 45 |
+
is_from: \\\"from\\\" when used defines the date of items published after the specified date.
|
| 46 |
+
|
| 47 |
+
Format:
|
| 48 |
+
ISO date standart format is used.
|
| 49 |
+
YYYY-MM-DDTHH:mm:ss
|
| 50 |
+
|
| 51 |
+
Example:
|
| 52 |
+
2022-10-17T18:41:34.306Z
|
| 53 |
+
|
| 54 |
+
|
| 55 |
+
q: The search term or terms used to locate the article.
|
| 56 |
+
|
| 57 |
+
\\\"AND\\\" or \\\"OR\\\" may be placed between the keywords.
|
| 58 |
+
|
| 59 |
+
If you wish to group the keywords, you may include them in parenthesis.
|
| 60 |
+
|
| 61 |
+
For instance: (cats and dogs) OR (fish)
|
| 62 |
+
|
| 63 |
+
If you wish to omit articles by term, you can do so by prefixing the keyword with a (-) sign.
|
| 64 |
+
|
| 65 |
+
Example: cats -dogs
|
| 66 |
+
(This will return articles featuring cats but exclude those with the term \\\"dog.\\\"
|
| 67 |
+
|
| 68 |
+
|
| 69 |
+
|
| 70 |
+
"""
|
| 71 |
+
url = f"https://google-news-api1.p.rapidapi.com/search"
|
| 72 |
+
querystring = {'language': language, }
|
| 73 |
+
if sort:
|
| 74 |
+
querystring['sort'] = sort
|
| 75 |
+
if required_props:
|
| 76 |
+
querystring['required_props'] = required_props
|
| 77 |
+
if cursor:
|
| 78 |
+
querystring['cursor'] = cursor
|
| 79 |
+
if to:
|
| 80 |
+
querystring['to'] = to
|
| 81 |
+
if limit:
|
| 82 |
+
querystring['limit'] = limit
|
| 83 |
+
if is_from:
|
| 84 |
+
querystring['from'] = is_from
|
| 85 |
+
if q:
|
| 86 |
+
querystring['q'] = q
|
| 87 |
+
|
| 88 |
+
headers = {
|
| 89 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 90 |
+
"X-RapidAPI-Host": "google-news-api1.p.rapidapi.com"
|
| 91 |
+
}
|
| 92 |
+
|
| 93 |
+
|
| 94 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 95 |
+
try:
|
| 96 |
+
observation = response.json()
|
| 97 |
+
except:
|
| 98 |
+
observation = response.text
|
| 99 |
+
return observation
|
| 100 |
+
|
toolbench/toolenv/tools/News_Media/goverlytics.json
ADDED
|
@@ -0,0 +1,167 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"product_id": "api_1e298777-fb31-4325-a28c-133570f707b1",
|
| 3 |
+
"tool_description": "The Goverlytics API.",
|
| 4 |
+
"home_url": "https://rapidapi.com/ioto-international-ioto-international-default/api/goverlytics1/",
|
| 5 |
+
"name": "Goverlytics",
|
| 6 |
+
"title": "Goverlytics",
|
| 7 |
+
"pricing": "PAID",
|
| 8 |
+
"tool_name": "Goverlytics",
|
| 9 |
+
"score": {
|
| 10 |
+
"avgServiceLevel": 63,
|
| 11 |
+
"avgLatency": 10983,
|
| 12 |
+
"avgSuccessRate": 55,
|
| 13 |
+
"popularityScore": 8.6,
|
| 14 |
+
"__typename": "Score"
|
| 15 |
+
},
|
| 16 |
+
"host": "goverlytics1.p.rapidapi.com",
|
| 17 |
+
"api_list": [
|
| 18 |
+
{
|
| 19 |
+
"name": "politicians",
|
| 20 |
+
"url": "https://goverlytics1.p.rapidapi.com/politicians",
|
| 21 |
+
"description": "fetch a list of politicians data",
|
| 22 |
+
"method": "GET",
|
| 23 |
+
"required_parameters": [],
|
| 24 |
+
"optional_parameters": [
|
| 25 |
+
{
|
| 26 |
+
"name": "offset",
|
| 27 |
+
"type": "NUMBER",
|
| 28 |
+
"description": "",
|
| 29 |
+
"default": ""
|
| 30 |
+
},
|
| 31 |
+
{
|
| 32 |
+
"name": "limit",
|
| 33 |
+
"type": "NUMBER",
|
| 34 |
+
"description": "",
|
| 35 |
+
"default": ""
|
| 36 |
+
},
|
| 37 |
+
{
|
| 38 |
+
"name": "active",
|
| 39 |
+
"type": "BOOLEAN",
|
| 40 |
+
"description": "",
|
| 41 |
+
"default": ""
|
| 42 |
+
},
|
| 43 |
+
{
|
| 44 |
+
"name": "province",
|
| 45 |
+
"type": "ENUM",
|
| 46 |
+
"description": "",
|
| 47 |
+
"default": ""
|
| 48 |
+
},
|
| 49 |
+
{
|
| 50 |
+
"name": "municipality",
|
| 51 |
+
"type": "ENUM",
|
| 52 |
+
"description": "",
|
| 53 |
+
"default": ""
|
| 54 |
+
},
|
| 55 |
+
{
|
| 56 |
+
"name": "level_of_government",
|
| 57 |
+
"type": "ENUM",
|
| 58 |
+
"description": "",
|
| 59 |
+
"default": ""
|
| 60 |
+
}
|
| 61 |
+
],
|
| 62 |
+
"code": "import requests\n\nurl = \"https://goverlytics1.p.rapidapi.com/politicians\"\nquerystring = {\"offset\": \"\", \"limit\": \"\", \"active\": \"\", \"province\": \"\", \"municipality\": \"\", \"level_of_government\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"goverlytics1.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n",
|
| 63 |
+
"convert_code": "import requests\n\nurl = \"https://goverlytics1.p.rapidapi.com/politicians\"\nquerystring = {\"offset\": \"\", \"limit\": \"\", \"active\": \"\", \"province\": \"\", \"municipality\": \"\", \"level_of_government\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"goverlytics1.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n",
|
| 64 |
+
"test_endpoint": {
|
| 65 |
+
"messages": "The API is unreachable, please contact the API provider",
|
| 66 |
+
"info": "Your Client (working) ---> Gateway (working) ---> API (not working)"
|
| 67 |
+
}
|
| 68 |
+
},
|
| 69 |
+
{
|
| 70 |
+
"name": "politician/{goverlytics_id}",
|
| 71 |
+
"url": "https://goverlytics1.p.rapidapi.com/politician/437c7e15-c66a-4b46-af9b-07e9b1317190",
|
| 72 |
+
"description": "Get 1 politician given their 'goverlytics_id'.",
|
| 73 |
+
"method": "GET",
|
| 74 |
+
"required_parameters": [
|
| 75 |
+
{
|
| 76 |
+
"name": "goverlytics_id",
|
| 77 |
+
"type": "string",
|
| 78 |
+
"description": "",
|
| 79 |
+
"default": "437c7e15-c66a-4b46-af9b-07e9b1317190"
|
| 80 |
+
}
|
| 81 |
+
],
|
| 82 |
+
"optional_parameters": [],
|
| 83 |
+
"code": "import requests\n\nurl = \"https://goverlytics1.p.rapidapi.com/politician/437c7e15-c66a-4b46-af9b-07e9b1317190\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"goverlytics1.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n",
|
| 84 |
+
"convert_code": "import requests\n\nurl = \"https://goverlytics1.p.rapidapi.com/politician/{goverlytics_id}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"goverlytics1.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n",
|
| 85 |
+
"test_endpoint": {
|
| 86 |
+
"data": {
|
| 87 |
+
"role": "Councillor",
|
| 88 |
+
"phone": "604-873-7249",
|
| 89 |
+
"name": "Rebecca Bligh",
|
| 90 |
+
"email": "CLRbligh@vancouver.ca",
|
| 91 |
+
"url": "https://vancouver.ca/your-government/rebecca-bligh.aspx",
|
| 92 |
+
"municipality": "Vancouver",
|
| 93 |
+
"goverlytics_id": "437c7e15-c66a-4b46-af9b-07e9b1317190"
|
| 94 |
+
},
|
| 95 |
+
"pagination": {
|
| 96 |
+
"current_url": "/v0/politician/437c7e15-c66a-4b46-af9b-07e9b1317190?limit=25&page=1",
|
| 97 |
+
"next_url": "",
|
| 98 |
+
"previous_url": ""
|
| 99 |
+
}
|
| 100 |
+
}
|
| 101 |
+
},
|
| 102 |
+
{
|
| 103 |
+
"name": "records",
|
| 104 |
+
"url": "https://goverlytics1.p.rapidapi.com/records",
|
| 105 |
+
"description": "Fetches records data",
|
| 106 |
+
"method": "GET",
|
| 107 |
+
"required_parameters": [],
|
| 108 |
+
"optional_parameters": [
|
| 109 |
+
{
|
| 110 |
+
"name": "limit",
|
| 111 |
+
"type": "NUMBER",
|
| 112 |
+
"description": "",
|
| 113 |
+
"default": ""
|
| 114 |
+
},
|
| 115 |
+
{
|
| 116 |
+
"name": "offset",
|
| 117 |
+
"type": "NUMBER",
|
| 118 |
+
"description": "",
|
| 119 |
+
"default": ""
|
| 120 |
+
},
|
| 121 |
+
{
|
| 122 |
+
"name": "substring",
|
| 123 |
+
"type": "STRING",
|
| 124 |
+
"description": "",
|
| 125 |
+
"default": ""
|
| 126 |
+
},
|
| 127 |
+
{
|
| 128 |
+
"name": "speaker_id",
|
| 129 |
+
"type": "STRING",
|
| 130 |
+
"description": "",
|
| 131 |
+
"default": ""
|
| 132 |
+
},
|
| 133 |
+
{
|
| 134 |
+
"name": "topic",
|
| 135 |
+
"type": "STRING",
|
| 136 |
+
"description": "",
|
| 137 |
+
"default": ""
|
| 138 |
+
},
|
| 139 |
+
{
|
| 140 |
+
"name": "speaker_party",
|
| 141 |
+
"type": "STRING",
|
| 142 |
+
"description": "",
|
| 143 |
+
"default": ""
|
| 144 |
+
},
|
| 145 |
+
{
|
| 146 |
+
"name": "level_of_government",
|
| 147 |
+
"type": "ENUM",
|
| 148 |
+
"description": "",
|
| 149 |
+
"default": ""
|
| 150 |
+
},
|
| 151 |
+
{
|
| 152 |
+
"name": "region",
|
| 153 |
+
"type": "ENUM",
|
| 154 |
+
"description": "",
|
| 155 |
+
"default": ""
|
| 156 |
+
}
|
| 157 |
+
],
|
| 158 |
+
"code": "import requests\n\nurl = \"https://goverlytics1.p.rapidapi.com/records\"\nquerystring = {\"limit\": \"\", \"offset\": \"\", \"substring\": \"\", \"speaker_id\": \"\", \"topic\": \"\", \"speaker_party\": \"\", \"level_of_government\": \"\", \"region\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"goverlytics1.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n",
|
| 159 |
+
"convert_code": "import requests\n\nurl = \"https://goverlytics1.p.rapidapi.com/records\"\nquerystring = {\"limit\": \"\", \"offset\": \"\", \"substring\": \"\", \"speaker_id\": \"\", \"topic\": \"\", \"speaker_party\": \"\", \"level_of_government\": \"\", \"region\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"goverlytics1.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n",
|
| 160 |
+
"test_endpoint": {
|
| 161 |
+
"messages": "The API is unreachable, please contact the API provider",
|
| 162 |
+
"info": "Your Client (working) ---> Gateway (working) ---> API (not working)"
|
| 163 |
+
}
|
| 164 |
+
}
|
| 165 |
+
],
|
| 166 |
+
"standardized_name": "goverlytics"
|
| 167 |
+
}
|
toolbench/toolenv/tools/News_Media/goverlytics/api.py
ADDED
|
@@ -0,0 +1,99 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import requests
|
| 2 |
+
import json
|
| 3 |
+
from datetime import date, datetime, timedelta
|
| 4 |
+
import os
|
| 5 |
+
|
| 6 |
+
from typing import Optional, Dict, Union, List
|
| 7 |
+
|
| 8 |
+
|
| 9 |
+
def politicians(offset: int=None, limit: int=None, active: bool=None, province: str=None, municipality: str=None, level_of_government: str=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 10 |
+
"""
|
| 11 |
+
"fetch a list of politicians data"
|
| 12 |
+
|
| 13 |
+
"""
|
| 14 |
+
url = f"https://goverlytics1.p.rapidapi.com/politicians"
|
| 15 |
+
querystring = {}
|
| 16 |
+
if offset:
|
| 17 |
+
querystring['offset'] = offset
|
| 18 |
+
if limit:
|
| 19 |
+
querystring['limit'] = limit
|
| 20 |
+
if active:
|
| 21 |
+
querystring['active'] = active
|
| 22 |
+
if province:
|
| 23 |
+
querystring['province'] = province
|
| 24 |
+
if municipality:
|
| 25 |
+
querystring['municipality'] = municipality
|
| 26 |
+
if level_of_government:
|
| 27 |
+
querystring['level_of_government'] = level_of_government
|
| 28 |
+
|
| 29 |
+
headers = {
|
| 30 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 31 |
+
"X-RapidAPI-Host": "goverlytics1.p.rapidapi.com"
|
| 32 |
+
}
|
| 33 |
+
|
| 34 |
+
|
| 35 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 36 |
+
try:
|
| 37 |
+
observation = response.json()
|
| 38 |
+
except:
|
| 39 |
+
observation = response.text
|
| 40 |
+
return observation
|
| 41 |
+
|
| 42 |
+
def politician_goverlytics_id(goverlytics_id: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 43 |
+
"""
|
| 44 |
+
"Get 1 politician given their 'goverlytics_id'."
|
| 45 |
+
|
| 46 |
+
"""
|
| 47 |
+
url = f"https://goverlytics1.p.rapidapi.com/politician/{goverlytics_id}"
|
| 48 |
+
querystring = {}
|
| 49 |
+
|
| 50 |
+
headers = {
|
| 51 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 52 |
+
"X-RapidAPI-Host": "goverlytics1.p.rapidapi.com"
|
| 53 |
+
}
|
| 54 |
+
|
| 55 |
+
|
| 56 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 57 |
+
try:
|
| 58 |
+
observation = response.json()
|
| 59 |
+
except:
|
| 60 |
+
observation = response.text
|
| 61 |
+
return observation
|
| 62 |
+
|
| 63 |
+
def records(limit: int=None, offset: int=None, substring: str=None, speaker_id: str=None, topic: str=None, speaker_party: str=None, level_of_government: str=None, region: str=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 64 |
+
"""
|
| 65 |
+
"Fetches records data"
|
| 66 |
+
|
| 67 |
+
"""
|
| 68 |
+
url = f"https://goverlytics1.p.rapidapi.com/records"
|
| 69 |
+
querystring = {}
|
| 70 |
+
if limit:
|
| 71 |
+
querystring['limit'] = limit
|
| 72 |
+
if offset:
|
| 73 |
+
querystring['offset'] = offset
|
| 74 |
+
if substring:
|
| 75 |
+
querystring['substring'] = substring
|
| 76 |
+
if speaker_id:
|
| 77 |
+
querystring['speaker_id'] = speaker_id
|
| 78 |
+
if topic:
|
| 79 |
+
querystring['topic'] = topic
|
| 80 |
+
if speaker_party:
|
| 81 |
+
querystring['speaker_party'] = speaker_party
|
| 82 |
+
if level_of_government:
|
| 83 |
+
querystring['level_of_government'] = level_of_government
|
| 84 |
+
if region:
|
| 85 |
+
querystring['region'] = region
|
| 86 |
+
|
| 87 |
+
headers = {
|
| 88 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 89 |
+
"X-RapidAPI-Host": "goverlytics1.p.rapidapi.com"
|
| 90 |
+
}
|
| 91 |
+
|
| 92 |
+
|
| 93 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 94 |
+
try:
|
| 95 |
+
observation = response.json()
|
| 96 |
+
except:
|
| 97 |
+
observation = response.text
|
| 98 |
+
return observation
|
| 99 |
+
|
toolbench/toolenv/tools/News_Media/greek_news_in_english.json
ADDED
|
@@ -0,0 +1,691 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"product_id": "api_b6261559-8698-446a-80f0-0a4f7308f86d",
|
| 3 |
+
"tool_description": "An API showing all the latest Greek news in English",
|
| 4 |
+
"home_url": "https://rapidapi.com/jimg4-B7Ek9LAFj/api/greek-news-in-english/",
|
| 5 |
+
"name": "Greek News in English",
|
| 6 |
+
"title": "Greek News in English",
|
| 7 |
+
"pricing": "FREEMIUM",
|
| 8 |
+
"tool_name": "Greek News in English",
|
| 9 |
+
"score": {
|
| 10 |
+
"avgServiceLevel": 93,
|
| 11 |
+
"avgLatency": 7028,
|
| 12 |
+
"avgSuccessRate": 93,
|
| 13 |
+
"popularityScore": 8.4,
|
| 14 |
+
"__typename": "Score"
|
| 15 |
+
},
|
| 16 |
+
"host": "greek-news-in-english.p.rapidapi.com",
|
| 17 |
+
"api_list": [
|
| 18 |
+
{
|
| 19 |
+
"name": "Get All Sources",
|
| 20 |
+
"url": "https://greek-news-in-english.p.rapidapi.com/api/sources",
|
| 21 |
+
"description": "Get All Sources' names and ids",
|
| 22 |
+
"method": "GET",
|
| 23 |
+
"required_parameters": [],
|
| 24 |
+
"optional_parameters": [],
|
| 25 |
+
"code": "import requests\n\nurl = \"https://greek-news-in-english.p.rapidapi.com/api/sources\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"greek-news-in-english.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n",
|
| 26 |
+
"convert_code": "import requests\n\nurl = \"https://greek-news-in-english.p.rapidapi.com/api/sources\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"greek-news-in-english.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n",
|
| 27 |
+
"test_endpoint": [
|
| 28 |
+
{
|
| 29 |
+
"id": "pt",
|
| 30 |
+
"name": "Proto Thema"
|
| 31 |
+
},
|
| 32 |
+
{
|
| 33 |
+
"id": "km",
|
| 34 |
+
"name": "Kathimerini"
|
| 35 |
+
},
|
| 36 |
+
{
|
| 37 |
+
"id": "ktg",
|
| 38 |
+
"name": "Keep Talking Greece"
|
| 39 |
+
},
|
| 40 |
+
{
|
| 41 |
+
"id": "gct",
|
| 42 |
+
"name": "Greek City Times"
|
| 43 |
+
},
|
| 44 |
+
{
|
| 45 |
+
"id": "en",
|
| 46 |
+
"name": "Euronews"
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"id": "gr",
|
| 50 |
+
"name": "Greek Reporter"
|
| 51 |
+
}
|
| 52 |
+
]
|
| 53 |
+
},
|
| 54 |
+
{
|
| 55 |
+
"name": "Get Articles From A Single Source",
|
| 56 |
+
"url": "https://greek-news-in-english.p.rapidapi.com/api/news/ktg",
|
| 57 |
+
"description": "Get Greek News from a specific news source.",
|
| 58 |
+
"method": "GET",
|
| 59 |
+
"required_parameters": [
|
| 60 |
+
{
|
| 61 |
+
"name": "siteId",
|
| 62 |
+
"type": "string",
|
| 63 |
+
"description": "",
|
| 64 |
+
"default": "ktg"
|
| 65 |
+
}
|
| 66 |
+
],
|
| 67 |
+
"optional_parameters": [],
|
| 68 |
+
"code": "import requests\n\nurl = \"https://greek-news-in-english.p.rapidapi.com/api/news/ktg\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"greek-news-in-english.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n",
|
| 69 |
+
"convert_code": "import requests\n\nurl = \"https://greek-news-in-english.p.rapidapi.com/api/news/{siteid}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"greek-news-in-english.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n",
|
| 70 |
+
"test_endpoint": [
|
| 71 |
+
{
|
| 72 |
+
"title": "Missing Polish woman on Kos: One man arrested",
|
| 73 |
+
"link": "https://www.keeptalkinggreece.com/2023/06/16/kos-anastasia-patricia-missing-woman-arrest/",
|
| 74 |
+
"description": "A 32-year-old man was arrested on the island of Kos, as the main suspect in the disappearance of 27-year-old Polish national Anastasia-Patricia Rubinska, who have been missing since Monday, June 12. The woman was working at a hotel on Kos and was living together with her boy friend, also a \u2026",
|
| 75 |
+
"image": "https://www.keeptalkinggreece.com/wp-content/uploads/2023/06/anastasiaKOS-1-310x165.jpg",
|
| 76 |
+
"site": "Keep Talking Greece"
|
| 77 |
+
},
|
| 78 |
+
{
|
| 79 |
+
"title": "Shipwreck: Nine Egyptians arrested as suspects of trafficking gang",
|
| 80 |
+
"link": "https://www.keeptalkinggreece.com/2023/06/16/egyptians-men-arrest-shipwreck-greece/",
|
| 81 |
+
"description": "Nine Egyptian men arrested as the suspected traffickers of the migrants on board the sunken fishing boat off Pylos were led before a public prosecutor in Kalamat late on Thursday and charged. They were given until Monday to prepare their testimony. The nine men are accused for forming a criminal \u2026",
|
| 82 |
+
"image": "https://www.keeptalkinggreece.com/wp-content/uploads/2023/06/egyptians1-310x165.jpg",
|
| 83 |
+
"site": "Keep Talking Greece"
|
| 84 |
+
},
|
| 85 |
+
{
|
| 86 |
+
"title": "Price hikes for phone and internet after June elections",
|
| 87 |
+
"link": "https://www.keeptalkinggreece.com/2023/06/16/internet-phone-hikes-greece/",
|
| 88 |
+
"description": "Price hikes for phone and \u03b9nternet subscribers are underway after the elections on June 25. Providers will be able to change prices in line with the inflation. Increases in fixed and mobile telephony tariffs as well as in the Internet should be expected by subscribers after the elections as the \u2026",
|
| 89 |
+
"image": "https://www.keeptalkinggreece.com/wp-content/uploads/2018/06/mobiles-schools-310x165.jpg",
|
| 90 |
+
"site": "Keep Talking Greece"
|
| 91 |
+
},
|
| 92 |
+
{
|
| 93 |
+
"title": "Could the shipwreck tragedy south of Greece have been avoided?",
|
| 94 |
+
"link": "https://www.keeptalkinggreece.com/2023/06/15/could-the-shipwreck-tragedy-have-been-avoided-greece/",
|
| 95 |
+
"description": "Could the shipwreck tragedy in international waters south off Greece have been avoided? This is the question many pose after details and pictures by the Frontex and the Greek Coast Guard have being released showing that authorizes were close to the overloaded fishing boat before it suddenly capsized and sank \u2026",
|
| 96 |
+
"image": "https://www.keeptalkinggreece.com/wp-content/uploads/2023/06/shipwreckNight-310x165.jpg",
|
| 97 |
+
"site": "Keep Talking Greece"
|
| 98 |
+
},
|
| 99 |
+
{
|
| 100 |
+
"title": "Placido Domingo unique concert in Toplou Monastery",
|
| 101 |
+
"link": "https://www.keeptalkinggreece.com/2023/06/15/placido-domingo-concert-toplou-momastery-july-9/",
|
| 102 |
+
"description": "Placido Domingo in a unique concert at the Holy Monastery of Toplou in Sitia on the island of Crete. The world-renowned tenor and baritone Placido Domingo will give a unique concert on Sunday, July 9, 2023 in the imposing space of the Holy Monastery of Toplou, in Sitia, in one \u2026",
|
| 103 |
+
"image": "https://www.keeptalkinggreece.com/wp-content/uploads/2023/06/placido-310x165.jpg",
|
| 104 |
+
"site": "Keep Talking Greece"
|
| 105 |
+
},
|
| 106 |
+
{
|
| 107 |
+
"title": "Coronavirus infections in Greece slightly dropped, yet 37 deaths in a week",
|
| 108 |
+
"link": "https://www.keeptalkinggreece.com/2023/06/15/coronavirus-greece-dropped-deaths/",
|
| 109 |
+
"description": "New cases of coronavirus slightly dropped slightly over the week of June 5-11, 2023, according to the weekly report by the Greek National Public Health Organization (EODY), published on Thursday. Hospital admissions for coronavirus (356) also decreased last week, dropping 38% overall compared to the average weekly for admissions during \u2026",
|
| 110 |
+
"image": "https://www.keeptalkinggreece.com/wp-content/uploads/2021/09/rapidtest-310x165.jpg",
|
| 111 |
+
"site": "Keep Talking Greece"
|
| 112 |
+
},
|
| 113 |
+
{
|
| 114 |
+
"title": "Eight minors convicted over gang rape of schoolmate in western Athens",
|
| 115 |
+
"link": "https://www.keeptalkinggreece.com/2023/06/15/gang-rape-teenagers-convicted-athens/",
|
| 116 |
+
"description": "A three-judge Juvenile Court in Athens convicted eight teenager boys over the gang-rape of a 15-year-old schoolmate in Ilion suburb of western Athens in December 2022. The court acquitted the four girls who were tried with their peers and who had allegedly witnessed the abuse. In a closed-door session, the \u2026",
|
| 117 |
+
"image": "https://www.keeptalkinggreece.com/wp-content/uploads/2022/12/gangminors-310x165.jpg",
|
| 118 |
+
"site": "Keep Talking Greece"
|
| 119 |
+
},
|
| 120 |
+
{
|
| 121 |
+
"title": "Greece Weather Warning: Rainfalls, thunderstorms, hail",
|
| 122 |
+
"link": "https://www.keeptalkinggreece.com/2023/06/15/greece-weather-warning-june-16-18/",
|
| 123 |
+
"description": "Greece\u2019s National meteorological Service EMY issued an emergency bulletin on Friday warning of weather deterioration with heavy rainfalls, thunderstorms and possible hail. According to EMY announcement, unstable air masses from the northwestern Balkans combined with a shallow low moving from the coast of Africa to the Aegean will cause the \u2026",
|
| 124 |
+
"image": "https://www.keeptalkinggreece.com/wp-content/uploads/2019/11/badweather2-310x165.jpg",
|
| 125 |
+
"site": "Keep Talking Greece"
|
| 126 |
+
},
|
| 127 |
+
{
|
| 128 |
+
"title": "Shipwreck Greece: SAR for missing people ongoing; 104 rescued (nationalities)",
|
| 129 |
+
"link": "https://www.keeptalkinggreece.com/2023/06/15/shipwreck-greece-latest-info-nationalities-rescued/",
|
| 130 |
+
"description": "Shipwreck Greece: The Coast Guard in Kalamata, south Peloponnese, announced on Thursday the launch of an inquiry into the sinking of a boat carrying hundreds of migrants in international waters off the coast of the Peloponnese, 47 nautical miles southwest of Pylos. According to an announcement \u201cthere is not a \u2026",
|
| 131 |
+
"image": "https://www.keeptalkinggreece.com/wp-content/uploads/2023/06/shipwreck-310x165.jpg",
|
| 132 |
+
"site": "Keep Talking Greece"
|
| 133 |
+
},
|
| 134 |
+
{
|
| 135 |
+
"title": "Greece declares 3-day mourning for the shipwreck victims (latest info)",
|
| 136 |
+
"link": "https://www.keeptalkinggreece.com/2023/06/14/shipwreck-greece-dead-missing-national-mourning/",
|
| 137 |
+
"description": "Greece\u2019s caretaker Prime Minister Ioannis Sarmas declared a three-day national mourning for the dozens of victims of the shipwreck, 47 nautical miles south of Peloponnese,\u00a0 early morning Wednesday. By 9 p.m. Wednesday, the death toll has reached 79 bodies have been recovered and 104 people have been rescued. Dozens of \u2026",
|
| 138 |
+
"image": "https://www.keeptalkinggreece.com/wp-content/uploads/2023/06/migrantsboat5-310x165.jpg",
|
| 139 |
+
"site": "Keep Talking Greece"
|
| 140 |
+
},
|
| 141 |
+
{
|
| 142 |
+
"title": "Amusement park operating in Athens without license for 17 years shut down",
|
| 143 |
+
"link": "https://www.keeptalkinggreece.com/2023/06/14/amusement-park-no-license-shut-down/",
|
| 144 |
+
"description": "An amusement park in Athens that had been operating for 17 years without a license was shut down last month by the National Transparency Authority (EAD), it was announced on Tuesday. The authority had issued an ex officio order to check the legality of the licensing and operation of the \u2026",
|
| 145 |
+
"image": "https://www.keeptalkinggreece.com/wp-content/uploads/2023/06/amusementpark-310x165.jpg",
|
| 146 |
+
"site": "Keep Talking Greece"
|
| 147 |
+
},
|
| 148 |
+
{
|
| 149 |
+
"title": "Erdogan criticizes Greece\u2019s armaments program",
|
| 150 |
+
"link": "https://www.keeptalkinggreece.com/2023/06/14/erdogan-greece-armament-program/",
|
| 151 |
+
"description": "Turkish President Recep Tayyip Erdogan has voiced criticism of Greece\u2019s armaments program, expressing his intention to address the issue with the next prime minister in Athens. During a press briefing on his return flight from Azerbaijan, Erdogan emphasized his willingness to discuss the matter with Kyriakos Mitsotakis, should he be \u2026",
|
| 152 |
+
"image": "https://www.keeptalkinggreece.com/wp-content/uploads/2023/04/erdogan-310x165.jpg",
|
| 153 |
+
"site": "Keep Talking Greece"
|
| 154 |
+
}
|
| 155 |
+
]
|
| 156 |
+
},
|
| 157 |
+
{
|
| 158 |
+
"name": "Get All News",
|
| 159 |
+
"url": "https://greek-news-in-english.p.rapidapi.com/api/news",
|
| 160 |
+
"description": "This endpoint will return back all greek news from all the sources.",
|
| 161 |
+
"method": "GET",
|
| 162 |
+
"required_parameters": [],
|
| 163 |
+
"optional_parameters": [],
|
| 164 |
+
"code": "import requests\n\nurl = \"https://greek-news-in-english.p.rapidapi.com/api/news\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"greek-news-in-english.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n",
|
| 165 |
+
"convert_code": "import requests\n\nurl = \"https://greek-news-in-english.p.rapidapi.com/api/news\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"greek-news-in-english.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n",
|
| 166 |
+
"test_endpoint": [
|
| 167 |
+
{
|
| 168 |
+
"title": "Greece has its own 'sahara desert' - Where is it? ",
|
| 169 |
+
"link": "https://bit.ly/3pWnLvr",
|
| 170 |
+
"description": "A unique natural landscape for Greece in the northern Aegean Sea",
|
| 171 |
+
"image": "https://i1.prth.gr/images/750x422/files/2022-09-01/lemn77.jpg",
|
| 172 |
+
"site": "Proto Thema"
|
| 173 |
+
},
|
| 174 |
+
{
|
| 175 |
+
"title": "Greek Archimandrite in Australia accused of stealing from donations and paying gay dating app",
|
| 176 |
+
"link": "t.ly/2TmS",
|
| 177 |
+
"description": "Father Christodoulos was disciplined by the church in Greece before arriving in Australia in 2011",
|
| 178 |
+
"image": "https://i1.prth.gr/images/640x360/files/2023-06-16/bish22.jpg",
|
| 179 |
+
"site": "Proto Thema"
|
| 180 |
+
},
|
| 181 |
+
{
|
| 182 |
+
"title": "Conor McGregor accused of sexually assaulting a woman at Game 4 of the NBA Finals",
|
| 183 |
+
"link": "t.ly/Fouhk",
|
| 184 |
+
"description": "The accuser\u2019s attorney says she met McGregor at the game that night",
|
| 185 |
+
"image": "https://i1.prth.gr/images/640x360/files/2023-06-15/con88.jpg",
|
| 186 |
+
"site": "Proto Thema"
|
| 187 |
+
},
|
| 188 |
+
{
|
| 189 |
+
"title": "The 10 oldest restaurants in the world still in operation (photos)",
|
| 190 |
+
"link": "https://bit.ly/3fT2kJN",
|
| 191 |
+
"description": "6 are in Europe",
|
| 192 |
+
"image": "https://i1.prth.gr/images/640x360/files/2022-10-10/rest9.jpg",
|
| 193 |
+
"site": "Proto Thema"
|
| 194 |
+
},
|
| 195 |
+
{
|
| 196 |
+
"title": "Gatestone: The Hadiths that give the \u201cright\u201d to rape & enslave non-Muslim women \u2013 Analysis",
|
| 197 |
+
"link": "http://en.protothema.gr/the-hadiths-that-give-the-right-to-rape-enslave-non-muslim-women-analysis/",
|
| 198 |
+
"description": "The ongoing narrative is that Islam means peace; what is not said is that this peace comes only after everyone enjoys the \u201cpeace\u201d of being Muslim",
|
| 199 |
+
"image": "https://i1.prth.gr/images/750x422/files/2023-06-16/kygfcn.png",
|
| 200 |
+
"site": "Proto Thema"
|
| 201 |
+
},
|
| 202 |
+
{
|
| 203 |
+
"title": "Why Gen Z is turning against woke culture \u2013 Analysis",
|
| 204 |
+
"link": "https://bit.ly/3xBM1GX",
|
| 205 |
+
"description": "We made it into a cultural revolution and traumatised ourselves",
|
| 206 |
+
"image": "https://i1.prth.gr/images/640x360/files/2023-02-20/xfgh.png",
|
| 207 |
+
"site": "Proto Thema"
|
| 208 |
+
},
|
| 209 |
+
{
|
| 210 |
+
"title": "13 People who work in job fields involving death share their creepiest ghost stories",
|
| 211 |
+
"link": "http://en.protothema.gr/13-people-who-work-in-job-fields-involving-death-share-their-creepiest-ghost-stories/",
|
| 212 |
+
"description": "",
|
| 213 |
+
"image": "https://i1.prth.gr/images/640x360/files/2023-06-16/ku.png",
|
| 214 |
+
"site": "Proto Thema"
|
| 215 |
+
},
|
| 216 |
+
{
|
| 217 |
+
"title": "Why do women cheat? Here are the 3 most common reasons...",
|
| 218 |
+
"link": "https://bit.ly/3pDZXfT",
|
| 219 |
+
"description": "",
|
| 220 |
+
"image": "https://i1.prth.gr/images/640x360/files/2022-03-04/\u03c8\u03b7.png",
|
| 221 |
+
"site": "Proto Thema"
|
| 222 |
+
},
|
| 223 |
+
{
|
| 224 |
+
"title": "Machine learning algorithm identifies 3 natural anti-aging chemicals",
|
| 225 |
+
"link": "http://en.protothema.gr/machine-learning-algorithm-identifies-3-natural-anti-aging-chemicals/",
|
| 226 |
+
"description": "",
|
| 227 |
+
"image": "https://i1.prth.gr/images/640x360/files/2023-06-16/adh.png",
|
| 228 |
+
"site": "Proto Thema"
|
| 229 |
+
},
|
| 230 |
+
{
|
| 231 |
+
"title": "The Gladiator Emperor: Commodus and the bloodlust of Ancient Rome (video)",
|
| 232 |
+
"link": "https://bit.ly/41aZLpk",
|
| 233 |
+
"description": "",
|
| 234 |
+
"image": "https://i1.prth.gr/images/640x360/files/2023-04-15/zdfhb.png",
|
| 235 |
+
"site": "Proto Thema"
|
| 236 |
+
},
|
| 237 |
+
{
|
| 238 |
+
"title": "Kevin Spacey discusses alleged sexual abuse scandals: \u201cIn 10 years, it won\u2019t mean anything\u201d",
|
| 239 |
+
"link": "http://en.protothema.gr/kevin-spacey-discusses-alleged-sexual-abuse-scandals-in-10-years-it-wont-mean-anything/",
|
| 240 |
+
"description": "",
|
| 241 |
+
"image": "https://i1.prth.gr/images/640x360/files/2023-06-16/serth.png",
|
| 242 |
+
"site": "Proto Thema"
|
| 243 |
+
},
|
| 244 |
+
{
|
| 245 |
+
"title": "The weapons expert in the Alec Baldwin case was hungover on set, prosecutors say",
|
| 246 |
+
"link": "http://en.protothema.gr/the-weapons-expert-in-the-alec-baldwin-case-was-hungover-on-set-prosecutors-say/",
|
| 247 |
+
"description": "",
|
| 248 |
+
"image": "https://i1.prth.gr/images/640x360/files/2023-06-16/\u03c5\u03b7\u03b2.png",
|
| 249 |
+
"site": "Proto Thema"
|
| 250 |
+
},
|
| 251 |
+
{
|
| 252 |
+
"title": "WH press secretary broke election law: Watchdog",
|
| 253 |
+
"link": "http://en.protothema.gr/wh-press-secretary-broke-election-law-watchdog/",
|
| 254 |
+
"description": "",
|
| 255 |
+
"image": "https://i1.prth.gr/images/640x360/files/2023-06-14/jknk.png",
|
| 256 |
+
"site": "Proto Thema"
|
| 257 |
+
},
|
| 258 |
+
{
|
| 259 |
+
"title": "\u201cIncredibly rare\u201d Roman mausoleum discovered in London",
|
| 260 |
+
"link": "http://en.protothema.gr/incredibly-rare-roman-mausoleum-discovered-in-london/",
|
| 261 |
+
"description": "",
|
| 262 |
+
"image": "https://i1.prth.gr/images/640x360/files/2023-06-16/jkl.png",
|
| 263 |
+
"site": "Proto Thema"
|
| 264 |
+
},
|
| 265 |
+
{
|
| 266 |
+
"title": "Combo therapy trial achieves 94% remission rate for Hodgkin\u2019s lymphoma",
|
| 267 |
+
"link": "http://en.protothema.gr/combo-therapy-trial-achieves-94-remission-rate-for-hodgkins-lymphoma/",
|
| 268 |
+
"description": "",
|
| 269 |
+
"image": "https://i1.prth.gr/images/640x360/files/2023-06-14/kjhbvg.png",
|
| 270 |
+
"site": "Proto Thema"
|
| 271 |
+
},
|
| 272 |
+
{
|
| 273 |
+
"title": "Demi Lovato reveals why using \u201cthey/them\u201d pronouns was \u201cabsolutely exhausting\u201d",
|
| 274 |
+
"link": "http://en.protothema.gr/demi-lovato-reveals-why-using-they-them-pronouns-was-absolutely-exhausting/",
|
| 275 |
+
"description": "",
|
| 276 |
+
"image": "https://i1.prth.gr/images/640x360/files/2023-06-16/dfgb.png",
|
| 277 |
+
"site": "Proto Thema"
|
| 278 |
+
},
|
| 279 |
+
{
|
| 280 |
+
"title": "Monet painting not damaged in ecoterrorist paint attack",
|
| 281 |
+
"link": "http://en.protothema.gr/monet-painting-not-damaged-in-ecoterrorist-paint-attack/",
|
| 282 |
+
"description": "",
|
| 283 |
+
"image": "https://i1.prth.gr/images/640x360/files/2023-06-16/pjhbi.png",
|
| 284 |
+
"site": "Proto Thema"
|
| 285 |
+
},
|
| 286 |
+
{
|
| 287 |
+
"title": "Reuters/Ipsos poll: Majority of Republicans believe charges against Trump \u201cPolitically Motivated\u201d",
|
| 288 |
+
"link": "http://en.protothema.gr/reuters-ipsos-poll-majority-of-republicans-believe-charges-against-trump-politically-motivated/",
|
| 289 |
+
"description": "",
|
| 290 |
+
"image": "https://i1.prth.gr/images/640x360/files/2023-06-14/vbdfh.png",
|
| 291 |
+
"site": "Proto Thema"
|
| 292 |
+
},
|
| 293 |
+
{
|
| 294 |
+
"title": "2,000 Ancient Figurines Unearthed on Greek Island of Kythnos (photos)",
|
| 295 |
+
"link": "https://shorturl.at/hGJKR",
|
| 296 |
+
"description": "",
|
| 297 |
+
"image": "https://i1.prth.gr/images/640x360/files/2023-06-15/kyth77.jpg",
|
| 298 |
+
"site": "Proto Thema"
|
| 299 |
+
},
|
| 300 |
+
{
|
| 301 |
+
"title": "The Beatles will release their last record 50 years after breakup",
|
| 302 |
+
"link": "http://en.protothema.gr/the-beatles-will-release-their-last-record-50-years-after-breakup/",
|
| 303 |
+
"description": "",
|
| 304 |
+
"image": "https://i1.prth.gr/images/640x360/files/2023-06-14/dfghjkl.png",
|
| 305 |
+
"site": "Proto Thema"
|
| 306 |
+
},
|
| 307 |
+
{
|
| 308 |
+
"title": "Measures to curb tourist buses in central Athens welcomed",
|
| 309 |
+
"link": "https://www.ekathimerini.com/news/1213308/measures-to-curb-tourist-buses-in-central-athens-welcomed/",
|
| 310 |
+
"description": "The Federation of Hellenic Associations of Travel & Tourist Agencies has welcomed measures announced by the Municipality of Athens regarding the effort to decongest the center of Athens by regulating the movement of tourist buses on main roads.\u00a0",
|
| 311 |
+
"image": "https://www.ekathimerini.com/wp-content/uploads/2023/06/tourist_buses-320x200.jpg",
|
| 312 |
+
"site": "Kathimerini"
|
| 313 |
+
},
|
| 314 |
+
{
|
| 315 |
+
"title": "Taming the beast of artificial intelligence",
|
| 316 |
+
"link": "https://www.ekathimerini.com/opinion/interviews/1213257/taming-the-beast-of-artificial-intelligence/",
|
| 317 |
+
"description": "Recently in the United States the case of a lawyer captured public attention, as he based his defense line on previous cases which, however, had not occurred. The lawyer admitted to receiving his references to these \u201cnonexistent\u201d cases through the use of artificial intelligence. This incident, along with others, alarmed the [\u2026]",
|
| 318 |
+
"image": "https://www.ekathimerini.com/wp-content/uploads/2023/06/7bea6ef4cc33d23f742fac2023231edf_CANADA-AI-SCIENTIST-4-320x200.jpg",
|
| 319 |
+
"site": "Kathimerini"
|
| 320 |
+
},
|
| 321 |
+
{
|
| 322 |
+
"title": "PM calls meeting on the rights of Pylos shipwreck survivors",
|
| 323 |
+
"link": "https://www.ekathimerini.com/news/1213387/pm-calls-meeting-on-the-rights-of-pylos-shipwreck-survivors/",
|
| 324 |
+
"description": "Prime Minister Ioannis Sarmas held a cabinet meeting on Friday to discuss the rights of the survivors of the deadly migrant shipwreck, state-run news agency AMNA reported.",
|
| 325 |
+
"image": "https://www.ekathimerini.com/wp-content/uploads/2023/06/sarmas_intime-320x200.jpg",
|
| 326 |
+
"site": "Kathimerini"
|
| 327 |
+
},
|
| 328 |
+
{
|
| 329 |
+
"title": "Tourism is in need of shifts",
|
| 330 |
+
"link": "https://www.ekathimerini.com/economy/1213240/tourism-is-in-need-of-shifts/",
|
| 331 |
+
"description": "Greece needs to immediately upgrade its infrastructure, as well as the proper management of individual destinations of Greece, the new president of the Greek Tourism Confederation (SETE), Giannis Paraschis, said during the presentation of Kathimerini\u2019s Reimagine Tourism in Greece initiative on Wednesday.",
|
| 332 |
+
"image": "https://www.ekathimerini.com/wp-content/uploads/2023/06/Reimagine_tourism_conference_nikos_kokkalias-320x200.jpg",
|
| 333 |
+
"site": "Kathimerini"
|
| 334 |
+
},
|
| 335 |
+
{
|
| 336 |
+
"title": "Emotional reunion amid despair as Greece searches for shipwreck survivors",
|
| 337 |
+
"link": "https://www.ekathimerini.com/news/1213384/emotional-reunion-amid-despair-as-greece-searches-for-shipwreck-survivors/",
|
| 338 |
+
"description": "A Syrian teenager who survived a shipwreck that killed at least 78 people was emotionally reunited with his elder brother on Friday, but there was no news for other relatives gathering in the southern Greek city of Kalamata to search for loved ones.",
|
| 339 |
+
"image": "https://www.ekathimerini.com/wp-content/uploads/2023/06/Syrian_survivor_Mohammad_migrants_pylos_kalamataa_shipwreck_reuters-320x200.jpg",
|
| 340 |
+
"site": "Kathimerini"
|
| 341 |
+
},
|
| 342 |
+
{
|
| 343 |
+
"title": "Flexible \u2018penalty\u2019 for retirees?",
|
| 344 |
+
"link": "https://www.ekathimerini.com/economy/1213367/flexible-penalty-for-retirees/",
|
| 345 |
+
"description": "The New Democracy party, which is poised to win the June 25 election, is planning for a more flexible pension reduction regime for retirees who still want to work.",
|
| 346 |
+
"image": "https://www.ekathimerini.com/wp-content/uploads/2022/03/EFKA_pensioners_intime-320x200.jpg",
|
| 347 |
+
"site": "Kathimerini"
|
| 348 |
+
},
|
| 349 |
+
{
|
| 350 |
+
"title": "Deadly shipwreck off Greece one of Europe\u2019s worst migrant disasters",
|
| 351 |
+
"link": "https://www.ekathimerini.com/multimedia/podcasts/1213381/deadly-shipwreck-off-greece-one-of-europes-worst-migrant-disasters/",
|
| 352 |
+
"description": "At least 78 people died and hundreds more are missing at sea, presumed dead, after a boat carrying migrants from Libya to Italy capsized in international waters south-west of Greece early on Wednesday.",
|
| 353 |
+
"image": "https://www.ekathimerini.com/wp-content/uploads/2021/02/GREEK_CURRENT_LOGO-320x200.jpg",
|
| 354 |
+
"site": "Kathimerini"
|
| 355 |
+
},
|
| 356 |
+
{
|
| 357 |
+
"title": "Greeks turning their backs on news media",
|
| 358 |
+
"link": "https://www.ekathimerini.com/news/1213232/greeks-turning-their-backs-on-news-media/",
|
| 359 |
+
"description": "Citizens in Greece are losing faith in the news delivered by traditional media, partly due to perceptions of undue political and business influence on journalism, according to the annual Digital News Report 2023 by the Reuters Institute.",
|
| 360 |
+
"image": "https://www.ekathimerini.com/wp-content/uploads/2021/01/newspapers--2-320x200.jpg",
|
| 361 |
+
"site": "Kathimerini"
|
| 362 |
+
},
|
| 363 |
+
{
|
| 364 |
+
"title": "Police searching for woman who disappeared in Kos",
|
| 365 |
+
"link": "https://www.ekathimerini.com/news/1213380/police-searching-for-woman-who-disappeared-in-kos/",
|
| 366 |
+
"description": "Greek police said on Friday it was searching for a 27-year-old woman who went missing on the island of Kos, in the Dodecanese, on Monday night.\u00a0",
|
| 367 |
+
"image": "https://www.ekathimerini.com/wp-content/uploads/2023/02/police_19-7-320x200.jpg",
|
| 368 |
+
"site": "Kathimerini"
|
| 369 |
+
},
|
| 370 |
+
{
|
| 371 |
+
"title": "Suspected smugglers in deadly boat sinking given until Monday to testify\u00a0",
|
| 372 |
+
"link": "https://www.ekathimerini.com/news/1213379/suspected-smugglers-in-deadly-boat-sinking-given-until-monday-to-testify/",
|
| 373 |
+
"description": "Nine men arrested in connection with the sinking of a fishing boat southwest of the Peloponnese that killed at least 78 migrants were given until Monday (June 19) to testify before an investigative magistrate.",
|
| 374 |
+
"image": "https://www.ekathimerini.com/wp-content/uploads/2023/06/egyptians_migrants_shipwreck_pylos_kalamata_reuters-320x200.jpg",
|
| 375 |
+
"site": "Kathimerini"
|
| 376 |
+
},
|
| 377 |
+
{
|
| 378 |
+
"title": "EU\u2019s Borrell calls crisis meeting with Kosovo\u2019s Kurti, Serbia\u2019s Vucic",
|
| 379 |
+
"link": "https://www.ekathimerini.com/news/1213377/eus-borrell-calls-crisis-meeting-with-kosovos-kurti-serbias-vucic/",
|
| 380 |
+
"description": "EU foreign policy chief Josep Borrell has called crisis talks with Kosovo Prime Minister Albin Kurti and Serbian President Aleksandar Vucic for next week, a spokesperson said on Thursday.",
|
| 381 |
+
"image": "https://www.ekathimerini.com/wp-content/uploads/2023/06/Kosovo_serbia_border_merdare_reuters-320x200.jpg",
|
| 382 |
+
"site": "Kathimerini"
|
| 383 |
+
},
|
| 384 |
+
{
|
| 385 |
+
"title": "Compliance by Nammos, maneuvers for Principote on Mykonos",
|
| 386 |
+
"link": "https://www.ekathimerini.com/news/1213323/compliance-by-nammos-maneuvers-for-principote-on-mykonos/",
|
| 387 |
+
"description": "The case of the Nammos beach restaurant on the island of Mykonos is heading toward closure after the Syros Town Planning Authority certified the company\u2019s compliance with the Environment Ministry\u2019s request that the illegal structures it had erected be demolished.",
|
| 388 |
+
"image": "https://www.ekathimerini.com/wp-content/uploads/2023/06/MYK-320x200.jpg",
|
| 389 |
+
"site": "Kathimerini"
|
| 390 |
+
},
|
| 391 |
+
{
|
| 392 |
+
"title": "Italgas to invest \u20ac900 mln in DEPA",
|
| 393 |
+
"link": "https://www.ekathimerini.com/economy/1213316/italgas-to-invest-e900-mln-in-depa/",
|
| 394 |
+
"description": "Italgas, Italy\u2019s biggest gas distributor, unveiled plans on Thursday to invest 7.8 billion euros in its business by 2029, but its shares slipped as some analysts were unimpressed by earnings projections and dividend plans.",
|
| 395 |
+
"image": "https://www.ekathimerini.com/wp-content/uploads/2022/08/7485f47b58840458549d7e2ef23110ed_Nord-Stream-1-pipeline-AP-320x200.jpg",
|
| 396 |
+
"site": "Kathimerini"
|
| 397 |
+
},
|
| 398 |
+
{
|
| 399 |
+
"title": "How migrant tragedy unfolded on the high seas off Greece",
|
| 400 |
+
"link": "https://www.ekathimerini.com/news/1213374/how-migrant-tragedy-unfolded-on-the-high-seas-off-greece/",
|
| 401 |
+
"description": "As Greece confronts its worst sea disaster in years, questions are mounting about how potentially hundreds of migrants drowned even as their vessel was being shadowed by the Greek coastguard.",
|
| 402 |
+
"image": "https://www.ekathimerini.com/wp-content/uploads/2023/06/migrants-shipwreck-pylos-kalamata-AP-320x200.jpg",
|
| 403 |
+
"site": "Kathimerini"
|
| 404 |
+
},
|
| 405 |
+
{
|
| 406 |
+
"title": "EU pact seeks to bring \u2018more order\u2019 to migration, says Swedish official",
|
| 407 |
+
"link": "https://www.ekathimerini.com/opinion/interviews/1213255/european-union-pact-seeks-to-bring-more-order-to-migration-says-swedish-official/",
|
| 408 |
+
"description": "The new European Union framework on migration agreed at ministerial level in Luxembourg last week would be binding for the bloc\u2019s member-states, but it would also give them a range of options on how they choose to participate in migrant relocations, Swedish Migration Minister Maria Malmer Stenergard, who chaired the June [\u2026]",
|
| 409 |
+
"image": "https://www.ekathimerini.com/wp-content/uploads/2023/06/3f3f6e82439845ddb72f5a8f4ff4eb57_AP-stenergard-1-320x200.jpg",
|
| 410 |
+
"site": "Kathimerini"
|
| 411 |
+
},
|
| 412 |
+
{
|
| 413 |
+
"title": "Missing Polish woman on Kos: One man arrested",
|
| 414 |
+
"link": "https://www.keeptalkinggreece.com/2023/06/16/kos-anastasia-patricia-missing-woman-arrest/",
|
| 415 |
+
"description": "A 32-year-old man was arrested on the island of Kos, as the main suspect in the disappearance of 27-year-old Polish national Anastasia-Patricia Rubinska, who have been missing since Monday, June 12. The woman was working at a hotel on Kos and was living together with her boy friend, also a \u2026",
|
| 416 |
+
"image": "https://www.keeptalkinggreece.com/wp-content/uploads/2023/06/anastasiaKOS-1-310x165.jpg",
|
| 417 |
+
"site": "Keep Talking Greece"
|
| 418 |
+
},
|
| 419 |
+
{
|
| 420 |
+
"title": "Shipwreck: Nine Egyptians arrested as suspects of trafficking gang",
|
| 421 |
+
"link": "https://www.keeptalkinggreece.com/2023/06/16/egyptians-men-arrest-shipwreck-greece/",
|
| 422 |
+
"description": "Nine Egyptian men arrested as the suspected traffickers of the migrants on board the sunken fishing boat off Pylos were led before a public prosecutor in Kalamat late on Thursday and charged. They were given until Monday to prepare their testimony. The nine men are accused for forming a criminal \u2026",
|
| 423 |
+
"image": "https://www.keeptalkinggreece.com/wp-content/uploads/2023/06/egyptians1-310x165.jpg",
|
| 424 |
+
"site": "Keep Talking Greece"
|
| 425 |
+
},
|
| 426 |
+
{
|
| 427 |
+
"title": "Price hikes for phone and internet after June elections",
|
| 428 |
+
"link": "https://www.keeptalkinggreece.com/2023/06/16/internet-phone-hikes-greece/",
|
| 429 |
+
"description": "Price hikes for phone and \u03b9nternet subscribers are underway after the elections on June 25. Providers will be able to change prices in line with the inflation. Increases in fixed and mobile telephony tariffs as well as in the Internet should be expected by subscribers after the elections as the \u2026",
|
| 430 |
+
"image": "https://www.keeptalkinggreece.com/wp-content/uploads/2018/06/mobiles-schools-310x165.jpg",
|
| 431 |
+
"site": "Keep Talking Greece"
|
| 432 |
+
},
|
| 433 |
+
{
|
| 434 |
+
"title": "Could the shipwreck tragedy south of Greece have been avoided?",
|
| 435 |
+
"link": "https://www.keeptalkinggreece.com/2023/06/15/could-the-shipwreck-tragedy-have-been-avoided-greece/",
|
| 436 |
+
"description": "Could the shipwreck tragedy in international waters south off Greece have been avoided? This is the question many pose after details and pictures by the Frontex and the Greek Coast Guard have being released showing that authorizes were close to the overloaded fishing boat before it suddenly capsized and sank \u2026",
|
| 437 |
+
"image": "https://www.keeptalkinggreece.com/wp-content/uploads/2023/06/shipwreckNight-310x165.jpg",
|
| 438 |
+
"site": "Keep Talking Greece"
|
| 439 |
+
},
|
| 440 |
+
{
|
| 441 |
+
"title": "Placido Domingo unique concert in Toplou Monastery",
|
| 442 |
+
"link": "https://www.keeptalkinggreece.com/2023/06/15/placido-domingo-concert-toplou-momastery-july-9/",
|
| 443 |
+
"description": "Placido Domingo in a unique concert at the Holy Monastery of Toplou in Sitia on the island of Crete. The world-renowned tenor and baritone Placido Domingo will give a unique concert on Sunday, July 9, 2023 in the imposing space of the Holy Monastery of Toplou, in Sitia, in one \u2026",
|
| 444 |
+
"image": "https://www.keeptalkinggreece.com/wp-content/uploads/2023/06/placido-310x165.jpg",
|
| 445 |
+
"site": "Keep Talking Greece"
|
| 446 |
+
},
|
| 447 |
+
{
|
| 448 |
+
"title": "Coronavirus infections in Greece slightly dropped, yet 37 deaths in a week",
|
| 449 |
+
"link": "https://www.keeptalkinggreece.com/2023/06/15/coronavirus-greece-dropped-deaths/",
|
| 450 |
+
"description": "New cases of coronavirus slightly dropped slightly over the week of June 5-11, 2023, according to the weekly report by the Greek National Public Health Organization (EODY), published on Thursday. Hospital admissions for coronavirus (356) also decreased last week, dropping 38% overall compared to the average weekly for admissions during \u2026",
|
| 451 |
+
"image": "https://www.keeptalkinggreece.com/wp-content/uploads/2021/09/rapidtest-310x165.jpg",
|
| 452 |
+
"site": "Keep Talking Greece"
|
| 453 |
+
},
|
| 454 |
+
{
|
| 455 |
+
"title": "Eight minors convicted over gang rape of schoolmate in western Athens",
|
| 456 |
+
"link": "https://www.keeptalkinggreece.com/2023/06/15/gang-rape-teenagers-convicted-athens/",
|
| 457 |
+
"description": "A three-judge Juvenile Court in Athens convicted eight teenager boys over the gang-rape of a 15-year-old schoolmate in Ilion suburb of western Athens in December 2022. The court acquitted the four girls who were tried with their peers and who had allegedly witnessed the abuse. In a closed-door session, the \u2026",
|
| 458 |
+
"image": "https://www.keeptalkinggreece.com/wp-content/uploads/2022/12/gangminors-310x165.jpg",
|
| 459 |
+
"site": "Keep Talking Greece"
|
| 460 |
+
},
|
| 461 |
+
{
|
| 462 |
+
"title": "Greece Weather Warning: Rainfalls, thunderstorms, hail",
|
| 463 |
+
"link": "https://www.keeptalkinggreece.com/2023/06/15/greece-weather-warning-june-16-18/",
|
| 464 |
+
"description": "Greece\u2019s National meteorological Service EMY issued an emergency bulletin on Friday warning of weather deterioration with heavy rainfalls, thunderstorms and possible hail. According to EMY announcement, unstable air masses from the northwestern Balkans combined with a shallow low moving from the coast of Africa to the Aegean will cause the \u2026",
|
| 465 |
+
"image": "https://www.keeptalkinggreece.com/wp-content/uploads/2019/11/badweather2-310x165.jpg",
|
| 466 |
+
"site": "Keep Talking Greece"
|
| 467 |
+
},
|
| 468 |
+
{
|
| 469 |
+
"title": "Shipwreck Greece: SAR for missing people ongoing; 104 rescued (nationalities)",
|
| 470 |
+
"link": "https://www.keeptalkinggreece.com/2023/06/15/shipwreck-greece-latest-info-nationalities-rescued/",
|
| 471 |
+
"description": "Shipwreck Greece: The Coast Guard in Kalamata, south Peloponnese, announced on Thursday the launch of an inquiry into the sinking of a boat carrying hundreds of migrants in international waters off the coast of the Peloponnese, 47 nautical miles southwest of Pylos. According to an announcement \u201cthere is not a \u2026",
|
| 472 |
+
"image": "https://www.keeptalkinggreece.com/wp-content/uploads/2023/06/shipwreck-310x165.jpg",
|
| 473 |
+
"site": "Keep Talking Greece"
|
| 474 |
+
},
|
| 475 |
+
{
|
| 476 |
+
"title": "Greece declares 3-day mourning for the shipwreck victims (latest info)",
|
| 477 |
+
"link": "https://www.keeptalkinggreece.com/2023/06/14/shipwreck-greece-dead-missing-national-mourning/",
|
| 478 |
+
"description": "Greece\u2019s caretaker Prime Minister Ioannis Sarmas declared a three-day national mourning for the dozens of victims of the shipwreck, 47 nautical miles south of Peloponnese,\u00a0 early morning Wednesday. By 9 p.m. Wednesday, the death toll has reached 79 bodies have been recovered and 104 people have been rescued. Dozens of \u2026",
|
| 479 |
+
"image": "https://www.keeptalkinggreece.com/wp-content/uploads/2023/06/migrantsboat5-310x165.jpg",
|
| 480 |
+
"site": "Keep Talking Greece"
|
| 481 |
+
},
|
| 482 |
+
{
|
| 483 |
+
"title": "Amusement park operating in Athens without license for 17 years shut down",
|
| 484 |
+
"link": "https://www.keeptalkinggreece.com/2023/06/14/amusement-park-no-license-shut-down/",
|
| 485 |
+
"description": "An amusement park in Athens that had been operating for 17 years without a license was shut down last month by the National Transparency Authority (EAD), it was announced on Tuesday. The authority had issued an ex officio order to check the legality of the licensing and operation of the \u2026",
|
| 486 |
+
"image": "https://www.keeptalkinggreece.com/wp-content/uploads/2023/06/amusementpark-310x165.jpg",
|
| 487 |
+
"site": "Keep Talking Greece"
|
| 488 |
+
},
|
| 489 |
+
{
|
| 490 |
+
"title": "Erdogan criticizes Greece\u2019s armaments program",
|
| 491 |
+
"link": "https://www.keeptalkinggreece.com/2023/06/14/erdogan-greece-armament-program/",
|
| 492 |
+
"description": "Turkish President Recep Tayyip Erdogan has voiced criticism of Greece\u2019s armaments program, expressing his intention to address the issue with the next prime minister in Athens. During a press briefing on his return flight from Azerbaijan, Erdogan emphasized his willingness to discuss the matter with Kyriakos Mitsotakis, should he be \u2026",
|
| 493 |
+
"image": "https://www.keeptalkinggreece.com/wp-content/uploads/2023/04/erdogan-310x165.jpg",
|
| 494 |
+
"site": "Keep Talking Greece"
|
| 495 |
+
},
|
| 496 |
+
{
|
| 497 |
+
"title": "Crete without the crowds: Wildflower hikes, farm-to-fork cooking and a fortress island",
|
| 498 |
+
"link": "https://euronews.com/travel/2023/06/14/crete-without-the-crowds-wildflower-hikes-farm-to-fork-cooking-and-a-fortress-island",
|
| 499 |
+
"description": "The eastern side of Crete is a prime location for hiking.",
|
| 500 |
+
"image": "undefined",
|
| 501 |
+
"site": "Euronews"
|
| 502 |
+
},
|
| 503 |
+
{
|
| 504 |
+
"title": "Local residents mobilise to help survivors of deadly migrant shipwreck off Greek coast",
|
| 505 |
+
"link": "https://euronews.com/2023/06/14/greece-reports-17-migrants-dead-dozens-rescued-after-fishing-vessel-capsizes",
|
| 506 |
+
"description": "14 June, 2023, shows scores of people covering practically every free stretch of deck on a battered fishing boat that later capsized and sank off southern Greece. ",
|
| 507 |
+
"image": "undefined",
|
| 508 |
+
"site": "Euronews"
|
| 509 |
+
},
|
| 510 |
+
{
|
| 511 |
+
"title": "Volunteers have pulled 28 tonnes of \u2018ghost nets\u2019 from the waters around this Greek island",
|
| 512 |
+
"link": "https://euronews.com/green/2023/06/12/volunteers-have-pulled-28-tonnes-of-ghost-nets-from-the-waters-around-this-greek-island",
|
| 513 |
+
"description": "Aegean Rebreath has a team of 300 volunteer divers who help clean up the area's waters",
|
| 514 |
+
"image": "undefined",
|
| 515 |
+
"site": "Euronews"
|
| 516 |
+
},
|
| 517 |
+
{
|
| 518 |
+
"title": "Rome holds LGBTQ+ Pride parade amid backdrop of Meloni government crackdown on surrogate births",
|
| 519 |
+
"link": "https://euronews.com/2023/06/11/rome-holds-lgbtq-pride-parade-amid-backdrop-of-meloni-government-crackdown-on-surrogate-bi",
|
| 520 |
+
"description": "Rome Mayor Roberto Gualtieri, wearing the three colour band of the Italian flag, joins the LGBTQ+ Pride parade in Rome, Saturday, June 10, 2023. ",
|
| 521 |
+
"image": "undefined",
|
| 522 |
+
"site": "Euronews"
|
| 523 |
+
},
|
| 524 |
+
{
|
| 525 |
+
"title": "5.3 magnitude earthquake shakes Romania and neighbouring countries",
|
| 526 |
+
"link": "https://euronews.com/2023/06/08/53-magnitude-earthquake-shakes-romania-and-neighbouring-countries",
|
| 527 |
+
"description": "Euronews.",
|
| 528 |
+
"image": "undefined",
|
| 529 |
+
"site": "Euronews"
|
| 530 |
+
},
|
| 531 |
+
{
|
| 532 |
+
"title": "Halki: The Greek island that's serving as a model for solar power communities",
|
| 533 |
+
"link": "https://euronews.com/2023/06/07/halki-the-greek-island-thats-serving-as-a-model-for-solar-power-communities",
|
| 534 |
+
"description": "Halki: The Greek island that's serving as a model for solar power communities",
|
| 535 |
+
"image": "undefined",
|
| 536 |
+
"site": "Euronews"
|
| 537 |
+
},
|
| 538 |
+
{
|
| 539 |
+
"title": "European Parliament lifts the immunity of Alexis Georgoulis, Greek MEP accused of rape and assault",
|
| 540 |
+
"link": "https://euronews.com/my-europe/2023/06/01/european-parliament-lifts-the-immunity-of-alexis-georgoulis-greek-mep-accused-of-rape-and-",
|
| 541 |
+
"description": "The European Parliament decided to lift the immunity of Alexis Georgoulis, a Greek MEP who has been accused of rape and assault.",
|
| 542 |
+
"image": "undefined",
|
| 543 |
+
"site": "Euronews"
|
| 544 |
+
},
|
| 545 |
+
{
|
| 546 |
+
"title": "New Greek parliament convenes, only to be dissolved as early as Monday",
|
| 547 |
+
"link": "https://euronews.com/2023/05/28/new-greek-parliament-convenes-only-to-be-dissolved-as-early-as-monday",
|
| 548 |
+
"description": "New Democracy leader Kyriakos Mitsotakis looks on during a meeting at the presidential palace in Athens, on Wednesday, May 24, 2023. ",
|
| 549 |
+
"image": "undefined",
|
| 550 |
+
"site": "Euronews"
|
| 551 |
+
},
|
| 552 |
+
{
|
| 553 |
+
"title": "Brussels warns Greece it could take 'formal steps' over latest illegal migrant pushback allegations",
|
| 554 |
+
"link": "https://euronews.com/my-europe/2023/05/22/brussels-warns-greece-it-could-take-formal-steps-over-latest-illegal-migrant-pushback-alle",
|
| 555 |
+
"description": "Migrants arrive with a dinghy accompanied by a Frontex vessel at the village of Skala Sikaminias, on the Greek island of Lesbos, on Feb. 28, 2020.",
|
| 556 |
+
"image": "undefined",
|
| 557 |
+
"site": "Euronews"
|
| 558 |
+
},
|
| 559 |
+
{
|
| 560 |
+
"title": "Greece general election: Five things we learned from Sunday's vote",
|
| 561 |
+
"link": "https://euronews.com/2023/05/22/greece-general-election-five-things-we-learned-from-sundays-vote",
|
| 562 |
+
"description": "Supporters of Greece's Prime Minister and leader of New Democracy Kyriakos Mitsotakis shout slogans outside the headquarters of his party in Athens, Greece, 21 May 2023",
|
| 563 |
+
"image": "undefined",
|
| 564 |
+
"site": "Euronews"
|
| 565 |
+
},
|
| 566 |
+
{
|
| 567 |
+
"title": "Greece election: Voters face new election in June as New Democracy seeks majority",
|
| 568 |
+
"link": "https://euronews.com/2023/05/21/greek-election-live-blog-mitsotakis-takes-the-lead-headed-to-second-vote",
|
| 569 |
+
"description": "Greece's Prime Minister and leader of New Democracy Kyriakos Mitsotakis, center, addresses supporters at the headquarters of his party in Athens, Greece, Sunday, May 21, 2023",
|
| 570 |
+
"image": "undefined",
|
| 571 |
+
"site": "Euronews"
|
| 572 |
+
},
|
| 573 |
+
{
|
| 574 |
+
"title": "Polls open in Greece's first election since international bailout spending controls ended",
|
| 575 |
+
"link": "https://euronews.com/2023/05/21/polls-open-in-greeces-first-election-since-international-bailout-spending-controls-ended",
|
| 576 |
+
"description": "A man leaves the voting booth as he's votes at a polling station in Athens, Greece, Sunday, May 21, 2023.",
|
| 577 |
+
"image": "undefined",
|
| 578 |
+
"site": "Euronews"
|
| 579 |
+
},
|
| 580 |
+
{
|
| 581 |
+
"title": "Evidence emerges of asylum seekers' mistreatment in Greece, despite government\u2019s denial",
|
| 582 |
+
"link": "https://euronews.com/2023/05/19/evidence-emerges-of-asylum-seekers-mistreatment-in-greece-despite-governments-denial",
|
| 583 |
+
"description": "In this Thursday, March 5, 2020, file photo, a migrant holding a baby pauses on the side of the road while walking to the village of Skala Sikaminias, in Lesbos.",
|
| 584 |
+
"image": "undefined",
|
| 585 |
+
"site": "Euronews"
|
| 586 |
+
},
|
| 587 |
+
{
|
| 588 |
+
"title": "Greek elections: Brussels no longer worries about the economy but rule of law is another matter",
|
| 589 |
+
"link": "https://euronews.com/my-europe/2023/05/19/greek-elections-brussels-no-longer-worries-about-the-economy-but-rule-of-law-is-another-ma",
|
| 590 |
+
"description": "The European Union is eagerly awaiting the parliamentary elections in Greece.",
|
| 591 |
+
"image": "undefined",
|
| 592 |
+
"site": "Euronews"
|
| 593 |
+
},
|
| 594 |
+
{
|
| 595 |
+
"title": "Greek PM Mitsotakis' wiretapping admission begs the question \u2014 are there further government secrets?",
|
| 596 |
+
"link": "https://euronews.com/2023/05/16/greek-pm-mitsotakis-wiretapping-admission-begs-the-question-are-there-further-government-s",
|
| 597 |
+
"description": "Greek Prime Minister Kyriakos Mitsotakis in a news conference, in Athens, January 2023",
|
| 598 |
+
"image": "undefined",
|
| 599 |
+
"site": "Euronews"
|
| 600 |
+
},
|
| 601 |
+
{
|
| 602 |
+
"title": "Greek candidate wins Albanian mayoral election from prison, sparking a diplomatic war of words",
|
| 603 |
+
"link": "https://euronews.com/2023/05/16/greek-candidate-wins-albanian-mayoral-election-from-prison-sparking-a-diplomatic-war-of-wo",
|
| 604 |
+
"description": "FILE: Voting in Albania local elections, 2017",
|
| 605 |
+
"image": "undefined",
|
| 606 |
+
"site": "Euronews"
|
| 607 |
+
},
|
| 608 |
+
{
|
| 609 |
+
"title": "Can an earthquake once again improve relations between Turkey and Greece?",
|
| 610 |
+
"link": "https://euronews.com/2023/05/16/can-an-earthquake-once-again-improve-relations-between-turkey-and-greece",
|
| 611 |
+
"description": " Turkey's Foreign Minister Mevlut Cavusoglu, right, talks with his Greek counterpart Nikos Dendias, in Adana, Turkey, Sunday, Feb. 12, 2023.",
|
| 612 |
+
"image": "undefined",
|
| 613 |
+
"site": "Euronews"
|
| 614 |
+
},
|
| 615 |
+
{
|
| 616 |
+
"title": "Cost of living soars in Greece despite economic recovery",
|
| 617 |
+
"link": "https://euronews.com/2023/05/15/cost-of-living-crisis-in-greece-despite-economic-recovery",
|
| 618 |
+
"description": "People holding shopping bags full of fruits and vegetables pass a Greek flag during a protest by farmers' market vendors in the northern Athens' suburb of Gerakas.",
|
| 619 |
+
"image": "undefined",
|
| 620 |
+
"site": "Euronews"
|
| 621 |
+
},
|
| 622 |
+
{
|
| 623 |
+
"title": "Greek PM admits phone tapping was wrong ",
|
| 624 |
+
"link": "https://euronews.com/2023/05/11/greek-pm-admits-phone-tapping-was-wrong",
|
| 625 |
+
"description": "Kyriakos Mitsotakis",
|
| 626 |
+
"image": "undefined",
|
| 627 |
+
"site": "Euronews"
|
| 628 |
+
},
|
| 629 |
+
{
|
| 630 |
+
"title": "Want to travel more sustainably? Try eating your way around Europe\u2019s seasonal delights",
|
| 631 |
+
"link": "https://euronews.com/travel/2023/04/29/want-to-travel-more-sustainably-try-eating-your-way-around-europes-seasonal-delights",
|
| 632 |
+
"description": "Look out for ribisel cake when you\u2019re on holiday in Austria.",
|
| 633 |
+
"image": "undefined",
|
| 634 |
+
"site": "Euronews"
|
| 635 |
+
},
|
| 636 |
+
{
|
| 637 |
+
"title": "Propelled by anger, the Greek extreme right is making a comeback. Its influence must end",
|
| 638 |
+
"link": "https://euronews.com/2023/04/25/propelled-by-anger-the-greek-extreme-right-is-making-a-comeback-its-influence-must-end",
|
| 639 |
+
"description": "A supporter of the extreme far-right Golden Dawn political party waves a Greek flag during a pre-election rally, in Athens, September 2015",
|
| 640 |
+
"image": "undefined",
|
| 641 |
+
"site": "Euronews"
|
| 642 |
+
},
|
| 643 |
+
{
|
| 644 |
+
"title": "WATCH: Greek youths mark Holy Saturday with petrol bombs",
|
| 645 |
+
"link": "https://euronews.com/video/2023/04/17/watch-greek-youths-mark-holy-saturday-with-petrol-bombs",
|
| 646 |
+
"description": "Onlookers watch a petrol bomb explode during celebrations for the Orthodox Easter in Athens, Greece, Sunday, April 16, 2023",
|
| 647 |
+
"image": "undefined",
|
| 648 |
+
"site": "Euronews"
|
| 649 |
+
},
|
| 650 |
+
{
|
| 651 |
+
"title": "Belgian authorities ask for immunity of Greek MEP to be waived over sexual harassment claim",
|
| 652 |
+
"link": "https://euronews.com/my-europe/2023/04/17/belgian-authorities-ask-for-immunity-of-greek-mep-to-be-waived-over-sexual-harassment-clai",
|
| 653 |
+
"description": "Greek MEP Alexis Georgoulis",
|
| 654 |
+
"image": "undefined",
|
| 655 |
+
"site": "Euronews"
|
| 656 |
+
},
|
| 657 |
+
{
|
| 658 |
+
"title": " Greek railroad inspector charged in connection to accident that killed 57 people",
|
| 659 |
+
"link": "https://euronews.com/2023/03/31/greek-railroad-inspector-charged-in-connection-to-accident-that-killed-57-people",
|
| 660 |
+
"description": "The wreckage of the trains lie next to the rail lines, after Tuesday's rail crash, the country's deadliest on record.",
|
| 661 |
+
"image": "undefined",
|
| 662 |
+
"site": "Euronews"
|
| 663 |
+
},
|
| 664 |
+
{
|
| 665 |
+
"title": "Pope Francis discharged from Rome hospital nine days after abdominal surgery",
|
| 666 |
+
"link": "https://euronews.com/2023/06/16/pope-francis-leaves-rome-hospital-nine-days-after-abdominal-surgery",
|
| 667 |
+
"description": "Pope Francis left Rome\u2019s Gemelli hospital on Friday morning, nine days after having surgery for abdominal hernia and scarring.",
|
| 668 |
+
"image": "undefined",
|
| 669 |
+
"site": "Euronews"
|
| 670 |
+
},
|
| 671 |
+
{
|
| 672 |
+
"title": "UN chief Guterres urges EU to define effective migration policy over migrant shipwreck",
|
| 673 |
+
"link": "https://euronews.com/2023/06/16/un-chief-guterres-urges-eu-to-define-effective-migration-policy-over-migrant-shipwreck",
|
| 674 |
+
"description": "Hundreds still missing from Greek boat tragedy",
|
| 675 |
+
"image": "undefined",
|
| 676 |
+
"site": "Euronews"
|
| 677 |
+
},
|
| 678 |
+
{
|
| 679 |
+
"title": "Missiles fired at Kyiv as African leaders arrive in Ukraine to promote peace plan",
|
| 680 |
+
"link": "https://euronews.com/2023/06/16/ramaphosa-arrives-in-ukraine-to-promote-african-peace-plan",
|
| 681 |
+
"description": "Vladimir Putin and Cyril Ramaphosa",
|
| 682 |
+
"image": "undefined",
|
| 683 |
+
"site": "Euronews"
|
| 684 |
+
}
|
| 685 |
+
],
|
| 686 |
+
"statuscode": 200,
|
| 687 |
+
"schema": {}
|
| 688 |
+
}
|
| 689 |
+
],
|
| 690 |
+
"standardized_name": "greek_news_in_english"
|
| 691 |
+
}
|
toolbench/toolenv/tools/News_Media/greek_news_in_english/api.py
ADDED
|
@@ -0,0 +1,71 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import requests
|
| 2 |
+
import json
|
| 3 |
+
from datetime import date, datetime, timedelta
|
| 4 |
+
import os
|
| 5 |
+
|
| 6 |
+
from typing import Optional, Dict, Union, List
|
| 7 |
+
|
| 8 |
+
|
| 9 |
+
def get_all_sources(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 10 |
+
"""
|
| 11 |
+
"Get All Sources' names and ids"
|
| 12 |
+
|
| 13 |
+
"""
|
| 14 |
+
url = f"https://greek-news-in-english.p.rapidapi.com/api/sources"
|
| 15 |
+
querystring = {}
|
| 16 |
+
|
| 17 |
+
headers = {
|
| 18 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 19 |
+
"X-RapidAPI-Host": "greek-news-in-english.p.rapidapi.com"
|
| 20 |
+
}
|
| 21 |
+
|
| 22 |
+
|
| 23 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 24 |
+
try:
|
| 25 |
+
observation = response.json()
|
| 26 |
+
except:
|
| 27 |
+
observation = response.text
|
| 28 |
+
return observation
|
| 29 |
+
|
| 30 |
+
def get_articles_from_a_single_source(siteid: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 31 |
+
"""
|
| 32 |
+
"Get Greek News from a specific news source."
|
| 33 |
+
|
| 34 |
+
"""
|
| 35 |
+
url = f"https://greek-news-in-english.p.rapidapi.com/api/news/{siteid}"
|
| 36 |
+
querystring = {}
|
| 37 |
+
|
| 38 |
+
headers = {
|
| 39 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 40 |
+
"X-RapidAPI-Host": "greek-news-in-english.p.rapidapi.com"
|
| 41 |
+
}
|
| 42 |
+
|
| 43 |
+
|
| 44 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 45 |
+
try:
|
| 46 |
+
observation = response.json()
|
| 47 |
+
except:
|
| 48 |
+
observation = response.text
|
| 49 |
+
return observation
|
| 50 |
+
|
| 51 |
+
def get_all_news(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 52 |
+
"""
|
| 53 |
+
"This endpoint will return back all greek news from all the sources."
|
| 54 |
+
|
| 55 |
+
"""
|
| 56 |
+
url = f"https://greek-news-in-english.p.rapidapi.com/api/news"
|
| 57 |
+
querystring = {}
|
| 58 |
+
|
| 59 |
+
headers = {
|
| 60 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 61 |
+
"X-RapidAPI-Host": "greek-news-in-english.p.rapidapi.com"
|
| 62 |
+
}
|
| 63 |
+
|
| 64 |
+
|
| 65 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 66 |
+
try:
|
| 67 |
+
observation = response.json()
|
| 68 |
+
except:
|
| 69 |
+
observation = response.text
|
| 70 |
+
return observation
|
| 71 |
+
|
toolbench/toolenv/tools/News_Media/green_gold.json
ADDED
|
@@ -0,0 +1,321 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"product_id": "api_a47246de-88ec-49e0-935a-f6ac87988f49",
|
| 3 |
+
"tool_description": "An API aggregating news articles related to green technology, stocks, start-ups, and trends.",
|
| 4 |
+
"home_url": "https://rapidapi.com/chardma324-3ryX6DlM7c5/api/green-gold/",
|
| 5 |
+
"name": "Green Gold",
|
| 6 |
+
"title": "Green Gold",
|
| 7 |
+
"pricing": "FREEMIUM",
|
| 8 |
+
"tool_name": "Green Gold",
|
| 9 |
+
"score": {
|
| 10 |
+
"avgServiceLevel": 50,
|
| 11 |
+
"avgLatency": 2500,
|
| 12 |
+
"avgSuccessRate": 50,
|
| 13 |
+
"popularityScore": 7.5,
|
| 14 |
+
"__typename": "Score"
|
| 15 |
+
},
|
| 16 |
+
"host": "green-gold.p.rapidapi.com",
|
| 17 |
+
"api_list": [
|
| 18 |
+
{
|
| 19 |
+
"name": "specific publication articles",
|
| 20 |
+
"url": "https://green-gold.p.rapidapi.com/news/guardian",
|
| 21 |
+
"description": "Gets news articles from specific publications",
|
| 22 |
+
"method": "GET",
|
| 23 |
+
"required_parameters": [
|
| 24 |
+
{
|
| 25 |
+
"name": "newspaperId",
|
| 26 |
+
"type": "string",
|
| 27 |
+
"description": "",
|
| 28 |
+
"default": "guardian"
|
| 29 |
+
}
|
| 30 |
+
],
|
| 31 |
+
"optional_parameters": [],
|
| 32 |
+
"code": "import requests\n\nurl = \"https://green-gold.p.rapidapi.com/news/guardian\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"green-gold.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n",
|
| 33 |
+
"convert_code": "import requests\n\nurl = \"https://green-gold.p.rapidapi.com/news/{newspaperid}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"green-gold.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n",
|
| 34 |
+
"test_endpoint": [
|
| 35 |
+
{
|
| 36 |
+
"title": "Aaron Paul on Black Mirror, AI and his love of dark roles",
|
| 37 |
+
"url": "https://www.theguardian.com/tv-and-radio/2023/jun/16/aaron-paul-on-black-mirror-ai-and-his-love-of-dark-roles",
|
| 38 |
+
"source": "guardian"
|
| 39 |
+
},
|
| 40 |
+
{
|
| 41 |
+
"title": "AI is already causing unintended harm. What happens when it falls into the wrong hands?",
|
| 42 |
+
"url": "https://www.theguardian.com/commentisfree/2023/jun/16/ai-new-laws-powerful-open-source-tools-meta",
|
| 43 |
+
"source": "guardian"
|
| 44 |
+
},
|
| 45 |
+
{
|
| 46 |
+
"title": "China withholds key indicator of Covid death toll as it fails to release cremation data",
|
| 47 |
+
"url": "https://www.theguardian.com/world/2023/jun/16/china-withholds-key-indicator-of-covid-death-toll-as-it-fails-to-release-cremation-data",
|
| 48 |
+
"source": "guardian"
|
| 49 |
+
},
|
| 50 |
+
{
|
| 51 |
+
"title": "Hay fever may get worse due to climate change, says Met Office",
|
| 52 |
+
"url": "https://www.theguardian.com/society/2023/jun/16/hay-fever-may-get-worse-due-to-climate-change-says-met-office",
|
| 53 |
+
"source": "guardian"
|
| 54 |
+
}
|
| 55 |
+
]
|
| 56 |
+
},
|
| 57 |
+
{
|
| 58 |
+
"name": "all articles",
|
| 59 |
+
"url": "https://green-gold.p.rapidapi.com/news",
|
| 60 |
+
"description": "Endpoint to gather all articles from all listed publications detailed in API",
|
| 61 |
+
"method": "GET",
|
| 62 |
+
"required_parameters": [],
|
| 63 |
+
"optional_parameters": [],
|
| 64 |
+
"code": "import requests\n\nurl = \"https://green-gold.p.rapidapi.com/news\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"green-gold.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n",
|
| 65 |
+
"convert_code": "import requests\n\nurl = \"https://green-gold.p.rapidapi.com/news\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"green-gold.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n",
|
| 66 |
+
"test_endpoint": [
|
| 67 |
+
{
|
| 68 |
+
"title": "Leaders gathered for nine days of climate talks. It took them eight to agree on an agenda",
|
| 69 |
+
"url": "https://www.smh.com.au/environment/climate-change/leaders-gathered-for-nine-days-of-climate-talks-it-took-them-eight-to-agree-on-an-agenda-20230616-p5dh1h.html",
|
| 70 |
+
"source": "smh"
|
| 71 |
+
},
|
| 72 |
+
{
|
| 73 |
+
"title": "Government may force companies to label AI content to prevent deep fakes",
|
| 74 |
+
"url": "https://www.smh.com.au/politics/federal/government-may-force-companies-to-label-ai-content-to-prevent-deep-fakes-20230616-p5dh8r.html",
|
| 75 |
+
"source": "smh"
|
| 76 |
+
},
|
| 77 |
+
{
|
| 78 |
+
"title": "For my next trick ... COVID data nerds have found a new enemy to crunch",
|
| 79 |
+
"url": "https://www.smh.com.au/environment/sustainability/for-my-next-trick-covid-data-nerds-have-found-a-new-enemy-to-crunch-20230615-p5dgoq.html",
|
| 80 |
+
"source": "smh"
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"title": "Save money and energy with these budget slow cooker recipes",
|
| 84 |
+
"url": "https://www.bbc.co.uk/food/collections/budget_slow_cooker_recipes",
|
| 85 |
+
"source": "bbc"
|
| 86 |
+
},
|
| 87 |
+
{
|
| 88 |
+
"title": "Quiz: Can you tell the real photos from the AI-generated ones?",
|
| 89 |
+
"url": "https://www.bbc.co.uk/bitesize/articles/zrgbkhv",
|
| 90 |
+
"source": "bbc"
|
| 91 |
+
},
|
| 92 |
+
{
|
| 93 |
+
"title": "Aaron Paul on Black Mirror, AI and his love of dark roles",
|
| 94 |
+
"url": "https://www.theguardian.com/tv-and-radio/2023/jun/16/aaron-paul-on-black-mirror-ai-and-his-love-of-dark-roles",
|
| 95 |
+
"source": "guardian"
|
| 96 |
+
},
|
| 97 |
+
{
|
| 98 |
+
"title": "AI is already causing unintended harm. What happens when it falls into the wrong hands?",
|
| 99 |
+
"url": "https://www.theguardian.com/commentisfree/2023/jun/16/ai-new-laws-powerful-open-source-tools-meta",
|
| 100 |
+
"source": "guardian"
|
| 101 |
+
},
|
| 102 |
+
{
|
| 103 |
+
"title": "China withholds key indicator of Covid death toll as it fails to release cremation data",
|
| 104 |
+
"url": "https://www.theguardian.com/world/2023/jun/16/china-withholds-key-indicator-of-covid-death-toll-as-it-fails-to-release-cremation-data",
|
| 105 |
+
"source": "guardian"
|
| 106 |
+
},
|
| 107 |
+
{
|
| 108 |
+
"title": "Hay fever may get worse due to climate change, says Met Office",
|
| 109 |
+
"url": "https://www.theguardian.com/society/2023/jun/16/hay-fever-may-get-worse-due-to-climate-change-says-met-office",
|
| 110 |
+
"source": "guardian"
|
| 111 |
+
},
|
| 112 |
+
{
|
| 113 |
+
"title": "Russia\u2019s latest space agency mission: raising a militia for the war in Ukraine",
|
| 114 |
+
"url": "https://www.ft.com/content/c194cb2d-3aa0-4195-9be5-e78c1d2fd183",
|
| 115 |
+
"source": "financialtimes"
|
| 116 |
+
},
|
| 117 |
+
{
|
| 118 |
+
"title": "Generative AI is disrupting its own investment case",
|
| 119 |
+
"url": "https://www.ft.com/content/00f517b8-41e9-4405-9320-e0b19ac65e6b",
|
| 120 |
+
"source": "financialtimes"
|
| 121 |
+
},
|
| 122 |
+
{
|
| 123 |
+
"title": "French AI fundraising sensation shows Europe\u2019s got talent",
|
| 124 |
+
"url": "https://www.ft.com/content/7109ee54-65bd-46de-9366-05219a6b328e",
|
| 125 |
+
"source": "financialtimes"
|
| 126 |
+
},
|
| 127 |
+
{
|
| 128 |
+
"title": "Fintech founder Hayes Barnard: half the organisation thought \u2018this guy\u2019s out of his mind\u2019",
|
| 129 |
+
"url": "https://www.ft.com/content/1bb5ba07-96dc-45c3-837d-751f9321be8a",
|
| 130 |
+
"source": "financialtimes"
|
| 131 |
+
},
|
| 132 |
+
{
|
| 133 |
+
"title": "markets content.\u00a0Markets Briefing. European stocks rally after Wall Street advance led by US tech",
|
| 134 |
+
"url": "https://www.ft.com/content/28462b9f-d1d3-4719-8c3e-3a6db62cdd22",
|
| 135 |
+
"source": "financialtimes"
|
| 136 |
+
},
|
| 137 |
+
{
|
| 138 |
+
"title": "AI and media companies negotiate landmark deals over news content",
|
| 139 |
+
"url": "https://www.ft.com/content/79eb89ce-cea2-4f27-9d87-e8e312c8601d",
|
| 140 |
+
"source": "financialtimes"
|
| 141 |
+
},
|
| 142 |
+
{
|
| 143 |
+
"title": "Interview. Aidan Gomez: AI threat to human existence is \u2018absurd\u2019 distraction from real risks",
|
| 144 |
+
"url": "https://www.ft.com/content/732fc372-67ea-4684-9ab7-6b6f3cdfd736",
|
| 145 |
+
"source": "financialtimes"
|
| 146 |
+
},
|
| 147 |
+
{
|
| 148 |
+
"title": "Interview. Pipeline boss says US green energy shift will need more natural gas as a \u2018back-up\u2019",
|
| 149 |
+
"url": "https://www.ft.com/content/f80e5bb7-407b-42e9-931e-46ecec78f506",
|
| 150 |
+
"source": "financialtimes"
|
| 151 |
+
},
|
| 152 |
+
{
|
| 153 |
+
"title": "Computer-driven trading firms fret over risks AI poses to their profits",
|
| 154 |
+
"url": "https://www.ft.com/content/72e59c68-157b-4621-b063-441ab41430b5",
|
| 155 |
+
"source": "financialtimes"
|
| 156 |
+
},
|
| 157 |
+
{
|
| 158 |
+
"title": "markets content.\u00a0Markets Briefing. US stocks rise while Europe\u2019s dips after ECB lifts interest rates",
|
| 159 |
+
"url": "https://www.ft.com/content/c22e14a3-6dbd-4646-af3f-7a7b8474f2be",
|
| 160 |
+
"source": "financialtimes"
|
| 161 |
+
},
|
| 162 |
+
{
|
| 163 |
+
"title": "Advertisers urged to disclose AI use in social media campaigns",
|
| 164 |
+
"url": "https://www.ft.com/content/2fdfa796-83ad-4456-beb4-274d9746b779",
|
| 165 |
+
"source": "financialtimes"
|
| 166 |
+
},
|
| 167 |
+
{
|
| 168 |
+
"title": "Visual and data journalism",
|
| 169 |
+
"url": "https://www.ft.com/visual-and-data-journalism",
|
| 170 |
+
"source": "financialtimes"
|
| 171 |
+
},
|
| 172 |
+
{
|
| 173 |
+
"title": "Biden wants to protect public lands. What about renewable energy?",
|
| 174 |
+
"url": "https://www.latimes.com/environment/newsletter/2023-06-15/biden-wants-to-protect-public-lands-what-about-renewable-energy-boiling-point",
|
| 175 |
+
"source": "latimes"
|
| 176 |
+
},
|
| 177 |
+
{
|
| 178 |
+
"title": "Majority of Californians fear worsening weather swings due to climate change, poll finds",
|
| 179 |
+
"url": "https://www.latimes.com/politics/story/2023-06-01/majority-of-californians-fear-worsening-weather-swings",
|
| 180 |
+
"source": "latimes"
|
| 181 |
+
},
|
| 182 |
+
{
|
| 183 |
+
"title": "Column: A farewell to James G. Watt, environmental vandal and proto-Trumpian",
|
| 184 |
+
"url": "https://www.latimes.com/business/story/2023-06-13/farewell-to-an-original-gop-environmental-vandal-james-watt",
|
| 185 |
+
"source": "latimes"
|
| 186 |
+
},
|
| 187 |
+
{
|
| 188 |
+
"title": "Vatican court convicts climate activists for damaging statue",
|
| 189 |
+
"url": "https://www.latimes.com/world-nation/story/2023-06-12/vatican-court-convicts-climate-activists-for-damaging-statue",
|
| 190 |
+
"source": "latimes"
|
| 191 |
+
},
|
| 192 |
+
{
|
| 193 |
+
"title": "Editorial: Orange skies in New York? Welcome to our smoke-filled, climate-fueled future",
|
| 194 |
+
"url": "https://www.latimes.com/opinion/story/2023-06-09/la-ed-wildfire-smoke-pollution-climate-change",
|
| 195 |
+
"source": "latimes"
|
| 196 |
+
},
|
| 197 |
+
{
|
| 198 |
+
"title": "The debt-limit deal could help clean energy. But probably not much",
|
| 199 |
+
"url": "https://www.latimes.com/environment/newsletter/2023-06-01/the-debt-limit-deal-could-help-clean-energy-but-probably-not-much-boiling-point",
|
| 200 |
+
"source": "latimes"
|
| 201 |
+
},
|
| 202 |
+
{
|
| 203 |
+
"title": "Taking up space in nature is liberating. \u2018We look like this,\u2019 say L.A.\u2019s queer plant lovers",
|
| 204 |
+
"url": "https://www.latimes.com/lifestyle/story/2023-06-08/taking-up-space-in-nature-is-liberating-la-queer-plant-lovers",
|
| 205 |
+
"source": "latimes"
|
| 206 |
+
},
|
| 207 |
+
{
|
| 208 |
+
"title": "Opinion: How to dig your way out of climate grief",
|
| 209 |
+
"url": "https://www.latimes.com/opinion/story/2023-05-29/california-garden-rain-snow-climate",
|
| 210 |
+
"source": "latimes"
|
| 211 |
+
},
|
| 212 |
+
{
|
| 213 |
+
"title": "How to track AI\u2019s impact on jobs",
|
| 214 |
+
"url": "https://www.economist.com/finance-and-economics/2023/06/15/ai-is-not-yet-killing-jobs",
|
| 215 |
+
"source": "economist"
|
| 216 |
+
},
|
| 217 |
+
{
|
| 218 |
+
"title": "Can Britain become an AI superpower?",
|
| 219 |
+
"url": "https://www.economist.com/leaders/2023/06/15/how-britain-can-become-an-ai-superpower",
|
| 220 |
+
"source": "economist"
|
| 221 |
+
},
|
| 222 |
+
{
|
| 223 |
+
"title": "My AI girlfriend saved my marriage \u2014\u00a0most people don't think it's cheating",
|
| 224 |
+
"url": "https://nypost.com/2023/06/16/my-ai-girlfriend-saved-my-marriage-its-not-cheating/",
|
| 225 |
+
"source": "nyp"
|
| 226 |
+
},
|
| 227 |
+
{
|
| 228 |
+
"title": "Virginia has a better idea than Biden's dangerous energy plan",
|
| 229 |
+
"url": "https://nypost.com/2023/06/16/youngkin-virginia-has-a-better-idea-than-bidens-dangerous-energy-plan/",
|
| 230 |
+
"source": "nyp"
|
| 231 |
+
},
|
| 232 |
+
{
|
| 233 |
+
"title": "'View' co-hosts berate \u2018annoying\u2019 climate activists who threw paint on Monet painting: \u2018Leave art alone\u2019",
|
| 234 |
+
"url": "https://nypost.com/2023/06/15/view-co-hosts-berate-annoying-climate-activists-who-threw-paint-on-monet-painting-leave-art-alone/",
|
| 235 |
+
"source": "nyp"
|
| 236 |
+
},
|
| 237 |
+
{
|
| 238 |
+
"title": "Ruh-roh, ChatGPT: Dogs are smarter than AI, scientist claims",
|
| 239 |
+
"url": "https://nypost.com/2023/06/15/ruh-roh-chatgpt-dogs-are-smarter-than-ai-scientist-claims/",
|
| 240 |
+
"source": "nyp"
|
| 241 |
+
},
|
| 242 |
+
{
|
| 243 |
+
"title": "Xi \u2018discusses AI\u2019 with \u2018old friend\u2019 Gates in Beijing",
|
| 244 |
+
"url": "https://www.thetimes.co.uk/article/xi-jinping-welcomes-friend-bill-gates-china-fj9drj2mv",
|
| 245 |
+
"source": "thetimes"
|
| 246 |
+
},
|
| 247 |
+
{
|
| 248 |
+
"title": "Villagers on the front line of energy battle with China",
|
| 249 |
+
"url": "https://www.thetimes.co.uk/article/portuguese-villagers-on-front-line-of-energy-battle-with-beijing-kmjpvxk36",
|
| 250 |
+
"source": "thetimes"
|
| 251 |
+
},
|
| 252 |
+
{
|
| 253 |
+
"title": "Privacy watchdog warns of AI data risks",
|
| 254 |
+
"url": "https://www.thetimes.co.uk/article/privacy-watchdog-warns-of-ai-data-risks-gv8w6lrtt",
|
| 255 |
+
"source": "thetimes"
|
| 256 |
+
},
|
| 257 |
+
{
|
| 258 |
+
"title": "AI Startups Have Tons of Cash, but Not Enough Data. That\u2019s a Problem.4 min read",
|
| 259 |
+
"url": "https://www.wsj.com/articles/ai-startups-have-tons-of-cash-but-not-enough-data-thats-a-problem-d69de120?mod=hp_minor_pos4",
|
| 260 |
+
"source": "wallstreetjournal"
|
| 261 |
+
},
|
| 262 |
+
{
|
| 263 |
+
"title": "Salesforce Aims to Plug \u2018AI Trust Gap\u2019 With New Tech Tools5 min read",
|
| 264 |
+
"url": "https://www.wsj.com/articles/salesforce-aims-to-plug-ai-trust-gap-with-new-tech-tools-19e11750?mod=hp_minor_pos5",
|
| 265 |
+
"source": "wallstreetjournal"
|
| 266 |
+
},
|
| 267 |
+
{
|
| 268 |
+
"title": "Oracle Is Thriving in the Cloud. AI Is Next.4 min read",
|
| 269 |
+
"url": "https://www.barrons.com/articles/oracle-stock-price-ai-cloud-b58e6d42?mod=hp_minor_pos24",
|
| 270 |
+
"source": "wallstreetjournal"
|
| 271 |
+
},
|
| 272 |
+
{
|
| 273 |
+
"title": "International stocks are breaking out as Japan's Nikkei 225 reaches 33-year high1 min read",
|
| 274 |
+
"url": "https://www.marketwatch.com/story/international-stocks-are-breaking-out-as-japans-nikkei-225-reaches-33-year-high-9308aaec?mod=hp_minor_pos26",
|
| 275 |
+
"source": "wallstreetjournal"
|
| 276 |
+
},
|
| 277 |
+
{
|
| 278 |
+
"title": "AI Won't Kill the Music. Buy These Labels' Stocks.",
|
| 279 |
+
"url": "https://www.barrons.com/articles/buy-universal-warner-music-stock-price-pick-ai-6c11d9a6?mod=hp_LEAD_4",
|
| 280 |
+
"source": "barrons"
|
| 281 |
+
},
|
| 282 |
+
{
|
| 283 |
+
"title": "Nvidia and Tesla Are AI Stocks. Why Not GM?",
|
| 284 |
+
"url": "https://www.barrons.com/articles/ai-nvidia-tesla-gm-stock-price-5c482ccc?mod=hp_DAY_Theme_2_3",
|
| 285 |
+
"source": "barrons"
|
| 286 |
+
},
|
| 287 |
+
{
|
| 288 |
+
"title": "Oracle Is Thriving in the Cloud. AI Is Next.",
|
| 289 |
+
"url": "https://www.barrons.com/articles/oracle-stock-price-ai-cloud-b58e6d42?mod=hp_LATEST",
|
| 290 |
+
"source": "barrons"
|
| 291 |
+
},
|
| 292 |
+
{
|
| 293 |
+
"title": "International stocks are breaking out as Japan's Nikkei 225 reaches 33-year high",
|
| 294 |
+
"url": "https://www.marketwatch.com/story/international-stocks-are-breaking-out-as-japans-nikkei-225-reaches-33-year-high-9308aaec?mod=hp_LATEST",
|
| 295 |
+
"source": "barrons"
|
| 296 |
+
},
|
| 297 |
+
{
|
| 298 |
+
"title": "AI Won't Kill the Music. Buy These Labels' Stocks.",
|
| 299 |
+
"url": "https://www.barrons.com/articles/buy-universal-warner-music-stock-price-pick-ai-6c11d9a6?mod=hp_LATEST",
|
| 300 |
+
"source": "barrons"
|
| 301 |
+
},
|
| 302 |
+
{
|
| 303 |
+
"title": "Adobe Posts Strong Earnings. CEO Touts a 'New Era of Generative AI'",
|
| 304 |
+
"url": "https://www.barrons.com/articles/adobe-earnings-stock-price-5e27bb24?mod=hp_LATEST",
|
| 305 |
+
"source": "barrons"
|
| 306 |
+
},
|
| 307 |
+
{
|
| 308 |
+
"title": "IBM CEO: AI Will Actually Create Jobs",
|
| 309 |
+
"url": "https://www.barrons.com/articles/ai-jobs-ibm-ceo-94a6537d?mod=hp_CEOs_3",
|
| 310 |
+
"source": "barrons"
|
| 311 |
+
},
|
| 312 |
+
{
|
| 313 |
+
"title": "How to Regulate AI? Start With the Data.",
|
| 314 |
+
"url": "https://www.barrons.com/articles/ai-data-regulation-bfded1d4?mod=hp_COMMENTARY_1",
|
| 315 |
+
"source": "barrons"
|
| 316 |
+
}
|
| 317 |
+
]
|
| 318 |
+
}
|
| 319 |
+
],
|
| 320 |
+
"standardized_name": "green_gold"
|
| 321 |
+
}
|
toolbench/toolenv/tools/News_Media/green_gold/api.py
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import requests
|
| 2 |
+
import json
|
| 3 |
+
from datetime import date, datetime, timedelta
|
| 4 |
+
import os
|
| 5 |
+
|
| 6 |
+
from typing import Optional, Dict, Union, List
|
| 7 |
+
|
| 8 |
+
|
| 9 |
+
def specific_publication_articles(newspaperid: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 10 |
+
"""
|
| 11 |
+
"Gets news articles from specific publications"
|
| 12 |
+
|
| 13 |
+
"""
|
| 14 |
+
url = f"https://green-gold.p.rapidapi.com/news/{newspaperid}"
|
| 15 |
+
querystring = {}
|
| 16 |
+
|
| 17 |
+
headers = {
|
| 18 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 19 |
+
"X-RapidAPI-Host": "green-gold.p.rapidapi.com"
|
| 20 |
+
}
|
| 21 |
+
|
| 22 |
+
|
| 23 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 24 |
+
try:
|
| 25 |
+
observation = response.json()
|
| 26 |
+
except:
|
| 27 |
+
observation = response.text
|
| 28 |
+
return observation
|
| 29 |
+
|
| 30 |
+
def all_articles(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 31 |
+
"""
|
| 32 |
+
"Endpoint to gather all articles from all listed publications detailed in API"
|
| 33 |
+
|
| 34 |
+
"""
|
| 35 |
+
url = f"https://green-gold.p.rapidapi.com/news"
|
| 36 |
+
querystring = {}
|
| 37 |
+
|
| 38 |
+
headers = {
|
| 39 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 40 |
+
"X-RapidAPI-Host": "green-gold.p.rapidapi.com"
|
| 41 |
+
}
|
| 42 |
+
|
| 43 |
+
|
| 44 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 45 |
+
try:
|
| 46 |
+
observation = response.json()
|
| 47 |
+
except:
|
| 48 |
+
observation = response.text
|
| 49 |
+
return observation
|
| 50 |
+
|
toolbench/toolenv/tools/News_Media/green_pass_live_italy/api.py
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import requests
|
| 2 |
+
import json
|
| 3 |
+
from datetime import date, datetime, timedelta
|
| 4 |
+
import os
|
| 5 |
+
|
| 6 |
+
from typing import Optional, Dict, Union, List
|
| 7 |
+
|
| 8 |
+
|
| 9 |
+
def get_news_from_individual_source(newspaperid: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 10 |
+
"""
|
| 11 |
+
"Endpoint getting news about Green Pass from an individual source"
|
| 12 |
+
|
| 13 |
+
"""
|
| 14 |
+
url = f"https://green-pass-live-italy.p.rapidapi.com/news/{newspaperid}"
|
| 15 |
+
querystring = {}
|
| 16 |
+
|
| 17 |
+
headers = {
|
| 18 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 19 |
+
"X-RapidAPI-Host": "green-pass-live-italy.p.rapidapi.com"
|
| 20 |
+
}
|
| 21 |
+
|
| 22 |
+
|
| 23 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 24 |
+
try:
|
| 25 |
+
observation = response.json()
|
| 26 |
+
except:
|
| 27 |
+
observation = response.text
|
| 28 |
+
return observation
|
| 29 |
+
|
| 30 |
+
def get_all_green_pass_news(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 31 |
+
"""
|
| 32 |
+
"Endpoint returning all live news from sources"
|
| 33 |
+
|
| 34 |
+
"""
|
| 35 |
+
url = f"https://green-pass-live-italy.p.rapidapi.com/news"
|
| 36 |
+
querystring = {}
|
| 37 |
+
|
| 38 |
+
headers = {
|
| 39 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 40 |
+
"X-RapidAPI-Host": "green-pass-live-italy.p.rapidapi.com"
|
| 41 |
+
}
|
| 42 |
+
|
| 43 |
+
|
| 44 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 45 |
+
try:
|
| 46 |
+
observation = response.json()
|
| 47 |
+
except:
|
| 48 |
+
observation = response.text
|
| 49 |
+
return observation
|
| 50 |
+
|
toolbench/toolenv/tools/News_Media/guardian.json
ADDED
|
@@ -0,0 +1,480 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"product_id": "345",
|
| 3 |
+
"tool_description": "Query and download data from this publication's database.",
|
| 4 |
+
"home_url": "https://rapidapi.com/mikilior1/api/Guardian/",
|
| 5 |
+
"name": "Guardian",
|
| 6 |
+
"title": "Guardian",
|
| 7 |
+
"pricing": "FREE",
|
| 8 |
+
"tool_name": "Guardian",
|
| 9 |
+
"score": {
|
| 10 |
+
"avgServiceLevel": 0,
|
| 11 |
+
"avgLatency": 127268,
|
| 12 |
+
"avgSuccessRate": 0,
|
| 13 |
+
"popularityScore": 4.6,
|
| 14 |
+
"__typename": "Score"
|
| 15 |
+
},
|
| 16 |
+
"host": "Guardianmikilior1V1.p.rapidapi.com",
|
| 17 |
+
"api_list": [
|
| 18 |
+
{
|
| 19 |
+
"name": "getEditions",
|
| 20 |
+
"url": "https://Guardianmikilior1V1.p.rapidapi.com/getEditions",
|
| 21 |
+
"description": "Returns all returns all editions in the Guardian API. Editions are the different front main pages of the Guardian site we have. At current we have editions for the United Kingdom, the United States and Australia.",
|
| 22 |
+
"method": "POST",
|
| 23 |
+
"required_parameters": [
|
| 24 |
+
{
|
| 25 |
+
"name": "apiKey",
|
| 26 |
+
"type": "CREDENTIALS",
|
| 27 |
+
"description": "The api key obtained from Guardian",
|
| 28 |
+
"default": ""
|
| 29 |
+
}
|
| 30 |
+
],
|
| 31 |
+
"optional_parameters": [
|
| 32 |
+
{
|
| 33 |
+
"name": "query",
|
| 34 |
+
"type": "STRING",
|
| 35 |
+
"description": "Return section based on the query term specified. Example: business",
|
| 36 |
+
"default": ""
|
| 37 |
+
}
|
| 38 |
+
],
|
| 39 |
+
"code": "import requests\n\nurl = \"https://Guardianmikilior1V1.p.rapidapi.com/getEditions\"\nquerystring = {\"query\": \"\", \"apiKey\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Guardianmikilior1V1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n",
|
| 40 |
+
"convert_code": "import requests\n\nurl = \"https://Guardianmikilior1V1.p.rapidapi.com/getEditions\"\nquerystring = {\"query\": \"\", \"apiKey\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Guardianmikilior1V1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n",
|
| 41 |
+
"test_endpoint": ""
|
| 42 |
+
},
|
| 43 |
+
{
|
| 44 |
+
"name": "getSections",
|
| 45 |
+
"url": "https://Guardianmikilior1V1.p.rapidapi.com/getSections",
|
| 46 |
+
"description": "Returns all sections in the Guardian API.",
|
| 47 |
+
"method": "POST",
|
| 48 |
+
"required_parameters": [
|
| 49 |
+
{
|
| 50 |
+
"name": "apiKey",
|
| 51 |
+
"type": "CREDENTIALS",
|
| 52 |
+
"description": "The api key obtained from Guardian",
|
| 53 |
+
"default": ""
|
| 54 |
+
}
|
| 55 |
+
],
|
| 56 |
+
"optional_parameters": [
|
| 57 |
+
{
|
| 58 |
+
"name": "query",
|
| 59 |
+
"type": "STRING",
|
| 60 |
+
"description": "Request tags containing this free text. Example: sausages",
|
| 61 |
+
"default": ""
|
| 62 |
+
}
|
| 63 |
+
],
|
| 64 |
+
"code": "import requests\n\nurl = \"https://Guardianmikilior1V1.p.rapidapi.com/getSections\"\nquerystring = {\"apiKey\": \"\", \"query\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Guardianmikilior1V1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n",
|
| 65 |
+
"convert_code": "import requests\n\nurl = \"https://Guardianmikilior1V1.p.rapidapi.com/getSections\"\nquerystring = {\"apiKey\": \"\", \"query\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Guardianmikilior1V1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n",
|
| 66 |
+
"test_endpoint": ""
|
| 67 |
+
},
|
| 68 |
+
{
|
| 69 |
+
"name": "getSingleItem",
|
| 70 |
+
"url": "https://Guardianmikilior1V1.p.rapidapi.com/getSingleItem",
|
| 71 |
+
"description": "Returns all the data we have for a given single item id. Here the term 'item' refers to either a piece of content, a tag, or a section. The item endpoint matches the paths on theguardian.com.",
|
| 72 |
+
"method": "POST",
|
| 73 |
+
"required_parameters": [
|
| 74 |
+
{
|
| 75 |
+
"name": "apiKey",
|
| 76 |
+
"type": "CREDENTIALS",
|
| 77 |
+
"description": "The api key obtained from Guardian",
|
| 78 |
+
"default": ""
|
| 79 |
+
},
|
| 80 |
+
{
|
| 81 |
+
"name": "id",
|
| 82 |
+
"type": "STRING",
|
| 83 |
+
"description": "The ID for an item, such as a piece of content, is the path to that item on the site.",
|
| 84 |
+
"default": ""
|
| 85 |
+
}
|
| 86 |
+
],
|
| 87 |
+
"optional_parameters": [
|
| 88 |
+
{
|
| 89 |
+
"name": "page",
|
| 90 |
+
"type": "NUMBER",
|
| 91 |
+
"description": "Return only the result set from a particular page. Example: 5",
|
| 92 |
+
"default": ""
|
| 93 |
+
},
|
| 94 |
+
{
|
| 95 |
+
"name": "production-office",
|
| 96 |
+
"type": "STRING",
|
| 97 |
+
"description": "Return only content from those production offices. Example: aus",
|
| 98 |
+
"default": ""
|
| 99 |
+
},
|
| 100 |
+
{
|
| 101 |
+
"name": "reference-type",
|
| 102 |
+
"type": "STRING",
|
| 103 |
+
"description": "Return only content with references of those types. Example: isbn",
|
| 104 |
+
"default": ""
|
| 105 |
+
},
|
| 106 |
+
{
|
| 107 |
+
"name": "show-tags",
|
| 108 |
+
"type": "STRING",
|
| 109 |
+
"description": "Add associated metadata tags. Example: publication",
|
| 110 |
+
"default": ""
|
| 111 |
+
},
|
| 112 |
+
{
|
| 113 |
+
"name": "section",
|
| 114 |
+
"type": "STRING",
|
| 115 |
+
"description": "Return only content in those sections. Example: football",
|
| 116 |
+
"default": ""
|
| 117 |
+
},
|
| 118 |
+
{
|
| 119 |
+
"name": "rights",
|
| 120 |
+
"type": "STRING",
|
| 121 |
+
"description": "Return only content with those rights. Example: syndicatable",
|
| 122 |
+
"default": ""
|
| 123 |
+
},
|
| 124 |
+
{
|
| 125 |
+
"name": "show-rights",
|
| 126 |
+
"type": "SELECT",
|
| 127 |
+
"description": "Add associated rights. Accepted values: syndicatable, subscription-databases, all",
|
| 128 |
+
"default": ""
|
| 129 |
+
},
|
| 130 |
+
{
|
| 131 |
+
"name": "show-elements",
|
| 132 |
+
"type": "SELECT",
|
| 133 |
+
"description": "Add associated media elements such as images and audio. Accepted values: audio,image,video,all",
|
| 134 |
+
"default": ""
|
| 135 |
+
},
|
| 136 |
+
{
|
| 137 |
+
"name": "show-related",
|
| 138 |
+
"type": "BOOLEAN",
|
| 139 |
+
"description": "Content items can show a set of 'related' content. When true returns content items related to the main content item",
|
| 140 |
+
"default": ""
|
| 141 |
+
},
|
| 142 |
+
{
|
| 143 |
+
"name": "order-by",
|
| 144 |
+
"type": "SELECT",
|
| 145 |
+
"description": "Returns results in the specified order. Accepted values: newest, oldest, relevance",
|
| 146 |
+
"default": ""
|
| 147 |
+
},
|
| 148 |
+
{
|
| 149 |
+
"name": "to-date",
|
| 150 |
+
"type": "DATEPICKER",
|
| 151 |
+
"description": "Return only content published on or before that date. Example: 2014-02-17",
|
| 152 |
+
"default": ""
|
| 153 |
+
},
|
| 154 |
+
{
|
| 155 |
+
"name": "star-rating",
|
| 156 |
+
"type": "NUMBER",
|
| 157 |
+
"description": "Return only content with a given star rating. From 1 to 5",
|
| 158 |
+
"default": ""
|
| 159 |
+
},
|
| 160 |
+
{
|
| 161 |
+
"name": "show-section",
|
| 162 |
+
"type": "BOOLEAN",
|
| 163 |
+
"description": "Add associated metadata section",
|
| 164 |
+
"default": ""
|
| 165 |
+
},
|
| 166 |
+
{
|
| 167 |
+
"name": "show-editors-picks",
|
| 168 |
+
"type": "BOOLEAN",
|
| 169 |
+
"description": "When true display a list of content that is chosen by editors on tags, sections and the home page. This content list represents the main list of content found on the equivalent path on the site",
|
| 170 |
+
"default": ""
|
| 171 |
+
},
|
| 172 |
+
{
|
| 173 |
+
"name": "page-size",
|
| 174 |
+
"type": "NUMBER",
|
| 175 |
+
"description": "Modify the number of items displayed per page. Accepted values: 1 to 50",
|
| 176 |
+
"default": ""
|
| 177 |
+
},
|
| 178 |
+
{
|
| 179 |
+
"name": "show-blocks",
|
| 180 |
+
"type": "STRING",
|
| 181 |
+
"description": "Add associated blocks",
|
| 182 |
+
"default": ""
|
| 183 |
+
},
|
| 184 |
+
{
|
| 185 |
+
"name": "lang",
|
| 186 |
+
"type": "STRING",
|
| 187 |
+
"description": "Return only content in those languages. ISO language codes. Example: fr",
|
| 188 |
+
"default": ""
|
| 189 |
+
},
|
| 190 |
+
{
|
| 191 |
+
"name": "order-date",
|
| 192 |
+
"type": "SELECT",
|
| 193 |
+
"description": "Returns results in the specified order. Accepted values: published, newspaper-edition, last-modified",
|
| 194 |
+
"default": ""
|
| 195 |
+
},
|
| 196 |
+
{
|
| 197 |
+
"name": "tag",
|
| 198 |
+
"type": "STRING",
|
| 199 |
+
"description": "Return only content with those tags. Example: technology/apple",
|
| 200 |
+
"default": ""
|
| 201 |
+
},
|
| 202 |
+
{
|
| 203 |
+
"name": "use-date",
|
| 204 |
+
"type": "STRING",
|
| 205 |
+
"description": "Changes which type of date is used to filter the results using from-date and to-date. Accepted values: published, newspaper-edition, last-modified",
|
| 206 |
+
"default": ""
|
| 207 |
+
},
|
| 208 |
+
{
|
| 209 |
+
"name": "reference",
|
| 210 |
+
"type": "STRING",
|
| 211 |
+
"description": "Return only content with those references. Example: isbn/9780718178949",
|
| 212 |
+
"default": ""
|
| 213 |
+
},
|
| 214 |
+
{
|
| 215 |
+
"name": "show-references",
|
| 216 |
+
"type": "STRING",
|
| 217 |
+
"description": "Add associated reference data such as ISBNs",
|
| 218 |
+
"default": ""
|
| 219 |
+
},
|
| 220 |
+
{
|
| 221 |
+
"name": "show-story-package",
|
| 222 |
+
"type": "BOOLEAN",
|
| 223 |
+
"description": "When true display a list of content that is in the has been identified as being about the same story as the requested content item. When a content item is in a package the hasStoryPackage field has a value of true",
|
| 224 |
+
"default": ""
|
| 225 |
+
},
|
| 226 |
+
{
|
| 227 |
+
"name": "ids",
|
| 228 |
+
"type": "STRING",
|
| 229 |
+
"description": "Return only content with those IDs. Example: technology/2014/feb/17/flappy-bird-clones-apple-google",
|
| 230 |
+
"default": ""
|
| 231 |
+
},
|
| 232 |
+
{
|
| 233 |
+
"name": "from-date",
|
| 234 |
+
"type": "DATEPICKER",
|
| 235 |
+
"description": "Return only content published on or after that date. Example: 2014-02-16",
|
| 236 |
+
"default": ""
|
| 237 |
+
},
|
| 238 |
+
{
|
| 239 |
+
"name": "show-fields",
|
| 240 |
+
"type": "STRING",
|
| 241 |
+
"description": "Add fields associated with the content",
|
| 242 |
+
"default": ""
|
| 243 |
+
},
|
| 244 |
+
{
|
| 245 |
+
"name": "show-most-viewed",
|
| 246 |
+
"type": "BOOLEAN",
|
| 247 |
+
"description": "When true display most viewed content. For overall most viewed set id to '/', for section most viewed set id to the section id",
|
| 248 |
+
"default": ""
|
| 249 |
+
}
|
| 250 |
+
],
|
| 251 |
+
"code": "import requests\n\nurl = \"https://Guardianmikilior1V1.p.rapidapi.com/getSingleItem\"\nquerystring = {\"apiKey\": \"\", \"page\": \"\", \"production-office\": \"\", \"reference-type\": \"\", \"show-tags\": \"\", \"section\": \"\", \"rights\": \"\", \"show-rights\": \"\", \"show-elements\": \"\", \"show-related\": \"\", \"order-by\": \"\", \"to-date\": \"\", \"star-rating\": \"\", \"show-section\": \"\", \"show-editors-picks\": \"\", \"page-size\": \"\", \"show-blocks\": \"\", \"lang\": \"\", \"order-date\": \"\", \"id\": \"\", \"tag\": \"\", \"use-date\": \"\", \"reference\": \"\", \"show-references\": \"\", \"show-story-package\": \"\", \"ids\": \"\", \"from-date\": \"\", \"show-fields\": \"\", \"show-most-viewed\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Guardianmikilior1V1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n",
|
| 252 |
+
"convert_code": "import requests\n\nurl = \"https://Guardianmikilior1V1.p.rapidapi.com/getSingleItem\"\nquerystring = {\"apiKey\": \"\", \"page\": \"\", \"production-office\": \"\", \"reference-type\": \"\", \"show-tags\": \"\", \"section\": \"\", \"rights\": \"\", \"show-rights\": \"\", \"show-elements\": \"\", \"show-related\": \"\", \"order-by\": \"\", \"to-date\": \"\", \"star-rating\": \"\", \"show-section\": \"\", \"show-editors-picks\": \"\", \"page-size\": \"\", \"show-blocks\": \"\", \"lang\": \"\", \"order-date\": \"\", \"id\": \"\", \"tag\": \"\", \"use-date\": \"\", \"reference\": \"\", \"show-references\": \"\", \"show-story-package\": \"\", \"ids\": \"\", \"from-date\": \"\", \"show-fields\": \"\", \"show-most-viewed\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Guardianmikilior1V1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n",
|
| 253 |
+
"test_endpoint": ""
|
| 254 |
+
},
|
| 255 |
+
{
|
| 256 |
+
"name": "getTags",
|
| 257 |
+
"url": "https://Guardianmikilior1V1.p.rapidapi.com/getTags",
|
| 258 |
+
"description": "Returns all tags in the Guardian API. All Guardian content is manually categorised using these tags, of which there are more than 50,000.",
|
| 259 |
+
"method": "POST",
|
| 260 |
+
"required_parameters": [
|
| 261 |
+
{
|
| 262 |
+
"name": "apiKey",
|
| 263 |
+
"type": "CREDENTIALS",
|
| 264 |
+
"description": "The api key obtained from Guardian",
|
| 265 |
+
"default": ""
|
| 266 |
+
}
|
| 267 |
+
],
|
| 268 |
+
"optional_parameters": [
|
| 269 |
+
{
|
| 270 |
+
"name": "type",
|
| 271 |
+
"type": "STRING",
|
| 272 |
+
"description": "Return only tags of those types",
|
| 273 |
+
"default": ""
|
| 274 |
+
},
|
| 275 |
+
{
|
| 276 |
+
"name": "show-references",
|
| 277 |
+
"type": "STRING",
|
| 278 |
+
"description": "Add associated reference data such as ISBNs",
|
| 279 |
+
"default": ""
|
| 280 |
+
},
|
| 281 |
+
{
|
| 282 |
+
"name": "page",
|
| 283 |
+
"type": "NUMBER",
|
| 284 |
+
"description": "Returns results only for that page index. Example: 5",
|
| 285 |
+
"default": ""
|
| 286 |
+
},
|
| 287 |
+
{
|
| 288 |
+
"name": "reference",
|
| 289 |
+
"type": "STRING",
|
| 290 |
+
"description": "Return only tags with those references. Example: isbn/9780718178949",
|
| 291 |
+
"default": ""
|
| 292 |
+
},
|
| 293 |
+
{
|
| 294 |
+
"name": "query",
|
| 295 |
+
"type": "STRING",
|
| 296 |
+
"description": "Request tags containing this free text. Example: sausages",
|
| 297 |
+
"default": ""
|
| 298 |
+
},
|
| 299 |
+
{
|
| 300 |
+
"name": "reference-type",
|
| 301 |
+
"type": "STRING",
|
| 302 |
+
"description": "Return only tags with references of those types. Example: isbn",
|
| 303 |
+
"default": ""
|
| 304 |
+
},
|
| 305 |
+
{
|
| 306 |
+
"name": "section",
|
| 307 |
+
"type": "STRING",
|
| 308 |
+
"description": "Return only tags in those sections. Example: football",
|
| 309 |
+
"default": ""
|
| 310 |
+
},
|
| 311 |
+
{
|
| 312 |
+
"name": "page-size",
|
| 313 |
+
"type": "NUMBER",
|
| 314 |
+
"description": "Modify the number of items displayed per page. Example: 10",
|
| 315 |
+
"default": ""
|
| 316 |
+
}
|
| 317 |
+
],
|
| 318 |
+
"code": "import requests\n\nurl = \"https://Guardianmikilior1V1.p.rapidapi.com/getTags\"\nquerystring = {\"type\": \"\", \"show-references\": \"\", \"page\": \"\", \"apiKey\": \"\", \"reference\": \"\", \"query\": \"\", \"reference-type\": \"\", \"section\": \"\", \"page-size\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Guardianmikilior1V1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n",
|
| 319 |
+
"convert_code": "import requests\n\nurl = \"https://Guardianmikilior1V1.p.rapidapi.com/getTags\"\nquerystring = {\"type\": \"\", \"show-references\": \"\", \"page\": \"\", \"apiKey\": \"\", \"reference\": \"\", \"query\": \"\", \"reference-type\": \"\", \"section\": \"\", \"page-size\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Guardianmikilior1V1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n",
|
| 320 |
+
"test_endpoint": ""
|
| 321 |
+
},
|
| 322 |
+
{
|
| 323 |
+
"name": "searchContent",
|
| 324 |
+
"url": "https://Guardianmikilior1V1.p.rapidapi.com/searchContent",
|
| 325 |
+
"description": "You can find all parts of the content in the API",
|
| 326 |
+
"method": "POST",
|
| 327 |
+
"required_parameters": [
|
| 328 |
+
{
|
| 329 |
+
"name": "apiKey",
|
| 330 |
+
"type": "CREDENTIALS",
|
| 331 |
+
"description": "The api key obtained from Guardian",
|
| 332 |
+
"default": ""
|
| 333 |
+
}
|
| 334 |
+
],
|
| 335 |
+
"optional_parameters": [
|
| 336 |
+
{
|
| 337 |
+
"name": "from-date",
|
| 338 |
+
"type": "DATEPICKER",
|
| 339 |
+
"description": "Return only content published on or after that date. Example: 2014-02-16",
|
| 340 |
+
"default": ""
|
| 341 |
+
},
|
| 342 |
+
{
|
| 343 |
+
"name": "ids",
|
| 344 |
+
"type": "STRING",
|
| 345 |
+
"description": "Return only content with those IDs. Example: technology/2014/feb/17/flappy-bird-clones-apple-google",
|
| 346 |
+
"default": ""
|
| 347 |
+
},
|
| 348 |
+
{
|
| 349 |
+
"name": "query",
|
| 350 |
+
"type": "STRING",
|
| 351 |
+
"description": "Request content containing this free text. Supports AND, OR and NOT operators, and exact phrase queries using double quotes.",
|
| 352 |
+
"default": ""
|
| 353 |
+
},
|
| 354 |
+
{
|
| 355 |
+
"name": "show-elements",
|
| 356 |
+
"type": "SELECT",
|
| 357 |
+
"description": "Add associated media elements such as images and audio. Accepted values: audio,image,video,all",
|
| 358 |
+
"default": ""
|
| 359 |
+
},
|
| 360 |
+
{
|
| 361 |
+
"name": "order-by",
|
| 362 |
+
"type": "SELECT",
|
| 363 |
+
"description": "Returns results in the specified order. Accepted values: newest, oldest, relevance",
|
| 364 |
+
"default": ""
|
| 365 |
+
},
|
| 366 |
+
{
|
| 367 |
+
"name": "show-section",
|
| 368 |
+
"type": "BOOLEAN",
|
| 369 |
+
"description": "Add associated metadata section",
|
| 370 |
+
"default": ""
|
| 371 |
+
},
|
| 372 |
+
{
|
| 373 |
+
"name": "tag",
|
| 374 |
+
"type": "STRING",
|
| 375 |
+
"description": "Return only content with those tags. Example: technology/apple",
|
| 376 |
+
"default": ""
|
| 377 |
+
},
|
| 378 |
+
{
|
| 379 |
+
"name": "reference",
|
| 380 |
+
"type": "STRING",
|
| 381 |
+
"description": "Return only content with those references. Example: isbn/9780718178949",
|
| 382 |
+
"default": ""
|
| 383 |
+
},
|
| 384 |
+
{
|
| 385 |
+
"name": "page",
|
| 386 |
+
"type": "NUMBER",
|
| 387 |
+
"description": "Return only the result set from a particular page. Example: 5",
|
| 388 |
+
"default": ""
|
| 389 |
+
},
|
| 390 |
+
{
|
| 391 |
+
"name": "lang",
|
| 392 |
+
"type": "STRING",
|
| 393 |
+
"description": "Return only content in those languages. ISO language codes. Example: fr",
|
| 394 |
+
"default": ""
|
| 395 |
+
},
|
| 396 |
+
{
|
| 397 |
+
"name": "show-rights",
|
| 398 |
+
"type": "SELECT",
|
| 399 |
+
"description": "Add associated rights. Accepted values: syndicatable, subscription-databases, all",
|
| 400 |
+
"default": ""
|
| 401 |
+
},
|
| 402 |
+
{
|
| 403 |
+
"name": "show-tags",
|
| 404 |
+
"type": "STRING",
|
| 405 |
+
"description": "Add associated metadata tags. Example: publication",
|
| 406 |
+
"default": ""
|
| 407 |
+
},
|
| 408 |
+
{
|
| 409 |
+
"name": "production-office",
|
| 410 |
+
"type": "STRING",
|
| 411 |
+
"description": "Return only content from those production offices. Example: aus",
|
| 412 |
+
"default": ""
|
| 413 |
+
},
|
| 414 |
+
{
|
| 415 |
+
"name": "page-size",
|
| 416 |
+
"type": "NUMBER",
|
| 417 |
+
"description": "Modify the number of items displayed per page. Accepted values: 1 to 50",
|
| 418 |
+
"default": ""
|
| 419 |
+
},
|
| 420 |
+
{
|
| 421 |
+
"name": "show-fields",
|
| 422 |
+
"type": "STRING",
|
| 423 |
+
"description": "Add fields associated with the content",
|
| 424 |
+
"default": ""
|
| 425 |
+
},
|
| 426 |
+
{
|
| 427 |
+
"name": "show-references",
|
| 428 |
+
"type": "STRING",
|
| 429 |
+
"description": "Add associated reference data such as ISBNs",
|
| 430 |
+
"default": ""
|
| 431 |
+
},
|
| 432 |
+
{
|
| 433 |
+
"name": "rights",
|
| 434 |
+
"type": "STRING",
|
| 435 |
+
"description": "Return only content with those rights. Example: syndicatable",
|
| 436 |
+
"default": ""
|
| 437 |
+
},
|
| 438 |
+
{
|
| 439 |
+
"name": "section",
|
| 440 |
+
"type": "STRING",
|
| 441 |
+
"description": "Return only content in those sections. Example: football",
|
| 442 |
+
"default": ""
|
| 443 |
+
},
|
| 444 |
+
{
|
| 445 |
+
"name": "reference-type",
|
| 446 |
+
"type": "STRING",
|
| 447 |
+
"description": "Return only content with references of those types. Example: isbn",
|
| 448 |
+
"default": ""
|
| 449 |
+
},
|
| 450 |
+
{
|
| 451 |
+
"name": "star-rating",
|
| 452 |
+
"type": "NUMBER",
|
| 453 |
+
"description": "Return only content with a given star rating. From 1 to 5",
|
| 454 |
+
"default": ""
|
| 455 |
+
},
|
| 456 |
+
{
|
| 457 |
+
"name": "show-blocks",
|
| 458 |
+
"type": "STRING",
|
| 459 |
+
"description": "Add associated blocks",
|
| 460 |
+
"default": ""
|
| 461 |
+
},
|
| 462 |
+
{
|
| 463 |
+
"name": "order-date",
|
| 464 |
+
"type": "SELECT",
|
| 465 |
+
"description": "Returns results in the specified order. Accepted values: published, newspaper-edition, last-modified",
|
| 466 |
+
"default": ""
|
| 467 |
+
},
|
| 468 |
+
{
|
| 469 |
+
"name": "to-date",
|
| 470 |
+
"type": "DATEPICKER",
|
| 471 |
+
"description": "Return only content published on or before that date. Example: 2014-02-17",
|
| 472 |
+
"default": ""
|
| 473 |
+
}
|
| 474 |
+
],
|
| 475 |
+
"code": "import requests\n\nurl = \"https://Guardianmikilior1V1.p.rapidapi.com/searchContent\"\nquerystring = {\"from-date\": \"\", \"ids\": \"\", \"query\": \"\", \"show-elements\": \"\", \"order-by\": \"\", \"show-section\": \"\", \"tag\": \"\", \"reference\": \"\", \"page\": \"\", \"lang\": \"\", \"show-rights\": \"\", \"show-tags\": \"\", \"apiKey\": \"\", \"production-office\": \"\", \"page-size\": \"\", \"show-fields\": \"\", \"show-references\": \"\", \"rights\": \"\", \"section\": \"\", \"reference-type\": \"\", \"star-rating\": \"\", \"show-blocks\": \"\", \"order-date\": \"\", \"to-date\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Guardianmikilior1V1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n",
|
| 476 |
+
"convert_code": "import requests\n\nurl = \"https://Guardianmikilior1V1.p.rapidapi.com/searchContent\"\nquerystring = {\"from-date\": \"\", \"ids\": \"\", \"query\": \"\", \"show-elements\": \"\", \"order-by\": \"\", \"show-section\": \"\", \"tag\": \"\", \"reference\": \"\", \"page\": \"\", \"lang\": \"\", \"show-rights\": \"\", \"show-tags\": \"\", \"apiKey\": \"\", \"production-office\": \"\", \"page-size\": \"\", \"show-fields\": \"\", \"show-references\": \"\", \"rights\": \"\", \"section\": \"\", \"reference-type\": \"\", \"star-rating\": \"\", \"show-blocks\": \"\", \"order-date\": \"\", \"to-date\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Guardianmikilior1V1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n",
|
| 477 |
+
"test_endpoint": ""
|
| 478 |
+
}
|
| 479 |
+
]
|
| 480 |
+
}
|
toolbench/toolenv/tools/News_Media/guardiola_news_live/api.py
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import requests
|
| 2 |
+
import json
|
| 3 |
+
from datetime import date, datetime, timedelta
|
| 4 |
+
import os
|
| 5 |
+
|
| 6 |
+
from typing import Optional, Dict, Union, List
|
| 7 |
+
|
| 8 |
+
|
| 9 |
+
def get_individual_news_source_news(newspaperid: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 10 |
+
"""
|
| 11 |
+
"Get news about Pep Guardiola from a specific news resource"
|
| 12 |
+
|
| 13 |
+
"""
|
| 14 |
+
url = f"https://guardiola-news-live1.p.rapidapi.com/news/{newspaperid}"
|
| 15 |
+
querystring = {}
|
| 16 |
+
|
| 17 |
+
headers = {
|
| 18 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 19 |
+
"X-RapidAPI-Host": "guardiola-news-live1.p.rapidapi.com"
|
| 20 |
+
}
|
| 21 |
+
|
| 22 |
+
|
| 23 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 24 |
+
try:
|
| 25 |
+
observation = response.json()
|
| 26 |
+
except:
|
| 27 |
+
observation = response.text
|
| 28 |
+
return observation
|
| 29 |
+
|
| 30 |
+
def get_all_pep_s_news(news: str=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 31 |
+
"""
|
| 32 |
+
"This endpoint will return back all news about Pep Guardiola"
|
| 33 |
+
|
| 34 |
+
"""
|
| 35 |
+
url = f"https://guardiola-news-live1.p.rapidapi.com/news"
|
| 36 |
+
querystring = {}
|
| 37 |
+
if news:
|
| 38 |
+
querystring['news'] = news
|
| 39 |
+
|
| 40 |
+
headers = {
|
| 41 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 42 |
+
"X-RapidAPI-Host": "guardiola-news-live1.p.rapidapi.com"
|
| 43 |
+
}
|
| 44 |
+
|
| 45 |
+
|
| 46 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 47 |
+
try:
|
| 48 |
+
observation = response.json()
|
| 49 |
+
except:
|
| 50 |
+
observation = response.text
|
| 51 |
+
return observation
|
| 52 |
+
|
toolbench/toolenv/tools/News_Media/guitar_haven/api.py
ADDED
|
@@ -0,0 +1,155 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import requests
|
| 2 |
+
import json
|
| 3 |
+
from datetime import date, datetime, timedelta
|
| 4 |
+
import os
|
| 5 |
+
|
| 6 |
+
from typing import Optional, Dict, Union, List
|
| 7 |
+
|
| 8 |
+
|
| 9 |
+
def get_source_detail_by_source(sourceid: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 10 |
+
"""
|
| 11 |
+
"Get the details for a specific source"
|
| 12 |
+
|
| 13 |
+
"""
|
| 14 |
+
url = f"https://guitar-haven.p.rapidapi.com/sourceswithdetails/{sourceid}"
|
| 15 |
+
querystring = {}
|
| 16 |
+
|
| 17 |
+
headers = {
|
| 18 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 19 |
+
"X-RapidAPI-Host": "guitar-haven.p.rapidapi.com"
|
| 20 |
+
}
|
| 21 |
+
|
| 22 |
+
|
| 23 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 24 |
+
try:
|
| 25 |
+
observation = response.json()
|
| 26 |
+
except:
|
| 27 |
+
observation = response.text
|
| 28 |
+
return observation
|
| 29 |
+
|
| 30 |
+
def get_all_sources_with_detail(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 31 |
+
"""
|
| 32 |
+
"Get sources, along with meta data about the source"
|
| 33 |
+
|
| 34 |
+
"""
|
| 35 |
+
url = f"https://guitar-haven.p.rapidapi.com/sourceswithdetail"
|
| 36 |
+
querystring = {}
|
| 37 |
+
|
| 38 |
+
headers = {
|
| 39 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 40 |
+
"X-RapidAPI-Host": "guitar-haven.p.rapidapi.com"
|
| 41 |
+
}
|
| 42 |
+
|
| 43 |
+
|
| 44 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 45 |
+
try:
|
| 46 |
+
observation = response.json()
|
| 47 |
+
except:
|
| 48 |
+
observation = response.text
|
| 49 |
+
return observation
|
| 50 |
+
|
| 51 |
+
def homepage(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 52 |
+
"""
|
| 53 |
+
"Homepage"
|
| 54 |
+
|
| 55 |
+
"""
|
| 56 |
+
url = f"https://guitar-haven.p.rapidapi.com/"
|
| 57 |
+
querystring = {}
|
| 58 |
+
|
| 59 |
+
headers = {
|
| 60 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 61 |
+
"X-RapidAPI-Host": "guitar-haven.p.rapidapi.com"
|
| 62 |
+
}
|
| 63 |
+
|
| 64 |
+
|
| 65 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 66 |
+
try:
|
| 67 |
+
observation = response.json()
|
| 68 |
+
except:
|
| 69 |
+
observation = response.text
|
| 70 |
+
return observation
|
| 71 |
+
|
| 72 |
+
def get_source_ids(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 73 |
+
"""
|
| 74 |
+
"Returns a list of available source ids"
|
| 75 |
+
|
| 76 |
+
"""
|
| 77 |
+
url = f"https://guitar-haven.p.rapidapi.com/sourceids"
|
| 78 |
+
querystring = {}
|
| 79 |
+
|
| 80 |
+
headers = {
|
| 81 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 82 |
+
"X-RapidAPI-Host": "guitar-haven.p.rapidapi.com"
|
| 83 |
+
}
|
| 84 |
+
|
| 85 |
+
|
| 86 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 87 |
+
try:
|
| 88 |
+
observation = response.json()
|
| 89 |
+
except:
|
| 90 |
+
observation = response.text
|
| 91 |
+
return observation
|
| 92 |
+
|
| 93 |
+
def get_all_news_by_one_provider(sourceid: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 94 |
+
"""
|
| 95 |
+
"This endpoint retrieves all gather data by one news source"
|
| 96 |
+
|
| 97 |
+
"""
|
| 98 |
+
url = f"https://guitar-haven.p.rapidapi.com/news/{sourceid}"
|
| 99 |
+
querystring = {}
|
| 100 |
+
|
| 101 |
+
headers = {
|
| 102 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 103 |
+
"X-RapidAPI-Host": "guitar-haven.p.rapidapi.com"
|
| 104 |
+
}
|
| 105 |
+
|
| 106 |
+
|
| 107 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 108 |
+
try:
|
| 109 |
+
observation = response.json()
|
| 110 |
+
except:
|
| 111 |
+
observation = response.text
|
| 112 |
+
return observation
|
| 113 |
+
|
| 114 |
+
def get_all_sources(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 115 |
+
"""
|
| 116 |
+
"Get limited meta data for each source"
|
| 117 |
+
|
| 118 |
+
"""
|
| 119 |
+
url = f"https://guitar-haven.p.rapidapi.com/sources"
|
| 120 |
+
querystring = {}
|
| 121 |
+
|
| 122 |
+
headers = {
|
| 123 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 124 |
+
"X-RapidAPI-Host": "guitar-haven.p.rapidapi.com"
|
| 125 |
+
}
|
| 126 |
+
|
| 127 |
+
|
| 128 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 129 |
+
try:
|
| 130 |
+
observation = response.json()
|
| 131 |
+
except:
|
| 132 |
+
observation = response.text
|
| 133 |
+
return observation
|
| 134 |
+
|
| 135 |
+
def get_all_guitar_news(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 136 |
+
"""
|
| 137 |
+
"This endpoint will return all current articles from the front page of top guitar magazines online"
|
| 138 |
+
|
| 139 |
+
"""
|
| 140 |
+
url = f"https://guitar-haven.p.rapidapi.com/news"
|
| 141 |
+
querystring = {}
|
| 142 |
+
|
| 143 |
+
headers = {
|
| 144 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 145 |
+
"X-RapidAPI-Host": "guitar-haven.p.rapidapi.com"
|
| 146 |
+
}
|
| 147 |
+
|
| 148 |
+
|
| 149 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 150 |
+
try:
|
| 151 |
+
observation = response.json()
|
| 152 |
+
except:
|
| 153 |
+
observation = response.text
|
| 154 |
+
return observation
|
| 155 |
+
|
toolbench/toolenv/tools/News_Media/h_crypto_news.json
ADDED
|
@@ -0,0 +1,147 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"product_id": "api_1e0bbba8-2dce-47dd-a6dc-562fce38d524",
|
| 3 |
+
"tool_description": "Crypto News API gives you the latest news on cryptocurrency from several newspapers",
|
| 4 |
+
"home_url": "https://rapidapi.com/a19476210/api/h-crypto-news/",
|
| 5 |
+
"name": "H Crypto News",
|
| 6 |
+
"title": "H Crypto News",
|
| 7 |
+
"pricing": "FREEMIUM",
|
| 8 |
+
"tool_name": "H Crypto News",
|
| 9 |
+
"score": {
|
| 10 |
+
"avgServiceLevel": 100,
|
| 11 |
+
"avgLatency": 14113,
|
| 12 |
+
"avgSuccessRate": 100,
|
| 13 |
+
"popularityScore": 8,
|
| 14 |
+
"__typename": "Score"
|
| 15 |
+
},
|
| 16 |
+
"host": "h-crypto-news.p.rapidapi.com",
|
| 17 |
+
"api_list": [
|
| 18 |
+
{
|
| 19 |
+
"name": "Latest News on Crypto",
|
| 20 |
+
"url": "https://h-crypto-news.p.rapidapi.com/cryptonews",
|
| 21 |
+
"description": "Returns the latest news about crypto from several newspapers and websites",
|
| 22 |
+
"method": "GET",
|
| 23 |
+
"required_parameters": [],
|
| 24 |
+
"optional_parameters": [],
|
| 25 |
+
"code": "import requests\n\nurl = \"https://h-crypto-news.p.rapidapi.com/cryptonews\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"h-crypto-news.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n",
|
| 26 |
+
"convert_code": "import requests\n\nurl = \"https://h-crypto-news.p.rapidapi.com/cryptonews\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"h-crypto-news.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n",
|
| 27 |
+
"test_endpoint": [
|
| 28 |
+
{
|
| 29 |
+
"title": "ChatGPT creator signs up for eyeball-scanning cryptocurrency",
|
| 30 |
+
"url": "https://www.independent.co.uk/tech/worldcoin-crypto-sam-altman-ai-chatgpt-b2345073.html"
|
| 31 |
+
},
|
| 32 |
+
{
|
| 33 |
+
"title": "Bitcoin continues to climb as crypto exec bets $2m on price prediction",
|
| 34 |
+
"url": "https://www.independent.co.uk/tech/bitcoin-price-prediction-coinbase-b2304275.html"
|
| 35 |
+
},
|
| 36 |
+
{
|
| 37 |
+
"title": "Bitcoin price takes a dive as crypto bank liquidates",
|
| 38 |
+
"url": "https://www.independent.co.uk/tech/bitcoin-price-silvergate-crypto-bank-b2297142.html"
|
| 39 |
+
},
|
| 40 |
+
{
|
| 41 |
+
"title": "Latest bitcoin price collapse comes amid crypto bank fears",
|
| 42 |
+
"url": "https://www.independent.co.uk/tech/bitcoin-price-latest-crypto-bank-silvergate-b2294845.html"
|
| 43 |
+
},
|
| 44 |
+
{
|
| 45 |
+
"title": "\u2018World-first\u2019 crypto regime set out by UK government",
|
| 46 |
+
"url": "https://www.independent.co.uk/tech/crypto-regulation-uk-bitcoin-b2273101.html"
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"title": "Genesis to file for bankruptcy amid \u2018major\u2019 US cryptocurrency move",
|
| 50 |
+
"url": "https://www.independent.co.uk/news/world/americas/genesis-bankruptcy-filing-justice-department-cryptocurrency-bitcoin-b2264995.html"
|
| 51 |
+
},
|
| 52 |
+
{
|
| 53 |
+
"title": "Bitcoin is on the rise again as \u2018crypto winter\u2019 shows signs of thawing",
|
| 54 |
+
"url": "https://www.independent.co.uk/tech/bitcoin-price-crypto-winter-2023-prediction-b2265509.html"
|
| 55 |
+
},
|
| 56 |
+
{
|
| 57 |
+
"title": "Bitcoin price plummets amid major DOJ crypto announcement",
|
| 58 |
+
"url": "https://www.independent.co.uk/tech/crypto-doj-news-bitcoin-price-b2264639.html"
|
| 59 |
+
},
|
| 60 |
+
{
|
| 61 |
+
"title": "Brother of Coinbase boss jailed in first insider crypto trading case",
|
| 62 |
+
"url": "https://www.independent.co.uk/tech/coinbase-crypto-exchange-insider-trading-b2260002.html"
|
| 63 |
+
},
|
| 64 |
+
{
|
| 65 |
+
"title": "Associates of FTX founder Bankman-Fried plead guilty in crypto scandal",
|
| 66 |
+
"url": "https://www.independent.co.uk/news/world/americas/crime/ftx-crypto-bankman-fried-guilty-plea-b2249939.html"
|
| 67 |
+
},
|
| 68 |
+
{
|
| 69 |
+
"title": "World\u2019s biggest crypto exchange releases proof it\u2019s not the next FTX",
|
| 70 |
+
"url": "https://www.independent.co.uk/tech/binance-proof-of-reserves-ftx-b2234408.html"
|
| 71 |
+
},
|
| 72 |
+
{
|
| 73 |
+
"title": "FTX owes more than $3 billion to top 50 crypto creditors",
|
| 74 |
+
"url": "https://www.independent.co.uk/tech/ftx-crypto-latest-bitcoin-regulation-b2229651.html"
|
| 75 |
+
},
|
| 76 |
+
{
|
| 77 |
+
"title": "Bitcoin price falls further as Genesis becomes latest crypto casualty",
|
| 78 |
+
"url": "https://www.independent.co.uk/tech/bitcoin-price-genesis-crypto-latest-b2226380.html"
|
| 79 |
+
},
|
| 80 |
+
{
|
| 81 |
+
"title": "Binance CEO calls for clearer regulation in crypto after FTX collapse",
|
| 82 |
+
"url": "https://www.independent.co.uk/tv/news/ftx-binance-cryptocurrency-changpeng-zhao-b2225523.html"
|
| 83 |
+
},
|
| 84 |
+
{
|
| 85 |
+
"title": "FTX\u2019s Bankman-Fried posts cryptic messages as crypto scandal continues",
|
| 86 |
+
"url": "https://www.independent.co.uk/tech/ftx-crypto-sam-bankman-fried-sbf-twitter-b2224938.html"
|
| 87 |
+
},
|
| 88 |
+
{
|
| 89 |
+
"title": "Half a billion dollars goes missing from collapsed crypto exchange FTX",
|
| 90 |
+
"url": "https://www.independent.co.uk/tech/crypto-latest-ftx-hack-cryptocurrency-b2224546.html"
|
| 91 |
+
},
|
| 92 |
+
{
|
| 93 |
+
"title": "Bitcoin price crash: Why is the crypto market in turmoil?",
|
| 94 |
+
"url": "https://www.independent.co.uk/tech/crypto-market-ftx-binance-latest-b2222218.html"
|
| 95 |
+
},
|
| 96 |
+
{
|
| 97 |
+
"title": "Bitcoin price plummets as crypto space \u2018left reeling\u2019 from FTX drama",
|
| 98 |
+
"url": "https://www.independent.co.uk/tech/bitcoin-price-binance-ftx-crypto-b2222077.html"
|
| 99 |
+
},
|
| 100 |
+
{
|
| 101 |
+
"title": "Twitter users are growing more interested in crypto and pornography",
|
| 102 |
+
"url": "https://www.independent.co.uk/tech/twitter-crypto-pornography-elon-musk-b2210820.html"
|
| 103 |
+
},
|
| 104 |
+
{
|
| 105 |
+
"title": "Kim Kardashian to pay huge fine for backing cryptocurrency",
|
| 106 |
+
"url": "https://www.independent.co.uk/independentpremium/world/kim-kardashian-crypto-ethereum-charges-b2195369.html"
|
| 107 |
+
},
|
| 108 |
+
{
|
| 109 |
+
"title": "Bitcoin\u2019s carbon footprint drops but crypto\u2019s huge power drain remains",
|
| 110 |
+
"url": "https://www.independent.co.uk/climate-change/news/bitcoin-cryptocurrency-mining-electricity-power-b2176098.html"
|
| 111 |
+
},
|
| 112 |
+
{
|
| 113 |
+
"title": "Interpol issues red notice for crypto boss after Terra Luna collapse",
|
| 114 |
+
"url": "https://www.independent.co.uk/tech/crypto-terra-luna-classic-interpol-kwon-b2175219.html"
|
| 115 |
+
},
|
| 116 |
+
{
|
| 117 |
+
"title": "Alex Jones asks for Infowars cryptocurrency donations during testimony",
|
| 118 |
+
"url": "https://www.independent.co.uk/news/world/americas/alex-jones-trial-crypto-conations-b2173472.html"
|
| 119 |
+
},
|
| 120 |
+
{
|
| 121 |
+
"title": "Wanted South Korean crypto developer denies being \u2018on the run\u2019",
|
| 122 |
+
"url": "https://www.independent.co.uk/tech/do-kwon-south-korea-crypto-singapore-run-b2169730.html"
|
| 123 |
+
},
|
| 124 |
+
{
|
| 125 |
+
"title": "\u2018Historic\u2019 moment for crypto as Ethereum Merge finally completed",
|
| 126 |
+
"url": "https://www.independent.co.uk/tech/ethereum-merge-crypto-energy-environment-b2167637.html"
|
| 127 |
+
}
|
| 128 |
+
],
|
| 129 |
+
"statuscode": 200,
|
| 130 |
+
"schema": {
|
| 131 |
+
"type": "array",
|
| 132 |
+
"items": {
|
| 133 |
+
"type": "object",
|
| 134 |
+
"properties": {
|
| 135 |
+
"title": {
|
| 136 |
+
"type": "string"
|
| 137 |
+
},
|
| 138 |
+
"url": {
|
| 139 |
+
"type": "string"
|
| 140 |
+
}
|
| 141 |
+
}
|
| 142 |
+
}
|
| 143 |
+
}
|
| 144 |
+
}
|
| 145 |
+
],
|
| 146 |
+
"standardized_name": "h_crypto_news"
|
| 147 |
+
}
|
toolbench/toolenv/tools/News_Media/h_crypto_news/api.py
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import requests
|
| 2 |
+
import json
|
| 3 |
+
from datetime import date, datetime, timedelta
|
| 4 |
+
import os
|
| 5 |
+
|
| 6 |
+
from typing import Optional, Dict, Union, List
|
| 7 |
+
|
| 8 |
+
|
| 9 |
+
def latest_news_on_crypto(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 10 |
+
"""
|
| 11 |
+
"Returns the latest news about crypto from several newspapers and websites"
|
| 12 |
+
|
| 13 |
+
"""
|
| 14 |
+
url = f"https://h-crypto-news.p.rapidapi.com/cryptonews"
|
| 15 |
+
querystring = {}
|
| 16 |
+
|
| 17 |
+
headers = {
|
| 18 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 19 |
+
"X-RapidAPI-Host": "h-crypto-news.p.rapidapi.com"
|
| 20 |
+
}
|
| 21 |
+
|
| 22 |
+
|
| 23 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 24 |
+
try:
|
| 25 |
+
observation = response.json()
|
| 26 |
+
except:
|
| 27 |
+
observation = response.text
|
| 28 |
+
return observation
|
| 29 |
+
|
toolbench/toolenv/tools/News_Media/hacker_news_graphql_proxy.json
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"product_id": "api_e1689855-93fc-45d0-b744-7b94412eef5d",
|
| 3 |
+
"tool_description": "Hacker News is a social news website focusing on computer science and entrepreneurship. This is a community listing of the Hacker News GraphQL Proxy.",
|
| 4 |
+
"home_url": "https://rapidapi.com/rapidapi/api/hacker-news-graphql-proxy1/",
|
| 5 |
+
"name": "Hacker News GraphQL Proxy",
|
| 6 |
+
"title": "Hacker News GraphQL Proxy",
|
| 7 |
+
"pricing": "FREE",
|
| 8 |
+
"tool_name": "Hacker News GraphQL Proxy",
|
| 9 |
+
"score": {
|
| 10 |
+
"avgServiceLevel": 100,
|
| 11 |
+
"avgLatency": 849,
|
| 12 |
+
"avgSuccessRate": 100,
|
| 13 |
+
"popularityScore": 8.3,
|
| 14 |
+
"__typename": "Score"
|
| 15 |
+
},
|
| 16 |
+
"host": "hacker-news-graphql-proxy1.p.rapidapi.com",
|
| 17 |
+
"api_list": [
|
| 18 |
+
{
|
| 19 |
+
"name": "graphQL",
|
| 20 |
+
"url": "https://hacker-news-graphql-proxy1.p.rapidapi.com/graphql",
|
| 21 |
+
"description": "Edit Variable values to ensure a successful API response & customize your request. Example queries can be found in the [About](https://rapidapi.com/rapidapi/api/hacker-news-graphql-proxy1/details) page!",
|
| 22 |
+
"method": "POST",
|
| 23 |
+
"required_parameters": [],
|
| 24 |
+
"optional_parameters": [],
|
| 25 |
+
"code": "import requests\n\nurl = \"https://hacker-news-graphql-proxy1.p.rapidapi.com/graphql\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"hacker-news-graphql-proxy1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
|
| 26 |
+
"convert_code": "import requests\n\nurl = \"https://hacker-news-graphql-proxy1.p.rapidapi.com/graphql\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"hacker-news-graphql-proxy1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
|
| 27 |
+
"test_endpoint": ""
|
| 28 |
+
}
|
| 29 |
+
]
|
| 30 |
+
}
|
toolbench/toolenv/tools/News_Media/hacker_noon.json
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"product_id": "api_0f09123a-eccd-447d-9dec-65625dff2363",
|
| 3 |
+
"tool_description": "An unofficial API for Hacker Noon",
|
| 4 |
+
"home_url": "https://rapidapi.com/akfaew/api/hacker-noon/",
|
| 5 |
+
"name": "Hacker Noon",
|
| 6 |
+
"title": "Hacker Noon",
|
| 7 |
+
"pricing": "FREEMIUM",
|
| 8 |
+
"tool_name": "Hacker Noon",
|
| 9 |
+
"score": null,
|
| 10 |
+
"host": "hacker-noon.p.rapidapi.com",
|
| 11 |
+
"api_list": [
|
| 12 |
+
{
|
| 13 |
+
"name": "user",
|
| 14 |
+
"url": "https://hacker-noon.p.rapidapi.com/api/0.0/hackernoon/user",
|
| 15 |
+
"description": "Get stories written by user.",
|
| 16 |
+
"method": "POST",
|
| 17 |
+
"required_parameters": [
|
| 18 |
+
{
|
| 19 |
+
"name": "username",
|
| 20 |
+
"type": "STRING",
|
| 21 |
+
"description": "",
|
| 22 |
+
"default": "akfaew"
|
| 23 |
+
}
|
| 24 |
+
],
|
| 25 |
+
"optional_parameters": [],
|
| 26 |
+
"code": "import requests\n\nurl = \"https://hacker-noon.p.rapidapi.com/api/0.0/hackernoon/user\"\nquerystring = {\"username\": \"akfaew\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"hacker-noon.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n",
|
| 27 |
+
"convert_code": "import requests\n\nurl = \"https://hacker-noon.p.rapidapi.com/api/0.0/hackernoon/user\"\nquerystring = {\"username\": \"akfaew\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"hacker-noon.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n",
|
| 28 |
+
"test_endpoint": "",
|
| 29 |
+
"statuscode": 200,
|
| 30 |
+
"schema": {}
|
| 31 |
+
},
|
| 32 |
+
{
|
| 33 |
+
"name": "stories",
|
| 34 |
+
"url": "https://hacker-noon.p.rapidapi.com/api/0.0/hackernoon/stories",
|
| 35 |
+
"description": "Get featured stories.",
|
| 36 |
+
"method": "POST",
|
| 37 |
+
"required_parameters": [],
|
| 38 |
+
"optional_parameters": [],
|
| 39 |
+
"code": "import requests\n\nurl = \"https://hacker-noon.p.rapidapi.com/api/0.0/hackernoon/stories\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"hacker-noon.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
|
| 40 |
+
"convert_code": "import requests\n\nurl = \"https://hacker-noon.p.rapidapi.com/api/0.0/hackernoon/stories\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"hacker-noon.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
|
| 41 |
+
"test_endpoint": "",
|
| 42 |
+
"statuscode": 200,
|
| 43 |
+
"schema": {}
|
| 44 |
+
}
|
| 45 |
+
]
|
| 46 |
+
}
|
toolbench/toolenv/tools/News_Media/hackers_updates/api.py
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import requests
|
| 2 |
+
import json
|
| 3 |
+
from datetime import date, datetime, timedelta
|
| 4 |
+
import os
|
| 5 |
+
|
| 6 |
+
from typing import Optional, Dict, Union, List
|
| 7 |
+
|
| 8 |
+
|
| 9 |
+
def scope(scope: str=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 10 |
+
"""
|
| 11 |
+
"This will give you tips on how to be safe, news, and the latest attacks."
|
| 12 |
+
|
| 13 |
+
"""
|
| 14 |
+
url = f"https://hackers-updates.p.rapidapi.com/scope"
|
| 15 |
+
querystring = {}
|
| 16 |
+
if scope:
|
| 17 |
+
querystring['scope'] = scope
|
| 18 |
+
|
| 19 |
+
headers = {
|
| 20 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 21 |
+
"X-RapidAPI-Host": "hackers-updates.p.rapidapi.com"
|
| 22 |
+
}
|
| 23 |
+
|
| 24 |
+
|
| 25 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 26 |
+
try:
|
| 27 |
+
observation = response.json()
|
| 28 |
+
except:
|
| 29 |
+
observation = response.text
|
| 30 |
+
return observation
|
| 31 |
+
|
| 32 |
+
def hacking(hacking: str=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 33 |
+
"""
|
| 34 |
+
"This is the hacker home page."
|
| 35 |
+
|
| 36 |
+
"""
|
| 37 |
+
url = f"https://hackers-updates.p.rapidapi.com/hacking"
|
| 38 |
+
querystring = {}
|
| 39 |
+
if hacking:
|
| 40 |
+
querystring['hacking'] = hacking
|
| 41 |
+
|
| 42 |
+
headers = {
|
| 43 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 44 |
+
"X-RapidAPI-Host": "hackers-updates.p.rapidapi.com"
|
| 45 |
+
}
|
| 46 |
+
|
| 47 |
+
|
| 48 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 49 |
+
try:
|
| 50 |
+
observation = response.json()
|
| 51 |
+
except:
|
| 52 |
+
observation = response.text
|
| 53 |
+
return observation
|
| 54 |
+
|
toolbench/toolenv/tools/News_Media/haro_query_search.json
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"product_id": "api_ad88d013-dd26-4f5e-93f1-eba1cbf8fac5",
|
| 3 |
+
"tool_description": "Find all active queries in HARO database with a specific deadline. It finds the queries from journalists and bloggers for which the deadline has not elapsed and returns the results complete with Media Outlet name, HARO's defined category, Email to respond and the details of the query.",
|
| 4 |
+
"home_url": "https://rapidapi.com/contactousapp-oO8YC-PlBj/api/haro-query-search/",
|
| 5 |
+
"name": "HARO Query Search",
|
| 6 |
+
"title": "HARO Query Search",
|
| 7 |
+
"pricing": "FREEMIUM",
|
| 8 |
+
"tool_name": "HARO Query Search",
|
| 9 |
+
"score": {
|
| 10 |
+
"avgServiceLevel": 100,
|
| 11 |
+
"avgLatency": 847,
|
| 12 |
+
"avgSuccessRate": 80,
|
| 13 |
+
"popularityScore": 8.5,
|
| 14 |
+
"__typename": "Score"
|
| 15 |
+
},
|
| 16 |
+
"host": "haro-query-search.p.rapidapi.com",
|
| 17 |
+
"api_list": [
|
| 18 |
+
{
|
| 19 |
+
"name": "GetQueriesWithActiveDeadline",
|
| 20 |
+
"url": "https://haro-query-search.p.rapidapi.com/kettle/public/api/GetQueriesWithActiveDeadline",
|
| 21 |
+
"description": "HARO - Help a Reporter Out, is an online service for journalists to obtain feedback from the public. It enables journalists to connect with experts in issues relevant to their reporting.\n\nThis API finds all active queries in HARO database with a specific deadline. It finds the queries from journalists, authors and bloggers for which the deadline has not elapsed and returns the results complete with Media Outlet name, HARO's defined category, Email to respond and the details of the query. \n\nThe queries within HARO have deadlines specified with time to a specific time zones and are spread over email notifications. You need to specify the deadline date & time in GMT. The service will extract all queries which still have an active deadline between now (at GMT) and the desired time.",
|
| 22 |
+
"method": "POST",
|
| 23 |
+
"required_parameters": [],
|
| 24 |
+
"optional_parameters": [],
|
| 25 |
+
"code": "import requests\n\nurl = \"https://haro-query-search.p.rapidapi.com/kettle/public/api/GetQueriesWithActiveDeadline\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"haro-query-search.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
|
| 26 |
+
"convert_code": "import requests\n\nurl = \"https://haro-query-search.p.rapidapi.com/kettle/public/api/GetQueriesWithActiveDeadline\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"haro-query-search.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
|
| 27 |
+
"test_endpoint": "",
|
| 28 |
+
"statuscode": 1,
|
| 29 |
+
"schema": ""
|
| 30 |
+
}
|
| 31 |
+
]
|
| 32 |
+
}
|
toolbench/toolenv/tools/News_Media/harry_first/api.py
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import requests
|
| 2 |
+
import json
|
| 3 |
+
from datetime import date, datetime, timedelta
|
| 4 |
+
import os
|
| 5 |
+
|
| 6 |
+
from typing import Optional, Dict, Union, List
|
| 7 |
+
|
| 8 |
+
|
| 9 |
+
def get_individual_climate_news(newpaperid: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 10 |
+
"""
|
| 11 |
+
"Get individual climate news"
|
| 12 |
+
|
| 13 |
+
"""
|
| 14 |
+
url = f"https://harry-first.p.rapidapi.com/news/{newpaperid}"
|
| 15 |
+
querystring = {}
|
| 16 |
+
|
| 17 |
+
headers = {
|
| 18 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 19 |
+
"X-RapidAPI-Host": "harry-first.p.rapidapi.com"
|
| 20 |
+
}
|
| 21 |
+
|
| 22 |
+
|
| 23 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 24 |
+
try:
|
| 25 |
+
observation = response.json()
|
| 26 |
+
except:
|
| 27 |
+
observation = response.text
|
| 28 |
+
return observation
|
| 29 |
+
|
| 30 |
+
def get_all_climate_change_news(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 31 |
+
"""
|
| 32 |
+
"Get all climate change news"
|
| 33 |
+
|
| 34 |
+
"""
|
| 35 |
+
url = f"https://harry-first.p.rapidapi.com/news"
|
| 36 |
+
querystring = {}
|
| 37 |
+
|
| 38 |
+
headers = {
|
| 39 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 40 |
+
"X-RapidAPI-Host": "harry-first.p.rapidapi.com"
|
| 41 |
+
}
|
| 42 |
+
|
| 43 |
+
|
| 44 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 45 |
+
try:
|
| 46 |
+
observation = response.json()
|
| 47 |
+
except:
|
| 48 |
+
observation = response.text
|
| 49 |
+
return observation
|
| 50 |
+
|
toolbench/toolenv/tools/News_Media/harry_potter_news/api.py
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import requests
|
| 2 |
+
import json
|
| 3 |
+
from datetime import date, datetime, timedelta
|
| 4 |
+
import os
|
| 5 |
+
|
| 6 |
+
from typing import Optional, Dict, Union, List
|
| 7 |
+
|
| 8 |
+
|
| 9 |
+
def get_individual_news_source_news(newspaperid: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 10 |
+
"""
|
| 11 |
+
"Get Harry Potter news from a specific news resource"
|
| 12 |
+
|
| 13 |
+
"""
|
| 14 |
+
url = f"https://harry-potter-news1.p.rapidapi.com/news/{newspaperid}"
|
| 15 |
+
querystring = {}
|
| 16 |
+
|
| 17 |
+
headers = {
|
| 18 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 19 |
+
"X-RapidAPI-Host": "harry-potter-news1.p.rapidapi.com"
|
| 20 |
+
}
|
| 21 |
+
|
| 22 |
+
|
| 23 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 24 |
+
try:
|
| 25 |
+
observation = response.json()
|
| 26 |
+
except:
|
| 27 |
+
observation = response.text
|
| 28 |
+
return observation
|
| 29 |
+
|
| 30 |
+
def get_harry_potter_news(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 31 |
+
"""
|
| 32 |
+
"This endpoint will return back all harry potter latest information from specific news letters"
|
| 33 |
+
|
| 34 |
+
"""
|
| 35 |
+
url = f"https://harry-potter-news1.p.rapidapi.com/news"
|
| 36 |
+
querystring = {}
|
| 37 |
+
|
| 38 |
+
headers = {
|
| 39 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 40 |
+
"X-RapidAPI-Host": "harry-potter-news1.p.rapidapi.com"
|
| 41 |
+
}
|
| 42 |
+
|
| 43 |
+
|
| 44 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 45 |
+
try:
|
| 46 |
+
observation = response.json()
|
| 47 |
+
except:
|
| 48 |
+
observation = response.text
|
| 49 |
+
return observation
|
| 50 |
+
|
toolbench/toolenv/tools/News_Media/heath_news/api.py
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import requests
|
| 2 |
+
import json
|
| 3 |
+
from datetime import date, datetime, timedelta
|
| 4 |
+
import os
|
| 5 |
+
|
| 6 |
+
from typing import Optional, Dict, Union, List
|
| 7 |
+
|
| 8 |
+
|
| 9 |
+
def get_latest_health_news(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 10 |
+
"""
|
| 11 |
+
"News reports on emerging research, new treatments, diet, exercise, and trending topics in health and wellness. All articles are written by our network of editors and contributors."
|
| 12 |
+
|
| 13 |
+
"""
|
| 14 |
+
url = f"https://heath-news.p.rapidapi.com/news"
|
| 15 |
+
querystring = {}
|
| 16 |
+
|
| 17 |
+
headers = {
|
| 18 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 19 |
+
"X-RapidAPI-Host": "heath-news.p.rapidapi.com"
|
| 20 |
+
}
|
| 21 |
+
|
| 22 |
+
|
| 23 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 24 |
+
try:
|
| 25 |
+
observation = response.json()
|
| 26 |
+
except:
|
| 27 |
+
observation = response.text
|
| 28 |
+
return observation
|
| 29 |
+
|
toolbench/toolenv/tools/News_Media/horoscope/api.py
ADDED
|
@@ -0,0 +1,72 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import requests
|
| 2 |
+
import json
|
| 3 |
+
from datetime import date, datetime, timedelta
|
| 4 |
+
import os
|
| 5 |
+
|
| 6 |
+
from typing import Optional, Dict, Union, List
|
| 7 |
+
|
| 8 |
+
|
| 9 |
+
def horoscope_by_date(date: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 10 |
+
"""
|
| 11 |
+
"Get horoscope for all horoscope sign for given date"
|
| 12 |
+
date: Date in YYYY-MM-DD format, month starts from 01. So for January month use 01, February 02, and so on.
|
| 13 |
+
|
| 14 |
+
"""
|
| 15 |
+
url = f"https://horoscope34.p.rapidapi.com/api/horoscope/bydate"
|
| 16 |
+
querystring = {'date': date, }
|
| 17 |
+
|
| 18 |
+
headers = {
|
| 19 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 20 |
+
"X-RapidAPI-Host": "horoscope34.p.rapidapi.com"
|
| 21 |
+
}
|
| 22 |
+
|
| 23 |
+
|
| 24 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 25 |
+
try:
|
| 26 |
+
observation = response.json()
|
| 27 |
+
except:
|
| 28 |
+
observation = response.text
|
| 29 |
+
return observation
|
| 30 |
+
|
| 31 |
+
def horoscope_for_today(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 32 |
+
"""
|
| 33 |
+
"Get today's horoscope for all horoscope signs."
|
| 34 |
+
|
| 35 |
+
"""
|
| 36 |
+
url = f"https://horoscope34.p.rapidapi.com/api/horoscope/today"
|
| 37 |
+
querystring = {}
|
| 38 |
+
|
| 39 |
+
headers = {
|
| 40 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 41 |
+
"X-RapidAPI-Host": "horoscope34.p.rapidapi.com"
|
| 42 |
+
}
|
| 43 |
+
|
| 44 |
+
|
| 45 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 46 |
+
try:
|
| 47 |
+
observation = response.json()
|
| 48 |
+
except:
|
| 49 |
+
observation = response.text
|
| 50 |
+
return observation
|
| 51 |
+
|
| 52 |
+
def horoscope_signs(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 53 |
+
"""
|
| 54 |
+
"Returns list of all horoscope astrological signs and their respective images"
|
| 55 |
+
|
| 56 |
+
"""
|
| 57 |
+
url = f"https://horoscope34.p.rapidapi.com/api/horoscope/signs"
|
| 58 |
+
querystring = {}
|
| 59 |
+
|
| 60 |
+
headers = {
|
| 61 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 62 |
+
"X-RapidAPI-Host": "horoscope34.p.rapidapi.com"
|
| 63 |
+
}
|
| 64 |
+
|
| 65 |
+
|
| 66 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 67 |
+
try:
|
| 68 |
+
observation = response.json()
|
| 69 |
+
except:
|
| 70 |
+
observation = response.text
|
| 71 |
+
return observation
|
| 72 |
+
|
toolbench/toolenv/tools/News_Media/hot_air_live/api.py
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import requests
|
| 2 |
+
import json
|
| 3 |
+
from datetime import date, datetime, timedelta
|
| 4 |
+
import os
|
| 5 |
+
|
| 6 |
+
from typing import Optional, Dict, Union, List
|
| 7 |
+
|
| 8 |
+
|
| 9 |
+
def get_individual_news_source_news(sourceid: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 10 |
+
"""
|
| 11 |
+
"Get news about climate change from specific sources."
|
| 12 |
+
|
| 13 |
+
"""
|
| 14 |
+
url = f"https://hot-air-live.p.rapidapi.com/news/{sourceid}"
|
| 15 |
+
querystring = {}
|
| 16 |
+
|
| 17 |
+
headers = {
|
| 18 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 19 |
+
"X-RapidAPI-Host": "hot-air-live.p.rapidapi.com"
|
| 20 |
+
}
|
| 21 |
+
|
| 22 |
+
|
| 23 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 24 |
+
try:
|
| 25 |
+
observation = response.json()
|
| 26 |
+
except:
|
| 27 |
+
observation = response.text
|
| 28 |
+
return observation
|
| 29 |
+
|
| 30 |
+
def get_all_climate_change_news(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 31 |
+
"""
|
| 32 |
+
"This returns all news about climate change from international sources"
|
| 33 |
+
|
| 34 |
+
"""
|
| 35 |
+
url = f"https://hot-air-live.p.rapidapi.com/"
|
| 36 |
+
querystring = {}
|
| 37 |
+
|
| 38 |
+
headers = {
|
| 39 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 40 |
+
"X-RapidAPI-Host": "hot-air-live.p.rapidapi.com"
|
| 41 |
+
}
|
| 42 |
+
|
| 43 |
+
|
| 44 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 45 |
+
try:
|
| 46 |
+
observation = response.json()
|
| 47 |
+
except:
|
| 48 |
+
observation = response.text
|
| 49 |
+
return observation
|
| 50 |
+
|
toolbench/toolenv/tools/News_Media/hot_breaking_news_latest_news/api.py
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import requests
|
| 2 |
+
import json
|
| 3 |
+
from datetime import date, datetime, timedelta
|
| 4 |
+
import os
|
| 5 |
+
|
| 6 |
+
from typing import Optional, Dict, Union, List
|
| 7 |
+
|
| 8 |
+
|
| 9 |
+
def hot_latest_news(is_id: str, sortby: str='hot', pagenumber: str='1', numberofrow: str='5', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 10 |
+
"""
|
| 11 |
+
"This endpoint provides hot - latest news for a country (us, uk, australia, ...) or a topic (tech, travel, android, marketing, ...).
|
| 12 |
+
If you want custom topic or country, please contact us."
|
| 13 |
+
id: For country: country + the 2-letter ISO 3166-1 code of the country
|
| 14 |
+
Possible options: au, ca, ie, nz, ng, ph, sg, za, gb, us
|
| 15 |
+
Example: country-us, country-gb
|
| 16 |
+
|
| 17 |
+
For topic: topic + topic name
|
| 18 |
+
Possible options: tech, marketing, science, football, crypto
|
| 19 |
+
Example: topic-tech, topic-marketing
|
| 20 |
+
sortby: Possible options: hot, newest
|
| 21 |
+
Default: newest
|
| 22 |
+
pagenumber: Use this to page through the results if the total results found is greater than the page size. Start with 1
|
| 23 |
+
numberofrow: The number of results to return per page (request), 5 is the default
|
| 24 |
+
Basic plan maximum: 5
|
| 25 |
+
Pro plan maximum: 20
|
| 26 |
+
Ultra plan maximum: 100
|
| 27 |
+
|
| 28 |
+
"""
|
| 29 |
+
url = f"https://hot-breaking-news-latest-news.p.rapidapi.com/exec"
|
| 30 |
+
querystring = {'id': is_id, }
|
| 31 |
+
if sortby:
|
| 32 |
+
querystring['sortBy'] = sortby
|
| 33 |
+
if pagenumber:
|
| 34 |
+
querystring['pageNumber'] = pagenumber
|
| 35 |
+
if numberofrow:
|
| 36 |
+
querystring['numberOfRow'] = numberofrow
|
| 37 |
+
|
| 38 |
+
headers = {
|
| 39 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 40 |
+
"X-RapidAPI-Host": "hot-breaking-news-latest-news.p.rapidapi.com"
|
| 41 |
+
}
|
| 42 |
+
|
| 43 |
+
|
| 44 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 45 |
+
try:
|
| 46 |
+
observation = response.json()
|
| 47 |
+
except:
|
| 48 |
+
observation = response.text
|
| 49 |
+
return observation
|
| 50 |
+
|
toolbench/toolenv/tools/News_Media/https_api_openload_co1.json
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"product_id": "api_eeb150ac-7d14-41ab-988f-af8f1d2dcf69",
|
| 3 |
+
"tool_description": "Op",
|
| 4 |
+
"home_url": "https://rapidapi.com/rbautistajb/api/https-api-openload-co-1/",
|
| 5 |
+
"name": "https://api.openload.co/1",
|
| 6 |
+
"title": "https://api.openload.co/1",
|
| 7 |
+
"pricing": "FREE",
|
| 8 |
+
"tool_name": "https://api.openload.co/1",
|
| 9 |
+
"score": null,
|
| 10 |
+
"host": "https-api-openload-co-1.p.rapidapi.com",
|
| 11 |
+
"api_list": [
|
| 12 |
+
{
|
| 13 |
+
"name": "Yahoo.com",
|
| 14 |
+
"url": "https://https-api-openload-co-1.p.rapidapi.comYahoo",
|
| 15 |
+
"description": "Uy",
|
| 16 |
+
"method": "POST",
|
| 17 |
+
"required_parameters": [],
|
| 18 |
+
"optional_parameters": [],
|
| 19 |
+
"code": "import requests\n\nurl = \"https://https-api-openload-co-1.p.rapidapi.comYahoo\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"https-api-openload-co-1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
|
| 20 |
+
"convert_code": "import requests\n\nurl = \"https://https-api-openload-co-1.p.rapidapi.comYahoo\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"https-api-openload-co-1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
|
| 21 |
+
"test_endpoint": ""
|
| 22 |
+
}
|
| 23 |
+
]
|
| 24 |
+
}
|
toolbench/toolenv/tools/News_Media/huffingtonpostpollster.json
ADDED
|
@@ -0,0 +1,246 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"product_id": "378",
|
| 3 |
+
"tool_description": "Polls, charts, forecasts and data about upcoming elections",
|
| 4 |
+
"home_url": "https://rapidapi.com/mikilior1/api/HuffingtonPostPollster/",
|
| 5 |
+
"name": "HuffingtonPostPollster",
|
| 6 |
+
"title": "HuffingtonPostPollster",
|
| 7 |
+
"pricing": "FREE",
|
| 8 |
+
"tool_name": "HuffingtonPostPollster",
|
| 9 |
+
"score": null,
|
| 10 |
+
"host": "HuffingtonPostPollstermikilior1V1.p.rapidapi.com",
|
| 11 |
+
"api_list": [
|
| 12 |
+
{
|
| 13 |
+
"name": "getCharts",
|
| 14 |
+
"url": "https://HuffingtonPostPollstermikilior1V1.p.rapidapi.com/getCharts",
|
| 15 |
+
"description": "Returns a list of Charts, ordered by creation date (newest first). A Chart is chosen by Pollster editors. One example is \"Obama job approval - Democrats\". It is always based upon a single Question. Users should strongly consider basing their analysis on Questions instead. Charts are derived data; Pollster editors publish them and change them as editorial priorities change. Try it outTry it out",
|
| 16 |
+
"method": "POST",
|
| 17 |
+
"required_parameters": [],
|
| 18 |
+
"optional_parameters": [
|
| 19 |
+
{
|
| 20 |
+
"name": "cursor",
|
| 21 |
+
"type": "STRING",
|
| 22 |
+
"description": "Special string to index into the Array",
|
| 23 |
+
"default": ""
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"name": "electionDate",
|
| 27 |
+
"type": "DATEPICKER",
|
| 28 |
+
"description": "Date of an election, in YYYY-MM-DD format. Only Charts based on Questions pertaining to an election on this date will be returned.",
|
| 29 |
+
"default": ""
|
| 30 |
+
},
|
| 31 |
+
{
|
| 32 |
+
"name": "tags",
|
| 33 |
+
"type": "LIST",
|
| 34 |
+
"description": "List of tag slugs. Only Charts with one or more of these tags and Charts based on Questions with one or more of these tags will be returned.",
|
| 35 |
+
"default": ""
|
| 36 |
+
}
|
| 37 |
+
],
|
| 38 |
+
"code": "import requests\n\nurl = \"https://HuffingtonPostPollstermikilior1V1.p.rapidapi.com/getCharts\"\nquerystring = {\"cursor\": \"\", \"electionDate\": \"\", \"tags\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"HuffingtonPostPollstermikilior1V1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n",
|
| 39 |
+
"convert_code": "import requests\n\nurl = \"https://HuffingtonPostPollstermikilior1V1.p.rapidapi.com/getCharts\"\nquerystring = {\"cursor\": \"\", \"electionDate\": \"\", \"tags\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"HuffingtonPostPollstermikilior1V1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n",
|
| 40 |
+
"test_endpoint": ""
|
| 41 |
+
},
|
| 42 |
+
{
|
| 43 |
+
"name": "getPolls",
|
| 44 |
+
"url": "https://HuffingtonPostPollstermikilior1V1.p.rapidapi.com/getPolls",
|
| 45 |
+
"description": "A Poll on Pollster is a collection of questions and responses published by a reputable survey house. This endpoint provides raw data from the survey house, plus Pollster-provided metadata about each question. Pollster editors don\u2019t include every question when they enter Polls, and they don\u2019t necessarily enter every subpopulation for the responses they do enter. They make editorial decisions about which questions belong in the database.",
|
| 46 |
+
"method": "POST",
|
| 47 |
+
"required_parameters": [],
|
| 48 |
+
"optional_parameters": [
|
| 49 |
+
{
|
| 50 |
+
"name": "cursor",
|
| 51 |
+
"type": "STRING",
|
| 52 |
+
"description": "Special string to index into the Array",
|
| 53 |
+
"default": ""
|
| 54 |
+
},
|
| 55 |
+
{
|
| 56 |
+
"name": "sort",
|
| 57 |
+
"type": "STRING",
|
| 58 |
+
"description": "If updated_at, sort the most recently updated Poll first. (This can cause race conditions when used with cursor.) Otherwise, sort by most recently entered Poll first.",
|
| 59 |
+
"default": ""
|
| 60 |
+
},
|
| 61 |
+
{
|
| 62 |
+
"name": "question",
|
| 63 |
+
"type": "STRING",
|
| 64 |
+
"description": "Question slug; only Polls that ask that Question will be returned.",
|
| 65 |
+
"default": ""
|
| 66 |
+
},
|
| 67 |
+
{
|
| 68 |
+
"name": "tags",
|
| 69 |
+
"type": "LIST",
|
| 70 |
+
"description": "List of Question tag names; only Polls containing Questions with any of the given tags will be returned.",
|
| 71 |
+
"default": ""
|
| 72 |
+
}
|
| 73 |
+
],
|
| 74 |
+
"code": "import requests\n\nurl = \"https://HuffingtonPostPollstermikilior1V1.p.rapidapi.com/getPolls\"\nquerystring = {\"cursor\": \"\", \"sort\": \"\", \"question\": \"\", \"tags\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"HuffingtonPostPollstermikilior1V1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n",
|
| 75 |
+
"convert_code": "import requests\n\nurl = \"https://HuffingtonPostPollstermikilior1V1.p.rapidapi.com/getPolls\"\nquerystring = {\"cursor\": \"\", \"sort\": \"\", \"question\": \"\", \"tags\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"HuffingtonPostPollstermikilior1V1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n",
|
| 76 |
+
"test_endpoint": ""
|
| 77 |
+
},
|
| 78 |
+
{
|
| 79 |
+
"name": "getPollsterChartData",
|
| 80 |
+
"url": "https://HuffingtonPostPollstermikilior1V1.p.rapidapi.com/getPollsterChartData",
|
| 81 |
+
"description": "Derived data resented on a Pollster Chart. Rules for which polls and responses are plotted on a chart can shift over time. Here are some examples of behaviors Pollster has used in the past: We\u2019ve omitted \u201cRegistered Voters\u201d from a chart when \u201cLikely Voters\u201d responded to the same poll question. We\u2019ve omitted poll questions that asked about Gary Johnson on a chart about Trump v Clinton. We\u2019ve omitted polls when their date ranges overlapped. We\u2019ve omitted labels (and their responses) for dark-horse candidates. In short: this endpoint is about Pollster, not the polls. For complete data, use a TSV from the Questions API.",
|
| 82 |
+
"method": "POST",
|
| 83 |
+
"required_parameters": [
|
| 84 |
+
{
|
| 85 |
+
"name": "slug",
|
| 86 |
+
"type": "STRING",
|
| 87 |
+
"description": "Unique Chart identifier. For example: obama-job-approval",
|
| 88 |
+
"default": ""
|
| 89 |
+
}
|
| 90 |
+
],
|
| 91 |
+
"optional_parameters": [],
|
| 92 |
+
"code": "import requests\n\nurl = \"https://HuffingtonPostPollstermikilior1V1.p.rapidapi.com/getPollsterChartData\"\nquerystring = {\"slug\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"HuffingtonPostPollstermikilior1V1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n",
|
| 93 |
+
"convert_code": "import requests\n\nurl = \"https://HuffingtonPostPollstermikilior1V1.p.rapidapi.com/getPollsterChartData\"\nquerystring = {\"slug\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"HuffingtonPostPollstermikilior1V1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n",
|
| 94 |
+
"test_endpoint": ""
|
| 95 |
+
},
|
| 96 |
+
{
|
| 97 |
+
"name": "getPollsterChartTrendlinesData",
|
| 98 |
+
"url": "https://HuffingtonPostPollstermikilior1V1.p.rapidapi.com/getPollsterChartTrendlinesData",
|
| 99 |
+
"description": "Derived data presented on a Pollster Chart. The trendlines on a Pollster chart don\u2019t add up to 100: we calculate each label\u2019s trendline separately. Use the charts/{slug} response\u2019s chart.pollster_estimates[0].algorithm to find the algorithm Pollster used to generate these estimates. Pollster recalculates trendlines every time a new poll is entered. It also recalculates trendlines daily if they use the bayesian-kallman algorithm, because that algorithm\u2019s output changes depending on the end date.",
|
| 100 |
+
"method": "POST",
|
| 101 |
+
"required_parameters": [
|
| 102 |
+
{
|
| 103 |
+
"name": "slug",
|
| 104 |
+
"type": "STRING",
|
| 105 |
+
"description": "Unique Chart identifier. For example: obama-job-approval",
|
| 106 |
+
"default": ""
|
| 107 |
+
}
|
| 108 |
+
],
|
| 109 |
+
"optional_parameters": [],
|
| 110 |
+
"code": "import requests\n\nurl = \"https://HuffingtonPostPollstermikilior1V1.p.rapidapi.com/getPollsterChartTrendlinesData\"\nquerystring = {\"slug\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"HuffingtonPostPollstermikilior1V1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n",
|
| 111 |
+
"convert_code": "import requests\n\nurl = \"https://HuffingtonPostPollstermikilior1V1.p.rapidapi.com/getPollsterChartTrendlinesData\"\nquerystring = {\"slug\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"HuffingtonPostPollstermikilior1V1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n",
|
| 112 |
+
"test_endpoint": ""
|
| 113 |
+
},
|
| 114 |
+
{
|
| 115 |
+
"name": "getQuestions",
|
| 116 |
+
"url": "https://HuffingtonPostPollstermikilior1V1.p.rapidapi.com/getQuestions",
|
| 117 |
+
"description": "Returns a list of Questions.",
|
| 118 |
+
"method": "POST",
|
| 119 |
+
"required_parameters": [],
|
| 120 |
+
"optional_parameters": [
|
| 121 |
+
{
|
| 122 |
+
"name": "cursor",
|
| 123 |
+
"type": "STRING",
|
| 124 |
+
"description": "Special string to index into the Array",
|
| 125 |
+
"default": ""
|
| 126 |
+
},
|
| 127 |
+
{
|
| 128 |
+
"name": "electionDate",
|
| 129 |
+
"type": "DATEPICKER",
|
| 130 |
+
"description": "Date of an election, in YYYY-MM-DD format. Only Questions pertaining to an election on this date will be returned.",
|
| 131 |
+
"default": ""
|
| 132 |
+
},
|
| 133 |
+
{
|
| 134 |
+
"name": "tags",
|
| 135 |
+
"type": "LIST",
|
| 136 |
+
"description": "List of Question tag names. Only Questions with one or more of these tags will be returned.",
|
| 137 |
+
"default": ""
|
| 138 |
+
}
|
| 139 |
+
],
|
| 140 |
+
"code": "import requests\n\nurl = \"https://HuffingtonPostPollstermikilior1V1.p.rapidapi.com/getQuestions\"\nquerystring = {\"cursor\": \"\", \"electionDate\": \"\", \"tags\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"HuffingtonPostPollstermikilior1V1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n",
|
| 141 |
+
"convert_code": "import requests\n\nurl = \"https://HuffingtonPostPollstermikilior1V1.p.rapidapi.com/getQuestions\"\nquerystring = {\"cursor\": \"\", \"electionDate\": \"\", \"tags\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"HuffingtonPostPollstermikilior1V1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n",
|
| 142 |
+
"test_endpoint": ""
|
| 143 |
+
},
|
| 144 |
+
{
|
| 145 |
+
"name": "getSingleChart",
|
| 146 |
+
"url": "https://HuffingtonPostPollstermikilior1V1.p.rapidapi.com/getSingleChart",
|
| 147 |
+
"description": "A Chart is chosen by Pollster editors. One example is \"Obama job approval - Democrats\". It is always based upon a single Question. Users should strongly consider basing their analysis on Questions instead. Charts are derived data; Pollster editors publish them and change them as editorial priorities change.",
|
| 148 |
+
"method": "POST",
|
| 149 |
+
"required_parameters": [
|
| 150 |
+
{
|
| 151 |
+
"name": "slug",
|
| 152 |
+
"type": "STRING",
|
| 153 |
+
"description": "Unique identifier for a Chart",
|
| 154 |
+
"default": ""
|
| 155 |
+
}
|
| 156 |
+
],
|
| 157 |
+
"optional_parameters": [],
|
| 158 |
+
"code": "import requests\n\nurl = \"https://HuffingtonPostPollstermikilior1V1.p.rapidapi.com/getSingleChart\"\nquerystring = {\"slug\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"HuffingtonPostPollstermikilior1V1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n",
|
| 159 |
+
"convert_code": "import requests\n\nurl = \"https://HuffingtonPostPollstermikilior1V1.p.rapidapi.com/getSingleChart\"\nquerystring = {\"slug\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"HuffingtonPostPollstermikilior1V1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n",
|
| 160 |
+
"test_endpoint": ""
|
| 161 |
+
},
|
| 162 |
+
{
|
| 163 |
+
"name": "getSinglePoll",
|
| 164 |
+
"url": "https://HuffingtonPostPollstermikilior1V1.p.rapidapi.com/getSinglePoll",
|
| 165 |
+
"description": "A Poll on Pollster is a collection of questions and responses published by a reputable survey house. This endpoint provides raw data from the survey house, plus Pollster-provided metadata about each question. Pollster editors don\u2019t include every question when they enter Polls, and they don\u2019t necessarily enter every subpopulation for the responses they do enter. They make editorial decisions about which questions belong in the database.",
|
| 166 |
+
"method": "POST",
|
| 167 |
+
"required_parameters": [
|
| 168 |
+
{
|
| 169 |
+
"name": "slug",
|
| 170 |
+
"type": "STRING",
|
| 171 |
+
"description": "Unique Poll identifier. For example: gallup-26892",
|
| 172 |
+
"default": ""
|
| 173 |
+
}
|
| 174 |
+
],
|
| 175 |
+
"optional_parameters": [],
|
| 176 |
+
"code": "import requests\n\nurl = \"https://HuffingtonPostPollstermikilior1V1.p.rapidapi.com/getSinglePoll\"\nquerystring = {\"slug\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"HuffingtonPostPollstermikilior1V1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n",
|
| 177 |
+
"convert_code": "import requests\n\nurl = \"https://HuffingtonPostPollstermikilior1V1.p.rapidapi.com/getSinglePoll\"\nquerystring = {\"slug\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"HuffingtonPostPollstermikilior1V1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n",
|
| 178 |
+
"test_endpoint": ""
|
| 179 |
+
},
|
| 180 |
+
{
|
| 181 |
+
"name": "getSingleQuestion",
|
| 182 |
+
"url": "https://HuffingtonPostPollstermikilior1V1.p.rapidapi.com/getSingleQuestion",
|
| 183 |
+
"description": "A Question is chosen by Pollster editors. One example is \"Obama job approval\".",
|
| 184 |
+
"method": "POST",
|
| 185 |
+
"required_parameters": [
|
| 186 |
+
{
|
| 187 |
+
"name": "slug",
|
| 188 |
+
"type": "STRING",
|
| 189 |
+
"description": "Unique Question identifier. For example: 00c -Pres (44) Obama - Job Approval - National. (Remember to URL-encode this parameter when querying.)",
|
| 190 |
+
"default": ""
|
| 191 |
+
}
|
| 192 |
+
],
|
| 193 |
+
"optional_parameters": [],
|
| 194 |
+
"code": "import requests\n\nurl = \"https://HuffingtonPostPollstermikilior1V1.p.rapidapi.com/getSingleQuestion\"\nquerystring = {\"slug\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"HuffingtonPostPollstermikilior1V1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n",
|
| 195 |
+
"convert_code": "import requests\n\nurl = \"https://HuffingtonPostPollstermikilior1V1.p.rapidapi.com/getSingleQuestion\"\nquerystring = {\"slug\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"HuffingtonPostPollstermikilior1V1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n",
|
| 196 |
+
"test_endpoint": ""
|
| 197 |
+
},
|
| 198 |
+
{
|
| 199 |
+
"name": "getSingleQuestionCleanResponses",
|
| 200 |
+
"url": "https://HuffingtonPostPollstermikilior1V1.p.rapidapi.com/getSingleQuestionCleanResponses",
|
| 201 |
+
"description": "We include one TSV column per response label. See questions/{slug} for the Question\u2019s list of response labels, which are chosen by Pollster editors. Each row represents a single PollQuestion+Subpopulation. The value for each label column is the sum of the PollQuestion+Subpopulation responses that map to that pollster_label. For instance, on a hypothetical row, the Approve column might be the sum of that poll\u2019s Strongly Approve and Somewhat Approve. After the first TSV columns \u2013 which are always response labels \u2013 the next column will be poll_slug. poll_slug and subsequent columns are described in this API documentation. During the lifetime of a Question, Pollster editors may add, rename or reorder response labels. Such edits will change the TSV column headers. Column headers after poll_slug are never reordered or edited (but we may add new column headers). Sometimes a Poll may ask the same Question twice, leading to two similar rows with different values. Those rows will differ by question_text or by the set of response labels that have values.",
|
| 202 |
+
"method": "POST",
|
| 203 |
+
"required_parameters": [
|
| 204 |
+
{
|
| 205 |
+
"name": "slug",
|
| 206 |
+
"type": "STRING",
|
| 207 |
+
"description": "Unique Question identifier. For example: 00c -Pres (44) Obama - Job Approval - National. (Remember to URL-encode this parameter when querying.)",
|
| 208 |
+
"default": ""
|
| 209 |
+
}
|
| 210 |
+
],
|
| 211 |
+
"optional_parameters": [],
|
| 212 |
+
"code": "import requests\n\nurl = \"https://HuffingtonPostPollstermikilior1V1.p.rapidapi.com/getSingleQuestionCleanResponses\"\nquerystring = {\"slug\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"HuffingtonPostPollstermikilior1V1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n",
|
| 213 |
+
"convert_code": "import requests\n\nurl = \"https://HuffingtonPostPollstermikilior1V1.p.rapidapi.com/getSingleQuestionCleanResponses\"\nquerystring = {\"slug\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"HuffingtonPostPollstermikilior1V1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n",
|
| 214 |
+
"test_endpoint": ""
|
| 215 |
+
},
|
| 216 |
+
{
|
| 217 |
+
"name": "getSingleQuestionRawResponses",
|
| 218 |
+
"url": "https://HuffingtonPostPollstermikilior1V1.p.rapidapi.com/getSingleQuestionRawResponses",
|
| 219 |
+
"description": "Raw data from which we derived poll-responses-clean.tsv. Each row represents a single PollQuestion+Subpopulation+Response. See the Poll API for a description of these terms. Group results by (poll_slug, subpopulation, question_text): that\u2019s how the survey houses group them. This response can be several megabytes large. We encourage you to consider poll-responses-clean.tsv instead. Try it outTry it out",
|
| 220 |
+
"method": "POST",
|
| 221 |
+
"required_parameters": [
|
| 222 |
+
{
|
| 223 |
+
"name": "slug",
|
| 224 |
+
"type": "STRING",
|
| 225 |
+
"description": "Unique Question identifier. For example: 00c -Pres (44) Obama - Job Approval - National. (Remember to URL-encode this parameter when querying.)",
|
| 226 |
+
"default": ""
|
| 227 |
+
}
|
| 228 |
+
],
|
| 229 |
+
"optional_parameters": [],
|
| 230 |
+
"code": "import requests\n\nurl = \"https://HuffingtonPostPollstermikilior1V1.p.rapidapi.com/getSingleQuestionRawResponses\"\nquerystring = {\"slug\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"HuffingtonPostPollstermikilior1V1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n",
|
| 231 |
+
"convert_code": "import requests\n\nurl = \"https://HuffingtonPostPollstermikilior1V1.p.rapidapi.com/getSingleQuestionRawResponses\"\nquerystring = {\"slug\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"HuffingtonPostPollstermikilior1V1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n",
|
| 232 |
+
"test_endpoint": ""
|
| 233 |
+
},
|
| 234 |
+
{
|
| 235 |
+
"name": "getTags",
|
| 236 |
+
"url": "https://HuffingtonPostPollstermikilior1V1.p.rapidapi.com/getTags",
|
| 237 |
+
"description": "Returns the list of Tags. A Tag can apply to any number of Charts and Questions; Charts and Questions, in turn, can have any number of Tags. Tags all look like-this: lowercase letters, numbers and hyphens. Try it outTry it out",
|
| 238 |
+
"method": "POST",
|
| 239 |
+
"required_parameters": [],
|
| 240 |
+
"optional_parameters": [],
|
| 241 |
+
"code": "import requests\n\nurl = \"https://HuffingtonPostPollstermikilior1V1.p.rapidapi.com/getTags\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"HuffingtonPostPollstermikilior1V1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
|
| 242 |
+
"convert_code": "import requests\n\nurl = \"https://HuffingtonPostPollstermikilior1V1.p.rapidapi.com/getTags\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"HuffingtonPostPollstermikilior1V1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
|
| 243 |
+
"test_endpoint": ""
|
| 244 |
+
}
|
| 245 |
+
]
|
| 246 |
+
}
|