---
name: kieapi-competitor-content
description: Analyze competitor domains with KieAPI's Semrush Top Pages data and turn estimated organic traffic into a source-linked content opportunity table. Use when a user names competing sites and asks which pages or topics merit investigation in a specific market.
---

# Analyze competitors' organic content

Start with the supplied competitor domains and a common market. Use a stated market or, when none was specified and the context allows a US sample, disclose that the API defaults to the US. Identify the user's own site separately. With only competitor data, the deliverable is a list of candidate topics to investigate. Establishing a gap in the user's coverage requires evidence about their own site.

## Retrieve comparable pages

Use the intended Team's KieAPI MCP connection. A Team administrator can provide the Team API key through the client's secret store or environment. [MCP setup guide](https://kieapi.com/api-docs/mcp) · [Product connection settings](https://kieapi.com/product/mcp)

1. Call `find_capabilities` with `{"capability_id":"semrush_top_pages_public_v1_semrush_top_pages_post"}`. Require this exact match and `POST /v1/semrush/top-pages`. Generic fetching of the domain cannot reproduce these traffic estimates. Use the discovered request schema.
2. For an unspecified scope, sample up to two supplied domains, one page per domain, 25 URLs per page. Honor smaller limits. Each successful API page, including a valid empty page, is a billing unit. For a strict Credits cap, check the current [Semrush API pricing and contract](https://kieapi.com/api-docs/semrush) and limit total calls accordingly. If the price cannot be established, keep to free discovery until the cap can be honored.
3. Call `call_capability` once per domain and page. This example shows one domain in the US market. Replace the example domain and generate a new key for the actual research intent.

   ```json
   {
     "capability_id":"semrush_top_pages_public_v1_semrush_top_pages_post",
     "body":{"domain":"example.com","database":"us","page":1,"page_size":25},
     "idempotency_key":"example-content-study-domain-one-page-one"
   }
   ```

   Keep the same key and identical body for a supported replay of that page. Use a distinct key for another domain, market or page. If an outcome is uncertain, retain the original key and avoid a new submission under a fresh key.
4. Check MCP `isError`, `structuredContent.http_status` and any returned error. Inside `structuredContent.data`, require `status="success"` and `modules.top_pages.status="success"` for a complete page. Read `rows`, `page`, `page_size` and report-wide `total` from `modules.top_pages.data`. A partial or failed module leaves missing coverage even when HTTP returned 200. Do not treat a failed domain as having zero traffic.
5. If more pages were requested, stop at the requested budget or page limit, once `page * page_size >= total`, or at the API's page 100 ceiling. Preserve the returned order for ties. Distinguish collection time from the report snapshot date, which can be unknown.

## Turn rows into content opportunities

Group related URLs by topic and label the grouping as your interpretation. For each opportunity give a suggested topic or action, competitor and source URL, market, estimated organic search traffic, top keyword when available, and why the observed page supports the suggestion. Separate branded, home or navigational pages when interpreting what a content team could reasonably create.

Report how many URLs were returned and the report total per domain, with any missing pages, failed domains or unavailable keywords. Compare like markets and sampled scopes. For example, if one site returned 25 of 260 URLs and the second failed, deliver the first site's findings and mark the cross-site comparison incomplete. Treat ranking and traffic as provider estimates. A single snapshot supports topic discovery; growth claims require comparable observations over time. [Skill overview](https://kieapi.com/skills/competitor-content-analysis)
