😹Jokes

That's right, why not sprinkle in some laughter while using Shard? 😂


import requests  

# Set your API key here to authenticate
headers = {"Authorization": "Bearer shard-xxx"}  

# URL for fetching jokes.
url = "https://api.shard-ai.xyz/v1/fun/jokes?count=1"  

# Send the request to fetch a joke
response = requests.get(url, headers=headers)

# Print all those juicy jokes!
print(response.json())
 

Pro tip: The "count" parameter can be up to 30!


[
    "I'd like to start a diet, but I've got too much on my plate right now."
]

Last updated