# 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**](/images/nsfw/aleatoire.md): You have random images

{% content-ref url="/pages/UZYSxWBQLiHY325sjAWr" %}
[Random](/images/nsfw/aleatoire.md)
{% endcontent-ref %}

* [**NSFW images by category**](/images/nsfw/type.md): You will receive only the images of which you indicated the category&#x20;

{% content-ref url="/pages/XZunNUVcu5UyOyF5Ww60" %}
[Category](/images/nsfw/type.md)
{% endcontent-ref %}

* [**NSFW images by ID**](/images/nsfw/id.md): You will receive the images of which you indicate the ID

{% content-ref url="/pages/beNluNNE5Qt72VaIuhjX" %}
[ID](/images/nsfw/id.md)
{% 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"
    }
}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.night-api.com/images/nsfw.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
