Scrape
bashCopyEditcurl --location \
--request POST 'https://api.cros.one/env/scrape' \
--header 'Authorization: Bearer your-api-key' \
--header 'Content-Type: application/json' \
--data '{
"session_id": "1234567890abcdef",
"url": "https://example.com",
"only_main_content": true,
"scrape_images": false,
"screenshot": true,
"session_timeout_minutes": 10
}'jsonCopyEdit{
"metadata": {
"url": "https://example.com",
"page_title": "Example Website",
"timestamp": "2025-02-06T14:00:00.000Z"
},
"session": {
"session_id": "1234567890abcdef",
"status": "active",
"last_accessed_at": "2025-02-06T14:05:00.000Z",
"timeout_minutes": 10
},
"data": {
"main_content": "<div><h1>Example Page</h1><p>This is the main content of the page.</p></div>"
},
"screenshot": "base64_encoded_image_data_here",
"space": {
"description": "Available actions on the current page",
"actions": [
{
"id": "I1",
"description": "Click on the login button",
"category": "User Interaction"
}
]
}
}Last updated