🤖
Any API
  • 👋Welcome!
  • 🏁Quick Start
  • Reference
    • 📝API Reference
      • 🐶Animals
      • 🍥Anime
      • ⚙️Utils
Powered by GitBook
On this page
  • Get your API keys
  • Make your first request
  • Return Dog

Was this helpful?

Quick Start

PreviousWelcome!NextAPI Reference

Last updated 2 years ago

Was this helpful?

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

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

GET 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)

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

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

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);
curl https://api.any-bot.xyz/api/v1/dog
    --header "API-KEY: Optional"  
🏁
Any Bot support server