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)1
Step 1
Sign in to Ahrefs as a workspace owner or admin
2
Step 2
Go to Account settings -> API keys
3
Step 3
Create a new API key and copy it (each key is valid for 1 year)
4
Step 4
Paste the key into ModuleX
Required Credentials
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)
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
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
string
required
Domain or URL to get referring domains for
array
required
List of columns to return for referring domains (e.g. domain, domain_rating, backlinks)
string
Mode of operation: exact, domain, subdomains, or prefix (Default:
domain)integer
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.