-
This api returns a random jokes each time you call it
-
link to the jokes-api
-
getting the response of the api in shell :
curl https://jokes-api.gamhcrew.repl.co
- install requests library in python using the command below
pip install requests
- python code :
import requests
api = 'https://jokes-api.gamhcrew.repl.co'
joke = requests.get(api).text
print(joke)