semrush cli
Commands

Backlink Audit

Commands and options for backlink audit.

Read Backlink Audit project allowance.

semrush backlink-audit-limits --help

MCP tool: backlink_audit_limits.

List SEO projects and their Backlink Audit campaign IDs.

semrush backlink-audit-campaigns --help

MCP tool: backlink_audit_campaigns.

Read native Backlink Audit category choices.

semrush backlink-audit-categories --help

MCP tool: backlink_audit_categories.

Read native Backlink Audit country choices.

semrush backlink-audit-countries --help

MCP tool: backlink_audit_countries.

Read setup metadata and recommended settings for an SEO project.

semrush backlink-audit-project --help

MCP tool: backlink_audit_project.

OptionTypeDefaultDescription
--project-idintegerRequired. SEO project ID from project-enable-seo, not the folder ID.

Read valid and permitted Backlink Audit scopes before creating a campaign.

semrush backlink-audit-scopes --help

MCP tool: backlink_audit_scopes.

OptionTypeDefaultDescription
--project-idintegerRequired. SEO project ID from project-enable-seo, not the folder ID.

Read Backlink Audit metadata and its userDomainId for an SEO project.

semrush backlink-audit-info --help

MCP tool: backlink_audit_info.

OptionTypeDefaultDescription
--project-idintegerRequired. SEO project ID from project-enable-seo, not the folder ID.

Read analysis progress, import status and current campaign metadata.

semrush backlink-audit-status --help

MCP tool: backlink_audit_status.

OptionTypeDefaultDescription
--audit-idintegerRequired. Backlink Audit userDomainId returned by backlink-audit-info.
--backgroundbooleanfalse

Read link counts and toxicity totals.

semrush backlink-audit-links-summary --help

MCP tool: backlink_audit_links_summary.

OptionTypeDefaultDescription
--audit-idintegerRequired. Backlink Audit userDomainId returned by backlink-audit-info.
--target-url-hashstring / nullnull
--target-url-pathstring / nullnull

Read referring-domain counts and toxicity totals.

semrush backlink-audit-domains-summary --help

MCP tool: backlink_audit_domains_summary.

OptionTypeDefaultDescription
--audit-idintegerRequired. Backlink Audit userDomainId returned by backlink-audit-info.
--target-url-hashstring / nullnull
--target-url-pathstring / nullnull

Read anchor-type distribution.

semrush backlink-audit-anchor-types --help

MCP tool: backlink_audit_anchor_types.

OptionTypeDefaultDescription
--audit-idintegerRequired. Backlink Audit userDomainId returned by backlink-audit-info.
--target-url-hashstring / nullnull
--target-url-pathstring / nullnull

Read link-attribute distribution.

semrush backlink-audit-rel-summary --help

MCP tool: backlink_audit_rel_summary.

OptionTypeDefaultDescription
--audit-idintegerRequired. Backlink Audit userDomainId returned by backlink-audit-info.
--target-url-hashstring / nullnull
--target-url-pathstring / nullnull
--by-domainbooleanfalse

Read removal and disavow totals.

semrush backlink-audit-removed-summary --help

MCP tool: backlink_audit_removed_summary.

OptionTypeDefaultDescription
--audit-idintegerRequired. Backlink Audit userDomainId returned by backlink-audit-info.
--target-url-hashstring / nullnull
--target-url-pathstring / nullnull

Read historical domain statistics.

semrush backlink-audit-historical-stats --help

MCP tool: backlink_audit_historical_stats.

OptionTypeDefaultDescription
--audit-idintegerRequired. Backlink Audit userDomainId returned by backlink-audit-info.
--target-url-hashstring / nullnull
--target-url-pathstring / nullnull

Read referring-domain authority history.

semrush backlink-audit-authority-history --help

MCP tool: backlink_audit_authority_history.

OptionTypeDefaultDescription
--audit-idintegerRequired. Backlink Audit userDomainId returned by backlink-audit-info.
--target-url-hashstring / nullnull
--target-url-pathstring / nullnull

Read referring-domain count history.

semrush backlink-audit-domains-history --help

MCP tool: backlink_audit_domains_history.

OptionTypeDefaultDescription
--audit-idintegerRequired. Backlink Audit userDomainId returned by backlink-audit-info.
--target-url-hashstring / nullnull
--target-url-pathstring / nullnull

Read backlink count history.

semrush backlink-audit-links-history --help

MCP tool: backlink_audit_links_history.

OptionTypeDefaultDescription
--audit-idintegerRequired. Backlink Audit userDomainId returned by backlink-audit-info.
--target-url-hashstring / nullnull
--target-url-pathstring / nullnull

Read new, broken or lost backlink trends.

semrush backlink-audit-changes --help

MCP tool: backlink_audit_changes.

OptionTypeDefaultDescription
--audit-idintegerRequired. Backlink Audit userDomainId returned by backlink-audit-info.
--target-url-hashstring / nullnull
--target-url-pathstring / nullnull
--liststring"new"Values: "new", "broken", "lost".
--show-diffbooleantrue
--with-domainsbooleantrue

Read referring-domain authority distribution.

semrush backlink-audit-authority-distribution --help

MCP tool: backlink_audit_authority_distribution.

OptionTypeDefaultDescription
--audit-idintegerRequired. Backlink Audit userDomainId returned by backlink-audit-info.
--target-url-hashstring / nullnull
--target-url-pathstring / nullnull

Read backlink-type distribution.

semrush backlink-audit-link-types --help

MCP tool: backlink_audit_link_types.

OptionTypeDefaultDescription
--audit-idintegerRequired. Backlink Audit userDomainId returned by backlink-audit-info.
--target-url-hashstring / nullnull
--target-url-pathstring / nullnull

Read anchor distribution.

semrush backlink-audit-anchors --help

MCP tool: backlink_audit_anchors.

OptionTypeDefaultDescription
--audit-idintegerRequired. Backlink Audit userDomainId returned by backlink-audit-info.
--target-url-hashstring / nullnull
--target-url-pathstring / nullnull
--anchor-typesarray["all"]
--limitinteger100

Read top referring domains.

semrush backlink-audit-top-domains --help

MCP tool: backlink_audit_top_domains.

OptionTypeDefaultDescription
--audit-idintegerRequired. Backlink Audit userDomainId returned by backlink-audit-info.
--target-url-hashstring / nullnull
--target-url-pathstring / nullnull
--limitinteger100
--only-toxicbooleanfalse

Read campaign recommendations without marking them read.

semrush backlink-audit-recommendations --help

MCP tool: backlink_audit_recommendations.

OptionTypeDefaultDescription
--audit-idintegerRequired. Backlink Audit userDomainId returned by backlink-audit-info.

Create and immediately start a Backlink Audit. Defaults to no recurring updates or notification email.

semrush backlink-audit-create --help

MCP tool: backlink_audit_create.

Use --confirm to send the change or --dry-run to preview it.

OptionTypeDefaultDescription
--project-idintegerRequired. SEO project ID from project-enable-seo, not the folder ID.
--scopestring"root"Values: "root", "both", "www", "nonwww".
--brandsarray
--categoriesarray
--countriesarray
--recrawlstring"never"Values: "never", "1week", "2weeks", "1month".
--recrawl-notifybooleanfalseEmail notifications for recurring audit updates.
--recrawl-majesticbooleanfalseRefresh connected Majestic data during recurring updates.
--confirmbooleanfalseConfirm this account mutation.
--dry-runbooleanfalsePrint the request without sending it.

Change only supplied Backlink Audit settings, preserving omitted settings and integrations.

semrush backlink-audit-configure --help

MCP tool: backlink_audit_configure.

Use --confirm to send the change or --dry-run to preview it.

OptionTypeDefaultDescription
--audit-idintegerRequired. Backlink Audit userDomainId returned by backlink-audit-info.
--brandsarray
--categoriesarray
--countriesarray
--recrawlstringValues: "never", "1week", "2weeks", "1month".
--recrawl-notifybooleanEmail notifications for recurring audit updates.
--recrawl-majesticbooleanRefresh connected Majestic data during recurring updates.
--confirmbooleanfalseConfirm this account mutation.
--dry-runbooleanfalsePrint the request without sending it.

Export the disavow TXT file and mark its entries exported in Semrush. Does not upload to Google.

semrush backlink-audit-disavow-export --help

MCP tool: backlink_audit_disavow_export.

Use --confirm to send the change or --dry-run to preview it.

Pass --output <path> to save the file. Existing files are not overwritten. MCP returns an artifact resource.

OptionTypeDefaultDescription
--audit-idintegerRequired. Backlink Audit userDomainId returned by backlink-audit-info.
--formatstring"txt"Values: "txt".
--confirmbooleanfalseConfirm this account mutation.
--dry-runbooleanfalsePrint the request without sending it.

Read the paginated audit table with native backlink filters and domain grouping.

semrush backlink-audit-links --help

MCP tool: backlink_audit_links.

OptionTypeDefaultDescription
--audit-idintegerRequired. Backlink Audit userDomainId returned by backlink-audit-info.
--target-url-hashstring / nullnull
--target-url-pathstring / nullnull
--authority-mininteger / nullnull
--authority-maxinteger / nullnull
--anchor-typesarray[]
--category-idinteger / nullnull
--is-newboolean / nullnull
--target-errorboolean / nullnull
--link-typestring / nullnull
--querystring""
--query-modestring / nullnull
--relstring / nullnull
--toxic-markersarray[]
--toxic-typestring / nullnull
--modestring"for-review"Values: "all", "for-review", "whitelist", "to-remove", "disavow", "new", "broken", "lost".
--by-domainbooleantrue
--sourcestring / nullnull
--pageinteger0
--page-sizeinteger50
--range-daysinteger
--completelybooleanfalse

Count backlinks matching the audit table filters.

semrush backlink-audit-links-count --help

MCP tool: backlink_audit_links_count.

OptionTypeDefaultDescription
--audit-idintegerRequired. Backlink Audit userDomainId returned by backlink-audit-info.
--target-url-hashstring / nullnull
--target-url-pathstring / nullnull
--authority-mininteger / nullnull
--authority-maxinteger / nullnull
--anchor-typesarray[]
--category-idinteger / nullnull
--is-newboolean / nullnull
--target-errorboolean / nullnull
--link-typestring / nullnull
--querystring""
--query-modestring / nullnull
--relstring / nullnull
--toxic-markersarray[]
--toxic-typestring / nullnull
--modestring"for-review"Values: "all", "for-review", "whitelist", "to-remove", "disavow", "new", "broken", "lost".
--by-domainbooleantrue
--sourcestring / nullnull
--pageinteger0
--page-sizeinteger50
--range-daysinteger
--completelybooleanfalse

Read categories present in the audited backlink profile.

semrush backlink-audit-link-categories --help

MCP tool: backlink_audit_link_categories.

OptionTypeDefaultDescription
--audit-idintegerRequired. Backlink Audit userDomainId returned by backlink-audit-info.

Read paginated disavow domain and URL entries.

semrush backlink-audit-disavow --help

MCP tool: backlink_audit_disavow.

OptionTypeDefaultDescription
--audit-idintegerRequired. Backlink Audit userDomainId returned by backlink-audit-info.
--querystring / nullnull
--statusinteger / nullnull
--sourcestring / nullnull
--typestring / nullnull
--descendingbooleantrue
--pageinteger0
--page-sizeinteger50

Count disavow entries matching the selected filters.

semrush backlink-audit-disavow-count --help

MCP tool: backlink_audit_disavow_count.

OptionTypeDefaultDescription
--audit-idintegerRequired. Backlink Audit userDomainId returned by backlink-audit-info.
--querystring / nullnull
--statusinteger / nullnull
--sourcestring / nullnull
--typestring / nullnull

Read disavow workflow counters with optional target-page selection.

semrush backlink-audit-disavow-counters --help

MCP tool: backlink_audit_disavow_counters.

OptionTypeDefaultDescription
--audit-idintegerRequired. Backlink Audit userDomainId returned by backlink-audit-info.
--target-url-hashstring / nullnull
--target-url-pathstring / nullnull

Import an existing disavow TXT file into Semrush. Can remove prior imported entries absent from the file; imported entries are marked disavowed. Does not upload to Google.

semrush backlink-audit-disavow-import --help

MCP tool: backlink_audit_disavow_import.

Use --confirm to send the change or --dry-run to preview it.

OptionTypeDefaultDescription
--contents-filefile or stdinRequired. Native disavow TXT contents. Import queues parsing; use backlink-audit-status to inspect completion.
--filenamestring"semrush-disavow.txt"Disavow upload filename, ending in .txt.
--confirmbooleanfalseConfirm this account mutation.
--dry-runbooleanfalsePrint the request without sending it.
--audit-idintegerRequired. Backlink Audit userDomainId returned by backlink-audit-info.

Move selected referring domains to a Semrush review, whitelist, remove or disavow list. Does not contact websites or upload to Google.

semrush backlink-audit-move-domains --help

MCP tool: backlink_audit_move_domains.

Use --confirm to send the change or --dry-run to preview it.

OptionTypeDefaultDescription
--audit-idintegerRequired. Backlink Audit userDomainId returned by backlink-audit-info.
--idsarrayRequired. Native row id values from the corresponding grouped or individual audit table, not urlHash values.
--liststringRequired. Values: "for-review", "whitelist", "to-remove", "disavow".
--confirmbooleanfalseConfirm this account mutation.
--dry-runbooleanfalsePrint the request without sending it.

Move selected individual backlinks to a Semrush review, whitelist, remove or disavow list. Does not contact websites or upload to Google.

semrush backlink-audit-move-links --help

MCP tool: backlink_audit_move_links.

Use --confirm to send the change or --dry-run to preview it.

OptionTypeDefaultDescription
--audit-idintegerRequired. Backlink Audit userDomainId returned by backlink-audit-info.
--idsarrayRequired. Native row id values from the corresponding grouped or individual audit table, not urlHash values.
--liststringRequired. Values: "for-review", "whitelist", "to-remove", "disavow".
--confirmbooleanfalseConfirm this account mutation.
--dry-runbooleanfalsePrint the request without sending it.

Move selected link networks to a Semrush review, whitelist, remove or disavow list. Does not contact websites or upload to Google.

semrush backlink-audit-move-networks --help

MCP tool: backlink_audit_move_networks.

Use --confirm to send the change or --dry-run to preview it.

OptionTypeDefaultDescription
--audit-idintegerRequired. Backlink Audit userDomainId returned by backlink-audit-info.
--idsarrayRequired. Native linkNetworkId values.
--liststringRequired. Values: "for-review", "whitelist", "to-remove", "disavow".
--confirmbooleanfalseConfirm this account mutation.
--dry-runbooleanfalsePrint the request without sending it.

Move a disavow item and its associated backlinks back to a Semrush review, whitelist or remove list. Does not update Google.

semrush backlink-audit-disavow-move --help

MCP tool: backlink_audit_disavow_move.

Use --confirm to send the change or --dry-run to preview it.

OptionTypeDefaultDescription
--audit-idintegerRequired. Backlink Audit userDomainId returned by backlink-audit-info.
--liststringRequired. Values: "for-review", "whitelist", "to-remove".
--confirmbooleanfalseConfirm this account mutation.
--dry-runbooleanfalsePrint the request without sending it.
--item-idintegerRequired. Native numeric id from backlink-audit-disavow, not a backlink row id.

Delete a selected item from the Semrush disavow list. Does not update Google.

semrush backlink-audit-disavow-delete --help

MCP tool: backlink_audit_disavow_delete.

Use --confirm to send the change or --dry-run to preview it.

OptionTypeDefaultDescription
--audit-idintegerRequired. Backlink Audit userDomainId returned by backlink-audit-info.
--confirmbooleanfalseConfirm this account mutation.
--dry-runbooleanfalsePrint the request without sending it.
--item-idintegerRequired. Native numeric id from backlink-audit-disavow, not a backlink row id.

Clear explicitly selected manual, file-imported or Disavow Tool-imported items from the Semrush list. Manual links return to Audit and Lost & Found; does not update Google.

semrush backlink-audit-disavow-clear --help

MCP tool: backlink_audit_disavow_clear.

Use --confirm to send the change or --dry-run to preview it.

OptionTypeDefaultDescription
--audit-idintegerRequired. Backlink Audit userDomainId returned by backlink-audit-info.
--confirmbooleanfalseConfirm this account mutation.
--dry-runbooleanfalsePrint the request without sending it.
--with-manualbooleanfalseMove manually added links back to Audit and Lost & Found.
--with-filebooleanfalseRemove items imported from a disavow file.
--with-gdtbooleanfalseRemove items imported from the Google Disavow Tool.

Read the native Target Pages table, including active/new/broken/lost counts and connected GA metrics.

semrush backlink-audit-target-pages --help

MCP tool: backlink_audit_target_pages.

OptionTypeDefaultDescription
--audit-idintegerRequired. Backlink Audit userDomainId returned by backlink-audit-info.
--querystring""
--query-modestring / nullnull
--by-domainbooleantrueCount backlinks grouped by referring domain; false counts individual backlinks.
--target-errorboolean / nullnull
--labelsarray[]
--is-newbooleanfalse
--sort-fieldstring"active"Values: "active", "new", "broken", "lost", "ga_users", "ga_users_perc", "ga_new_users", "ga_new_users_perc".
--descendingbooleantrue
--pageinteger0
--page-sizeinteger50

Count Target Pages matching the same native filters.

semrush backlink-audit-target-pages-count --help

MCP tool: backlink_audit_target_pages_count.

OptionTypeDefaultDescription
--audit-idintegerRequired. Backlink Audit userDomainId returned by backlink-audit-info.
--querystring""
--query-modestring / nullnull
--by-domainbooleantrueCount backlinks grouped by referring domain; false counts individual backlinks.
--target-errorboolean / nullnull
--labelsarray[]
--is-newbooleanfalse

Read campaign target-page labels.

semrush backlink-audit-tags --help

MCP tool: backlink_audit_tags.

OptionTypeDefaultDescription
--audit-idintegerRequired. Backlink Audit userDomainId returned by backlink-audit-info.

Read target-page counts for each campaign label.

semrush backlink-audit-tag-counts --help

MCP tool: backlink_audit_tag_counts.

OptionTypeDefaultDescription
--audit-idintegerRequired. Backlink Audit userDomainId returned by backlink-audit-info.

Add a label to a target URL in this campaign.

semrush backlink-audit-target-tag-add --help

MCP tool: backlink_audit_target_tag_add.

Use --confirm to send the change or --dry-run to preview it.

OptionTypeDefaultDescription
--audit-idintegerRequired. Backlink Audit userDomainId returned by backlink-audit-info.
--labelstringRequired.
--target-urlstringRequired. Native target URL from the Target Pages table.
--confirmbooleanfalseConfirm this account mutation.
--dry-runbooleanfalsePrint the request without sending it.

Remove a label from a selected target URL, preserving other label associations.

semrush backlink-audit-target-tag-remove --help

MCP tool: backlink_audit_target_tag_remove.

Use --confirm to send the change or --dry-run to preview it.

OptionTypeDefaultDescription
--audit-idintegerRequired. Backlink Audit userDomainId returned by backlink-audit-info.
--labelstringRequired.
--target-urlstringRequired. Native target URL from the Target Pages table.
--confirmbooleanfalseConfirm this account mutation.
--dry-runbooleanfalsePrint the request without sending it.

Delete a label and all its associations in this campaign.

semrush backlink-audit-tag-delete --help

MCP tool: backlink_audit_tag_delete.

Use --confirm to send the change or --dry-run to preview it.

OptionTypeDefaultDescription
--audit-idintegerRequired. Backlink Audit userDomainId returned by backlink-audit-info.
--labelstringRequired.
--confirmbooleanfalseConfirm this account mutation.
--dry-runbooleanfalsePrint the request without sending it.

Read referring-domain comments by native numeric comment IDs.

semrush backlink-audit-comments --help

MCP tool: backlink_audit_comments.

OptionTypeDefaultDescription
--audit-idintegerRequired. Backlink Audit userDomainId returned by backlink-audit-info.
--idsarrayRequired.

Create or replace a referring-domain comment in this campaign.

semrush backlink-audit-comment-save --help

MCP tool: backlink_audit_comment_save.

Use --confirm to send the change or --dry-run to preview it.

OptionTypeDefaultDescription
--audit-idintegerRequired. Backlink Audit userDomainId returned by backlink-audit-info.
--domainstringRequired. Native referring-domain source value, not its backlink row ID.
--commentstringRequired. Comment text; use comment-delete to clear a saved comment.
--confirmbooleanfalseConfirm this account mutation.
--dry-runbooleanfalsePrint the request without sending it.

Delete a selected referring-domain comment.

semrush backlink-audit-comment-delete --help

MCP tool: backlink_audit_comment_delete.

Use --confirm to send the change or --dry-run to preview it.

OptionTypeDefaultDescription
--audit-idintegerRequired. Backlink Audit userDomainId returned by backlink-audit-info.
--comment-idintegerRequired.
--confirmbooleanfalseConfirm this account mutation.
--dry-runbooleanfalsePrint the request without sending it.

Rerun a ready audit when the native account allowance permits it; preserves recurring settings.

semrush backlink-audit-rerun --help

MCP tool: backlink_audit_rerun.

Use --confirm to send the change or --dry-run to preview it.

OptionTypeDefaultDescription
--audit-idintegerRequired. Backlink Audit userDomainId returned by backlink-audit-info.
--confirmbooleanfalseConfirm this account mutation.
--dry-runbooleanfalsePrint the request without sending it.

Export the filtered current backlink table as native CSV. Starts one job and waits for its file; uses your existing account access.

semrush backlink-audit-export --help

MCP tool: backlink_audit_export.

Pass --output <path> to save the file. Existing files are not overwritten. MCP returns an artifact resource.

OptionTypeDefaultDescription
--audit-idintegerRequired. Backlink Audit userDomainId returned by backlink-audit-info.
--target-url-hashstring / nullnull
--target-url-pathstring / nullnull
--authority-mininteger / nullnull
--authority-maxinteger / nullnull
--anchor-typesarray[]
--category-idinteger / nullnull
--is-newboolean / nullnull
--target-errorboolean / nullnull
--link-typestring / nullnull
--querystring""
--query-modestring / nullnull
--relstring / nullnull
--toxic-markersarray[]
--toxic-typestring / nullnull
--modestring"for-review"Values: "all", "for-review", "whitelist", "to-remove", "disavow", "new", "broken", "lost".
--by-domainbooleantrue
--sourcestring / nullnull
--range-daysinteger
--completelybooleanfalse
--formatstring"csv"Values: "csv".

Import a CSV of source URLs and start native backlink crawling. Requires a ready, unlocked audit; an import cannot be stopped after commit.

semrush backlink-audit-import --help

MCP tool: backlink_audit_import.

Use --confirm to send the change or --dry-run to preview it.

OptionTypeDefaultDescription
--contents-filefile or stdinRequired. Native CSV containing source URLs in its first column. Sent unchanged; files with no importable URLs are refused before commit.
--filenamestring"semrush-backlinks.csv"CSV upload filename ending in .csv.
--confirmbooleanfalseConfirm this account mutation.
--dry-runbooleanfalsePrint the request without sending it.
--audit-idintegerRequired. Backlink Audit userDomainId returned by backlink-audit-info.

Replace a ready audit with a fresh scope and retain its settings. Permanently discards the old audit's analysis and starts new analysis.

semrush backlink-audit-replace-scope --help

MCP tool: backlink_audit_replace_scope.

Use --confirm to send the change or --dry-run to preview it.

OptionTypeDefaultDescription
--project-idintegerRequired. SEO project ID from project-enable-seo, not the folder ID.
--scopestringRequired. Values: "root", "both", "www", "nonwww".
--confirmbooleanfalseConfirm this account mutation.
--dry-runbooleanfalsePrint the request plan; current settings are loaded only during execution.

On this page