Automate SEO research with Ahrefs -- analyze backlink profiles, research keywords, track domain metrics history, audit organic rankings, and perform batch URL analysis through the Composio Ahrefs integration.
target (domain or URL) and a country code (ISO 3166-1 alpha-2). Some also require a date in YYYY-MM-DD format.AHREFS_RETRIEVE_SITE_EXPLORER_METRICStarget (required) -- domain or URL to analyzedate (required) -- metrics date in YYYY-MM-DD formatcountry -- ISO country code (e.g., us, gb, de)mode -- scope: exact, prefix, domain, or subdomains (default)protocol -- both, http, or httpsvolume_mode -- monthly or averageAHREFS_RETRIEVE_SITE_EXPLORER_METRICS_HISTORY, AHREFS_DOMAIN_RATING_HISTORYtarget (required) -- domain to trackdate_from (required) -- start date in YYYY-MM-DDdate_to -- end datehistory_grouping -- daily, weekly, or monthly (default)select -- columns like date,org_cost,org_traffic,paid_cost,paid_traffictarget (required), date_from (required), date_to, history_groupingAHREFS_FETCH_ALL_BACKLINKStarget (required) -- domain or URLselect (required) -- comma-separated columns (e.g., url_from,url_to,anchor,domain_rating_source,first_seen_link)limit (default 1000) -- number of resultsaggregation -- similar_links (default), 1_per_domain, or allmode -- exact, prefix, domain, or subdomainshistory -- live, since:YYYY-MM-DD, or all_timewhere -- rich filter expressions on columns like is_dofollow, domain_rating_source, anchorAHREFS_EXPLORE_KEYWORDS_OVERVIEW, AHREFS_EXPLORE_MATCHING_TERMS_FOR_KEYWORDSselect (required) -- columns to return (volume, difficulty, CPC, etc.)country (required) -- ISO country codekeywords -- comma-separated keyword listwhere -- filter by volume, difficulty, intent, etc.select (required) and country (required)keywords -- comma-separated seed keywordsmatch_mode -- terms (any order) or phrase (exact order)terms -- all or questions (question-format keywords only)AHREFS_RETRIEVE_ORGANIC_KEYWORDStarget (required) -- domain or URLcountry (required) -- ISO country codedate (required) -- date in YYYY-MM-DDselect -- columns to return (keyword, position, volume, traffic, URL, etc.)date_compared -- compare against a previous datewhere -- rich filter expressions on keyword, volume, best_position, intent flags, etc.limit (default 1000), order_byAHREFS_BATCH_URL_ANALYSIStargets (required) -- array of objects with url, mode (exact/prefix/domain/subdomains), and protocol (both/http/https)select (required) -- array of column identifierscountry -- ISO country codeoutput -- json or phpselect parameter specifying which columns to return. Omitting it or using invalid column names will cause errors. Refer to each tool's response schema for valid identifiers.YYYY-MM-DD format. Some historical endpoints return data at the granularity set by history_grouping, not by exact date.traffic, refdomains_source, or difficulty.AHREFS_BATCH_URL_ANALYSIS accepts up to 100 targets per request. For larger analyses, split into multiple batches.where parameter uses Ahrefs' filter expression syntax, not standard SQL. Consult the column descriptions in each tool's schema for supported filter types and value formats.offset parameter was deprecated on May 31, 2024. Use cursor-based pagination or adjust limit instead.mode to subdomains (the default) includes all subdomains, which can dramatically increase result counts compared to domain or exact.| Tool Slug | Description |
|---|---|
AHREFS_RETRIEVE_SITE_EXPLORER_METRICS | Current SEO metrics for a domain/URL |
AHREFS_RETRIEVE_SITE_EXPLORER_METRICS_HISTORY | Historical SEO metrics over time |
AHREFS_DOMAIN_RATING_HISTORY | Domain Rating (DR) history |
AHREFS_FETCH_ALL_BACKLINKS | Comprehensive backlink list with filtering |
AHREFS_FETCH_SITE_EXPLORER_REFERRING_DOMAINS | List of referring domains |
AHREFS_GET_SITE_EXPLORER_COUNTRY_METRICS | Country-level traffic breakdown |
AHREFS_BATCH_URL_ANALYSIS | Batch analysis of up to 100 URLs |
AHREFS_EXPLORE_KEYWORDS_OVERVIEW | Keyword metrics overview |
AHREFS_EXPLORE_MATCHING_TERMS_FOR_KEYWORDS | Matching keyword variations |
AHREFS_EXPLORE_KEYWORD_VOLUME_BY_COUNTRY | Keyword volume across countries |
AHREFS_RETRIEVE_ORGANIC_KEYWORDS | Organic keyword rankings for a domain |
AHREFS_RETRIEVE_SITE_EXPLORER_KEYWORDS_HISTORY | Historical keyword ranking data |
AHREFS_RETRIEVE_TOP_PAGES_FROM_SITE_EXPLORER | Top performing pages by SEO metrics |
AHREFS_GET_SERP_OVERVIEW | SERP overview for specific keywords |