freeapis

icanhazdadjoke

互联网上最大的冷笑话选集

认证方式
No auth
HTTPS
Yes
CORS
Unknown

简介

icanhazdadjoke 提供随机老爸笑话——免密钥(实测可用)。响应格式取决于 User-Agent:浏览器/curl 拿纯文本,API 客户端带 Accept: application/json 拿 JSON。

快速开始

纯文本(实测可用):

curl "https://icanhazdadjoke.com/"
What is the difference between ignorance and apathy?

I don't know and I don't care.

JSON:

curl "https://icanhazdadjoke.com/" -H "Accept: application/json"
{ "id": "abc123", "joke": "Why don't scientists trust atoms? They make up everything.", "status": 200 }

搜索:

curl "https://icanhazdadjoke.com/search?term=dog" -H "Accept: application/json"

认证方式

无需认证——免密钥。

速率限制与注意事项

  • 免费;请礼貌使用——没有公开的硬性限制。
  • 设置 Accept: application/json 获取 JSON 输出(已实测)。
  • 端点:/(随机)、/search?term=/j/{id}(指定笑话)。

常见问题

icanhazdadjoke 免费吗? 是的——免费且免密钥(实测)。

怎么拿 JSON? 发送 Accept: application/json(已实测)。

可以搜索吗? 可以——/search?term=...

性格测试 分类更多

APIAuthHTTPSCORS
Advice Slip

Generate random advice slips

No authYesUnknown
AstroWay

Astrology, natal charts, Human Design, Vedic and horoscopes on the Swiss Ephemeris

API KeyYesYes
Biriyani As A Service

Biriyani images placeholder

No authYesNo
Dev.to

Access Forem articles, users and other resources via API

API KeyYesUnknown
Dictum

API to get access to the collection of the most inspiring expressions of mankind

No authYesUnknown