{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/finedata-ai/json-schema/finedata-ai-async-job-status-response-schema.json",
  "title": "AsyncJobStatusResponse",
  "description": "Full job status, including result when completed.",
  "x-generated": "2026-10-30",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/finedata-openapi.json#/components/schemas/AsyncJobStatusResponse",
  "properties": {
    "job_id": {
      "type": "string",
      "title": "Job Id",
      "description": "Job identifier"
    },
    "status": {
      "type": "string",
      "title": "Status",
      "description": "Current status: pending, processing, completed, failed, cancelled"
    },
    "url": {
      "type": "string",
      "title": "Url",
      "description": "Target URL"
    },
    "method": {
      "type": "string",
      "title": "Method",
      "description": "HTTP method used",
      "default": "GET"
    },
    "created_at": {
      "type": "string",
      "title": "Created At",
      "description": "Creation timestamp"
    },
    "started_at": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Started At",
      "description": "Processing start timestamp"
    },
    "completed_at": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Completed At",
      "description": "Completion timestamp"
    },
    "use_js_render": {
      "type": "boolean",
      "title": "Use Js Render",
      "description": "JS rendering was enabled",
      "default": false
    },
    "use_residential": {
      "type": "boolean",
      "title": "Use Residential",
      "description": "Residential proxy was used",
      "default": false
    },
    "use_isp": {
      "type": "boolean",
      "title": "Use Isp",
      "description": "ISP proxy was used",
      "default": false
    },
    "use_mobile": {
      "type": "boolean",
      "title": "Use Mobile",
      "description": "Mobile proxy was used",
      "default": false
    },
    "proxy_country": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Proxy Country",
      "description": "Requested proxy country (ISO-2), if any"
    },
    "stealth_antibot": {
      "type": "boolean",
      "title": "Stealth Antibot",
      "description": "Stealth antibot was used",
      "default": false
    },
    "stealth_antibot_headful": {
      "type": "boolean",
      "title": "Stealth Antibot Headful",
      "description": "Headful stealth was used",
      "default": false
    },
    "stealth_new": {
      "type": "boolean",
      "title": "Stealth New",
      "description": "New stealth engine was used",
      "default": false
    },
    "stealth_premium": {
      "type": "boolean",
      "title": "Stealth Premium",
      "description": "Premium stealth engine was used",
      "default": false
    },
    "stealth_premium_headful": {
      "type": "boolean",
      "title": "Stealth Premium Headful",
      "description": "Premium stealth headful was used",
      "default": false
    },
    "result": {
      "anyOf": [
        {
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Result",
      "description": "Scrape result (only when status=completed)"
    },
    "error": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Error",
      "description": "Error message (only when status=failed)"
    },
    "attempts": {
      "type": "integer",
      "title": "Attempts",
      "description": "Number of attempts made",
      "default": 0
    },
    "tokens_used": {
      "type": "integer",
      "title": "Tokens Used",
      "description": "Total tokens consumed",
      "default": 0
    }
  },
  "type": "object",
  "required": [
    "job_id",
    "status",
    "url",
    "created_at"
  ]
}