Crawl Page
curl --request POST \
--url https://crawl.getmonita.io/api/v1 \
--header 'Content-Type: application/json' \
--data '
{
"url": "<string>",
"session_id": "<string>",
"user": {},
"options": {
"screenShots": false,
"byPassConsent": true,
"country": "<string>",
"proxy": true,
"webhook": false
},
"validationRules": [
{
"rule_id": "<string>",
"vendor": "<string>",
"key": "<string>",
"value": "<string>",
"condition": "OR",
"rule_type": "Pixel"
}
]
}
'import requests
url = "https://crawl.getmonita.io/api/v1"
payload = {
"url": "<string>",
"session_id": "<string>",
"user": {},
"options": {
"screenShots": False,
"byPassConsent": True,
"country": "<string>",
"proxy": True,
"webhook": False
},
"validationRules": [
{
"rule_id": "<string>",
"vendor": "<string>",
"key": "<string>",
"value": "<string>",
"condition": "OR",
"rule_type": "Pixel"
}
]
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
url: '<string>',
session_id: '<string>',
user: {},
options: {
screenShots: false,
byPassConsent: true,
country: '<string>',
proxy: true,
webhook: false
},
validationRules: [
{
rule_id: '<string>',
vendor: '<string>',
key: '<string>',
value: '<string>',
condition: 'OR',
rule_type: 'Pixel'
}
]
})
};
fetch('https://crawl.getmonita.io/api/v1', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://crawl.getmonita.io/api/v1",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'url' => '<string>',
'session_id' => '<string>',
'user' => [
],
'options' => [
'screenShots' => false,
'byPassConsent' => true,
'country' => '<string>',
'proxy' => true,
'webhook' => false
],
'validationRules' => [
[
'rule_id' => '<string>',
'vendor' => '<string>',
'key' => '<string>',
'value' => '<string>',
'condition' => 'OR',
'rule_type' => 'Pixel'
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://crawl.getmonita.io/api/v1"
payload := strings.NewReader("{\n \"url\": \"<string>\",\n \"session_id\": \"<string>\",\n \"user\": {},\n \"options\": {\n \"screenShots\": false,\n \"byPassConsent\": true,\n \"country\": \"<string>\",\n \"proxy\": true,\n \"webhook\": false\n },\n \"validationRules\": [\n {\n \"rule_id\": \"<string>\",\n \"vendor\": \"<string>\",\n \"key\": \"<string>\",\n \"value\": \"<string>\",\n \"condition\": \"OR\",\n \"rule_type\": \"Pixel\"\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://crawl.getmonita.io/api/v1")
.header("Content-Type", "application/json")
.body("{\n \"url\": \"<string>\",\n \"session_id\": \"<string>\",\n \"user\": {},\n \"options\": {\n \"screenShots\": false,\n \"byPassConsent\": true,\n \"country\": \"<string>\",\n \"proxy\": true,\n \"webhook\": false\n },\n \"validationRules\": [\n {\n \"rule_id\": \"<string>\",\n \"vendor\": \"<string>\",\n \"key\": \"<string>\",\n \"value\": \"<string>\",\n \"condition\": \"OR\",\n \"rule_type\": \"Pixel\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://crawl.getmonita.io/api/v1")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"url\": \"<string>\",\n \"session_id\": \"<string>\",\n \"user\": {},\n \"options\": {\n \"screenShots\": false,\n \"byPassConsent\": true,\n \"country\": \"<string>\",\n \"proxy\": true,\n \"webhook\": false\n },\n \"validationRules\": [\n {\n \"rule_id\": \"<string>\",\n \"vendor\": \"<string>\",\n \"key\": \"<string>\",\n \"value\": \"<string>\",\n \"condition\": \"OR\",\n \"rule_type\": \"Pixel\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"sessionId": "<string>",
"button": {
"button_text": "<string>",
"consent_banner": true
},
"success": false,
"marketingPixels": [
{
"vendor": "<string>",
"account_id": "<string>",
"page": "<string>"
}
],
"url": "<string>",
"cookiesBefore": 123,
"cookiesAfter": 123,
"timeTaken": 123,
"error": {
"error": true,
"message": "<string>"
},
"validationResults": [
{
"rule_id": "<string>",
"success": true
}
],
"screenShotUrls": {
"screenShotBefore": "<string>",
"screenShotAfter": "<string>"
},
"message": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}API Reference
Crawl Page
POST
/
api
/
v1
Crawl Page
curl --request POST \
--url https://crawl.getmonita.io/api/v1 \
--header 'Content-Type: application/json' \
--data '
{
"url": "<string>",
"session_id": "<string>",
"user": {},
"options": {
"screenShots": false,
"byPassConsent": true,
"country": "<string>",
"proxy": true,
"webhook": false
},
"validationRules": [
{
"rule_id": "<string>",
"vendor": "<string>",
"key": "<string>",
"value": "<string>",
"condition": "OR",
"rule_type": "Pixel"
}
]
}
'import requests
url = "https://crawl.getmonita.io/api/v1"
payload = {
"url": "<string>",
"session_id": "<string>",
"user": {},
"options": {
"screenShots": False,
"byPassConsent": True,
"country": "<string>",
"proxy": True,
"webhook": False
},
"validationRules": [
{
"rule_id": "<string>",
"vendor": "<string>",
"key": "<string>",
"value": "<string>",
"condition": "OR",
"rule_type": "Pixel"
}
]
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
url: '<string>',
session_id: '<string>',
user: {},
options: {
screenShots: false,
byPassConsent: true,
country: '<string>',
proxy: true,
webhook: false
},
validationRules: [
{
rule_id: '<string>',
vendor: '<string>',
key: '<string>',
value: '<string>',
condition: 'OR',
rule_type: 'Pixel'
}
]
})
};
fetch('https://crawl.getmonita.io/api/v1', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://crawl.getmonita.io/api/v1",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'url' => '<string>',
'session_id' => '<string>',
'user' => [
],
'options' => [
'screenShots' => false,
'byPassConsent' => true,
'country' => '<string>',
'proxy' => true,
'webhook' => false
],
'validationRules' => [
[
'rule_id' => '<string>',
'vendor' => '<string>',
'key' => '<string>',
'value' => '<string>',
'condition' => 'OR',
'rule_type' => 'Pixel'
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://crawl.getmonita.io/api/v1"
payload := strings.NewReader("{\n \"url\": \"<string>\",\n \"session_id\": \"<string>\",\n \"user\": {},\n \"options\": {\n \"screenShots\": false,\n \"byPassConsent\": true,\n \"country\": \"<string>\",\n \"proxy\": true,\n \"webhook\": false\n },\n \"validationRules\": [\n {\n \"rule_id\": \"<string>\",\n \"vendor\": \"<string>\",\n \"key\": \"<string>\",\n \"value\": \"<string>\",\n \"condition\": \"OR\",\n \"rule_type\": \"Pixel\"\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://crawl.getmonita.io/api/v1")
.header("Content-Type", "application/json")
.body("{\n \"url\": \"<string>\",\n \"session_id\": \"<string>\",\n \"user\": {},\n \"options\": {\n \"screenShots\": false,\n \"byPassConsent\": true,\n \"country\": \"<string>\",\n \"proxy\": true,\n \"webhook\": false\n },\n \"validationRules\": [\n {\n \"rule_id\": \"<string>\",\n \"vendor\": \"<string>\",\n \"key\": \"<string>\",\n \"value\": \"<string>\",\n \"condition\": \"OR\",\n \"rule_type\": \"Pixel\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://crawl.getmonita.io/api/v1")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"url\": \"<string>\",\n \"session_id\": \"<string>\",\n \"user\": {},\n \"options\": {\n \"screenShots\": false,\n \"byPassConsent\": true,\n \"country\": \"<string>\",\n \"proxy\": true,\n \"webhook\": false\n },\n \"validationRules\": [\n {\n \"rule_id\": \"<string>\",\n \"vendor\": \"<string>\",\n \"key\": \"<string>\",\n \"value\": \"<string>\",\n \"condition\": \"OR\",\n \"rule_type\": \"Pixel\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"sessionId": "<string>",
"button": {
"button_text": "<string>",
"consent_banner": true
},
"success": false,
"marketingPixels": [
{
"vendor": "<string>",
"account_id": "<string>",
"page": "<string>"
}
],
"url": "<string>",
"cookiesBefore": 123,
"cookiesAfter": 123,
"timeTaken": 123,
"error": {
"error": true,
"message": "<string>"
},
"validationResults": [
{
"rule_id": "<string>",
"success": true
}
],
"screenShotUrls": {
"screenShotBefore": "<string>",
"screenShotAfter": "<string>"
},
"message": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Headers
API key for authorization
Body
application/json
Response
Successful Response
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
⌘I
