Token导航 LogoToken导航TokenDH.com
研究检索敏感数据clawhub未标认证来源可访问clear审计提醒

ahrefsahrefs 搜索

Agent Skill

ahrefs 用于查找、检索和筛选相关信息,适合在 OpenClaw 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

31,940

周安装

1,358

GitHub Stars

1

下载量

11,190
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:ahrefs(ahrefs 搜索)
来源仓库:https://github.com/geozhu/ahrefs
安装命令:
openclaw skills install ahrefs
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install ahrefs

简介

集成 Ahrefs API 提供完整的 SEO 分析能力,涵盖反向链接与关键词研究。

  • 支持域名、排名、SERP 特征等多维度查询,适用于竞品分析与外链建设。
  • 输出包含可视化图表与详细数据的报告,辅助制定内容策略。
  • 部分高级功能需付费订阅,免费版有调用次数限制。
  • 使用前请妥善保管 API 密钥,避免泄露导致账户安全风险。

SKILL.md

name
ahrefs
description
Complete Ahrefs API integration for SEO analysis. Covers Site Explorer (domains, backlinks, rankings), Keywords Explorer (search volume, difficulty, SERP analysis), Rank Tracker (position monitoring), Site Audit (technical SEO), SERP Overview, Batch Analysis, and Brand Radar. Use for any SEO-related queries including keyword research, backlink analysis, competitor intelligence, technical audits, and rank tracking.
version
1.2.0

Ahrefs SEO Analysis

Query and analyze SEO data using the Ahrefs API for backlinks, keywords, rankings, and competitive intelligence.

Prerequisites

API Access

You need an Ahrefs subscription with API access:

  • Lite: Basic metrics, limited filtering
  • Standard: More endpoints, some filtering
  • Advanced: Advanced filtering, more data
  • Enterprise: Full API access, advanced filtering, high rate limits

Setup

  1. Get your API token from Ahrefs Account Settings
  1. Configure in OpenClaw:

Add to ~/.openclaw/workspace/.env:

   AHREFS_API_TOKEN=your_api_token_here
   AHREFS_API_PLAN=enterprise  # Options: lite, standard, advanced, enterprise
  1. Verify setup:
   grep AHREFS ~/.openclaw/workspace/.env

Plan-Specific Features

All Plans

  • Domain Rating & Ahrefs Rank
  • Basic backlinks stats (total counts)
  • Organic keywords count
  • Organic traffic estimates
  • Top pages by traffic

Standard & Above

  • Organic keywords with positions (all positions)
  • Keywords in positions 1-3 (via org_keywords_1_3 metric)
  • Referring domains list (basic)

Advanced & Enterprise

  • Advanced filtering: Filter keywords by position (1-10 for first page)
  • Geographic filtering: Filter backlinks by country/TLD (e.g., .au domains)
  • Detailed keyword data: Access to best_position, sum_traffic, volume
  • Detailed backlink data: Full backlinks list with filtering
  • Higher rate limits: Fetch larger datasets (5000+ records)

Core Capabilities

Site Explorer (Domain Analysis)

Get comprehensive SEO metrics for any domain:

  • Domain Rating (DR) & URL Rating (UR)
  • Organic traffic estimates
  • Referring domains & backlinks
  • Organic keywords & rankings
  • Top pages by traffic
  • Historical data & trends
  • [Advanced/Enterprise] Filter by country/TLD
  • [Advanced/Enterprise] Position-based filtering (first page only)

Keywords Explorer (Keyword Research)

Discover and analyze keywords:

  • Search volume (global & country-specific)
  • Keyword difficulty (KD) score
  • Cost per click (CPC) estimates
  • SERP analysis & features
  • Related keywords & questions
  • Keyword ideas & suggestions
  • Parent topic analysis
  • Traffic potential estimates

Rank Tracker (Position Monitoring)

Track keyword rankings over time:

  • Position tracking & visibility
  • Competitor rankings comparison
  • SERP feature tracking
  • Historical position data
  • Share of voice metrics
  • Note: Requires pre-configured projects in Ahrefs

Site Audit (Technical SEO)

Identify technical SEO issues:

  • Crawl data & site health scores
  • On-page issues by severity
  • Internal link analysis
  • Page performance metrics
  • Mobile usability issues
  • Note: Requires pre-configured projects in Ahrefs

SERP Overview (Search Results)

Analyze search engine results:

  • Top 100 organic results for any keyword
  • SERP features present
  • Domain metrics for ranking pages
  • Keyword difficulty breakdown
  • Click-through rate estimates

Batch Analysis (Bulk Processing)

Process multiple targets efficiently:

  • Analyze up to 100 domains/URLs per request
  • Bulk keyword metrics
  • Batch backlink data
  • Cost-effective for large datasets

Brand Radar (Brand Monitoring)

Track brand performance:

  • Brand mention metrics
  • Share of voice
  • Competitor brand comparison
  • Sentiment analysis preparation

Competitor Analysis

Compare domains and identify opportunities:

  • Side-by-side domain comparison
  • Content gap analysis
  • Keyword overlaps & differences
  • Backlink gap analysis
  • Traffic comparison
  • [Advanced/Enterprise] Filtered comparisons (first page keywords, local backlinks)

API Structure

Ahrefs API base URL: https://api.ahrefs.com/v3/site-explorer/

Authentication

All requests require the API token in the header:

Authorization: Bearer {AHREFS_API_TOKEN}

Important: Use AHREFS_API_TOKEN, NOT AHREFS_MCP_TOKEN.

Required Parameters

All API calls require:

  • date: Current date in format YYYY-MM-DD
  • target: Domain (e.g., example.com)

Common Endpoints

For detailed endpoint documentation and parameters, see references/api-endpoints.md.

API Unit Management

Understanding API Units

  • Each API request consumes units from your monthly allowance
  • Cost depends on rows returned (minimum 50 units per request)
  • Enterprise plans include units; additional units can be purchased
  • Track usage at: https://app.ahrefs.com/account/limits-and-usage/web

Cost Optimization Tips

  1. Limit rows returned: Use limit parameter to reduce cost
  2. Select specific columns: Use select parameter for only needed fields
  3. Batch requests: Process multiple targets in one call (up to 100)
  4. Cache results: Store frequently accessed data locally
  5. Use date ranges: Limit historical data when not needed

Rate Limits

  • 60 requests per minute (default)
  • HTTP 429 returned if limit exceeded
  • Implement exponential backoff for retries

Usage Examples

Site Explorer - Get Backlinks & Referring Domains

DATE=$(date +%Y-%m-%d)
curl -X GET "https://api.ahrefs.com/v3/site-explorer/backlinks-stats?date=$DATE&target=example.com" \
  -H "Authorization: Bearer $AHREFS_API_TOKEN"

Returns:

{
  "metrics": {
    "live": 4545,
    "all_time": 25318,
    "live_refdomains": 718,
    "all_time_refdomains": 3272
  }
}

Get Organic Keywords & Traffic

DATE=$(date +%Y-%m-%d)
curl -X GET "https://api.ahrefs.com/v3/site-explorer/metrics?date=$DATE&target=example.com" \
  -H "Authorization: Bearer $AHREFS_API_TOKEN"

Returns:

{
  "metrics": {
    "org_keywords": 6925,
    "org_traffic": 38702,
    "org_keywords_1_3": 1560,
    "org_cost": 2372016
  }
}

Get Domain Rating

DATE=$(date +%Y-%m-%d)
curl -X GET "https://api.ahrefs.com/v3/site-explorer/domain-rating?date=$DATE&target=example.com" \
  -H "Authorization: Bearer $AHREFS_API_TOKEN"

Returns:

{
  "domain_rating": {
    "domain_rating": 43.0,
    "ahrefs_rank": 1189155
  }
}

Get Top Pages

DATE=$(date +%Y-%m-%d)
curl -X GET "https://api.ahrefs.com/v3/site-explorer/top-pages?date=$DATE&target=example.com&limit=10&select=url,sum_traffic" \
  -H "Authorization: Bearer $AHREFS_API_TOKEN"

Keywords Explorer - Keyword Research

curl -X GET "https://api.ahrefs.com/v3/keywords-explorer/overview?keyword=seo+tools&country=us" \
  -H "Authorization: Bearer $AHREFS_API_TOKEN"

Returns:

{
  "keyword": "seo tools",
  "volume": 14000,
  "keyword_difficulty": 75,
  "cpc": 25.50,
  "serp_features": ["featured_snippet", "people_also_ask"],
  "traffic_potential": 18500
}

Keywords Explorer - Related Keywords

curl -X GET "https://api.ahrefs.com/v3/keywords-explorer/related-keywords?keyword=seo+tools&country=us&limit=50" \
  -H "Authorization: Bearer $AHREFS_API_TOKEN"

SERP Overview - Analyze Search Results

curl -X GET "https://api.ahrefs.com/v3/serp-overview?keyword=seo+tools&country=us" \
  -H "Authorization: Bearer $AHREFS_API_TOKEN"

Returns top 100 organic results with domain metrics.

Rank Tracker - Get Project Rankings

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

curl -X GET "https://api.ahrefs.com/v3/rank-tracker/project?project_id=12345" \
  -H "Authorization: Bearer $AHREFS_API_TOKEN"

Site Audit - Get Project Issues

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

curl -X GET "https://api.ahrefs.com/v3/site-audit/project?project_id=12345" \
  -H "Authorization: Bearer $AHREFS_API_TOKEN"

Batch Analysis - Multiple Domains

curl -X POST "https://api.ahrefs.com/v3/site-explorer/batch/metrics" \
  -H "Authorization: Bearer $AHREFS_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "targets": ["example.com", "competitor1.com", "competitor2.com"],
    "date": "2026-02-18"
  }'

Returns metrics for all domains in one request.

Common Workflows

Keyword Research Workflow

  1. Get keyword overview (volume, difficulty, CPC)
  2. Fetch related keywords and questions
  3. Analyze SERP for top-ranking content
  4. Identify keyword difficulty and traffic potential
  5. Export prioritized keyword list

Competitive Analysis Workflow

  1. Compare domain metrics (DR, traffic, keywords)
  2. Analyze competitor backlink profiles
  3. Identify content gaps
  4. Find keywords competitors rank for but you don't
  5. Discover backlink opportunities

Technical SEO Audit Workflow

Requires Site Audit project

  1. Fetch site health overview
  2. Identify critical issues by severity
  3. Analyze internal linking structure
  4. Review page performance metrics
  5. Generate prioritized fix list

Content Strategy Workflow

  1. Research target keywords (Keywords Explorer)
  2. Analyze top-ranking content (SERP Overview)
  3. Identify content gaps vs competitors
  4. Plan content based on traffic potential
  5. Track rankings over time (Rank Tracker)

Batch Domain Analysis Workflow

  1. Compile list of target domains
  2. Make batch API request (up to 100 domains)
  3. Compare metrics across all domains
  4. Identify patterns and opportunities
  5. Export comparative analysis

Best Practices

  1. Rate Limits: Respect API rate limits (60 req/min default)
  2. API Units: Monitor usage and optimize queries (limit rows, select columns)
  3. Caching: Cache responses for frequently accessed data
  4. Pagination: Use limit and offset parameters for large datasets
  5. Batch Requests: Use batch endpoints when analyzing multiple targets
  6. Error Handling: Check for 401 (auth), 429 (rate limit), 404 (not found)
  7. Project Requirements: Rank Tracker and Site Audit require pre-configured projects

Environment Variables

Load the token from the workspace .env file:

# PowerShell
$env:AHREFS_API_TOKEN = (Get-Content ~/.openclaw/workspace/.env -Raw | Select-String "AHREFS_API_TOKEN=([^\
\
]+)" | ForEach-Object { $_.Matches.Groups[1].Value })
# Bash
export AHREFS_API_TOKEN=$(grep AHREFS_API_TOKEN ~/.openclaw/workspace/.env | cut -d'=' -f2)

Response Format

API responses vary by endpoint but typically return JSON:

Stats endpoints (backlinks-stats, metrics, domain-rating):

{
  "metrics": { /* metric fields */ },
  "domain_rating": { /* rating fields */ }
}

List endpoints (top-pages, backlinks, etc.):

{
  "pages": [ /* array of results */ ],
  "backlinks": [ /* array of results */ ]
}

Troubleshooting

Authentication Errors

  • Verify token is correctly set in .env
  • Check token hasn't expired
  • Ensure Bearer token format in header

Rate Limiting

  • Implement exponential backoff
  • Cache responses where appropriate
  • Use batch endpoints when available

Data Not Found

  • Verify domain/URL format
  • Check if domain exists in Ahrefs index
  • Try alternative target formats (with/without www)

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

92.97%
按下载量换算10,403

安全审计

VirusTotal

通过

ClawScan

可疑

Static analysis

未展示

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills