Free API for Jokes, Facts, Questions and more coming soon!
Returns the Version and Last Update Date of the API
GET /api/version
GET /api/quote
Endpoint | Type | Description |
---|---|---|
quote |
string |
Returns a Quote from the API. |
GET /api/roast/<username>
Endpoint | Type | Description |
---|---|---|
roast/<username> |
string |
Returns a Joke from the API. |
Required Parameters: username
GET /api/joke
Endpoint | Type | Description |
---|---|---|
joke |
string |
Returns a Joke from the API. |
GET /api/darkjoke
Endpoint | Type | Description |
---|---|---|
darkjoke |
string |
Returns a Dark-Joke from the API. |
GET /api/fact
Endpoint | Type | Description |
---|---|---|
fact |
string |
Returns a Fact from the API. |
GET /api/question
Endpoint | Type | Description |
---|---|---|
question |
string |
Returns a Question from the API. |
import requests
url = requests.get("https://peter-api.up.railway.app/api/darkjoke")
result = url.json()
buildup = result['buildup']
punchline = result['punchline']
joke = buildup + "? " + punchline
print(joke)
Why did the blind man fall into the well? Because he couldn't see that well.