Skip to main content

Overview

What it does

Ahrefs is a comprehensive SEO platform that provides powerful tools for backlink analysis, keyword research, competitive intelligence, and site auditing. Access real-time SEO data, track rankings, analyze competitor strategies, and discover content opportunities to improve your search engine visibility.Key Features:
  • Backlink analysis and monitoring
  • Keyword research and difficulty scoring
  • Competitor analysis and benchmarking
  • Site auditing and health monitoring
  • Rank tracking across search engines
  • Content gap analysis
  • Domain metrics and authority scoring
  • Top pages and content performance
  • Keyword rankings and visibility
  • Organic traffic estimates

Use Cases

SEO Research: Discover keyword opportunities, analyze search volume and difficulty, track keyword rankings, identify content gapsCompetitive Intelligence: Monitor competitor backlinks, analyze their top-performing content, discover their keyword strategies, benchmark performanceLink Building: Find backlink opportunities, analyze link quality, monitor new and lost backlinks, track referring domainsContent Strategy: Identify high-traffic content opportunities, analyze top-performing pages, discover trending topics, optimize existing content
Ahrefs maintains one of the largest backlink databases in the industry, crawling over 8 billion pages daily to provide accurate, up-to-date SEO intelligence.

Quick Start

1

Get your API key

Obtain your Ahrefs API key from your account dashboard.API Access:
  • Available on Ahrefs subscriptions (Lite, Standard, Advanced, Enterprise)
  • API access may require specific plans or add-ons
  • Check your plan details at ahrefs.com/api
To find your API key:
  1. Log in to your Ahrefs account
  2. Navigate to Account Settings
  3. Find the API section
  4. Copy your API key
Contact Ahrefs support if you don’t see API access in your account settings, as it may require a plan upgrade or add-on.
2

Add to NimbleBrain Studio

In NimbleBrain Studio:
  1. Navigate to Connections in the sidebar
  2. Click Browse Catalog
  3. Search for “Ahrefs”
  4. Click Install
  5. Enter your API key in the AHREFS_API_KEY field
  6. Click Save & Connect
Your API key is securely encrypted and stored. NimbleBrain never shares your credentials.
3

Test your connection

In your Studio chat, try this prompt:
"Analyze the backlink profile for example.com"
You should see:
  • Domain metrics and authority scores
  • Backlink statistics
  • Referring domains data
  • Top backlinks and their quality
Other test prompts:
  • “What are the top keywords for [your-domain.com]?”
  • “Show me the top pages for [competitor-domain.com]”
  • “Find keyword opportunities related to [topic]”
Look for detailed SEO metrics to confirm your Ahrefs connection is working properly.

Available Tools

The Ahrefs connection provides comprehensive SEO analysis tools organized into the following categories:

Keyword Research

Research keywords, search volume, difficulty, and ranking opportunities.
ToolDescription
AHREFS_KEYWORD_RESEARCHResearch keywords with volume, difficulty, and CPC data
AHREFS_GET_KEYWORD_DIFFICULTYGet keyword difficulty score and SERP analysis
AHREFS_GET_KEYWORD_IDEASDiscover related keyword opportunities
AHREFS_GET_SEARCH_VOLUMEGet search volume data across multiple search engines
AHREFS_GET_KEYWORD_RANKINGSTrack keyword position for a domain
Example Usage:
"Find keyword ideas related to 'digital marketing tools' with search volume over 1000"
"What's the keyword difficulty for 'best CRM software'?"
Keyword difficulty ranges from 0-100, with higher scores indicating more competitive keywords requiring stronger backlink profiles to rank.

Domain Analysis

Analyze domain authority, metrics, and overall SEO health.
ToolDescription
AHREFS_GET_DOMAIN_METRICSGet Domain Rating, backlinks, referring domains, and traffic estimates
AHREFS_GET_ORGANIC_KEYWORDSRetrieve all organic keywords a domain ranks for
AHREFS_GET_DOMAIN_TRAFFICEstimate organic traffic and top traffic-driving pages
AHREFS_GET_TOP_PAGESFind the highest-traffic pages on any domain
AHREFS_COMPARE_DOMAINSCompare metrics between multiple domains
Example Usage:
"Compare the domain metrics between mysite.com and competitor1.com and competitor2.com"
"What are the top 10 pages driving traffic to competitor.com?"
Domain Rating (DR) is Ahrefs’ proprietary metric measuring domain authority on a scale of 0-100 based on backlink profile quality.

Site Audit

Audit your website for technical SEO issues and optimization opportunities.
ToolDescription
AHREFS_SITE_AUDITRun comprehensive site audit for technical SEO issues
AHREFS_GET_AUDIT_ISSUESRetrieve specific issues found during site audit
AHREFS_GET_BROKEN_LINKSFind broken internal and external links
AHREFS_GET_REDIRECT_CHAINSIdentify redirect chains and loops
AHREFS_GET_CRAWL_STATSGet crawl statistics and coverage data
Example Usage:
"Run a site audit for mywebsite.com and show me critical issues"
"Find all broken links on mysite.com"
Site audits crawl your entire website, which may take time for large sites. Results are typically cached and updated periodically.

Rank Tracking

Track keyword rankings and visibility across search engines.
ToolDescription
AHREFS_TRACK_RANKINGSMonitor keyword position changes over time
AHREFS_GET_RANK_HISTORYView historical ranking data for keywords
AHREFS_GET_VISIBILITY_SCORECalculate overall search visibility
AHREFS_GET_SERP_FEATURESIdentify SERP features (featured snippets, etc.)
AHREFS_COMPARE_RANKINGSCompare rankings against competitors
Example Usage:
"Track my rankings for these keywords: [keyword1, keyword2, keyword3]"
"Show me ranking history for 'SEO tools' over the last 90 days"
Set up regular rank tracking for your most important keywords to monitor SEO performance and catch ranking drops early.

Content Analysis

Analyze content performance and discover content opportunities.
ToolDescription
AHREFS_CONTENT_EXPLORERSearch for top-performing content on any topic
AHREFS_GET_CONTENT_GAPFind keywords competitors rank for but you don’t
AHREFS_GET_TOP_CONTENTDiscover most shared and linked-to content
AHREFS_ANALYZE_CONTENTAnalyze content metrics for any URL
AHREFS_GET_SHARERSFind who shared specific content on social media
Example Usage:
"Find content gaps between mysite.com and competitor.com"
"Show me the most popular content about 'content marketing' from the last 6 months"
Content Explorer indexes billions of pages and provides metrics like social shares, referring domains, and organic traffic estimates.

Example Workflows

Scenario: Analyze a competitor’s SEO strategy and identify opportunitiesPrompt:
"Analyze competitor.com's SEO performance: domain metrics, top keywords, top pages, and backlink profile. Then compare it to mysite.com and identify gaps"
What happens:
  • Retrieves domain authority and metrics
  • Lists top-performing keywords and rankings
  • Identifies highest-traffic pages
  • Analyzes backlink profile quality
  • Compares metrics with your domain
  • Highlights keyword and content gaps
Time: 10-15 seconds API calls: 4-6 requestsExample Response:
  • Competitor’s Domain Rating: 65 (vs. yours: 48)
  • Top 10 keywords they rank for
  • Their top 5 traffic-driving pages
  • 250 referring domains (vs. yours: 120)
  • Content gaps: 45 keywords they rank for that you don’t
Follow-up prompts:
  • “What are the easiest keywords I could target from their list?”
  • “Show me their newest backlinks from the last month”
  • “Analyze the content on their top-performing page”
Regular competitor monitoring helps you spot new strategies and opportunities. Check monthly for shifts in their approach.

Authentication

API Key Required: This connection requires an Ahrefs API key to access SEO data and analysis tools.

Getting Your API Key

  1. Log in to your Ahrefs account at ahrefs.com
  2. Navigate to Account Settings
  3. Find the API or API Access section
  4. Copy your API key
  5. Add it to your Studio connection configuration
API access is included with most Ahrefs subscription plans. Contact Ahrefs support if you don’t see API settings in your account.

Rate Limits & Pricing

Plan TierAPI LimitsFeaturesTypical Price
LiteLimited requestsBasic metrics, limited history$99/mo
StandardStandard rate limitsFull features, 3 months history$199/mo
AdvancedHigher limitsFull features, unlimited history$399/mo
EnterpriseCustom limitsDedicated support, custom integrations$999+/mo
API Usage:
  • Rate limits vary by subscription plan
  • Typically measured in API units per month
  • Different endpoints consume different units
  • Monitor usage in your Ahrefs dashboard
  • Overage handling varies by plan
Check your specific plan’s API limits in your Ahrefs account settings. Some features may require higher-tier plans.

Managing Your API Key in Studio

Your API key is securely stored in NimbleBrain Studio. To update it:
  1. Go to Connections
  2. Find “Ahrefs” in your connections list
  3. Click Edit or Settings
  4. Update your API key
  5. Click Save
Studio automatically manages the connection. No manual restarts required after updating credentials.

Security Best Practices

Your Ahrefs API key provides access to your account’s data and quota:
  • Never share your API key publicly
  • Don’t commit keys to version control
  • Rotate keys periodically (every 90 days recommended)
  • Monitor API usage for unexpected activity
  • Use separate keys for different environments if available
  • Revoke compromised keys immediately
If your key is compromised, generate a new one immediately in your Ahrefs account settings and update Studio.
Track your API usage to stay within limits:
  • Check usage dashboard in your Ahrefs account regularly
  • Set up usage alerts if available
  • Optimize query patterns for efficiency
  • Cache results when appropriate
  • Batch requests when possible
  • Review monthly consumption patterns
Usage optimization tips:
  • Cache domain metrics that don’t change frequently
  • Batch keyword research queries
  • Use filters to reduce unnecessary data retrieval
  • Schedule regular audits rather than ad-hoc requests
Studio can cache some Ahrefs results. Enable caching in settings to reduce API calls for repeated queries.

Troubleshooting

Issue: Authentication failed or invalid API key errorSolutions:
  • Verify you copied the entire API key without extra spaces
  • Check if your Ahrefs subscription includes API access
  • Confirm your account is active and paid
  • Regenerate API key in Ahrefs settings if necessary
  • Ensure no special characters were added during copy/paste
  • Contact Ahrefs support if API access isn’t visible in your account
API access requires an active paid Ahrefs subscription. Free trials may have limited or no API access.
Issue: Too many requests or quota exceededSolutions:
  • Check your usage in Ahrefs dashboard
  • Wait for rate limit to reset (typically monthly or hourly)
  • Upgrade to a higher plan for increased limits
  • Implement caching for frequently accessed data
  • Reduce query frequency
  • Optimize requests to fetch only needed data
  • Contact Ahrefs about increasing your limits
Monitor usage patterns and adjust query frequency before hitting limits. Plan large research projects around quota reset dates.
Issue: Query succeeds but returns empty or no resultsSolutions:
  • Verify the domain or URL is indexed in Ahrefs database
  • Check if domain is too new (requires crawling time)
  • Ensure correct domain format (use example.com, not https://example.com)
  • Try different filters or broader search criteria
  • Verify the domain has backlinks or ranking keywords
  • Some niche domains may have limited data
New websites may not have data immediately. Ahrefs needs time to crawl and index new domains and backlinks.
Issue: Queries taking longer than expectedSolutions:
  • Large domain analyses can take 10-30 seconds
  • Site audits for large sites may take longer
  • Check your internet connection
  • Verify Ahrefs API status (check Ahrefs status page)
  • Reduce the scope of queries (limit results, narrow date ranges)
  • Break large queries into smaller, focused requests
  • Try again during off-peak hours
Typical response times:
  • Domain metrics: 3-5 seconds
  • Backlink queries: 5-10 seconds
  • Keyword research: 4-8 seconds
  • Site audits: 15-60 seconds (depends on site size)
  • Content Explorer: 5-10 seconds
Cache results for domains you query frequently to improve response times and reduce API usage.
Issue: Cannot connect to Ahrefs APISolutions:
  • Verify your internet connection
  • Check Ahrefs API status page for outages
  • Ensure API key is correctly entered in Studio
  • Try disconnecting and reconnecting in Studio
  • Clear Studio cache and retry
  • Verify firewall isn’t blocking API requests
  • Contact Ahrefs support if issue persists
Studio handles all connection management automatically. No manual configuration needed beyond entering your API key.
Issue: Data seems inaccurate or outdatedSolutions:
  • Verify you’re analyzing the correct domain/URL
  • Check the data freshness date in results
  • Ahrefs updates data on different schedules (backlinks: daily, some metrics: weekly)
  • Some metrics are estimates, not exact counts
  • Compare with Ahrefs web interface for verification
  • Refresh data if cached results are old
  • Large fluctuations may be legitimate (link gains/losses)
Data freshness:
  • Backlinks: Updated daily
  • Domain Rating: Updated weekly
  • Keyword rankings: Updated based on tracking frequency
  • Organic traffic: Estimated monthly
  • Site audits: On-demand or scheduled
Ahrefs metrics are estimates based on their crawl data. Use them for directional insights rather than exact numbers.

Best Practices

Regular Monitoring

  • Track key metrics weekly or monthly
  • Monitor competitor changes
  • Set up rank tracking for important keywords
  • Audit backlink profile monthly
  • Run site audits quarterly
  • Review content performance regularly

Data-Driven Strategy

  • Use keyword difficulty to prioritize targets
  • Focus on achievable keyword opportunities
  • Analyze top pages before creating content
  • Study competitor gaps systematically
  • Base link building on data, not guesses
  • Track ROI of SEO efforts

Efficient Usage

  • Cache frequently accessed domain metrics
  • Batch keyword research queries
  • Use filters to reduce unnecessary data
  • Schedule large audits during off-peak times
  • Monitor API usage to avoid overages
  • Focus on actionable insights

Security

  • Protect your API key
  • Rotate keys periodically
  • Monitor for unusual usage
  • Use separate keys per environment
  • Revoke compromised keys immediately
  • Never share credentials

Need help? Join the NimbleBrain Discord or email [email protected]