☑️Facts

These days, you gotta have the fax, no cap 💯


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/facts?count=1"  

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

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

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


[
    "Did you know, Shard API is the best API? 😅"
]

Last updated