SEMrush
SEO and competitive analysis platform for keyword research and site audits.
SEMrush
SEO and competitive analysis platform for keyword research and site audits.
Capabilities
| Integration | Available | Notes |
|---|---|---|
| API | ✓ | Analytics API, Projects API |
| MCP | ✓ | Official remote server at https://mcp.semrush.com/v2/mcp: OAuth 2.1, or an API key in the Authorization header (docs), checked 2026-10-27 |
| CLI | - | Not available |
| SDK | - | API-only |
Authentication
- Type: API Key
- Parameter:
key={api_key}in query string - Get key: My Profile > API in SEMrush dashboard
Common Agent Operations
Domain overview
GET https://api.semrush.com/?type=domain_ranks&key={api_key}&export_columns=Db,Dn,Rk,Or,Ot,Oc,Ad,At,Ac&domain=example.comOrganic keywords
GET https://api.semrush.com/?type=domain_organic&key={api_key}&export_columns=Ph,Po,Pp,Pd,Nq,Cp,Ur,Tr,Tc,Co,Nr&domain=example.com&database=us&display_limit=100Keyword overview
GET https://api.semrush.com/?type=phrase_all&key={api_key}&export_columns=Ph,Nq,Cp,Co,Nr&phrase=keyword&database=usRelated keywords
GET https://api.semrush.com/?type=phrase_related&key={api_key}&export_columns=Ph,Nq,Cp,Co,Nr,Td&phrase=keyword&database=us&display_limit=50Keyword difficulty
GET https://api.semrush.com/?type=phrase_kdi&key={api_key}&export_columns=Ph,Kd&phrase=keyword&database=usBacklinks overview
GET https://api.semrush.com/?type=backlinks_overview&key={api_key}&target=example.com&target_type=root_domainBacklinks list
GET https://api.semrush.com/?type=backlinks&key={api_key}&target=example.com&target_type=root_domain&export_columns=source_url,source_title,target_url,anchor&display_limit=100Competitors
GET https://api.semrush.com/?type=domain_organic_organic&key={api_key}&export_columns=Dn,Cr,Np,Or,Ot,Oc,Ad&domain=example.com&database=us&display_limit=20Response Format
Responses are CSV by default. Add &export_escape=1 for proper escaping.
Export Columns
Domain Report
Db- DatabaseDn- DomainRk- RankOr- Organic keywordsOt- Organic trafficOc- Organic cost
Keyword Report
Ph- Phrase/keywordNq- Search volumeCp- CPCCo- CompetitionKd- Keyword difficultyNr- Number of results
Backlinks
source_url- Linking pagetarget_url- Target pageanchor- Anchor textsource_title- Page title
Databases
Use country code: us, uk, de, fr, ca, au, etc.
When to Use
- Keyword research
- Competitive analysis
- Backlink analysis
- Site audits
- Rank tracking
- Content gap analysis
Rate Limits
- Varies by plan (10-30K units/day)
- Each API call costs units
Relevant Skills
- seo-audit
- programmatic-seo
- content-strategy
- competitors
CLI CSV decoding
The [Semrush CLI](../clis/semrush.js) requests export_escape=1 and decodes the semicolon-separated report into JSON objects. Quoted headers/cells, escaped quotes, and line breaks inside cells are preserved as field values.
Source: https://github.com/coreyhaines31/marketingskills/blob/main/tools/integrations/semrush.md
Author: coreyhaines31, Marketing skills. License: MIT.
Shown here with formatting for the web. Keep the author and license notice when you reuse it.
Related entries
There are more like this in the members library
The Codex library holds 7,009 entries. Members can search all of them by meaning and read every one in full.