{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/fiatdock-com/json-schema/fiatdock-com-seo-audit-schema.json",
  "title": "SeoAudit",
  "description": "Paid. Technical SEO audit of a web page.",
  "x-generated": "2026-11-07",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/fiatdock-com-openapi.json#/components/schemas/SeoAudit",
  "type": "object",
  "properties": {
    "url": {
      "type": "string",
      "description": "The URL asked for"
    },
    "finalUrl": {
      "type": "string",
      "description": "The page actually audited, after redirects (at most 3, each safety-checked)"
    },
    "status": {
      "type": "number",
      "description": "HTTP status of the page"
    },
    "https": {
      "type": "boolean",
      "description": "Whether the page is served over HTTPS"
    },
    "responseMs": {
      "type": "number",
      "description": "Time to download the page, in ms"
    },
    "htmlBytes": {
      "type": "number",
      "description": "Size of the HTML, in bytes"
    },
    "redirects": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "from": {
            "type": "string"
          },
          "status": {
            "type": "number"
          },
          "to": {
            "type": "string"
          }
        },
        "required": [
          "from",
          "status",
          "to"
        ]
      },
      "description": "Each redirect hop before the page"
    },
    "score": {
      "type": "number",
      "description": "0-100: 100 minus 20 per high, 8 per medium and 3 per low issue"
    },
    "grade": {
      "type": "string",
      "description": "A (90+), B (80+), C (70+), D (60+), F"
    },
    "issues": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "severity": {
            "type": "string",
            "enum": [
              "high",
              "medium",
              "low"
            ]
          },
          "message": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "severity",
          "message"
        ]
      },
      "description": "Every finding, most severe first, with what is wrong"
    },
    "checks": {
      "type": "object",
      "properties": {
        "title": {
          "type": "object",
          "properties": {
            "text": {
              "type": [
                "string",
                "null"
              ]
            },
            "length": {
              "type": "number"
            }
          },
          "required": [
            "text",
            "length"
          ]
        },
        "metaDescription": {
          "type": "object",
          "properties": {
            "text": {
              "type": [
                "string",
                "null"
              ]
            },
            "length": {
              "type": "number"
            }
          },
          "required": [
            "text",
            "length"
          ]
        },
        "canonical": {
          "type": "object",
          "properties": {
            "href": {
              "type": [
                "string",
                "null"
              ]
            },
            "sameHost": {
              "type": [
                "boolean",
                "null"
              ]
            }
          },
          "required": [
            "href",
            "sameHost"
          ]
        },
        "robotsMeta": {
          "type": [
            "string",
            "null"
          ]
        },
        "xRobotsTag": {
          "type": [
            "string",
            "null"
          ]
        },
        "indexable": {
          "type": "boolean"
        },
        "viewport": {
          "type": "boolean"
        },
        "lang": {
          "type": [
            "string",
            "null"
          ]
        },
        "headings": {
          "type": "object",
          "properties": {
            "h1Count": {
              "type": "number"
            },
            "h1": {
              "type": [
                "string",
                "null"
              ]
            },
            "h2Count": {
              "type": "number"
            }
          },
          "required": [
            "h1Count",
            "h1",
            "h2Count"
          ]
        },
        "images": {
          "type": "object",
          "properties": {
            "count": {
              "type": "number"
            },
            "missingAlt": {
              "type": "number"
            }
          },
          "required": [
            "count",
            "missingAlt"
          ]
        },
        "links": {
          "type": "object",
          "properties": {
            "internal": {
              "type": "number"
            },
            "external": {
              "type": "number"
            },
            "nofollow": {
              "type": "number"
            }
          },
          "required": [
            "internal",
            "external",
            "nofollow"
          ]
        },
        "wordCount": {
          "type": "number"
        },
        "openGraph": {
          "type": "object",
          "properties": {
            "title": {
              "type": "boolean"
            },
            "description": {
              "type": "boolean"
            },
            "image": {
              "type": "boolean"
            }
          },
          "required": [
            "title",
            "description",
            "image"
          ]
        },
        "twitterCard": {
          "type": [
            "string",
            "null"
          ]
        },
        "structuredData": {
          "type": "object",
          "properties": {
            "blocks": {
              "type": "number"
            },
            "invalid": {
              "type": "number"
            },
            "types": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          "required": [
            "blocks",
            "invalid",
            "types"
          ]
        },
        "hreflangCount": {
          "type": "number"
        },
        "favicon": {
          "type": "boolean"
        },
        "mixedContentCount": {
          "type": "number"
        }
      },
      "required": [
        "title",
        "metaDescription",
        "canonical",
        "robotsMeta",
        "xRobotsTag",
        "indexable",
        "viewport",
        "lang",
        "headings",
        "images",
        "links",
        "wordCount",
        "openGraph",
        "twitterCard",
        "structuredData",
        "hreflangCount",
        "favicon",
        "mixedContentCount"
      ],
      "description": "The raw on-page measurements behind the issues"
    },
    "robotsTxt": {
      "type": "object",
      "properties": {
        "status": {
          "type": [
            "number",
            "null"
          ]
        },
        "blocksAll": {
          "type": "boolean"
        },
        "disallowRules": {
          "type": "number"
        },
        "sitemaps": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      },
      "required": [
        "status",
        "blocksAll",
        "disallowRules",
        "sitemaps"
      ],
      "description": "What /robots.txt says to every crawler"
    },
    "sitemap": {
      "type": "object",
      "properties": {
        "url": {
          "type": [
            "string",
            "null"
          ]
        },
        "status": {
          "type": [
            "number",
            "null"
          ]
        },
        "urlCount": {
          "type": [
            "number",
            "null"
          ]
        }
      },
      "required": [
        "url",
        "status",
        "urlCount"
      ],
      "description": "The XML sitemap found (from robots.txt, else /sitemap.xml) and how many URLs it lists"
    },
    "checkedAt": {
      "type": "string",
      "description": "ISO time of the audit"
    },
    "note": {
      "type": "string",
      "description": "How the page was read, and the limits"
    },
    "defaulted": {
      "type": "object",
      "properties": {
        "field": {
          "type": "string"
        },
        "to": {
          "type": "string"
        },
        "value": {
          "type": "string"
        },
        "note": {
          "type": "string"
        }
      },
      "required": [
        "field",
        "to",
        "value",
        "note"
      ],
      "description": "Present only when the body was empty: which subject the answer is for, and why"
    }
  },
  "required": [
    "url",
    "finalUrl",
    "status",
    "https",
    "responseMs",
    "htmlBytes",
    "redirects",
    "score",
    "grade",
    "issues",
    "checks",
    "robotsTxt",
    "sitemap",
    "checkedAt",
    "note"
  ]
}