娯
icanhazdadjoke API
4 endpointsEntertainment & BooksGlobalsocial:read4 real examples
Returns dad jokes: a random one, one by id, search results by term and a paged list of all jokes.
View as Markdown| GET | /icanhazdadjoke/random | A random dad joke. |
| GET | /icanhazdadjoke/joke | One dad joke by its id. |
| GET | /icanhazdadjoke/search | Dad jokes containing a term, 20 per page. |
| GET | /icanhazdadjoke/list | Every dad joke, newest page first in the site's order, paged. |
random
GET
/v1/icanhazdadjoke/randomA random dad joke.
scope social:read1 unit
Parameters
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
3 fields
id | string |
text | string |
url | string |
curl "https://api.hoshime.com/v1/icanhazdadjoke/random" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/icanhazdadjoke/random", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/icanhazdadjoke/random", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "id": "MeaFYLBAQuc", "text": "Have you heard the rumor going around about butter? Never mind, I shouldn't spread it.", "url": "https://icanhazdadjoke.com/j/MeaFYLBAQuc" }, "meta": { "cached": false, "endpoint": "random", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "icanhazdadjoke", "requestId": "req_2Xb9kQ…", "units": 1 } }
joke
GET
/v1/icanhazdadjoke/jokeOne dad joke by its id.
scope social:read1 unitcached 24 h
Parameters
idstring required | Joke id, such as R7UfaahVfFd. e.g. R7UfaahVfFd |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
3 fields
id | string |
text | string |
url | string |
curl "https://api.hoshime.com/v1/icanhazdadjoke/joke?id=R7UfaahVfFd" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/icanhazdadjoke/joke?id=R7UfaahVfFd", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/icanhazdadjoke/joke?id=R7UfaahVfFd", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "id": "R7UfaahVfFd", "text": "My dog used to chase people on a bike a lot. It got so bad I had to take his bike away.", "url": "https://icanhazdadjoke.com/j/R7UfaahVfFd" }, "meta": { "cached": false, "endpoint": "joke", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "icanhazdadjoke", "requestId": "req_2Xb9kQ…", "units": 1 } }
search
GET
/v1/icanhazdadjoke/searchDad jokes containing a term, 20 per page.
scope social:read1 unitcached 1 hpaginated
Parameters
querystring required | Word or phrase the jokes contain, such as cat. e.g. cat |
cursorstring | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
3 fields
id | string |
text | string |
url | string |
curl "https://api.hoshime.com/v1/icanhazdadjoke/search?query=cat" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/icanhazdadjoke/search?query=cat", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/icanhazdadjoke/search?query=cat", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "id": "daaUfibh", "text": "Why was the big cat disqualified from the race? Because it was a cheetah.", "url": "https://icanhazdadjoke.com/j/daaUfibh" }, { "id": "iGJeVKmWDlb", "text": "My cat was just sick on the carpet, I don’t think it’s feline well.", "url": "https://icanhazdadjoke.com/j/iGJeVKmWDlb" } ], "meta": { "cached": false, "endpoint": "search", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "icanhazdadjoke", "requestId": "req_2Xb9kQ…", "units": 1 } }
list
GET
/v1/icanhazdadjoke/listEvery dad joke, newest page first in the site's order, paged.
scope social:read1 unitcached 1 hpaginated
Parameters
limitinteger | Items per page, 1 to 30. default 20 |
cursorstring | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
3 fields
id | string |
text | string |
url | string |
curl "https://api.hoshime.com/v1/icanhazdadjoke/list" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/icanhazdadjoke/list", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/icanhazdadjoke/list", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "id": "0189hNRf2g", "text": "I'm tired of following my dreams. I'm just going to ask them where they are going and meet up with them later.", "url": "https://icanhazdadjoke.com/j/0189hNRf2g" }, { "id": "08EQZ8EQukb", "text": "Did you hear about the guy whose whole left side was cut off? He's all right now.", "url": "https://icanhazdadjoke.com/j/08EQZ8EQukb" } ], "meta": { "cached": false, "endpoint": "list", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "icanhazdadjoke", "requestId": "req_2Xb9kQ…", "units": 1 } }