APIs / Web and SEO / Semrush
1 credit per call10 endpointsChecked working 6 Dec 2026
Semrush API
Semrush API for domain overview, competitors, website traffic, SERP volatility and content tools as JSON. 14 endpoints, 1 credit per call.
curl "https://api.perceptlayer.com/v1/semrush/facets" \
-H "X-API-Key: $API_KEY"Playground
Run this API
curl "https://api.perceptlayer.com/v1/semrush/facets" \
-H "X-API-Key: $API_KEY"Semrush · 10 endpoints
Endpoints
Every endpoint takes the same key. Open one for its parameters, the fields it returns and an example request.
| Endpoint | Required parameters | Returns | Cost |
|---|---|---|---|
GET/v1/semrush/domain-competitors | domainNeeds terms | search_parameterscovereddomainsummarycompetitors | 1 credit |
GET/v1/semrush/domain-overview | domainNeeds terms | search_parametersdomaincoveredcoveragesemrush_rankorganic_keywords+8 more | 1 credit |
GET/v1/semrush/facets | noneNeeds terms | search_parameterssensortrending | 1 credit |
POST/v1/semrush/local-review-qr | business_nameplace_idNeeds terms | search_parametersrequest_idreview_linkreview_short_link | 1 credit |
GET/v1/semrush/sensor-movers | dbcategorydateNeeds terms | search_parametersdatedbcategorydomainscategories | 1 credit |
GET/v1/semrush/sensor-ranks | none+3 optionalNeeds terms | search_parametersrowsrow_count | 1 credit |
GET/v1/semrush/sensor-serp-features | dbcategorydateNeeds terms | search_parametersrow_count | 1 credit |
GET/v1/semrush/suggest | qNeeds terms | search_parameterssuggestions | 1 credit |
GET/v1/semrush/trending | none+2 optionalNeeds terms | search_parametersdatecountrycategorydomainstraffic_series+2 more | 1 credit |
GET/v1/semrush/website-traffic | domainNeeds terms | search_parameterscovereddomainbrand_namefaviconcountry+9 more | 1 credit |
Overview
About the Semrush API
What you can get
The Semrush API covers domain data, search volatility and content tools through 14 endpoints, all returning JSON. These are restricted endpoints: the restricted-endpoint terms apply before you call them.
- Domains:
domain-overview,domain-competitorsandwebsite-trafficeach take adomain. - SERP volatility:
sensor-ranks,sensor-moversandsensor-serp-featurestake adb(US, UK, DE, MOBILE-US and others), acategoryand adate. - Trends and ideas:
trendingbycountryandcategory, andsuggestfor a partial query inq. - Content tools:
content-rewrite(choose atooland acategorysuch as simplify or summarize),content-summarizewith aformatof paragraph or bullets,content-titlesandcontent-blogpost, each taking yourtext. - Local:
local-review-qrtakes abusiness_nameand aplace_id.
facets takes no parameters.
How a call works
Domain endpoints are one call: GET /v1/semrush/domain-overview?domain=example.com with your key in the X-API-Key header. The content tools are POST requests with your text in the body. Every successful call costs 1 credit; failed calls cost nothing.
More web and seo APIs
Use cases
Compare a domain's traffic and competitors before a pitch or a market review
Use the Semrush API to compare a domain's traffic and competitors before a pitch or a market reviewWatch SERP volatility by country and category after an algorithm update
Use the Semrush API to watch SERP volatility by country and category after an algorithm updateSummarise or rewrite draft copy inside a content workflow
Use the Semrush API to summarise or rewrite draft copy inside a content workflowGive an SEO agent domain data as tool calls
Use the Semrush API to give an SEO agent domain data as tool callsFAQ
Questions
How do credits work for the Semrush API?
You don't need a Semrush account. Each successful call costs 1 credit from your Perceptlayer balance, whichever endpoint you call, and failed calls cost nothing.
Where is the Semrush API documentation?
Each endpoint has its own page under this API with its parameters, allowed values and a playground to run a real call. The catalogue lists all 14.
What format are responses in?
Every endpoint returns JSON, with no HTML parsing on your side.
Is this the official Semrush API?
No. Perceptlayer is an independent service and is not affiliated with Semrush. It returns Semrush data as JSON with a Perceptlayer key, so there is no Semrush developer account, app review or partner approval to get first. It only reads data: if Semrush has an official API and you need to act on your own Semrush account, such as posting, managing orders or reading private data, use that one.
Should I build a Semrush scraper instead?
You can, but a Semrush scraper is code you maintain: page changes break it, requests get blocked, and Semrush's terms govern how you collect data. The Semrush API gives you 10 endpoints of named JSON fields for 1 credit per successful call, and failed calls cost nothing. A scraper makes sense only for data these endpoints don't return, so check the response in the playground on this page first. Some of these endpoints return social or personal data and need the restricted-endpoint terms; collect only what you have a lawful basis for.
Try the Semrush API with 100 free credits
No credit card. Failed calls are never billed.