用海量名言库增强应用。激励应用、创作者与启发用户的平台绝配。
🎯 API功能
随机生成器
GET /v1/quotes/random
即时获取:
- 名家励志名言
- 多种类别
- 作者归属
- 类别分类
- JSON响应
💡 绝配
- 激励应用
- 社交内容
- 数字展示
- 教育平台
- 个人成长应用
- 内容管理
- 浏览器扩展
- 写作工具
⭐ 为什么名言API?
- 海量库:50万+精选
- 99.99%正常运行:坚实
- 24/7:随时在
- 闪电快:性能优化
- 常更新:新鲜不断
| Name | Required | Description |
|---|---|---|
X-RapidAPI-Key | required | Your RapidAPI key. Get one free. |
X-RapidAPI-Host | required | quotes.p.rapidapi.com |
/v1/quotes Get random quotes, optionally filtered by category
| Name | Type | Required | Default | Constraints |
|---|---|---|---|---|
category | string | optional | — | — |
limit | integer | optional | 1 | 1-10 |
curl --request GET \
--url 'https://quotes.p.rapidapi.com/v1/quotes?category=example&limit=1' \
--header 'x-rapidapi-key: YOUR_API_KEY' \
--header 'x-rapidapi-host: quotes.p.rapidapi.com' const url = "https://quotes.p.rapidapi.com/v1/quotes?category=example&limit=1";
const options = {
method: "GET",
headers: {
"x-rapidapi-key": "YOUR_API_KEY",
"x-rapidapi-host": "quotes.p.rapidapi.com"
}
};
const response = await fetch(url, options);
const data = await response.json();
console.log(data); import requests
url = "https://quotes.p.rapidapi.com/v1/quotes"
querystring = {"category": "example", "limit": 1}
headers = {
"x-rapidapi-key": "YOUR_API_KEY",
"x-rapidapi-host": "quotes.p.rapidapi.com"
}
response = requests.get(url, headers=headers, params=querystring)
print(response.json()) /v1/quotes/categories List all quote categories available in the dataset, sorted alphabetically.
curl --request GET \
--url 'https://quotes.p.rapidapi.com/v1/quotes/categories' \
--header 'x-rapidapi-key: YOUR_API_KEY' \
--header 'x-rapidapi-host: quotes.p.rapidapi.com' const url = "https://quotes.p.rapidapi.com/v1/quotes/categories";
const options = {
method: "GET",
headers: {
"x-rapidapi-key": "YOUR_API_KEY",
"x-rapidapi-host": "quotes.p.rapidapi.com"
}
};
const response = await fetch(url, options);
const data = await response.json();
console.log(data); import requests
url = "https://quotes.p.rapidapi.com/v1/quotes/categories"
headers = {
"x-rapidapi-key": "YOUR_API_KEY",
"x-rapidapi-host": "quotes.p.rapidapi.com"
}
response = requests.get(url, headers=headers)
print(response.json()) $ GET /v1/quotes?category=motivational&limit=1
{"data":[{"quote":"The best way out is always through.","author":"Robert Frost","category":"motivational"}],"meta":{"total":1,"limit":1,"offset":0}} 用海量名言库增强应用。激励应用、创作者与启发用户的平台绝配。
GET /v1/quotes/random
即时获取:
通过 RapidAPI 上的商业就绪层访问此 API。专为副项目、初创公司和大批量生产架构设计的灵活计划。
需要集成帮助或有自定义端点请求?我们的工程团队随时为身份验证、有效负载模式和高频速率限制增加提供协助。
全天候 24/7 监控,正常运行时间 SLA 达 99.9%。构建在具有全球分布式边缘缓存的云原生微服务之上,以确保超低延迟响应时间。