Ahrefs
Overview
SLUG: AHREFS
Description
Ahrefs is an SEO and marketing platform offering site audits, keyword research, content analysis, and competitive insights to improve search rankings and drive organic traffic
Authentication Details
API Key
Connecting to Ahrefs
Create an auth config
Use the dashboard to create an auth config for the Ahrefs toolkit. This allows you to connect multiple Ahrefs accounts to Composio for agents to use.
Create and Get auth config ID
Click “Create Integration”. After creation, copy the displayed ID starting with ac_
. This is your auth config ID. This is not a sensitive ID — you can save it in environment variables or a database.
This ID will be used to create connections to the toolkit for a given user.
Connect Your Account
Using API Key
Tools
Executing tools
To prototype you can execute some tools to see the responses and working on the Ahrefs toolkit’s playground
OpenAI (Python)
Anthropic (TypeScript)
Google (Python)
Vercel (TypeScript)
Tool List
AHREFS_BACKLINKS_STATS_RETRIEVAL
Tool Name: Backlinks stats retrieval
Description
Action Parameters
Action Response
AHREFS_FETCH_ALL_BACKLINKS
Tool Name: Fetch all backlinks
Description
Action Parameters
Action Response
AHREFS_FETCH_COMPETITORS_OVERVIEW
Tool Name: Fetch competitors overview
Description
Action Parameters
Action Response
AHREFS_FETCH_RANK_TRACKER_OVERVIEW
Tool Name: Fetch rank tracker overview
Description
Action Parameters
Action Response
AHREFS_GET_SERP_OVERVIEW
Tool Name: Get serp overview
Description
Action Parameters
Action Response
AHREFS_RETRIEVE_ANCHOR_DATA
Tool Name: Retrieve anchor data
Description
Action Parameters
Action Response
AHREFS_RETRIEVE_CRAWLER_IP_RANGES
Tool Name: Retrieve crawler ip ranges
Description
Action Parameters
Action Response
AHREFS_RETRIEVE_OUTLINKS_STATS
Tool Name: Retrieve outlinks stats
Description
Action Parameters
Action Response
AHREFS_RETRIEVE_SITE_EXPLORER_KEYWORDS_HISTORY
Tool Name: Retrieve site explorer keywords history
Description
Action Parameters
Action Response
AHREFS_SEARCH_SUGGESTIONS_EXPLORER
Tool Name: Search suggestions explorer
Description
Action Parameters
Action Response
AHREFS_BATCH_URL_ANALYSIS
Tool Name: Batch Url Analysis
Description
Action Parameters
Action Response
AHREFS_DOMAIN_RATING_FOR_SITE_EXPLORER
Tool Name: Domain rating for site explorer
Description
Action Parameters
Action Response
AHREFS_DOMAIN_RATING_HISTORY
Tool Name: Domain rating history
Description
Action Parameters
Action Response
AHREFS_EXPLORE_KEYWORDS_OVERVIEW
Tool Name: Explore keywords overview
Description
Action Parameters
Action Response
AHREFS_EXPLORE_KEYWORD_VOLUME_BY_COUNTRY
Tool Name: Explore keyword volume by country
Description
Action Parameters
Action Response
AHREFS_EXPLORE_LINKED_DOMAINS_OF_A_SITE
Tool Name: Explore linked domains of a site
Description
Action Parameters
Action Response
AHREFS_EXPLORE_MATCHING_TERMS_FOR_KEYWORDS
Tool Name: Explore matching terms for keywords
Description
Action Parameters
Action Response
AHREFS_FETCH_BROKEN_BACKLINKS_DATA
Tool Name: Fetch broken backlinks data
Description
Action Parameters
Action Response
AHREFS_FETCH_SITE_EXPLORER_REFERRING_DOMAINS
Tool Name: Fetch site explorer referring domains
Description
Action Parameters
Action Response
AHREFS_FETCH_TOTAL_SEARCH_VOLUME_HISTORY
Tool Name: Fetch total search volume history
Description
Action Parameters
Action Response
AHREFS_GET_SITE_AUDIT_PROJECTS
Tool Name: Get site audit projects
Description
Action Parameters
Action Response
AHREFS_GET_SITE_EXPLORER_COUNTRY_METRICS
Tool Name: Get site explorer country metrics
Description
Action Parameters
Action Response
AHREFS_GET_SITE_EXPLORER_LINKED_ANCHORS_EXTERNAL
Tool Name: Get site explorer linked anchors external
Description
Action Parameters
Action Response
AHREFS_GET_URL_RATING_HISTORY
Tool Name: Get url rating history
Description
Action Parameters
Action Response
AHREFS_LINKED_ANCHORS_EXPLORER
Tool Name: Linked anchors explorer
Description
Action Parameters
Action Response
AHREFS_LIST_BEST_BY_EXTERNAL_LINKS
Tool Name: List best by external links
Description
Action Parameters
Action Response
AHREFS_PAGES_BY_TRAFFIC_OVERVIEW
Tool Name: Pages by traffic overview
Description
Action Parameters
Action Response
AHREFS_RETRIEVE_BEST_BY_INTERNAL_LINKS
Tool Name: Retrieve best by internal links
Description
Action Parameters
Action Response
AHREFS_RETRIEVE_ORGANIC_COMPETITORS
Tool Name: Retrieve organic competitors
Description
Action Parameters
Action Response
AHREFS_RETRIEVE_ORGANIC_KEYWORDS
Tool Name: Retrieve organic keywords
Description
Action Parameters
Action Response
AHREFS_RETRIEVE_PAID_PAGES_DATA
Tool Name: Retrieve paid pages data
Description
Action Parameters
Action Response
AHREFS_RETRIEVE_PUBLIC_CRAWLER_IPS
Tool Name: Retrieve public crawler ips
Description
Action Parameters
Action Response
AHREFS_RETRIEVE_SITE_EXPLORER_METRICS
Tool Name: Retrieve site explorer metrics
Description
Action Parameters
Action Response
AHREFS_RETRIEVE_SITE_EXPLORER_METRICS_HISTORY
Tool Name: Retrieve site explorer metrics history
Description
Action Parameters
Action Response
AHREFS_RETRIEVE_SITE_EXPLORER_PAGES_HISTORY
Tool Name: Retrieve site explorer pages history
Description
Action Parameters
Action Response
AHREFS_RETRIEVE_SITE_EXPLORER_REFERRING_DOMAINS_HISTORY
Tool Name: Retrieve site explorer referring domains history
Description
Action Parameters
Action Response
AHREFS_RETRIEVE_SUBSCRIPTION_LIMITS_AND_USAGE
Tool Name: Retrieve subscription limits and usage
Description
Action Parameters
Action Response
AHREFS_RETRIEVE_TOP_PAGES_FROM_SITE_EXPLORER
Tool Name: Retrieve top pages from site explorer
Description
Action Parameters
Action Response
AHREFS_RETRIEVE_VOLUME_HISTORY
Tool Name: Retrieve volume history
Description
Action Parameters
Action Response