Get access to 30+ marketing and SEO tools. analyze competitors, keywords, and backlinks for free..
Sign in Sign Up

We use cookies to make Serpstat better. By clicking "Accept cookies", you agree to the storing of cookies on your device to enhance site navigation, analyze site usage, and assist in our marketing efforts. Learn more

Malicious pages (getThreatsLinks)

The getThreatsLinks method returns a list of links from malicious sites referring to the analyzed domain. The data set is similar to the Malicious sites report.

General request parameters and instructions for using Serpstat API

Request parameters
Parameter Description Default
id required A request id. Any number or string value is allowed.
method required API method name: SerpstatBacklinksProcedure.getThreatsLinks
params required The array with parameters {...}, it lists all the following parameters and arrays.
query required A domain of the analyzed site. Specify the domain without http/ https и "/".
page optional A page number. Numbers are allowed. 1
size optional A number of results. Numbers are allowed. 100
sort optional Sort:
* lastupdate - date of the first detection
* url_from - the URL of the malicious domain
* url_to - target URL
* platform_type - the platform for which the site is a threat
* threat_type - a type of vulnerability 
order optional Order:
asc - in the ascending order
desc - in the descending order
desc
complexFilter optional

Data filtering, entered as arrays. Available columns:
* lastupdate - date of the first detection
* url_from - the URL of the malicious domain
* url_to - target URL
* platform_type - the platform for which the site is a threat:
1 - windows
2 - linux
3 - android
4 - OS X
5 - IOS
6 - any OS
7 - all OS
8 - chrome OS

* threat_type - a type of vulnerability:
1 - malware
2 - social engineering
3 - unwanted software
4 - potentially harmful application

* lastupdate - link detection date. Value format: DD.MM.YYYY (01.01.2001)

Compare type:
* gt - greater than. Numbers ​​are allowed
* lt - less than. Numbers ​​are allowed
* gte - greater than or equal. Numbers ​​are allowed
* lte - less than or equal. Numbers ​​are allowed
* eq - exact match. Numbers and strings are allowed
* neq - does not meet the requirement. Numbers and strings are allowed
* between - between. Numbers ​​are allowed
* contains - contains. String values are allowed
* notContains - does not contain. String values are allowed
* startsWith - starts with. String values are allowed
* endsWith - ends with. String values are allowed

The first square brackets list the "OR" conditions. The second within the first are the "AND" conditions.

Response parameters
Parameter Description
id Request id
result Contains the answer
data Array with data
domain Malicious domain
link_from Linking page
link_to Target page
platform_type

Platform:

  • windows;
  • Linux;
  • android;
  • OS X;
  • IOS;
  • any OS;
  • all OS;
  • chrome OS.
threat_type

Threat type:

  • malware;
  • social engineering;
  • unwanted software;
  • potentially harmful application.
last_update Date of the last update
summary_info Array with data
page Page number
total Number of results for request
count Number of results in this answer
left_lines Left limit of lines for your pricing plan
sort What data is sorted by
order Data sorted in ascending / descending order

API credits are spent at 1 credit for each domain.  If data are absent, the credits are not charged. Part of the API response for which you spend 1 credit:

{
                "domain": "thevampireclubrus.blogspot.com",
                "link_from": "http://thevampireclubrus.blogspot.com/2011/01/blog-post_09.html",
                "link_to": "http://www.kinopoisk.ru/level/1/film/527662/",
                "platform_type": [
                    "all_platforms"
                ],
                "threat_type": [
                    "malware"
                ],
                "lastupdate": "2020-12-02 08:48:52"
            }

Example PHP Python
Request data:
{
 "id": 1,
 "method": "SerpstatBacklinksProcedure.getThreatsLinks",
 "params": {
     "query": "kinopoisk.ru",
     "searchType": "domain",
     "sort": "lastupdate",
     "order": "desc",
     "page": 1,
     "size": 2,
     "linkPerDomain": 1,
     "complexFilter": [
            [
                {
                    "field": "lastupdate",
                    "compareType": "gt",
                    "value": [
                        "25.09.2020"
                    ]
                },
                {
                    "field": "url_from",
                    "compareType": "contains",
                    "value": [
                        ".com"
                    ]
                },
                {
                    "field": "platform_type",
                    "compareType": "contains",
                    "value": [
                        "1"
                    ]
                },
                {
                    "field": "threat_type",
                    "compareType": "contains",
                    "value": [
                        "1"
                    ]
                },
                {
                    "field": "domain_from",
                    "compareType": "contains",
                    "value": [
                        "."
                 ]
                },
                {
                    "field": "url_to",
                    "compareType": "contains",
                    "value": [
                        "."
                 ]
                } 
            ]
        ]
  }
}

Response data:
{
    "id": "1",
    "result": {
        "data": [
            {
                "domain": "thevampireclubrus.blogspot.com",
                "link_from": "http://thevampireclubrus.blogspot.com/2011/01/blog-post_09.html",
                "link_to": "http://www.kinopoisk.ru/level/1/film/527662/",
                "platform_type": [
                    "all_platforms"
                ],
                "threat_type": [
                    "malware"
                ],
                "lastupdate": "2020-12-02 08:48:52"
            },
            {
                "domain": "thevampireclubrus.blogspot.com",
                "link_from": "http://thevampireclubrus.blogspot.com/2011/01/blog-post_09.html",
                "link_to": "http://www.kinopoisk.ru/level/2/news/1446161/",
                "platform_type": [
                    "all_platforms"
                ],
                "threat_type": [
                    "malware"
                ],
                "lastupdate": "2020-12-02 08:48:52"
            }
        ],
        "summary_info": {
            "left_lines": 999826,
            "page": 1,
            "count": 2,
            "total": 22,
            "sort": "lastupdate",
            "order": "DESC"
        }
    }
}

Share this article with your friends

Sign In Free Sign Up

You’ve reached your query limit.

Or email
Forgot password?
Or email
Optional
Back To Login

Don’t worry! Just fill in your email and we’ll send over your password.

Are you sure?

Awesome!

To complete your registration you need to enter your phone number

Back

We sent confirmation code to your phone number

Your phone Resend code Queries left

Something went wrong.

Contact our support team
Or confirm the registration using the Telegram bot Follow this link
Please pick the project to work on

Personal demonstration

Serpstat is all about saving time, and we want to save yours! One of our specialists will contact you and discuss options going forward.

These may include a personal demonstration, a trial period, comprehensive training articles & webinar recordings, and custom advice from a Serpstat specialist. It is our goal to make you feel comfortable while using Serpstat.

Name

Email

Phone

We are glad of your comment
Upgrade your plan

Upgrade your plan

Export is not available for your account. Please upgrade to Lite or higher to get access to the tool. Learn more

Sign Up Free

Спасибо, мы с вами свяжемся в ближайшее время

Invite
View Editing

E-mail
Message
Optional
E-mail
Message
Optional

You have run out of limits

You have reached the limit for the number of created projects. You cannot create new projects unless you increase the limits or delete existing projects.

I want more limits