{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/parallel-ai/json-schema/parallel-ai-v1-extract-response-schema.json",
  "title": "V1ExtractResponse",
  "description": "Extract response.",
  "x-generated": "2026-11-17",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/parallel-ai-extract-api-openapi.yml#/components/schemas/V1ExtractResponse",
  "properties": {
    "extract_id": {
      "type": "string",
      "title": "Extract Id",
      "description": "Extract request ID, e.g. `extract_cad0a6d2dec046bd95ae900527d880e7`"
    },
    "results": {
      "items": {
        "$ref": "#/$defs/V1ExtractResult"
      },
      "type": "array",
      "title": "Results",
      "description": "Successful extract results."
    },
    "errors": {
      "items": {
        "$ref": "#/$defs/ExtractError"
      },
      "type": "array",
      "title": "Errors",
      "description": "Extract errors: requested URLs not in the results."
    },
    "warnings": {
      "anyOf": [
        {
          "items": {
            "$ref": "#/$defs/Warning"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Warnings",
      "description": "Warnings for the extract request, if any."
    },
    "usage": {
      "anyOf": [
        {
          "items": {
            "$ref": "#/$defs/UsageItem"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Usage",
      "description": "Usage metrics for the extract request."
    },
    "session_id": {
      "type": "string",
      "title": "Session Id",
      "description": "Session identifier. Echoed back from the request if provided, otherwise generated by the server. Should be passed to future search and extract calls made by the agent as part of the same larger task."
    }
  },
  "type": "object",
  "required": [
    "extract_id",
    "results",
    "errors",
    "session_id"
  ],
  "$defs": {
    "ExtractError": {
      "properties": {
        "url": {
          "type": "string",
          "title": "Url"
        },
        "error_type": {
          "type": "string",
          "title": "Error Type",
          "description": "Error type."
        },
        "http_status_code": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Http Status Code",
          "description": "HTTP status code, if available."
        },
        "content": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Content",
          "description": "Content returned for http client or server errors, if any."
        }
      },
      "type": "object",
      "required": [
        "url",
        "error_type",
        "http_status_code",
        "content"
      ],
      "title": "ExtractError",
      "description": "Extract error details."
    },
    "UsageItem": {
      "properties": {
        "name": {
          "type": "string",
          "title": "Name",
          "description": "Name of the SKU."
        },
        "count": {
          "type": "integer",
          "title": "Count",
          "description": "Count of the SKU."
        }
      },
      "type": "object",
      "required": [
        "name",
        "count"
      ],
      "title": "UsageItem",
      "description": "Usage item for a single operation."
    },
    "V1ExtractResult": {
      "properties": {
        "url": {
          "type": "string",
          "title": "Url",
          "description": "URL associated with the search result."
        },
        "title": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Title",
          "description": "Title of the webpage, if available."
        },
        "publish_date": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Publish Date",
          "description": "Publish date of the webpage in YYYY-MM-DD format, if available."
        },
        "excerpts": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "title": "Excerpts",
          "description": "Relevant excerpted content from the URL, formatted as markdown."
        },
        "full_content": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Full Content",
          "description": "Full content from the URL formatted as markdown, if requested."
        }
      },
      "type": "object",
      "required": [
        "url",
        "excerpts"
      ],
      "title": "V1ExtractResult",
      "description": "Extract result for a single URL."
    },
    "Warning": {
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "spec_validation_warning",
            "input_validation_warning",
            "warning"
          ],
          "title": "Type",
          "description": "Type of warning. Note that adding new warning types is considered a backward-compatible change."
        },
        "message": {
          "type": "string",
          "title": "Message",
          "description": "Human-readable message."
        },
        "detail": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "title": "Detail",
          "description": "Optional detail supporting the warning."
        }
      },
      "type": "object",
      "required": [
        "type",
        "message"
      ],
      "title": "Warning",
      "description": "Human-readable message for a task."
    }
  }
}