{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/serpkite-com/json-schema/serpkite-com-chat-gptrequest-schema.json",
  "title": "ChatGPTRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/serpkite-com-chatgpt-api-openapi.yml#/components/schemas/ChatGPTRequest",
  "type": "object",
  "required": [
    "prompt"
  ],
  "properties": {
    "prompt": {
      "type": "string",
      "minLength": 1,
      "maxLength": 4000,
      "description": "The message to ChatGPT"
    },
    "web_search": {
      "type": "boolean",
      "default": true,
      "description": "Make ChatGPT search the web; false lets it decide (it then searches for about two thirds of shopping and local prompts)"
    },
    "country": {
      "type": "string",
      "description": "Ask as a visitor in this country (ISO 3166-1 alpha-2). Without it the visitor is usually in the US or EU"
    },
    "track": {
      "$ref": "#/$defs/TrackList"
    },
    "include_html": {
      "type": "boolean",
      "default": false
    },
    "format": {
      "type": "string",
      "enum": [
        "json",
        "markdown",
        "compact"
      ],
      "default": "json"
    },
    "fields": {
      "type": "string"
    },
    "max_age": {
      "type": "integer",
      "minimum": 0,
      "maximum": 2592000
    }
  },
  "$defs": {
    "TrackList": {
      "type": "array",
      "maxItems": 20,
      "items": {
        "type": "string",
        "maxLength": 100
      },
      "description": "Brands (\"Acme\") and domains (\"acme.com\", subdomains match) to check the answer for; each comes back in `mentions`"
    }
  }
}