# Check Backlinks & Referring Domains with Ahrefs

**Use case:** 

Check the backlink profile of any website or URL with Ahrefs. Get total backlinks, referring domains, dofollow links, top backlinks, anchor text, source URLs, target URLs, and referring domain history - No Ahrefs account required

## Input

```json
{
  "keyword": "agentic ai",
  "url": "openai.com",
  "country": "us",
  "mode": "subdomains",
  "include_web_authority": false,
  "include_traffic": false,
  "include_ai_overview": false,
  "include_ai_mode": false,
  "include_ai_visibility": false,
  "include_keywords": false,
  "include_keywords_difficulty": false,
  "include_keywords_ranking": false,
  "include_serp": false,
  "include_backlinks": true,
  "include_broken_links": false,
  "include_competitors": false,
  "include_xml_sitemap": false,
  "include_top_websites": false,
  "category_top_websites": "all",
  "country_top_websites": "worldwide"
}
```

## Output

```json
{
  "data_captured_at": {
    "label": "Data Captured At",
    "format": "string"
  },
  "type": {
    "label": "Data Type",
    "format": "string"
  },
  "domain": {
    "label": "Domain",
    "format": "string"
  },
  "mode": {
    "label": "Mode",
    "format": "string"
  },
  "total_backlinks": {
    "label": "Total Backlinks",
    "format": "number"
  },
  "total_referring_domains": {
    "label": "Total Referring Domains",
    "format": "number"
  },
  "total_dofollow_backlinks": {
    "label": "Total Dofollow Backlinks",
    "format": "number"
  },
  "total_dofollow_referring_domains": {
    "label": "Total Dofollow Referring Domains",
    "format": "number"
  },
  "top_backlinks_count": {
    "label": "Top Backlinks Count",
    "format": "number"
  },
  "referal_domains_overall": {
    "label": "Referral Domains Overall",
    "format": "number"
  },
  "referal_domains_overall_last_month": {
    "label": "Referral Domains Overall Last Month",
    "format": "number"
  },
  "referal_domains_history": {
    "label": "Referral Domains History",
    "format": "array"
  },
  "top_backlinks": {
    "label": "Top Backlinks",
    "format": "array"
  },
  "backlink_check": {
    "label": "Backlink Check",
    "format": "object"
  }
}
```

## About this Actor

This example demonstrates how to use [Ahrefs Scraper](https://apify.com/radeance/ahrefs-scraper.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/radeance/ahrefs-scraper.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/radeance/ahrefs-scraper.md

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).
