{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/agentseo-dev/json-schema/agentseo-dev-domain-intersection-params-schema.json",
  "title": "DomainIntersectionParams",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/agentseo-dev-domain-api-openapi.yml#/components/schemas/DomainIntersectionParams",
  "type": "object",
  "required": [
    "target1",
    "target2"
  ],
  "properties": {
    "target1": {
      "type": "string",
      "minLength": 1,
      "description": "First domain or URL to inspect."
    },
    "target2": {
      "type": "string",
      "minLength": 1,
      "description": "Second domain or URL to compare against."
    },
    "location": {
      "type": "string",
      "default": "United States",
      "description": "Human-friendly search market. If provided with location_code, location_code wins."
    },
    "location_code": {
      "type": "integer",
      "minimum": 1,
      "description": "Optional provider location code for deterministic geo-targeting."
    },
    "language": {
      "type": "string",
      "default": "en"
    },
    "limit": {
      "type": "integer",
      "minimum": 5,
      "maximum": 250,
      "default": 25
    },
    "intersections": {
      "type": "boolean",
      "default": true,
      "description": "true returns shared keywords; false returns keywords where target1 ranks and target2 does not."
    },
    "min_search_volume": {
      "type": "integer",
      "minimum": 0,
      "maximum": 10000000,
      "default": 0
    },
    "sort_by": {
      "type": "string",
      "enum": [
        "opportunity",
        "search_volume",
        "traffic_gap",
        "rank_gap",
        "cpc"
      ],
      "default": "opportunity"
    }
  }
}