Skip to content
Last updated
POSThttps://api.aitronos.com/v1/scrape/analyze

Analyze a website to determine scraping strategy and complexity before scraping.

NameTypeRequiredDescription
AuthorizationstringYesBearer token authentication
Content-TypestringYesMust be application/json

Request Body

FieldTypeRequiredDescription
urlstringYesTarget URL to analyze

Response

Status: 200 OK

FieldTypeDescription
urlstringAnalyzed URL
estimated_itemsintegerEstimated number of items on page
complexitystringSite complexity: "low", "medium", or "high"
requires_jsbooleanWhether JavaScript rendering is required
is_spabooleanWhether site is a Single Page Application
has_anti_botbooleanWhether anti-bot measures detected
estimated_processing_timenumberEstimated processing time in seconds
recommended_limitsobjectRecommended max_items and timeout values
recommended_enginestringRecommended scraping engine
pagination_detectedbooleanWhether pagination was detected
robots_txt_restrictionsstringAny robots.txt restrictions (null if none)
content_typestringContent type from HTTP headers
status_codeintegerHTTP status code
Bash
curl -X POST https://api.aitronos.com/api/v1/scrape/analyze \
  -H "X-API-Key: $FREDDY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url": "https://example.com/products"}'

Response 200 OK

{
  "url": "https://example.com/products",
  "estimated_items": 25,
  "complexity": "medium",
  "requires_js": true,
  "is_spa": false,
  "has_anti_bot": false,
  "estimated_processing_time": 3.5,
  "recommended_limits": {
    "max_items": 50,
    "timeout": 45
  },
  "recommended_engine": "browser",
  "pagination_detected": true,
  "robots_txt_restrictions": null,
  "content_type": "text/html",
  "status_code": 200
}