# Quick Start

## Get your API keys

Almost all requests don't need an API Key to work, if you need any function that needs it, you can request one from [Any Bot support server](https://discord.gg/5UyuwbNu8j)

## Make your first request

To make your first request, send a request to the `dog` endpoint. This will get a `dog`, which is nice.

## Return Dog

<mark style="color:blue;">`GET`</mark> `https://api.any-bot.xyz/api/v1/dog`

It will return a random photo and a random fact of some dog.

#### Headers

| Name     | Type   | Description            |
| -------- | ------ | ---------------------- |
| API\_KEY | string | You API Key (Optional) |

{% tabs %}
{% tab title="200 Dog successfully returned" %}

```javascript
{
    "message": "OK",
    "image": "http://api.any-bot.tech/img/dog/mydogimage.jpg",
    "fact": "Dogs are the best friends of humans",
    "status": 200
}
```

{% endtab %}
{% endtabs %}

Take a look at how you might call this method using `curl`:

{% tabs %}
{% tab title="JavaScript" %}

```javascript
let xhr = new XMLHttpRequest();

xhr.open("GET", "https://api.any-bot.xyz/api/v1/dog");
xhr.setRequestHeader("API-KEY", "Optional")

xhr.send();

xhr.onload = () => console.log(xhr.responseText);
```

{% endtab %}

{% tab title="Bash" %}

```bash
curl https://api.any-bot.xyz/api/v1/dog
    --header "API-KEY: Optional"  
```

{% endtab %}
{% endtabs %}
