Retrieve Random Facts

GET /utils/facts

Retrieve a specified number of random facts.

Query parameters

  • count integer

    The number of random facts to retrieve (between 1 and 100).

    Minimum value is 1, maximum value is 100. Default value is 1.

Responses

  • 200 application/json

    Successful Response

    Hide response attribute Show response attribute object
    • facts array[string]

      An array of random facts.

  • 400 application/json

    Bad Request

    Hide response attribute Show response attribute object
    • error object Required
      Hide error attributes Show error attributes object
      • message string Required

        A human-readable error message.

      • type string Required

        The type of error that occurred.

      • param string | null Required

        The parameter that caused the error, if applicable.

      • code string Required

        A machine-readable error code.

  • 500 application/json

    Internal Server Error

    Hide response attribute Show response attribute object
    • error object Required
      Hide error attributes Show error attributes object
      • message string Required

        A human-readable error message.

      • type string Required

        The type of error that occurred.

      • param string | null Required

        The parameter that caused the error, if applicable.

      • code string Required

        A machine-readable error code.

GET /utils/facts
curl \
 -X GET https://api.rimunace.xyz/utils/facts
Response examples (200)
{
  "facts": [
    "string"
  ]
}
Response examples (400)
{
  "error": {
    "message": "string",
    "type": "string",
    "param": "string",
    "code": "string"
  }
}
Response examples (500)
{
  "error": {
    "message": "string",
    "type": "string",
    "param": "string",
    "code": "string"
  }
}