curl -X POST https://getobj.com/api/crawl \
-H "Content-Type: application/json" \
-d '{
"url": "https://example.com",
"format": "markdown"
}'
curl -X POST https://getobj.com/api/crawl \
-H "Content-Type: application/json" \
-d '{
"url": "https://example.com",
"instruction": "download files"
}'
const response = await fetch('https://getobj.com/api/crawl', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({
url: 'https://example.com',
instruction: 'extract links'
})
});
const data = await response.json();
console.log(data.result.links);
import requests
response = requests.post('https://getobj.com/api/crawl',
json={
'url': 'https://example.com',
'instruction': 'count word "example"'
}
)
data = response.json()
print(data['result']['count'])
const axios = require('axios');
const response = await axios.post('https://getobj.com/api/crawl', {
url: 'https://example.com',
instruction: 'take screenshot'
});
const screenshot = response.data.result.screenshot;