APIMaster.ai
Available

Get shared or exclusive linking domains of selected websites

This API will provide you with the list of domains pointing to the specified websites. This API is especially useful for creating a Link Gap feature that shows what domains link to your competitors but do not link out to your website.

POST/v1/dataforseo/backlinks/domain_intersection/live

Request parameters

ParameterTypeMeaning
backlinks_filtersOptional or conditionalarrayfilter the backlinks of your target
backlinks_status_typeOptional or conditionalstringset what backlinks to return and count
exclude_internal_backlinksOptional or conditionalbooleanindicates whether the backlinks from subdomains of the target are excluded
exclude_targetsOptional or conditionalarraydomains, subdomains or webpages you want to exclude
filtersOptional or conditionalarrayarray of results filtering parameters
include_indirect_linksOptional or conditionalbooleanindicates if indirect links to the targets will be included in the results
include_subdomainsOptional or conditionalbooleanindicates if the subdomains of the target will be included in the search
internal_list_limitOptional or conditionalintegermaximum number of elements within internal arrays
intersection_modeOptional or conditionalstringindicates whether to intersect backlinks
limitOptional or conditionalintegerthe maximum number of returned results
offsetOptional or conditionalintegeroffset in the array of returned results
order_byOptional or conditionalarrayresults sorting rules
rank_scaleOptional or conditionalstringdefines the scale used for calculating and displaying the rank , domain_from_rank , and page_from_rank values
tagOptional or conditionalstringuser-defined task identifier
targetsRequiredobjectdomains, subdomains or webpages to get links for

Response

The JSON response includes status_code, status_message, tasks and task results. Check both the HTTP status and each task's status_code. A depth of 10 can include special search blocks, so it does not always mean ten organic links. The response's cost field is native API data; your final APIMaster fee is shown in the response headers and usage log.

task_post creates a task. Save its task ID, then use the matching tasks_ready and task_get APIs. Task results are private to the account that created them.

Model-restricted API keys must allow dataforseo. Callback URLs are not supported; retrieve asynchronous results with task_get.

Pricing and settlement

$0.063Estimated price

Reference prices use example parameters and default account pricing, checked 2026-12-01. Actual fees vary with parameters, data volume and account pricing; the settled amount is final.

Request a free estimate before running a call. An estimate is not a fixed price or a hard spending cap. Your fee uses the actual settled usage and your account's current group multiplier once. The estimated amount is reserved from your wallet; unused funds are returned after settlement. Model subscriptions and trial credits do not cover these calls.

Use a unique Idempotency-Key for each intended call. Keep the same key and parameters when recovering a call. If the outcome or fee is pending, query /v1/data-requests/{request_id}; do not start another paid call with a new key.

400: invalid parameters; 401: invalid or expired key; 403: key permissions; 402: insufficient wallet or key quota; 409: idempotency conflict or request pending; 429: rate limit; 502/503: request or settlement unavailable. For every failure, preserve the request ID and check settlement before repeating a paid operation.

Code examples

curl --request POST 'https://apimaster.ai/v1/dataforseo/backlinks/domain_intersection/live' \
  --header 'Authorization: Bearer YOUR_APIMASTER_KEY' \
  --header 'Idempotency-Key: YOUR_UNIQUE_REQUEST_KEY' \
  --header 'Content-Type: application/json' \
  --data '[
  {
    "exclude_internal_backlinks": true,
    "exclude_targets": [
      "semrush.com"
    ],
    "include_subdomains": false,
    "limit": 5,
    "order_by": [
      "1.backlinks,desc"
    ],
    "targets": {
      "1": "moz.com",
      "2": "ahrefs.com"
    }
  }
]'
Download OpenAPI schema

Related APIs