{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/publicwww-com/json-schema/publicwww-com-extract-response-schema.json",
  "title": "ExtractResponse",
  "x-generated": "2026-11-22",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/publicwww-com-openapi.json#/components/schemas/ExtractResponse",
  "type": "object",
  "required": [
    "cluster",
    "offset",
    "scanned",
    "next_offset",
    "columns",
    "regex",
    "points_used",
    "points_left",
    "rows"
  ],
  "properties": {
    "cluster": {
      "type": "integer"
    },
    "name": {
      "type": "string"
    },
    "size": {
      "type": "integer",
      "description": "Domains in the whole cluster."
    },
    "offset": {
      "type": "integer",
      "description": "Where this call started."
    },
    "scanned": {
      "type": "integer",
      "description": "Domains gone through in this call."
    },
    "in_index": {
      "type": "integer",
      "description": "How many of the scanned domains are in the index. A domain that is not gives no row and costs nothing."
    },
    "with_matches": {
      "type": "integer",
      "description": "How many of those gave at least one value."
    },
    "next_offset": {
      "type": [
        "integer",
        "null"
      ],
      "description": "Pass as offset to continue; null when the cluster is done."
    },
    "remaining": {
      "type": "integer",
      "description": "How many sites of the cluster are still ahead of this call."
    },
    "columns": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Names of the lists in each row's values, in the same order: the columns of the fields (name, kind, social, email...), then a preset by its name, your own expressions as regexp_1, regexp_2..."
    },
    "regex": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Your own expressions applied, one column each."
    },
    "points_used": {
      "type": "number",
      "description": "Extraction points this call spent. Every call is paid for, a repeat of the same sites too."
    },
    "points_left": {
      "type": "integer",
      "description": "Extraction points left today."
    },
    "stopped": {
      "type": "string",
      "enum": [
        "extract_quota_exceeded",
        "time_limit"
      ],
      "description": "Present when the call stopped early: time_limit - continue with next_offset; extract_quota_exceeded - the day's points ran out."
    },
    "rows": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "domain",
          "values",
          "matches"
        ],
        "properties": {
          "domain": {
            "type": "string"
          },
          "values": {
            "type": "array",
            "items": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "description": "One list per column, in the order of columns."
          },
          "matches": {
            "type": "integer",
            "description": "Values in this row. The site cost 1 point if there are any, 0.1 if none."
          }
        }
      }
    }
  }
}