About this endpoint
What it does
Returns a random riddle as a JSON object. You can optionally filter the result by passing a difficulty query parameter.
Query Parameter(s)
| Attribute | Type | Description |
|---|---|---|
| difficulty | String | Filters the returned riddle by difficulty. Pattern: any single or multi-character string (.); maximum length is 6. by default easy |
Response
Returns a JSON object with three nullable string fields: answer, riddle, and difficulty.
| Parameter | Type | Description |
|---|---|---|
| answer | String | The riddle answer. Nullable. |
| riddle | String | The riddle text. Nullable. |
| difficulty | String | The difficulty of the returned riddle. Nullable. |



