跳转到主要内容
POST
Get Random Quotes

请求规范

  • 方法与路径: POST /apis/v1/api-ninjas/get-random-quotes
  • 可用状态: enabled
  • 请求 URL 模板: https://api.aisa.one/apis/v1/api-ninjas/get-random-quotes
完整 OpenAPI 定义 有效请求声明(包括认证和引用的 schema):

费用与请求规则

按实际用量收费。 默认请求预估费用:$0.00089 USD。 最终费用以实际用量为准。 账户适用价格可能不同;支持报价的接口可按实际请求获取报价。

授权

Authorization
string
header
必填

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

请求体

application/json
author
string

Filter by author name using partial string matching. Matches quotes from authors whose names contain this string.

示例:

"Einstein"

"Shakespeare"

categories
string

Comma-separated list of category names to include. Results match all specified categories. Available categories: wisdom, philosophy, life, truth, inspirational, relationships, love, faith, humor, success, courage, happiness, art, writing, fear, nature, time, freedom, death, leadership.

示例:

"wisdom"

"philosophy,life"

"inspirational,success"

exclude_categories
string

Comma-separated list of categories to exclude. Results won't match any listed categories.

示例:

"death,fear"

"humor"

limit
integer

Number of random results returned (1-100 range). Default is 1. Note: This is a premium-only feature and will return an error for non-premium accounts.

必填范围: 1 <= x <= 100
示例:

1

5

10

work
string

Filter by work/book title using partial string matching. Matches quotes from works whose titles contain this string.

示例:

"Hamlet"

"Republic"

响应

Tool result data

quotes
object[]
必填