{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/crawleo-dev/json-schema/crawleo-dev-crawl-response-schema.json",
  "title": "CrawlResponse",
  "x-generated": "2026-10-30",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/crawleo-dev-openapi.json#/components/schemas/CrawlResponse",
  "type": "object",
  "properties": {
    "results": {
      "type": "array",
      "description": "Array of crawl result objects",
      "items": {
        "type": "object",
        "properties": {
          "url": {
            "type": "string",
            "description": "The URL that was crawled"
          },
          "status": {
            "type": "integer",
            "description": "HTTP status code of the crawled page"
          },
          "raw_html": {
            "type": "string",
            "description": "Raw HTML content (if requested)"
          },
          "enhanced_html": {
            "type": "string",
            "description": "Cleaned HTML with ads and scripts removed"
          },
          "page_text": {
            "type": "string",
            "description": "Plain text extraction of the page"
          },
          "markdown": {
            "type": "string",
            "description": "Markdown conversion of the page content"
          },
          "screenshot": {
            "type": "string",
            "description": "Base64 encoded screenshot (if requested)"
          },
          "error": {
            "type": "string",
            "description": "Error message if the crawl failed for this URL"
          }
        }
      }
    },
    "credits": {
      "type": "integer",
      "description": "Total credits used for this request"
    },
    "successful_pages": {
      "type": "integer",
      "description": "Number of URLs successfully crawled"
    }
  }
}