In this guide, we will show you how to integrate Scrapito with your application using our REST API.

Common:

Base URL: https://api.scraptio.com

GET /validate

Validate whether the provided API Key is valid. To validate the provided API Key, you need to attach the key to the 'x-api-key' header.

Request:

Complete URL: https://api.scraptio.com/validate

Method: GET

Headers: ‘x-api-key’: ‘<Your API Key>’

Example Request:

// JavaScript
const options = {
  method: 'GET',
  headers: {
    'x-api-key': '<Your API Key>'
  }
};

fetch('<https://api.scraptio.com/validate>', options)
  .then(response => response.json())
  .then(response => console.log(response))
  .catch(err => console.error(err));
# Python
import requests

url = "<https://api.scraptio.com/validate>"

payload = ""
headers = {"x-api-key": "<Your API Key>"}

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

print(response.text)

Response:

If the API Key is valid, the response will return a JSON object with a 'message' field containing the message 'ok'.

Example Response:

{
	"message": "ok"
}

Errors**:**

If there is an error during the validation of the API Key, the response can be one of the following error codes:

400 - Bad Request: The request is malformed, or the header with the API Key does not exist or is incorrect.