{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/ayrank-com/json-schema/ayrank-com-internal-link-response-schema.json",
  "title": "InternalLinkResponse",
  "x-generated": "2026-12-02",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/ayrank-com-openapi.json#/components/schemas/InternalLinkResponse",
  "type": "object",
  "required": [
    "input",
    "finalUrl",
    "status",
    "redirects",
    "error",
    "report",
    "limits",
    "checkedAt",
    "poweredBy"
  ],
  "properties": {
    "input": {
      "type": "string"
    },
    "finalUrl": {
      "type": "string",
      "description": "URL that answered after redirects. It decides what is internal, and links are resolved against it (or its base href)."
    },
    "status": {
      "type": [
        "integer",
        "null"
      ]
    },
    "redirects": {
      "type": "integer"
    },
    "error": {
      "type": [
        "string",
        "null"
      ],
      "description": "timeout, network, too-many-redirects, not-html or null."
    },
    "contentType": {
      "type": "string"
    },
    "truncated": {
      "type": "boolean",
      "description": "The page was larger than the read cap."
    },
    "report": {
      "type": [
        "object",
        "null"
      ],
      "description": "Null unless the page answered 2xx with HTML. { siteUrl, siteFrom, links, total, targets, uncrawlable, uncrawlableTotal, summary, issues, title, textChars }. Each link is { index, url, fragment, text, source (text, alt, aria-label, title or empty), rel, region (main, nav, header, footer, aside or null), flags (empty-anchor, generic-anchor, nofollow, self-link), severity (error, warning, note or null) }. Each target is { url, count, anchors [{ text, source, count }], rows, mixed, severity }. Each uncrawlable item is { index, reason (no-href, javascript-href, no-destination, invalid-href, href-not-a, script-click), code, text, region }. summary is { anchors, internal, external, inPage, other, uncrawlable, uniqueInternal, main, navigation, unmarked, nofollowInternal }. Each issue is { code (empty-anchor, generic-anchor, not-crawlable, nofollow, self-link, mixed-anchors, no-internal-links, little-text), severity, count, at (link or uncrawlable indexes, at most 20) }. There is no score field."
    },
    "limits": {
      "type": "object",
      "description": "The caps used for this call."
    },
    "checkedAt": {
      "type": "string",
      "format": "date-time"
    },
    "poweredBy": {
      "$ref": "#/$defs/PoweredBy"
    }
  },
  "$defs": {
    "PoweredBy": {
      "type": "object",
      "required": [
        "text",
        "url"
      ],
      "properties": {
        "text": {
          "type": "string",
          "const": "Powered by AY Rank"
        },
        "url": {
          "type": "string",
          "format": "uri"
        }
      }
    }
  }
}