Get Safe Browsing lists
The request returns information about the up-to-date Yandex-hosted Safe Browsing lists.
Safe Browsing lists consist of variable length SHA-256 hash prefixes (from 4 to 32 bytes) mapped to URLs of internet resources that pose threats to users. Each list is identified by the following parameters:
- Type of alleged threat
- Platform susceptible to threat
- Type of object posing a threat
Lists are generated and supported by Yandex. To learn about computing hashes, see URL and hashing.
Request format
GET https://sba.yandex.net/v4/threatLists
? key=<API key>
key* |
API key value. |
* Required
The response format is shown below. The sequence and presence of elements is not guaranteed. The response may contain auxiliary parameters not described in this document.
Response format
The response body contains a list of all up-to-date Safe Browsing lists with the parameters that identify each of them.
The resulting values are used in the request parameters:
{
"threatLists": [
{
"threatType": "{еnum}",
"platformType": "{еnum}",
"threatEntryType": "{еnum}"
}
]
}
threatLists |
Updated Safe Browsing lists. Array of objects. |
-
threatType*
Type of threat.
Possible values:
-
THREAT_TYPE_UNSPECIFIED
: An unknown type of threat. -
MALWARE
: Malicious software. -
SOCIAL_ENGINEERING
: A threat related to social engineering. -
UNWANTED_SOFTWARE
: Unwanted software. -
POTENTIALLY_HARMFUL_APPLICATION
: An application that may pose a threat.
platformType*
A platform susceptible to the threat.
Possible values:
-
PLATFORM_TYPE_UNSPECIFIED
: An unknown platform. -
WINDOWS
: A Windows operating system. -
LINUX
: A Linux operating system. -
ANDROID
: An Android operating system. -
OSX
: An OS X operating system. -
IOS
: An iOS operating system. -
ANY_PLATFORM
: At least one platform from the list. -
ALL_PLATFORMS
: All platforms. -
CHROME
: A Chrome platform.
threatEntryType*
The type of object that poses a threat.
Possible values:
-
THREAT_ENTRY_TYPE_UNSPECIFIED
: The threat type is unknown. -
URL
: A URL address. -
EXECUTABLE
: An executable program.
-
* Required
Example
Request:
https://sba.yandex.net/v4/threatLists?key=2f8...8ea
Response:
{
"threatLists": [
{
"threatType": "MALWARE",
"platformType": "WINDOWS",
"threatEntryType": "URL"
},
{
"threatType": "MALWARE",
"platformType": "LINUX",
"threatEntryType": "URL"
}
]
}
Possible values:
-
THREAT_ENTRY_TYPE_UNSPECIFIED
: The threat type is unknown. -
URL
: A URL address. -
EXECUTABLE
: An executable program.
Possible values:
-
THREAT_TYPE_UNSPECIFIED
: An unknown type of threat. -
MALWARE
: Malicious software. -
SOCIAL_ENGINEERING
: A threat related to social engineering. -
UNWANTED_SOFTWARE
: Unwanted software. -
POTENTIALLY_HARMFUL_APPLICATION
: An application that may pose a threat.
Possible values:
-
PLATFORM_TYPE_UNSPECIFIED
: An unknown platform. -
WINDOWS
: A Windows operating system. -
LINUX
: A Linux operating system. -
ANDROID
: An Android operating system. -
OSX
: An OS X operating system. -
IOS
: An iOS operating system. -
ANY_PLATFORM
: At least one platform from the list. -
ALL_PLATFORMS
: All platforms. -
CHROME
: A Chrome platform.
API key value.
* Required
Updated Safe Browsing lists. Array of objects.
Type of threat.
Possible values:
-
THREAT_TYPE_UNSPECIFIED
: An unknown type of threat. -
MALWARE
: Malicious software. -
SOCIAL_ENGINEERING
: A threat related to social engineering. -
UNWANTED_SOFTWARE
: Unwanted software. -
POTENTIALLY_HARMFUL_APPLICATION
: An application that may pose a threat.
A platform susceptible to the threat.
Possible values:
-
PLATFORM_TYPE_UNSPECIFIED
: An unknown platform. -
WINDOWS
: A Windows operating system. -
LINUX
: A Linux operating system. -
ANDROID
: An Android operating system. -
OSX
: An OS X operating system. -
IOS
: An iOS operating system. -
ANY_PLATFORM
: At least one platform from the list. -
ALL_PLATFORMS
: All platforms. -
CHROME
: A Chrome platform.
The type of object that poses a threat.
Possible values:
-
THREAT_ENTRY_TYPE_UNSPECIFIED
: The threat type is unknown. -
URL
: A URL address. -
EXECUTABLE
: An executable program.