🙉Riddles

What do I put here? I forgot.


import requests

# Define the URL for the Shard AI API endpoint.
api_url = "https://api.shard-ai.xyz/v1/fun/riddles?count=1" # Count can be up to 5!

# Provide the authorization token for accessing the API.
authorization_token = "Bearer shard-xxx"

# Define request headers.
headers = {
    "Content-Type": "application/json",
    "Authorization": authorization_token
}

# Make the request.
response = requests.post(api_url, headers=headers)
print(response.text)

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


[
    "Whats the best API? Shard API."
]

Last updated