Method: hashLists.list
Stay organized with collections
Save and categorize content based on your preferences.
List hash lists.
In the V5 API, Google will never remove a hash list that has ever been returned by this method. This enables clients to skip using this method and simply hard-code all hash lists they need.
This is a standard List method as defined by https://google.aip.dev/132 and the HTTP method is GET.
HTTP request
GET https://safebrowsing.googleapis.com/v5alpha1/hashLists
The URL uses gRPC Transcoding syntax.
Query parameters
Parameters |
pageSize |
integer
The maximum number of hash lists to return. The service may return fewer than this value. If unspecified, the server will choose a page size, which may be larger than the number of hash lists so that pagination is not necessary.
|
pageToken |
string
A page token, received from a previous hashLists.list call. Provide this to retrieve the subsequent page.
|
Request body
The request body must be empty.
Response body
The response containing metadata about hash lists.
If successful, the response body contains data with the following structure:
JSON representation |
{
"hashLists": [
{
object (HashList )
}
],
"nextPageToken": string
} |
Fields |
hashLists[] |
object (HashList )
The hash lists in an arbitrary order. Only metadata about the hash lists will be included, not the contents.
|
nextPageToken |
string
A token, which can be sent as pageToken to retrieve the next page. If this field is omitted, there are no subsequent pages.
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-18 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-09-18 UTC."],[[["Retrieves a list of available hash lists with metadata, excluding their contents."],["Allows for pagination to retrieve large sets of hash lists using `pageSize` and `pageToken`."],["Google guarantees that hash lists once returned will never be removed, enabling client-side hardcoding."],["Employs standard List method with a GET request to `https://safebrowsing.googleapis.com/v5alpha1/hashLists`."],["Response includes details about each hash list and a token for retrieving subsequent pages if available."]]],["This document details the process for retrieving metadata about hash lists using the V5 API's `hashLists.list` method. It uses an HTTP GET request to `https://safebrowsing.googleapis.com/v5alpha1/hashLists`. Optional query parameters include `pageSize` to limit results and `pageToken` for pagination. The request body must be empty. The response body includes an array of `hashLists` and an optional `nextPageToken` for subsequent pages. The API never removes returned hash lists.\n"]]