Install
openclaw skills install ahrefs-connectionAccess Ahrefs SEO data via the Ahrefs API for comprehensive SEO analysis, keyword research, backlink analysis, site audits, and competitive intelligence. Use when users mention: (1) SEO-related queries about websites, domains, or URLs, (2) Keyword research, rankings, or search volume data, (3) Backlink analysis or link profiles, (4) Domain metrics (DR, UR, traffic), (5) Competitor analysis or site comparison, (6) Rank tracking or SERP analysis, (7) Content gap analysis, (8) Site Explorer data requests. When uncertain if a query is SEO-related, ask if Ahrefs should be used.
openclaw skills install ahrefs-connectionAccess real-time Ahrefs SEO data directly through the Ahrefs API to analyze websites, research keywords, track rankings, and make data-driven SEO decisions.
If this is your first time using the Ahrefs API, read references/setup.md for complete setup instructions. You'll need:
After setup, return here for usage guidance.
Ahrefs API provides access to:
For detailed capability reference, see references/capabilities.md.
All API requests require an API key passed via the Authorization header:
Authorization: Bearer YOUR_API_KEY
Store your API key securely. Consider using environment variables:
export AHREFS_API_KEY="your-api-key-here"
Identify what SEO data is needed:
Use curl or similar tools to call the Ahrefs API. Base URL: https://api.ahrefs.com/v3
Example - Get domain overview:
curl -X GET "https://api.ahrefs.com/v3/site-explorer/domain-overview?target=example.com" \
-H "Authorization: Bearer $AHREFS_API_KEY"
Example - Keyword metrics:
curl -X GET "https://api.ahrefs.com/v3/keywords-explorer/overview?keyword=seo+tools&country=us" \
-H "Authorization: Bearer $AHREFS_API_KEY"
See references/workflows.md for detailed workflow patterns with example API calls.
Note: Requires pre-configured Site Audit project in Ahrefs web interface.
limit parameterselect parameter to reduce costsCommon HTTP status codes:
200 OK - Success400 Bad Request - Invalid parameters401 Unauthorized - Invalid or missing API key403 Forbidden - Insufficient permissions or plan limits429 Too Many Requests - Rate limit exceeded500 Internal Server Error - Ahrefs server issueAlways check response status and handle errors gracefully.
If the API key is not configured: