Daddy's Got Jokes API
The easiest and quickest way to have fresh comedy served from a REST API.

End points
The end points support HTTP and HTTPS.
GET /joke
GET /joke/1
GET /jokes
Guide
Get a random joke
fetch("https://www.daddysgotjokes.com/joke")
.then(res => res.json())
.then(data => console.log(data))
{
id: 2574,
type: "factory",
setup: "Why was the man fired from the orange juice factory?",
punchline: "Because he couldn't concentrate."
}
Get a joke by id
fetch("https://www.daddysgotjokes.com/joke/1")
.then(res => res.json())
.then(data => console.log(data))
{
id: 1,
type: "Dad Jokes",
setup: "Which state has the most streets?",
punchline: "Rhode Island."
}
Get jokes
fetch("https://www.daddysgotjokes.com/jokes")
.then(res => res.json())
.then(data => console.log(data))
Query param
Key | Value | Handle |
---|---|---|
page | number | /jokes?page=number |
Example
https://www.daddysgotjokes.com/jokes?page=2
{
total: 3000,
total_pages: 150,
page: 3,
results: [
{
id: 41,
type: "computer",
setup: "What does a baby computer call his father?",
punchline: "Data."
},
...19 more (total 20)
]
}
Rate Limits
100 requests per day