{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/ctlsurf-com/json-schema/ctlsurf-com-backlinks-response-schema.json",
  "title": "BacklinksResponse",
  "description": "Response for backlinks query.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/ctlsurf-com-links-api-openapi.yml#/components/schemas/BacklinksResponse",
  "properties": {
    "page_id": {
      "type": "string",
      "title": "Page Id"
    },
    "page_title": {
      "type": "string",
      "title": "Page Title"
    },
    "links": {
      "items": {
        "$ref": "#/$defs/BacklinkItem"
      },
      "type": "array",
      "title": "Links"
    },
    "count": {
      "type": "integer",
      "title": "Count"
    }
  },
  "type": "object",
  "required": [
    "page_id",
    "page_title",
    "links",
    "count"
  ],
  "$defs": {
    "BacklinkItem": {
      "properties": {
        "source_page_id": {
          "type": "string",
          "title": "Source Page Id"
        },
        "source_page_title": {
          "type": "string",
          "title": "Source Page Title"
        },
        "source_block_id": {
          "type": "string",
          "title": "Source Block Id"
        },
        "link_text": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Link Text"
        }
      },
      "type": "object",
      "required": [
        "source_page_id",
        "source_page_title",
        "source_block_id",
        "link_text"
      ],
      "title": "BacklinkItem",
      "description": "A single backlink entry."
    }
  }
}