{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/citedby-eu/json-schema/citedby-eu-ai-access-schema.json",
  "title": "AiAccess",
  "x-generated": "2026-11-22",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/citedby-eu-openapi.json#/components/schemas/AiAccess",
  "type": "object",
  "required": [
    "api_version",
    "site",
    "checked_at",
    "robots_txt",
    "summary",
    "crawlers",
    "report_url",
    "audit_url",
    "attribution",
    "docs"
  ],
  "properties": {
    "api_version": {
      "type": "string",
      "enum": [
        "1"
      ]
    },
    "site": {
      "type": "string",
      "description": "The domain that was checked."
    },
    "checked_at": {
      "type": "string",
      "format": "date-time",
      "description": "When CitedBy ran the check, in UTC. A site checked in the last 6 hours returns the stored result, so this can be earlier than your request."
    },
    "robots_txt": {
      "type": "object",
      "required": [
        "state",
        "status",
        "blocks_all_crawlers"
      ],
      "properties": {
        "state": {
          "type": "string",
          "enum": [
            "found",
            "not_found",
            "unreachable",
            "server_error"
          ],
          "description": "found, not_found, unreachable or server_error. Up to 5 redirects are followed, also to another host. If robots.txt cannot be reached or answers with a server error, a crawler has to assume it may not crawl (RFC 9309), so every crawler then shows as disallowed and blocked."
        },
        "status": {
          "type": [
            "integer",
            "null"
          ],
          "description": "The HTTP status robots.txt answered with."
        },
        "blocks_all_crawlers": {
          "type": "boolean",
          "description": "true when the rules for all crawlers (*) close the whole site."
        }
      }
    },
    "summary": {
      "type": "object",
      "required": [
        "total",
        "allowed",
        "blocked"
      ],
      "description": "How many of the 8 crawlers can read the site (allowed), and the names of those that cannot (blocked).",
      "properties": {
        "total": {
          "type": "integer"
        },
        "allowed": {
          "type": "integer"
        },
        "blocked": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "crawlers": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "id",
          "role",
          "robots_txt",
          "robots_txt_rule",
          "server",
          "access"
        ],
        "properties": {
          "id": {
            "type": "string",
            "enum": [
              "GPTBot",
              "OAI-SearchBot",
              "ChatGPT-User",
              "PerplexityBot",
              "ClaudeBot",
              "Google-Extended",
              "Bingbot",
              "Googlebot"
            ],
            "description": "The crawler's name."
          },
          "role": {
            "type": "string",
            "enum": [
              "training",
              "search",
              "user_fetch"
            ],
            "description": "training (collects text to train models), search (can cite your pages in answers) or user_fetch (opens a page when a person asks about it)."
          },
          "robots_txt": {
            "type": "string",
            "enum": [
              "allowed",
              "disallowed"
            ],
            "description": "allowed or disallowed. A robots.txt that could not be reached, or that answers with a server error, counts as disallowed."
          },
          "robots_txt_rule": {
            "type": [
              "string",
              "null"
            ],
            "description": "The robots.txt line that decides for this crawler, or why robots.txt could not be used; null when no line matches."
          },
          "server": {
            "type": "string",
            "enum": [
              "ok",
              "blocked",
              "down",
              "not_tested"
            ],
            "description": "ok, blocked (the server answers this crawler's user-agent with a refusal or a challenge page), down (an error) or not_tested. Google-Extended is a robots.txt token only, so it is never tested on the server."
          },
          "access": {
            "type": "string",
            "enum": [
              "allowed",
              "blocked_by_robots_txt",
              "blocked_by_server",
              "blocked_by_robots_txt_and_server",
              "server_error"
            ],
            "description": "The verdict for this crawler, one of the values below. allowed: the crawler can read the site. blocked_by_robots_txt: robots.txt closes the site to this crawler. blocked_by_server: the server turns this crawler's user-agent away or shows it a challenge page. We send a copy of the user-agent from our own address, so a site that checks crawler IP ranges (Wikipedia does for Googlebot and Bingbot) can refuse it while the real crawler gets in. blocked_by_robots_txt_and_server: both. server_error: the server answered this crawler with an error."
          }
        }
      }
    },
    "report_url": {
      "type": "string",
      "format": "uri",
      "description": "The full result page of the free check for this site."
    },
    "audit_url": {
      "type": "string",
      "format": "uri",
      "description": "Where to audit the whole site."
    },
    "attribution": {
      "type": "object",
      "required": [
        "text",
        "url"
      ],
      "description": "The text and link to show when you display the result (see the terms).",
      "properties": {
        "text": {
          "type": "string"
        },
        "url": {
          "type": "string",
          "format": "uri"
        }
      }
    },
    "docs": {
      "type": "string",
      "format": "uri"
    }
  }
}