# How to Fix Keyword Cannibalization With Semrush

An SEO agency runs an agent each month per client that reads Semrush rankings, finds keywords where two of the client's pages compete, and drafts a fix for each.

[Run this on Rush](https://cloud.getrush.ai/run/find-keyword-cannibalization-for-each-client/semrush/). Opens the console with this prompt ready to send. Connect Semrush there first.

## What the agent does

This is for an SEO agency that looks after a few dozen client sites: dental practices, law firms, local service companies, small online stores. Keyword cannibalization creeps into all of them the same way. A client publishes a new service page while an older blog post already ranks for the same search, or two location pages target the same city, and Google keeps swapping which one it shows. Spotting it means pulling a client's organic positions, sorting by keyword and looking for the same query against two URLs, then deciding for each pair whether to merge, redirect, re-target or leave alone. The agency runs an agent once a month per client that does the finding and drafts the decision for a strategist to approve.

The agency connects its Semrush account once with `POST /me/connections {"type": "mcp", "name": "semrush", "url": "https://mcp.semrush.com/v2/mcp"}`. Semrush's MCP docs say the server signs in through Semrush's own login page with OAuth, exposes the SEO API reports and the read-only methods of the Projects API, and spends the same API units a direct API request would. The agent finds the report it needs through `organic_research`, reads its parameters with `get_report_schema` and runs it with `execute_report`.

The main read is the Domain Organic Search Keywords report (`domain_organic`) for the client's domain in the client's regional database, with the columns for keyword (`Ph`), position (`Po`), URL (`Ur`), search volume (`Nq`) and traffic share (`Tr`). Semrush's reference prices it at 10 API units per line, so the prompt caps `display_limit` and filters to positions 1 to 50, where a second competing page costs real clicks. The agent then runs the URL Organic Search Keywords report for each of the client's 20 highest-traffic pages, so a keyword is caught when two URLs both rank for it even if one sits deeper. A keyword is a candidate when two or more of the client's URLs rank for it, or when its ranking URL changed between this month and last.

For each candidate it opens both pages in the agent's browser and reads their titles, H1s and opening paragraphs to see whether they really answer the same question. A service page and a how-to article that share a keyword are often fine; two pages with near-identical titles are not. It drafts one action per pair: merge and 301 the weaker page into the stronger, re-target one page to a narrower keyword it names, add an internal link from the weaker to the stronger with the keyword as anchor, or leave both. It changes nothing on the client's site and creates or edits no Semrush project.

## Start it with one API call

`POST https://api.phoenix.so/o/{org}/sessions`

```json
{
  "agent": "claude",
  "input": "Keyword cannibalization check for riversidedental.example, Semrush US database, November 2026. Read only: create or change no Semrush project, list or setting. Use organic_research to find the reports, get_report_schema before each one, and execute_report to run them. Run domain_organic for the domain with columns Ph, Po, Ur, Nq, Tr, positions 1 to 50, display_limit 3000. From it take the 20 URLs with the most traffic and run url_organic for each, display_limit 500. A keyword is a candidate when two or more URLs on the domain rank for it, or when its ranking URL differs from last month's. Skip keywords with volume under 50. For each candidate, open both URLs in the browser and read title, H1 and the first two paragraphs. Decide per pair: merge and 301 (name which survives), re-target one page (name its new keyword), add an internal link (name source, target and anchor), or leave both and say why. Write cannibalization.md: one section per keyword with volume, each URL's position and traffic share, what each page is about, and the drafted action, sorted by volume. Write pairs.csv with keyword, volume, url_a, pos_a, url_b, pos_b, action. Report how many execute_report calls you made and the lines each returned.",
  "connections": [
    "semrush"
  ]
}
```

1. **Get an API key.** In the console, open Settings, then API keys, and create a key for your org. Send it in the Authorization header as a Bearer token.
2. **Send the request.** POST the body in request.json to https://api.phoenix.so/o/{org}/sessions. The run starts in its own cloud sandbox.
3. **Read what came back.** Follow the run on its live stream or wait for the run.completed webhook, then read the result and its trajectory.

## What comes back

The run returns `cannibalization.md` and `pairs.csv` for one client. The strategist on the account reads each drafted action against what they know about the client's plans: a merge that the agent proposes on search data alone may remove a page the client needs for a paid campaign or a local listing, and only the strategist knows that.

Approved actions go into the client's content queue as tasks; the agent's draft names the surviving URL and the redirect so whoever does the work does not have to reconstruct the reasoning. Leave-both decisions stay in the file, which keeps the same pair from being reopened next month without new evidence.

The last section counts the `execute_report` calls and lines returned, so the agency can see how many Semrush API units each client's check used and adjust `display_limit` for its largest sites.

## Run it on every month, per client

The agency's reporting service already keeps a list of clients with their domain and Semrush database. On the second working day of the month it sends one `POST /o/{org}/sessions` per client with the body above, the domain, database and month written into `input`, and a `request_id` that is a UUID v5 of the client id and month, so a retried job never runs the check twice.

Runs past the API key's `max_concurrent` wait as `queued` and start as others finish, so forty clients can be sent in one loop. Each finished run arrives at the key's `webhook_url`, and the service files the two outputs in that client's folder for the strategist.

## Why run it on Rush?

The Semrush sign-in is held in Rush's connection, made on Semrush's own login page, instead of an API key copied into a reporting script. Each client's check runs on its own computer with a browser for reading the pages, and each session records every `execute_report` call with its parameters, which is where to look when the month's API units run low.

Forty client checks are forty separate runs that go at once rather than one long script that stops at the first timeout. Each run records its `total_cost_usd`, so the agency can put the cost of the check next to the client's retainer, and a strategist can open the session to see exactly which pages the agent read before it proposed a merge.

## Frequently asked questions

### How is this different from Semrush's own Cannibalization report?

Semrush's Position Tracking has a Cannibalization report that shows keywords where two or more of your pages rank in the top 100, for keywords you track in a project. This agent works from the domain's organic rankings instead, so it needs no tracked keyword list, and it reads the pages and drafts what to do about each pair.

### How many Semrush API units does one check use?

Semrush's reference prices the domain organic report at 10 units per line, and MCP requests spend the same units as the API. The prompt's `display_limit` values set the ceiling, and the run reports the lines each call returned, so the agency can work out each client's cost from the session.

### Does the agent make the redirects or edit the pages?

No. It reads the client's public pages in a browser and Semrush data, and writes a plan. Redirects, merges and rewrites go through the agency's usual process with the client's approval.

### Which Semrush plan does the connection need?

Semrush's MCP docs list the SEO plans that include API units for MCP and say others need an API units package. The connection uses whatever the signed-in agency account has, and the run lists any call Semrush refuses with the message it returned.

## More Semrush jobs

- [Run a Keyword Gap Analysis With Semrush](https://getrush.ai/run/keyword-gap-analysis/semrush/)
- [How Do Agencies Automate the Monthly SEO Report for Each Client From Semrush? One Agent per Agency, on the Agency's Own Semrush](https://getrush.ai/run/monthly-seo-report-for-each-client/semrush/)
- [Compare Competitor Traffic With Semrush](https://getrush.ai/run/competitor-traffic-report/semrush/)

## More jobs like this: Produce a report or file, no repo

- [Which Lessons Next Week Clash With a Teacher's Time Off? A Music School's Thursday Check of Its Teachers' Google Calendars](https://getrush.ai/run/find-lessons-that-clash-with-teacher-time-off/google-calendar/)
- [Which Lesson Videos Keep Failing to Play? An Online Course Platform's Weekly Playback Report From Axiom](https://getrush.ai/run/find-lessons-whose-videos-fail-to-play/axiom/)
- [Which Loads Have Gone Quiet? A Freight Broker's Hourly Tracking Check in Axiom](https://getrush.ai/run/find-loads-with-stale-tracking/axiom/)

## Keep reading

- [Connect Semrush to Rush once, then name it on any run](https://getrush.ai/integrations/semrush/)
- [Start your first run from the developer API quickstart](https://getrush.ai/docs/quickstart/)
- [Rush pricing: Free, Pro and Max](https://getrush.ai/pricing/)
