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

Lost Backlinks (getLostBacklinks)

The getLostBacklinks method gives you a list of lost backlinks of a site you analyze. The data set is similar to the Lost Backlinks report. Outdated metrics are not removed from the method to maintain backward compatibility.

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.getLostBacklinks
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 и "/".
searchType required Search type:
* domain_with_subdomains - domain with subdomains
* domain - only domain
* URL - only URL
page optional A page number. Numbers are allowed. 1
size optional A number of results. Numbers are allowed. 100
sort optional Sort:
url_from - the referring page
* anchor - the anchor of the backlink
* link_nofollow - link attributes
* links_external - a number of outgoing links from the referring page
* link_type - the type of incoming link
* url_to - a landing page
* lastupdate - date of the first detection
lastupdate
order optional Order:
asc - in the ascending order
desc - in the descending order
desc
complexFilter optional Data filtering, entered as arrays. Available columns:
* url_from - the referring page
* anchor - the anchor of the backlink
* link_nofollow - link attributes. Possible values: follow, nofollow, ugc, sponsored
* links_external - the number of external links from the referring page
* link_type - the type of the backlink. Possible values: text, redirect, iframe, form, canonical, rss, alternate, image
* url_to - a landing page
* 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.

linkPerDomain optional Data acquisition mode:
* 0 - one link from the page
* 1 - one link from the domain
1

Response parameters
Parameter Description
id Request id
result Contains the answer
data Array with data
url_from Linking page
url_to Target page
nofollow Link attributes. If several - are listed, separated by commas. Options: follow, nofollow, UGC, sponsored
link_type Link type. Options: href, image, redirect, frame, rss, alternate, form, canonical
links_ext Number of  external links from the referring page
link_text Link anchor
first_seen Link detection date
last_visited Last date of crawling 
str Serpstat TrustRank (outdated)
spr Serpstat PageRank (outdated)
organic Organic or paid links (outdated)
ip Referring IP addresses(outdated)
redirect Redirect backlinks (outdated)
noindex Noindex backlinks (outdated)
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 limits are spent at 1 limit per line. Part of the API response for which you spend 1 limit:

{
                "url_from": "https://zerotoscale.com/episode-150-content-creation-process-checklist-vacation-recap/",
                "url_to": "https://serpstat.com/",
                "nofollow": "follow",
                "link_type": "href",
                "links_ext": 12,
                "link_text": "SerpStat",
                "first_seen": "2019-09-05 05:51:46",
                "last_visited": "2019-12-11 18:41:42",
                "date_del": "2019-12-11 18:41:42"
            }

Example PHP Python
Request data:
{
 "id": 1,
 "method": "SerpstatBacklinksProcedure.getLostBacklinks",
 "params": {
     "query": "serpstat.com",
     "searchType": "domain",
     "sort": "url_from",
     "order": "desc",
     "page": 1,
     "size": 2,
     "linkPerDomain": 1,
     "complexFilter": [
            [
                {
                    "field": "url_from",
                    "compareType": "notContains",
                    "value": [
                        "7654765"
                    ]
                },
                {
                    "field": "link_nofollow",
                    "compareType": "contains",
                    "value": [
                        "follow",
                        "nofollow",
                        "ugc",
                        "sponsored"
                    ]
                },
                {
                    "field": "anchor",
                    "compareType": "notContains",
                    "value": [
                        "лопспрол"
                    ]
                },
                {
                    "field": "lastupdate",
                    "compareType": "lte",
                    "value": [
                        "1.1.2030"
                    ]
                },
                {
                    "field": "links_external",
                    "compareType": "between",
                    "value": [
                        "1",
                        "500"
                    ]
                }
            ],
            [
                {
                    "field": "links_external",
                    "compareType": "lte",
                    "value": [
                        "800"
                    ]
                }
            ]
        ]
  }
}


Response data:
{
    "id": "1",
    "result": {
        "data": [
            {
                "url_from": "https://zerotoscale.com/episode-150-content-creation-process-checklist-vacation-recap/",
                "url_to": "https://serpstat.com/",
                "nofollow": "follow",
                "link_type": "href",
                "links_ext": 12,
                "link_text": "SerpStat",
                "first_seen": "2019-09-05 05:51:46",
                "last_visited": "2019-12-11 18:41:42",
                "date_del": "2019-12-11 18:41:42"
            },
            {
                "url_from": "https://zen.yandex.ru/media/oxjornal/poleznye-instrumenty-i-saity-dlia-seospecialista-59f08c339d5cb307089b57bd",
                "url_to": "https://serpstat.com/",
                "nofollow": "follow",
                "link_type": "href",
                "links_ext": 14,
                "link_text": "Serpstat",
                "first_seen": "2019-03-20 12:08:14",
                "last_visited": "2019-11-01 16:03:36",
                "date_del": "2019-11-01 16:03:36"
            }
        ],
        "summary_info": {
            "left_lines": 999995,
            "page": 1,
            "count": 2,
            "total": 1440,
            "sort": "url_from",
            "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