# NSFW

{% hint style="danger" %}
This API requires an API key to be sent along with your requests: Get yours by <mark style="color:red;">creating an account</mark>
{% endhint %}

Different methods exist to have NSFW images, currently there are three and here they are:

* [**Random NSFW**](https://docs.night-api.com/images/nsfw/aleatoire): You have random images

{% content-ref url="nsfw/aleatoire" %}
[aleatoire](https://docs.night-api.com/images/nsfw/aleatoire)
{% endcontent-ref %}

* [**NSFW images by category**](https://docs.night-api.com/images/nsfw/type): You will receive only the images of which you indicated the category&#x20;

{% content-ref url="nsfw/type" %}
[type](https://docs.night-api.com/images/nsfw/type)
{% endcontent-ref %}

* [**NSFW images by ID**](https://docs.night-api.com/images/nsfw/id): You will receive the images of which you indicate the ID

{% content-ref url="nsfw/id" %}
[id](https://docs.night-api.com/images/nsfw/id)
{% endcontent-ref %}

Here is an example of what each method returns

```json
{
    "status": 200,
    "content": {
        "id": 23,
        "type": "ass",
        "url": "https://cdn.night-api.com/api/images/nsfw/ass/4208ec0c4590ed4622e451f386e39.jpg"
    }
}
```
