Overview
Add Ahrefs to any ModuleX agent or workflow. SEO backlink analysis and referring domain data via the Ahrefs REST API (api.ahrefs.com/v3).
Categories: Marketing & Advertising · SEO · Marketing · Web Search & Scraping · Auth: API Key · Actions: 3
Authentication
API Key
Authenticate with an Ahrefs API v3 key (Account settings -> API keys; requires an eligible paid plan, key valid 1 year)Required Credentials
| Field | Description | Required | Format |
|---|---|---|---|
| Ahrefs API Key | Ahrefs API v3 key, sent as Authorization: Bearer <key> | Yes | - |
Available Actions
get_backlinks — Get the backlinks for a domain or URL with details for the referring pages (e.g., anchor and page title)
get_backlinks — Get the backlinks for a domain or URL with details for the referring pages (e.g., anchor and page title)
Parameters
Domain or URL to get backlinks for
List of columns to return (e.g. url_from, url_to, ahrefs_rank, anchor, page_title)
Mode of operation: exact, domain, subdomains, or prefix (Default:
domain)Number of results to return (Default:
1000)Response
get_backlinks_one_per_domain — Get one backlink with the highest ahrefs_rank per referring domain for a target URL or domain
get_backlinks_one_per_domain — Get one backlink with the highest ahrefs_rank per referring domain for a target URL or domain
Parameters
Domain or URL to get backlinks for
List of columns to return (e.g. url_from, url_to, ahrefs_rank, anchor, page_title)
Mode of operation: exact, domain, subdomains, or prefix (Default:
domain)Number of results to return (Default:
1000)Response
get_referring_domains — Get the referring domains that contain backlinks to the target URL or domain
get_referring_domains — Get the referring domains that contain backlinks to the target URL or domain
Parameters
Domain or URL to get referring domains for
List of columns to return for referring domains (e.g. domain, domain_rating, backlinks)
Mode of operation: exact, domain, subdomains, or prefix (Default:
domain)Number of results to return (Default:
1000)Response
Limits & Quotas
- Rate limits depend on your Ahrefs subscription plan (Lite, Standard, Advanced, Enterprise).
- API usage is metered against monthly “API rows” quota included in your plan.
- Error model: non-2xx responses and timeouts are caught and returned as
success=False+errorrather than raising.