Zen Quotes
大量禅意名言,供启发灵感
- 认证方式
- No auth
- HTTPS
- Yes
- CORS
- Yes
- 分类
- 性格测试
- 文档 / URL
- https://zenquotes.io/
简介
ZenQuotes 以 JSON 提供励志名言——随机名言、按作者、今日名言,以及叠加名言文字的图片。免密钥且支持 CORS(实测可用),是名言小组件和每日励志功能的简单数据源。
快速开始
随机名言(实测可用):
curl "https://zenquotes.io/api/random"
[
{
"q": "The best way to predict the future is to invent it.",
"a": "Alan Kay",
"h": "<blockquote>...</blockquote>",
"i": "https://zenquotes.io/img/alan-kay.jpg"
}
]
多条名言:
curl "https://zenquotes.io/api/quotes"
curl "https://zenquotes.io/api/quotes/5"
今日名言:
curl "https://zenquotes.io/api/today"
名言图片:
curl "https://zenquotes.io/api/image"
认证方式
无需认证——免密钥。
速率限制与注意事项
- 免费;没有文档化的硬性限制——请礼貌使用。
- 响应是数组;每条名言有
q(文本)、a(作者)、h(HTML blockquote)和i(作者图片 URL)。 /api/image端点返回叠加名言的图片(PNG)——适合社交卡片。- 已启用 CORS——浏览器小组件可用。
常见问题
ZenQuotes 免费吗? 是的——免费、免密钥、支持 CORS。
可以按作者获取吗?
可以——/api/quotes/{作者} 返回该作者的名言。
如何获取名言图片?
https://zenquotes.io/api/image 返回带样式的 PNG。
性格测试 分类更多
| API | Auth | HTTPS | CORS | |
|---|---|---|---|---|
| Advice Slip Generate random advice slips | No auth | Yes | Unknown | ↗ |
| AstroWay Astrology, natal charts, Human Design, Vedic and horoscopes on the Swiss Ephemeris | API Key | Yes | Yes | ↗ |
| Biriyani As A Service Biriyani images placeholder | No auth | Yes | No | ↗ |
| Dev.to Access Forem articles, users and other resources via API | API Key | Yes | Unknown | ↗ |
| Dictum API to get access to the collection of the most inspiring expressions of mankind | No auth | Yes | Unknown | ↗ |