{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/google-indexing/json-schema/google-indexing-url-notification-metadata-schema.json",
  "title": "UrlNotificationMetadata",
  "description": "Summary of the most recent Indexing API notifications successfully received, for a given URL.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/google-indexing-url-notifications-api-openapi.yml#/components/schemas/UrlNotificationMetadata",
  "type": "object",
  "properties": {
    "url": {
      "description": "URL to which this metadata refers.",
      "type": "string"
    },
    "latestRemove": {
      "$ref": "#/$defs/UrlNotification",
      "description": "Latest notification received with type `URL_REMOVED`."
    },
    "latestUpdate": {
      "$ref": "#/$defs/UrlNotification",
      "description": "Latest notification received with type `URL_UPDATED`."
    }
  },
  "$defs": {
    "UrlNotification": {
      "properties": {
        "type": {
          "enum": [
            "URL_NOTIFICATION_TYPE_UNSPECIFIED",
            "URL_UPDATED",
            "URL_DELETED"
          ],
          "description": "The URL life cycle event that Google is being notified about.",
          "type": "string"
        },
        "url": {
          "type": "string",
          "description": "The object of this notification. The URL must be owned by the publisher of this notification and, in case of `URL_UPDATED` notifications, it _must_ be crawlable by Google."
        },
        "notifyTime": {
          "type": "string",
          "description": "Creation timestamp for this notification. Users should _not_ specify it, the field is ignored at the request time.",
          "format": "google-datetime"
        }
      },
      "type": "object",
      "description": "`UrlNotification` is the resource used in all Indexing API calls. It describes one event in the life cycle of a Web Document."
    }
  }
}