{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/nautilinks-co/json-schema/nautilinks-co-catalog-response-schema.json",
  "title": "CatalogResponse",
  "x-generated": "2026-11-19",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/nautilinks-co-openapi.json#/components/schemas/CatalogResponse",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "ok",
    "count",
    "total",
    "limit",
    "offset",
    "sites",
    "shelves"
  ],
  "properties": {
    "ok": {
      "type": "boolean",
      "const": true
    },
    "count": {
      "type": "integer",
      "minimum": 0
    },
    "total": {
      "type": "integer",
      "minimum": 0
    },
    "limit": {
      "type": "integer",
      "minimum": 1
    },
    "offset": {
      "type": "integer",
      "minimum": 0
    },
    "sites": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Site"
      }
    },
    "shelves": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "Plancton",
        "Corail",
        "Nautilus"
      ],
      "properties": {
        "Plancton": {
          "$ref": "#/$defs/ShelfInfo"
        },
        "Corail": {
          "$ref": "#/$defs/ShelfInfo"
        },
        "Nautilus": {
          "$ref": "#/$defs/ShelfInfo"
        }
      }
    }
  },
  "$defs": {
    "PriceShelf": {
      "type": "string",
      "enum": [
        "Plancton",
        "Corail",
        "Nautilus"
      ]
    },
    "ShelfInfo": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "price_eur",
        "description"
      ],
      "properties": {
        "price_eur": {
          "type": "number",
          "minimum": 0
        },
        "description": {
          "type": "string"
        }
      }
    },
    "Site": {
      "type": "object",
      "additionalProperties": true,
      "required": [
        "id",
        "niche_label",
        "language",
        "price_eur",
        "price_shelf"
      ],
      "properties": {
        "id": {
          "type": "integer",
          "minimum": 1
        },
        "domain": {
          "type": [
            "string",
            "null"
          ]
        },
        "niche_label": {
          "type": "string"
        },
        "category": {
          "type": [
            "string",
            "null"
          ]
        },
        "language": {
          "type": "string"
        },
        "tf": {
          "type": [
            "integer",
            "null"
          ],
          "minimum": 0
        },
        "cf": {
          "type": [
            "integer",
            "null"
          ],
          "minimum": 0
        },
        "rd": {
          "type": [
            "integer",
            "null"
          ],
          "minimum": 0
        },
        "moz_da": {
          "type": [
            "integer",
            "null"
          ],
          "minimum": 0
        },
        "traffic_monthly": {
          "type": [
            "integer",
            "null"
          ],
          "minimum": 0
        },
        "keywords_ranked": {
          "type": [
            "integer",
            "null"
          ],
          "minimum": 0
        },
        "price_eur": {
          "type": [
            "number",
            "null"
          ],
          "minimum": 0
        },
        "price_shelf": {
          "oneOf": [
            {
              "$ref": "#/$defs/PriceShelf"
            },
            {
              "type": "null"
            }
          ]
        }
      }
    }
  }
}