curl --request POST \
--url https://api.droxy.ai/v1/resource/website \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"url": "<string>",
"subLinks": [],
"syncFrequency": [
"<string>"
],
"settings": {
"delayBetweenExtractionMs": 123,
"removeSelectors": [
"header",
"footer",
".cookie-banner",
"#ads",
"nav"
],
"targetSelectors": [
"article",
".main-content",
"#blog-post"
],
"userAgent": "DroxyBot/1.0"
},
"tags": [
"<string>"
]
}
'const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
url: '<string>',
subLinks: [],
syncFrequency: ['<string>'],
settings: {
delayBetweenExtractionMs: 123,
removeSelectors: ['header', 'footer', '.cookie-banner', '#ads', 'nav'],
targetSelectors: ['article', '.main-content', '#blog-post'],
userAgent: 'DroxyBot/1.0'
},
tags: ['<string>']
})
};
fetch('https://api.droxy.ai/v1/resource/website', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.droxy.ai/v1/resource/website"
payload = {
"url": "<string>",
"subLinks": [],
"syncFrequency": ["<string>"],
"settings": {
"delayBetweenExtractionMs": 123,
"removeSelectors": ["header", "footer", ".cookie-banner", "#ads", "nav"],
"targetSelectors": ["article", ".main-content", "#blog-post"],
"userAgent": "DroxyBot/1.0"
},
"tags": ["<string>"]
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.droxy.ai/v1/resource/website",
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>',
'subLinks' => [
],
'syncFrequency' => [
'<string>'
],
'settings' => [
'delayBetweenExtractionMs' => 123,
'removeSelectors' => [
'header',
'footer',
'.cookie-banner',
'#ads',
'nav'
],
'targetSelectors' => [
'article',
'.main-content',
'#blog-post'
],
'userAgent' => 'DroxyBot/1.0'
],
'tags' => [
'<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}HttpResponse<String> response = Unirest.post("https://api.droxy.ai/v1/resource/website")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"url\": \"<string>\",\n \"subLinks\": [],\n \"syncFrequency\": [\n \"<string>\"\n ],\n \"settings\": {\n \"delayBetweenExtractionMs\": 123,\n \"removeSelectors\": [\n \"header\",\n \"footer\",\n \".cookie-banner\",\n \"#ads\",\n \"nav\"\n ],\n \"targetSelectors\": [\n \"article\",\n \".main-content\",\n \"#blog-post\"\n ],\n \"userAgent\": \"DroxyBot/1.0\"\n },\n \"tags\": [\n \"<string>\"\n ]\n}")
.asString();package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.droxy.ai/v1/resource/website"
payload := strings.NewReader("{\n \"url\": \"<string>\",\n \"subLinks\": [],\n \"syncFrequency\": [\n \"<string>\"\n ],\n \"settings\": {\n \"delayBetweenExtractionMs\": 123,\n \"removeSelectors\": [\n \"header\",\n \"footer\",\n \".cookie-banner\",\n \"#ads\",\n \"nav\"\n ],\n \"targetSelectors\": [\n \"article\",\n \".main-content\",\n \"#blog-post\"\n ],\n \"userAgent\": \"DroxyBot/1.0\"\n },\n \"tags\": [\n \"<string>\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
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))
}{
"id": "<string>",
"organisation": "<string>",
"creator": "<string>",
"fileName": "<string>",
"type": "<string>",
"createdAt": 123,
"aiProcessingStatus": "<string>",
"tags": [
"<string>"
],
"youtubeVideoId": 123,
"googleDriveResourceFile": {
"googleDriveAccountId": "<string>",
"fileId": "<string>",
"fileName": "<string>",
"mimeType": "<string>",
"webViewLink": "<string>",
"recursive": "<string>"
},
"website": {
"url": "<string>",
"subLinks": [
"<string>"
]
},
"videoLength": 123,
"fileSize": 123,
"syncFrequencyMs": 123,
"lastSync": 123
}{
"statusCode": 123,
"message": [
"<string>"
],
"error": "<string>"
}{
"statusCode": 123,
"message": [
"<string>"
],
"error": "<string>"
}{
"statusCode": 123,
"message": [
"<string>"
],
"error": "<string>"
}{
"statusCode": 123,
"message": [
"<string>"
],
"error": "<string>"
}Create Website Resource
Create a Website resource.
curl --request POST \
--url https://api.droxy.ai/v1/resource/website \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"url": "<string>",
"subLinks": [],
"syncFrequency": [
"<string>"
],
"settings": {
"delayBetweenExtractionMs": 123,
"removeSelectors": [
"header",
"footer",
".cookie-banner",
"#ads",
"nav"
],
"targetSelectors": [
"article",
".main-content",
"#blog-post"
],
"userAgent": "DroxyBot/1.0"
},
"tags": [
"<string>"
]
}
'const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
url: '<string>',
subLinks: [],
syncFrequency: ['<string>'],
settings: {
delayBetweenExtractionMs: 123,
removeSelectors: ['header', 'footer', '.cookie-banner', '#ads', 'nav'],
targetSelectors: ['article', '.main-content', '#blog-post'],
userAgent: 'DroxyBot/1.0'
},
tags: ['<string>']
})
};
fetch('https://api.droxy.ai/v1/resource/website', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.droxy.ai/v1/resource/website"
payload = {
"url": "<string>",
"subLinks": [],
"syncFrequency": ["<string>"],
"settings": {
"delayBetweenExtractionMs": 123,
"removeSelectors": ["header", "footer", ".cookie-banner", "#ads", "nav"],
"targetSelectors": ["article", ".main-content", "#blog-post"],
"userAgent": "DroxyBot/1.0"
},
"tags": ["<string>"]
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.droxy.ai/v1/resource/website",
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>',
'subLinks' => [
],
'syncFrequency' => [
'<string>'
],
'settings' => [
'delayBetweenExtractionMs' => 123,
'removeSelectors' => [
'header',
'footer',
'.cookie-banner',
'#ads',
'nav'
],
'targetSelectors' => [
'article',
'.main-content',
'#blog-post'
],
'userAgent' => 'DroxyBot/1.0'
],
'tags' => [
'<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}HttpResponse<String> response = Unirest.post("https://api.droxy.ai/v1/resource/website")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"url\": \"<string>\",\n \"subLinks\": [],\n \"syncFrequency\": [\n \"<string>\"\n ],\n \"settings\": {\n \"delayBetweenExtractionMs\": 123,\n \"removeSelectors\": [\n \"header\",\n \"footer\",\n \".cookie-banner\",\n \"#ads\",\n \"nav\"\n ],\n \"targetSelectors\": [\n \"article\",\n \".main-content\",\n \"#blog-post\"\n ],\n \"userAgent\": \"DroxyBot/1.0\"\n },\n \"tags\": [\n \"<string>\"\n ]\n}")
.asString();package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.droxy.ai/v1/resource/website"
payload := strings.NewReader("{\n \"url\": \"<string>\",\n \"subLinks\": [],\n \"syncFrequency\": [\n \"<string>\"\n ],\n \"settings\": {\n \"delayBetweenExtractionMs\": 123,\n \"removeSelectors\": [\n \"header\",\n \"footer\",\n \".cookie-banner\",\n \"#ads\",\n \"nav\"\n ],\n \"targetSelectors\": [\n \"article\",\n \".main-content\",\n \"#blog-post\"\n ],\n \"userAgent\": \"DroxyBot/1.0\"\n },\n \"tags\": [\n \"<string>\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
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))
}{
"id": "<string>",
"organisation": "<string>",
"creator": "<string>",
"fileName": "<string>",
"type": "<string>",
"createdAt": 123,
"aiProcessingStatus": "<string>",
"tags": [
"<string>"
],
"youtubeVideoId": 123,
"googleDriveResourceFile": {
"googleDriveAccountId": "<string>",
"fileId": "<string>",
"fileName": "<string>",
"mimeType": "<string>",
"webViewLink": "<string>",
"recursive": "<string>"
},
"website": {
"url": "<string>",
"subLinks": [
"<string>"
]
},
"videoLength": 123,
"fileSize": 123,
"syncFrequencyMs": 123,
"lastSync": 123
}{
"statusCode": 123,
"message": [
"<string>"
],
"error": "<string>"
}{
"statusCode": 123,
"message": [
"<string>"
],
"error": "<string>"
}{
"statusCode": 123,
"message": [
"<string>"
],
"error": "<string>"
}{
"statusCode": 123,
"message": [
"<string>"
],
"error": "<string>"
}Authorizations
Body
The website URL.
An array of sub-URLs to include under the website URL.
An enum of the sync frequency. Values can be ONE_DAY | THREE_DAYS | SEVEN_DAYS | ONE_MONTH | NEVER.
Settings for the website.
Show child attributes
Show child attributes
Tags to assign.
Response
Created
The resource's id.
The organisation id of the resource.
The user id of the creator.
The name of the resource.
The type of the resource. Values can be VIDEO | PDF | TEXT | YOUTUBE | WEB | GOOGLE_DRIVE.
The created date of the resource. Unix timestamp in milliseconds.
The status of the AI processing of the resource. Values can be NOT_STARTED | IN_PROGRESS | DONE | FAILED_NO_TEXT_FOUND | FAILED.
Tags assigned.
YouTube video id. Defined only of the resource type is YOUTUBE.
Google Drive resource object. Defined only of the resource type is GOOGLE_DRIVE.
Show child attributes
Show child attributes
Website data. Defined only of the resource type is WEB.
Show child attributes
Show child attributes
Video length in seconds. Defined only of the resource type is VIDEO.
File length in bytes. Defined only of the resource type is PDF or VIDEO.
Synchronization frequency in milliseconds.
Last synchronization date. Unix timestamp in milliseconds.