# Random Joke

This endpoint allows you to retrieve a randomly selected joke.

### Endpoint

* **URL**: `https://api.erensko.xyz/v1/random-joke`
* **Method**: <mark style="color:green;">`GET`</mark>
* **Description**: Fetches a random joke from the API database

### Headers

| Key           | Value                                                                                                     |
| ------------- | --------------------------------------------------------------------------------------------------------- |
| Authorization | Your own personal API key, create one by clicking [here](../api-keys/getting-your-key). This is required. |

### Request Example

```http
GET https://api.erensko.xyz/v1/random-joke?category=Laugh
```

### Response Example

```json
{
  "success": true,
  "joke": "Why don’t skeletons fight each other? They don’t have the guts."
}
```
