← 返回 Skills 市场
jonathan-sokol

Ahrefs Connection

作者 jonathan-sokol · GitHub ↗ · v1.0.1
cross-platform ✓ 安全检测通过
710
总下载
0
收藏
1
当前安装
1
版本数
在 OpenClaw 中安装
/install ahrefs-connection
功能描述
Connect to Ahrefs API to retrieve real-time SEO data including backlinks, keyword metrics, domain analysis, rank tracking, and site audits for SEO insights.
使用说明 (SKILL.md)

Ahrefs API

Access real-time Ahrefs SEO data directly through the Ahrefs API to analyze websites, research keywords, track rankings, and make data-driven SEO decisions.

First-Time Setup

If this is your first time using the Ahrefs API, read references/setup.md for complete setup instructions. You'll need:

  • An Ahrefs account (Enterprise plan for full API access, or Lite+ for limited free test queries)
  • An API key from your Ahrefs workspace

After setup, return here for usage guidance.

Core Capabilities

Ahrefs API provides access to:

  1. Site Explorer - Domain metrics, backlinks, organic traffic, referring domains
  2. Keywords Explorer - Search volume, keyword difficulty, SERP analysis, related keywords
  3. Rank Tracker - Position tracking, visibility metrics, competitor rankings (requires pre-configured projects)
  4. Site Audit - Technical SEO issues, crawl data, site health (requires pre-configured projects)
  5. SERP Overview - Top 100 SERP results for any keyword
  6. Batch Analysis - Process up to 100 targets per request
  7. Brand Radar - Brand performance stats

For detailed capability reference, see references/capabilities.md.

Authentication

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"

Usage Workflow

1. Understand the Request

Identify what SEO data is needed:

  • Domain/URL analysis → Site Explorer endpoints
  • Keyword data → Keywords Explorer endpoints
  • Position tracking → Rank Tracker endpoints (requires project)
  • Technical SEO → Site Audit endpoints (requires project)
  • SERP data → SERP Overview endpoints

2. Make API Requests

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"

3. Process and Present Results

  • Parse JSON responses
  • Extract relevant metrics
  • Present data in clear, actionable formats
  • Highlight key insights and opportunities
  • Suggest next steps based on findings

Common Workflows

Keyword Research + Cross-Reference

  1. User provides keyword list
  2. Make batch API calls to Keywords Explorer
  3. Parse and consolidate metrics (volume, difficulty, CPC)
  4. Present analysis with prioritization recommendations

See references/workflows.md for detailed workflow patterns with example API calls.

Competitive Analysis

  1. Identify target domain and competitors
  2. Call Site Explorer for each domain
  3. Compare metrics (DR, organic traffic, referring domains)
  4. Analyze top organic keywords
  5. Identify content gaps
  6. Provide actionable recommendations

Site Audit Review

Note: Requires pre-configured Site Audit project in Ahrefs web interface.

  1. Call Site Audit API for project data
  2. Identify critical issues by severity
  3. Prioritize fixes by impact
  4. Provide technical recommendations

API Limits & Best Practices

Rate Limiting

  • 60 requests per minute by default
  • API returns HTTP 429 if limit exceeded
  • Implement exponential backoff for retries

API Unit Consumption

  • Each request consumes API units from your monthly allowance
  • Cost depends on the number of rows returned (minimum 50 units per request)
  • Track usage in Account settings → Limits and usage
  • Enterprise plans include units; additional units can be purchased

Optimization Tips

  • Batch requests when possible (up to 100 targets)
  • Limit result rows using limit parameter
  • Select specific columns with select parameter to reduce costs
  • Cache results when appropriate
  • Use date ranges to limit historical data

Plan-Specific Access

  • Enterprise: Full API access
  • Lite/Standard/Advanced: Limited free test queries (check your plan for specifics)

Error Handling

Common HTTP status codes:

  • 200 OK - Success
  • 400 Bad Request - Invalid parameters
  • 401 Unauthorized - Invalid or missing API key
  • 403 Forbidden - Insufficient permissions or plan limits
  • 429 Too Many Requests - Rate limit exceeded
  • 500 Internal Server Error - Ahrefs server issue

Always check response status and handle errors gracefully.

When API Key is Missing

If the API key is not configured:

  1. Provide setup instructions from references/setup.md
  2. Guide through API key generation in Ahrefs Account settings
  3. Explain how to securely store the key (environment variables recommended)
  4. Test the connection with a simple API call

Resources

安全使用建议
This skill appears to do what it says: call the Ahrefs API and return SEO data. Before installing or enabling it, note two practical points: (1) The SKILL.md expects you to provide an Ahrefs API key (it suggests AHREFS_API_KEY), but the registry metadata does not list any required environment variable — ask the publisher to update the metadata to declare the credential for transparency. (2) Because the skill will make real API calls with your key, create a dedicated API key for this integration, set limits (monthly or unit caps) if possible, and monitor usage to avoid unexpected costs or exfiltration of query results. Also weigh provenance: source/homepage are unknown in the registry — prefer skills from known publishers or verify the owner before granting access to your API key.
功能分析
Type: OpenClaw Skill Name: ahrefs-connection Version: 1.0.1 The skill bundle is designed to interact with the Ahrefs API for SEO analysis. All instructions in `SKILL.md` and referenced documentation are aligned with this stated purpose, guiding the AI agent to make `curl` requests to `api.ahrefs.com` using an `AHREFS_API_KEY` environment variable. There is no evidence of intentional malicious behavior such as data exfiltration to unauthorized endpoints, installation of backdoors, or prompt injection attempts against the agent. The use of network calls and environment variables is necessary and expected for an API integration skill.
能力评估
Purpose & Capability
The skill's name and description claim Ahrefs API integration and the SKILL.md contains concrete API endpoints and workflows consistent with that purpose. However, the registry metadata does not declare the API credential (AHREFS_API_KEY) or a primary credential even though the runtime instructions require one. This is a documentation/metadata omission rather than a mismatch of capability.
Instruction Scope
SKILL.md confines runtime instructions to making HTTP calls to https://api.ahrefs.com/v3, parsing results, and presenting SEO insights. It does not instruct the agent to read unrelated files, access other credentials, or send data to unexpected endpoints. Error handling, rate-limit, and cost-awareness guidance are included.
Install Mechanism
There is no install spec and no code files — the skill is instruction-only. That minimizes on-disk risk; the agent will rely on network calls described in the SKILL.md.
Credentials
The skill legitimately requires an Ahrefs API key for its stated purpose and SKILL.md even suggests storing it in AHREFS_API_KEY. But the registry metadata lists no required environment variables or primary credential. The request for a single API key is proportionate to the functionality, but the missing metadata declaration reduces transparency and could confuse users.
Persistence & Privilege
The skill is not always: true and does not request elevated or persistent platform privileges. Autonomous invocation is allowed by default (normal for skills), but there are no signs of the skill attempting to modify other skills or system-wide agent settings.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install ahrefs-connection
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /ahrefs-connection 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.1
Significant update: Skill now uses the native Ahrefs API instead of Model Context Protocol. - Updated setup and authentication instructions to use Ahrefs API keys, with guidance for secure storage. - Expanded core capabilities to include new endpoints such as SERP Overview, Batch Analysis, and Brand Radar. - Revised usage workflow with practical API call examples using curl. - Clarified API limits, rate limiting, unit consumption, error handling, and plan-specific access. - Provided direct links to official Ahrefs API documentation and key management resources. - Removed references to MCP and replaced with Ahrefs API terminology and workflows.
元数据
Slug ahrefs-connection
版本 1.0.1
许可证
累计安装 1
当前安装数 1
历史版本数 1
常见问题

Ahrefs Connection 是什么?

Connect to Ahrefs API to retrieve real-time SEO data including backlinks, keyword metrics, domain analysis, rank tracking, and site audits for SEO insights. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 710 次。

如何安装 Ahrefs Connection?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install ahrefs-connection」即可一键安装,无需额外配置。

Ahrefs Connection 是免费的吗?

是的,Ahrefs Connection 完全免费(开源免费),可自由下载、安装和使用。

Ahrefs Connection 支持哪些平台?

Ahrefs Connection 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Ahrefs Connection?

由 jonathan-sokol(@jonathan-sokol)开发并维护,当前版本 v1.0.1。

💬 留言讨论