# Ahrefs Web Data Scraper API (x402)

> Ahrefs Web Data Scraper API (x402) is a paid API for AI agents from x402.186-241-26-229.sslip.io, paid per call via x402, $0.025/call, status unknown (last checked 2026-10-02).

Fetches structured Ahrefs public data including top website rankings, website authority, traffic overviews, and domain details via a pay-per-call model.

## Facts

- Endpoint: POST https://x402.186-241-26-229.sslip.io/v1/ahrefs?utm_source=zero.xyz
- Price: $0.025/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/ahrefs-web-data-scraper-api-x402-56eed372
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Q8PutnE6djcHf67FjjAXd

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability ahrefs-web-data-scraper-api-x402-56eed372 -d '<json body>'
```

Example prompt: Pull the top 50 websites in the finance category for the United States from Ahrefs, including each site's domain rating, traffic value, keywords, and top competitors.

## When to prefer this

Choose this endpoint when you need structured Ahrefs public data — website rankings, domain authority scores, traffic estimates, or trending site lists — without managing a browser or Ahrefs account. Especially useful for competitive SEO research, domain vetting, or market landscape analysis at $0.025 per call with no charge for failed runs.

## Known failure modes

- Empty result if the domain has no public Ahrefs detail page (not charged)
- Invalid country or category slug returns no results or an error
- Requesting more than 1000 items is capped at the maximum allowed
- Domains without public traffic data return null fields
- Network or scraping failures result in no charge but an empty response

## How this service works

Pay-per-call structured web data. Failed or empty runs are not charged.

## Output

Returns a JSON array of website entries with fields such as rank, website URL, category, rank change, domain rating, traffic value, keyword count, top countries, and competitors — depending on the searchType and whether includeDetails is enabled. Also includes a count and a product identifier ('ahrefs').

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "country": {
   "type": "string",
   "default": "worldwide",
   "description": "Country page slug for rankings, such as united-states or united-kingdom. Use worldwide for all countries."
  },
  "domains": {
   "type": "array",
   "description": "Domains or URLs to look up for website details, authority, or traffic. Each domain needs a public detail page."
  },
  "category": {
   "type": "string",
   "default": "all",
   "description": "Category page slug for rankings, such as shopping, news, or finance. Use all for every category."
  },
  "maxItems": {
   "type": "integer",
   "default": 100,
   "maximum": 1000,
   "minimum": 0,
   "description": "Hard cap on dataset items. Rankings have at most 1,000 public results; trending has at most 20 per filter. Zero means no extra cap."
  },
  "searchType": {
   "enum": [
    "top_websites",
    "website_details",
    "website_authority",
    "traffic_overview"
   ],
   "type": "string",
   "default": "top_websites",
   "description": "Choose ranked websites or a public domain summary. The domain modes share one public source but label the result for its use case."
  },
  "rankingMode": {
   "enum": [
    "ranking",
    "trending"
   ],
   "type": "string",
   "default": "ranking",
   "description": "For top websites: the main traffic ranking or the twenty trending sites on the first page."
  },
  "includeDetails": {
   "type": "boolean",
   "default": false,
   "description": "Fetch each ranked website's public detail page to add Domain Rating, traffic value, keywords, countries, and competitors. One extra page request per website."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "count": 1,
  "items": [
   {
    "rank": null,
    "website": null,
    "category": null,
    "detailUrl": null,
    "rankChange": null,
    "searchType": null,
    "websiteUrl": null,
    "rankingMode": null
   }
  ],
  "product": "ahrefs"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/ahrefs-web-data-scraper-api-x402-56eed372/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.186-241-26-229.sslip.io](https://www.zero.xyz/host/x402.186-241-26-229.sslip.io/llms.txt)
