🔐Authentication

Getting your API key

To use our APIs, you need to get an API key. You can get your API key from the API Keys section of your dashboard profile. This is the key associated with your user account. You can create or delete your API key at any time throw this section. When you change, delete or update your key, all previous API requests will stop working until you configure them to use the new key.

Authenticating Request

Owlbot.ai for all its RESP APIs uses the standard "Authorization" header to authenticate requests with a Header token. You can authenticate requests by including your API key in the `Authorization` header in all your requests to the API.

For example, if your API token is "abcdefgh", you will have to put in your header the following code :

"Authorization" : "abcdefgh"

Some Examples :

with cURL

curl --request GET 'https://www.owlbot.ai/api/endpoint' \
--header 'Authorization: abcdefghf'

with Javascript Fetch

var myHeaders = new Headers();
myHeaders.append("Authorization", "abcdefghf");

var requestOptions = {
  method: 'GET',
  headers: myHeaders,
  redirect: 'follow'
};

fetch("https://www.owlbot.ai/api/endpoint", requestOptions)
  .then(response => response.text())
  .then(result => console.log(result))
  .catch(error => console.log('error', error));

with PHP cURL

<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://www.owlbot.ai/api/endpoint',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 1,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'GET',
  CURLOPT_HTTPHEADER => array(
    'Authorization: abcdefghj'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

with Python

import requests

url = "https://www.owlbot.ai/api/endpoint"

payload={}
headers = {
  'Authorization': 'abcdefghj'
}

response = requests.request("GET", url, headers=headers, data=payload)

print(response.text)

Last updated