{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "total": {
      "anyOf": [
        {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        {
          "type": "null"
        }
      ]
    },
    "has_more": {
      "type": "boolean",
      "description": "True when another page is available."
    },
    "next_cursor": {
      "anyOf": [
        {
          "type": "string",
          "description": "Opaque continuation for the same listing; null means no further page."
        },
        {
          "type": "null"
        }
      ],
      "description": "Opaque continuation for the same listing; null means no further page."
    },
    "page": {
      "type": "object",
      "properties": {
        "limit": {
          "type": "integer",
          "exclusiveMinimum": 0,
          "maximum": 9007199254740991
        },
        "sort": {
          "type": "string"
        },
        "order": {
          "type": "string",
          "enum": [
            "asc",
            "desc"
          ]
        },
        "total": {
          "anyOf": [
            {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            {
              "type": "null"
            }
          ]
        },
        "query_scope": {
          "type": "string",
          "const": "server_dataset"
        },
        "nulls": {
          "type": "string",
          "const": "last"
        }
      },
      "required": [
        "limit",
        "sort",
        "order",
        "total",
        "query_scope",
        "nulls"
      ],
      "additionalProperties": false
    },
    "schema_version": {
      "anyOf": [
        {
          "type": "number",
          "const": 1
        },
        {
          "type": "number",
          "const": 2
        }
      ]
    },
    "baseline_run_id": {
      "type": "string"
    },
    "discovery_run_id": {
      "type": "string"
    },
    "scope": {
      "type": "object",
      "properties": {
        "domain": {
          "type": "string",
          "minLength": 1,
          "maxLength": 253
        },
        "include_subdomains": {
          "type": "boolean"
        },
        "website_revision": {
          "type": "string",
          "pattern": "^[a-f0-9]{64}$"
        },
        "query_version": {
          "type": "string",
          "const": "dataforseo-as-is-v1"
        }
      },
      "required": [
        "domain",
        "include_subdomains",
        "website_revision",
        "query_version"
      ],
      "additionalProperties": false
    },
    "coverage": {
      "type": "object",
      "properties": {
        "whole_web": {
          "type": "boolean",
          "const": false
        },
        "sample": {
          "type": "boolean",
          "const": true,
          "description": "Whether the result is a sample. Read coverage for the limits of that sample."
        },
        "ordering": {
          "type": "string",
          "const": "rank,desc"
        },
        "reason": {
          "anyOf": [
            {
              "type": "string",
              "maxLength": 80,
              "description": "Recorded explanation; null when no explanation applies."
            },
            {
              "type": "null"
            }
          ],
          "description": "Recorded explanation; null when no explanation applies."
        }
      },
      "required": [
        "whole_web",
        "sample",
        "ordering",
        "reason"
      ],
      "additionalProperties": false,
      "description": "Dataset scope and completeness, including limits on what these results establish."
    },
    "by": {
      "type": "string",
      "enum": [
        "referring_site",
        "anchor"
      ]
    },
    "items": {
      "maxItems": 100,
      "type": "array",
      "items": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "key": {
                "type": "string",
                "description": "Saved lookup identifier within this record."
              },
              "site": {
                "type": "string"
              },
              "links": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "live": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "not_found": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "couldnt_check": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "not_checked": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "dofollow": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "nofollow": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "monitored": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "share": {
                "type": "number",
                "minimum": 0,
                "maximum": 1
              },
              "authority": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 1000
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "spam": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 100
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "first_seen": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "anchors": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "top_anchor": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "key",
              "site",
              "links",
              "live",
              "not_found",
              "couldnt_check",
              "not_checked",
              "dofollow",
              "nofollow",
              "monitored",
              "share",
              "authority",
              "spam",
              "first_seen",
              "anchors",
              "top_anchor"
            ],
            "additionalProperties": false,
            "description": "Records in this bounded page."
          },
          {
            "type": "object",
            "properties": {
              "key": {
                "type": "string",
                "description": "Saved lookup identifier within this record."
              },
              "anchor": {
                "type": "string"
              },
              "anchor_kind": {
                "type": "string",
                "enum": [
                  "empty",
                  "url",
                  "brand",
                  "generic",
                  "text"
                ]
              },
              "links": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "live": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "not_found": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "couldnt_check": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "not_checked": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "dofollow": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "nofollow": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "monitored": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "share": {
                "type": "number",
                "minimum": 0,
                "maximum": 1
              },
              "sites": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "spam": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 100
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "key",
              "anchor",
              "anchor_kind",
              "links",
              "live",
              "not_found",
              "couldnt_check",
              "not_checked",
              "dofollow",
              "nofollow",
              "monitored",
              "share",
              "sites",
              "spam"
            ],
            "additionalProperties": false,
            "description": "Records in this bounded page."
          }
        ],
        "description": "Records in this bounded page."
      },
      "description": "Records in this bounded page."
    },
    "truncated": {
      "type": "boolean"
    },
    "review": {
      "type": "object",
      "properties": {
        "filters": {
          "type": "object",
          "properties": {
            "follow": {
              "type": "string",
              "enum": [
                "dofollow",
                "nofollow"
              ]
            },
            "check": {
              "type": "string",
              "enum": [
                "live",
                "not_found",
                "couldnt_check",
                "not_checked"
              ]
            },
            "minAuthority": {
              "type": "integer",
              "minimum": -9007199254740991,
              "maximum": 9007199254740991
            },
            "maxSpam": {
              "type": "integer",
              "minimum": -9007199254740991,
              "maximum": 9007199254740991
            },
            "newSinceLastSearch": {
              "type": "boolean",
              "const": true
            },
            "site": {
              "type": "string"
            },
            "anchor": {
              "type": "string"
            }
          },
          "additionalProperties": false
        },
        "retrieved": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "matched": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "previous_baseline_run_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "previous_search_at": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "previous_search_rows": {
          "anyOf": [
            {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "filters",
        "retrieved",
        "matched",
        "previous_baseline_run_id",
        "previous_search_at",
        "previous_search_rows"
      ],
      "additionalProperties": false
    },
    "anchor_pattern": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "anchor": {
              "type": "string"
            },
            "anchor_normalized": {
              "type": "string"
            },
            "links": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            "sites": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            "share": {
              "type": "number",
              "minimum": 0,
              "maximum": 1
            },
            "rows": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            "threshold": {
              "type": "object",
              "properties": {
                "min_share": {
                  "type": "number"
                },
                "min_sites": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                }
              },
              "required": [
                "min_share",
                "min_sites"
              ],
              "additionalProperties": false
            },
            "review_signal": {
              "type": "boolean",
              "const": true
            },
            "disavow_recommended": {
              "type": "boolean",
              "const": false
            }
          },
          "required": [
            "anchor",
            "anchor_normalized",
            "links",
            "sites",
            "share",
            "rows",
            "threshold",
            "review_signal",
            "disavow_recommended"
          ],
          "additionalProperties": false
        },
        {
          "type": "null"
        }
      ]
    },
    "snapshot": {
      "type": "object",
      "properties": {
        "through_provider_page": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        },
        "refresh_from_start_for_new_results": {
          "type": "boolean",
          "const": true
        }
      },
      "required": [
        "through_provider_page",
        "refresh_from_start_for_new_results"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "has_more",
    "next_cursor",
    "schema_version",
    "baseline_run_id",
    "discovery_run_id",
    "scope",
    "coverage",
    "by",
    "items",
    "truncated",
    "review",
    "anchor_pattern",
    "snapshot"
  ],
  "additionalProperties": false
}
