Skip to content
Mock APIs

Resources

Quotes

Original, fictional quotes with fictional authors. Read-only. The dataset contains 50 quotes.

Read-only resource

Quotes can be listed, searched, and fetched by ID. Write methods return 405 Method Not Allowed.

Endpoints

The quote object

Use select to return a subset of these fields. Sort with sortBy on id, author; search matches . See query parameters.

quote fields
FieldTypeNotes
idintegermin -9007199254740991, max 9007199254740991
quotestring
authorstring

List quotes

GET/api/v1/quotes

Returns a paginated list of quotes. Supports pagination, field selection, sorting, and filtering.

Parameters

Parameters for List quotes
NameInTypeDescription
limitqueryintegerNumber of records to return (1-100).Default: 30Range: 1-100
skipqueryintegerNumber of records to skip before returning results.Default: 0Range: 0-1000000
selectquerystringComma-separated list of fields to return. id is always included. Allowed: id, quote, author.
sortByquerystringField to sort by.One of: id, authorDefault: id
orderquerystringSort direction.One of: asc, descDefault: asc
authorquerystringFilter by author (case-insensitive exact match).
delayqueryintegerDelay the response by this many milliseconds (0-5000). Subject to a stricter rate limit.Range: 0-5000

Status codes

  • 200A page of quotes with total, skip, and limit metadata.
  • 400Invalid path or query parameter (INVALID_PARAMETER / INVALID_ID).
  • 429Too many requests from this IP (RATE_LIMIT_EXCEEDED).
  • 503The database is temporarily unavailable (SERVICE_UNAVAILABLE).

Request

curl 'https://test.naimulhassan.me/api/v1/quotes?limit=2'

Example responses

Captured from the real API with the requests shown on this page.

200application/json
{
  "quotes": [
    {
      "id": 1,
      "quote": "Small steps taken daily outrun big plans made yearly.",
      "author": "Mara Ellison"
    },
    {
      "id": 2,
      "quote": "A good question is a map; a good answer is only a destination.",
      "author": "Tobias Wren"
    }
  ],
  "total": 50,
  "skip": 0,
  "limit": 2
}

Try it

GET
Headers

No header yet.

Open in playground
Send the request to see a live response.

Get a random quote

GET/api/v1/quotes/random

Returns one randomly selected quote. This is the only intentionally non-deterministic endpoint.

Parameters

Parameters for Get a random quote
NameInTypeDescription
delayqueryintegerDelay the response by this many milliseconds (0-5000). Subject to a stricter rate limit.Range: 0-5000

Status codes

  • 200A quote object.

Request

curl 'https://test.naimulhassan.me/api/v1/quotes/random'

Example responses

Captured from the real API with the requests shown on this page.

200application/json
{
  "id": 28,
  "quote": "Teach what you learn and you will learn it twice.",
  "author": "Lena Okoro"
}

Try it

GET
Headers

No header yet.

Open in playground
Send the request to see a live response.

Get a quote

GET/api/v1/quotes/{id}

Returns a single quote by its numeric ID.

Parameters

Parameters for Get a quote
NameInTypeDescription
idrequiredpathintegerNumeric quote ID (positive integer).Min: 1
selectquerystringComma-separated list of fields to return. id is always included. Allowed: id, quote, author.
delayqueryintegerDelay the response by this many milliseconds (0-5000). Subject to a stricter rate limit.Range: 0-5000

Status codes

  • 200The quote object.
  • 400Invalid path or query parameter (INVALID_PARAMETER / INVALID_ID).
  • 404No record exists with that ID (RESOURCE_NOT_FOUND).

Request

curl 'https://test.naimulhassan.me/api/v1/quotes/1'

Example responses

Captured from the real API with the requests shown on this page.

200application/json
{
  "id": 1,
  "quote": "Small steps taken daily outrun big plans made yearly.",
  "author": "Mara Ellison"
}

Try it

GET
Headers

No header yet.

Open in playground
Send the request to see a live response.