Skip to content
looot docs
Esc
↑↓navigate↵open⌘Jpreview
On this page

DataForSEO Backlinks API / /v3/backlinks/bulk_new_lost_referring_domains/live.ai

DataForSEO tool dataforseo-backlinks-bulk-new-lost-referring-domains-live-ai on looot: input fields, $0.024 per call, output shape, and code to run it with curl, JavaScript or Python.

This endpoint will provide you with the number of referring domains pointing to the domains, subdomains and pages specified in the targets array. Note that if you indicate a domain as a target, you will get result for the root domain (domain with all of its subdomains), e.g. dataforseo.com and app.

Inputs

Name Type Required Description
date_from string no starting date of the time range optional field this field indicates the date which will be used as a threshold for new and lost backlinks; the backlinks that appeared in our index after the specified date will be considered as new; the backlinks that weren’t found after the specified date, but were present before, will be considered as lost; default value: today’s date -(minus) one month; e.g. if today is 2021-10-13, default date_from will be 2021-09-13. minimum value equals today’s date -(mi…
targets array yes domains, subdomains or webpages to get rank for required field you can set up to 1000 domains, subdomains or webpages the domain or subdomain should be specified without https:// and www. the page should be specified with absolute URL (including http:// or https://) example: “targets”: [ “forbes.com”, “cnn.com”, “bbc.com”, “yelp.com”, “https://www.apple.com/iphone/”, “https://ahrefs.com/blog/”, “ibm.com”, “https://variety.com/”, “https://stackoverflow.com/”, “www.trustpilot.com” ]

Output

The run’s result holds the provider’s answer. Signed in, looot inspect dataforseo-backlinks-bulk-new-lost-referring-domains-live-ai prints its fields.

Run it

Every call needs your API token in LOOOT_TOKEN; Sign in shows how to get one. Each run also needs a new idempotency key, so a retry never pays twice. With wait: 30 the answer comes back inline when the run ends within 30 seconds. Otherwise you get the running run back: poll GET /v1/runs/<runId>.

Example input with placeholder values:

curl -X POST "https://api.looot.ai/v1/runs" \
  -H "Authorization: Bearer $LOOOT_TOKEN" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{"endpointId":"dataforseo-backlinks-bulk-new-lost-referring-domains-live-ai","input":{"targets":["example.com"]},"wait":30}'
const response = await fetch("https://api.looot.ai/v1/runs", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.LOOOT_TOKEN}`,
    "Content-Type": "application/json",
    "Idempotency-Key": crypto.randomUUID(),
  },
  body: JSON.stringify({
    endpointId: "dataforseo-backlinks-bulk-new-lost-referring-domains-live-ai",
    input: {
      targets: ["example.com"],
    },
    wait: 30,
  }),
});
const run = await response.json();
console.log(run.status, run.result);
import os
import uuid

import requests

response = requests.post(
    "https://api.looot.ai/v1/runs",
    headers={
        "Authorization": f"Bearer {os.environ['LOOOT_TOKEN']}",
        "Idempotency-Key": str(uuid.uuid4()),
    },
    json={
        "endpointId": "dataforseo-backlinks-bulk-new-lost-referring-domains-live-ai",
        "input": {
            "targets": ["example.com"],
        },
        "wait": 30,
    },
    timeout=90,
)
run = response.json()
print(run["status"], run.get("result"))

To let looot pick among every provider of this job instead, send job:backlinks.bulk-new-lost-referring-domains.live-ai as endpointId; see the job page.

Was this page helpful?