{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/google-safe-browsing/json-schema/google-safe-browsing-google-security-safebrowsing-v5-search-urls-response-schema.json",
  "title": "GoogleSecuritySafebrowsingV5SearchUrlsResponse",
  "description": "The response returned after searching threats matching the specified URLs. If nothing is found, the server will return an OK status (HTTP status code 200) with the `threats` field empty, rather than returning a NOT_FOUND status (HTTP status code 404).",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/google-safe-browsing-safebrowsing-urls-api-openapi.yml#/components/schemas/GoogleSecuritySafebrowsingV5SearchUrlsResponse",
  "properties": {
    "threats": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/GoogleSecuritySafebrowsingV5ThreatUrl"
      },
      "description": "Unordered list. The unordered list of threat matches found. Each entry contains a URL and the threat types that were found matching that URL. The list size can be greater than the number of URLs in the request as the all expressions of the URL would've been considered."
    },
    "cacheDuration": {
      "type": "string",
      "description": "The client-side cache duration. The client MUST add this duration to the current time to determine the expiration time. The expiration time then applies to every URL queried by the client in the request, regardless of how many URLs are returned in the response. Even if the server returns no matches for a particular URL, this fact MUST also be cached by the client. If and only if the field `threats` is empty, the client MAY increase the `cache_duration` to determine a new expiration that is later than that specified by the server. In any case, the increased cache duration must not be longer than 24 hours. Important: the client MUST NOT assume that the server will return the same cache duration for all responses. The server MAY choose different cache durations for different responses depending on the situation.",
      "format": "google-duration"
    }
  },
  "type": "object",
  "$defs": {
    "GoogleSecuritySafebrowsingV5ThreatUrl": {
      "type": "object",
      "description": "A URL matching one or more threats.",
      "properties": {
        "threatTypes": {
          "items": {
            "type": "string",
            "enum": [
              "THREAT_TYPE_UNSPECIFIED",
              "MALWARE",
              "SOCIAL_ENGINEERING",
              "UNWANTED_SOFTWARE",
              "POTENTIALLY_HARMFUL_APPLICATION"
            ]
          },
          "type": "array",
          "description": "Unordered list. The unordered list of threat that the URL is classified as."
        },
        "url": {
          "description": "The requested URL that was matched by one or more threats.",
          "type": "string"
        }
      }
    }
  }
}