{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/publicwww-com/json-schema/publicwww-com-extract-request-schema.json",
  "title": "ExtractRequest",
  "x-generated": "2026-11-22",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/publicwww-com-openapi.json#/components/schemas/ExtractRequest",
  "type": "object",
  "properties": {
    "fields": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "name",
          "social",
          "email",
          "phone",
          "messengers",
          "address",
          "apps",
          "languages",
          "registration"
        ]
      },
      "description": "Groups of values, the same as on the extraction form, read by the same code as the website card: name (columns name and kind - the organization and its kind of business), social, email, phone, messengers, address (columns address and coordinates), apps, languages, registration (company and tax numbers). A column of a field holds up to 10 values of a site. GET /v1/clusters/presets lists them with their columns."
    },
    "presets": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "email",
          "phone",
          "whatsapp",
          "telegram",
          "viber",
          "line",
          "facebook",
          "instagram",
          "x",
          "linkedin",
          "youtube",
          "tiktok",
          "pinterest",
          "threads",
          "bluesky",
          "discord",
          "github",
          "google_play",
          "app_store"
        ]
      },
      "description": "Single networks by name, read the same way as fields. Presets and regex together: up to 10."
    },
    "regex": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "maxItems": 10
    },
    "offset": {
      "type": "integer",
      "minimum": 0,
      "default": 0,
      "description": "A negative offset becomes 0."
    },
    "limit": {
      "type": "integer",
      "minimum": 1,
      "maximum": 1000,
      "default": 1000,
      "description": "Domains to go through in this call. Try a small limit first: every site gone through is paid for. A larger limit is cut to 1000, a smaller one than 1 becomes 1."
    },
    "skip_empty": {
      "type": "boolean",
      "default": true,
      "description": "Leave out sites where nothing matched; false lists them too, with empty values."
    },
    "format": {
      "type": "string",
      "enum": [
        "json",
        "xml",
        "csv"
      ],
      "default": "json",
      "description": "tsv and txt are 400 format_not_available."
    },
    "delimiter": {
      "type": "string",
      "default": ",",
      "description": "format=csv: the character between fields."
    },
    "header": {
      "type": "boolean",
      "default": false,
      "description": "format=csv: a first line with domain and the column names."
    }
  }
}