{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/rankparse-com/json-schema/rankparse-com-page-performance-data-schema.json",
  "title": "PagePerformanceData",
  "x-generated": "2026-11-22",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/rankparse-com-openapi.yaml#/components/schemas/PagePerformanceData",
  "type": "object",
  "properties": {
    "url": {
      "type": "string"
    },
    "strategy": {
      "type": "string",
      "enum": [
        "mobile",
        "desktop"
      ]
    },
    "performance_score": {
      "type": [
        "number",
        "null"
      ],
      "minimum": 0,
      "maximum": 1
    },
    "accessibility_score": {
      "type": [
        "number",
        "null"
      ],
      "minimum": 0,
      "maximum": 1
    },
    "seo_score": {
      "type": [
        "number",
        "null"
      ],
      "minimum": 0,
      "maximum": 1
    },
    "best_practices_score": {
      "type": [
        "number",
        "null"
      ],
      "minimum": 0,
      "maximum": 1
    },
    "metrics": {
      "type": "object",
      "properties": {
        "first_contentful_paint": {
          "$ref": "#/$defs/PagePerformanceMetric"
        },
        "largest_contentful_paint": {
          "$ref": "#/$defs/PagePerformanceMetric"
        },
        "total_blocking_time": {
          "$ref": "#/$defs/PagePerformanceMetric"
        },
        "cumulative_layout_shift": {
          "$ref": "#/$defs/PagePerformanceMetric"
        },
        "speed_index": {
          "$ref": "#/$defs/PagePerformanceMetric"
        },
        "time_to_interactive": {
          "$ref": "#/$defs/PagePerformanceMetric"
        }
      }
    }
  },
  "$defs": {
    "PagePerformanceMetric": {
      "type": "object",
      "properties": {
        "value": {
          "type": "number"
        },
        "display_value": {
          "type": "string"
        },
        "score": {
          "type": [
            "number",
            "null"
          ]
        }
      }
    }
  }
}