Skip to main content
POST
Get Random Quotes

Request contract

  • Method and path: POST /apis/v1/api-ninjas/get-random-quotes
  • Availability: enabled
  • Request URL template: https://api.aisa.one/apis/v1/api-ninjas/get-random-quotes
Complete OpenAPI definition Effective request declaration (including authentication and referenced schemas):

Cost and request rules

Usage-based pricing. Default request estimate: $0.00089 USD. The final charge depends on actual usage. Your account price may differ; use a request quote where supported.

Authorizations

Authorization
string
header
required

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

Body

application/json
author
string

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

Examples:

"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.

Examples:

"wisdom"

"philosophy,life"

"inspirational,success"

exclude_categories
string

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

Examples:

"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.

Required range: 1 <= x <= 100
Examples:

1

5

10

work
string

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

Examples:

"Hamlet"

"Republic"

Response

Tool result data

quotes
object[]
required