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

External domains (getOutDomains)

The getOutDomains method gives you a list of the domains that are linked to the analyzed site. The data set is similar to the External domains report. 

General request parameters and instructions for using Serpstat API

Request parameters
Parameter Description Default
id required A request id: the response contains the same id. Enter any number (number) or text (string) value
method required API method name: SerpstatBacklinksProcedure.getOutDomains
params required The object with parameters {...}, it lists all the following parameters and arrays [...]
query required A domain of the analyzed site. Specify the domain without HTTP, HTTPS, and "/"
searchType required Search type:
* domain - only domain (site.com)
* domain_with_subdomains - domain with subdomains (subdomain.site.com)
* URL - the specific URL (site.com/path/)
part_url - URL starts with (site.com/path/*)
page optional A page number (number value) 1
size optional A number of results (number value) 100
sort optional Sorting:
* domain_links - the number of links linking to the domain
* domain_to - the domain to which the link from the analyzed
* domain_rank - SDR (Serpstat Domain Rank), an indicator of domain authority
domain_rank
order optional Order:
asc - in the ascending order
desc - in the descending order
desc
complexFilter optional Data filtering, entered as arrays [...]
* field - filter parameter

Available filtering:
* domain_links - the number of links linking to the domain
* domain_to - the domain to which the link from the analyzed
* domain_rank - SDR (Serpstat Domain Rank)

* compareType - filter parameter:
* gt - greater than (number value)
* lt - less than (number value)
* gte - greater than or equal (number value)
* lte - less than or equal (number value)
* eq - exact match (number or text value)
* neq - does not meet the requirement (number or text value)
* between - between (number value)
* contains - contains (text value)
* notContains - does not contain (text value)
* startsWith - starts with (text value)
* endsWith - ends with (text value)

* value - filter value

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

Response parameters
Parameter Description
id Response id corresponds the request id
result Contains the answer
data Array with data
domain_to Domain to which the link from the analyzed
domain_links Number of links linking to the domain
domain_rank SDR (Serpstat Domain Rank)
summary_info Object with data
page Page number
total Number of results for request
count Number of results in this answer
left_lines Left credits of lines for your pricing plan
sort What data are sorted by
order Data sorted:
* asc - in the ascending order
* desc - in the descending order

API credits are spent at 1 credit per line. Part of the API response for which you spend 1 credit:

{
     "domain_to": "youtube.com",
     "domain_links": 8835,
     "domain_rank": 100
}

Example
Request data:
{
 "id": 1,
 "method": "SerpstatBacklinksProcedure.getOutDomains",
 "params": {
     "query": "serpstat.com",
     "searchType": "domain_with_subdomains",
     "sort": "domain_links",
     "order": "desc",
     "page": 1,
     "size": 2,
     "complexFilter": [
            [
                {
                    "field": "domain_to",
                    "compareType": "contains",
                    "value": [
                        ".com"
                    ]
                },
                {
                    "field": "domain_rank",
                    "compareType": "gte",
                    "value": [
                        "1"
                    ]
                },
                {
                    "field": "domain_links",
                    "compareType": "gte",
                    "value": [
                        "1"
                    ]
                }
            ]
        ]
  }
}
Response data:
{
    "id": "1",
    "result": {
        "data": [
            {
                "domain_to": "youtube.com",
                "domain_links": 8835,
                "domain_rank": 100
            },
            {
                "domain_to": "facebook.com",
                "domain_links": 6414,
                "domain_rank": 100
            }
        ],
        "summary_info": {
            "left_lines": 999819,
            "page": 1,
            "count": 2,
            "total": 1854,
            "sort": "domain_links",
            "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

Introducing Serpstat

Find out about the main features of the service in a convenient way for you!

Please send a request, and our specialist will offer you education options: a personal demonstration, a trial period, or materials for self-study and increasing expertise — everything for a comfortable start to work with 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

Thank you, we have saved your new mailing settings.

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
Open support chat