# Check for Broken Links with Ahrefs

**Use case:** 

Find broken inbound backlinks and outbound links for any website. Get 404 links, source and target URLs, anchor text, HTTP status codes, redirects, Domain Rating, and dofollow or nofollow attributes - 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": false,
  "include_broken_links": true,
  "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"
  },
  "broken_links_inbound": {
    "label": "Broken Links Inbound",
    "format": "array"
  },
  "broken_links_total_backlinks": {
    "label": "Broken Links Total Backlinks",
    "format": "number"
  },
  "broken_links_dofollow_backlinks": {
    "label": "Broken Links Dofollow Backlinks",
    "format": "number"
  },
  "broken_links_outbound": {
    "label": "Broken Links Outbound",
    "format": "array"
  },
  "broken_links_outbound_total_links": {
    "label": "Broken Links Outbound Total Links",
    "format": "number"
  },
  "broken_links_outbound_dofollow_link": {
    "label": "Broken Links Outbound Dofollow Link",
    "format": "number"
  }
}
```

## 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`).
