Semrush
SEO: keywords, domains, competitors and backlinks
Managed auth
Authentication
Methods your end users can connect with. Credentials are stored encrypted, and secret values are never shown again or returned by the API.
API key
Your users enter
- API key (v3)SecretRequired
Where to find them
You need the Business plan and an API units package, which is bought separately (account icon → “Subscription info” → “API units”). Copy the v3 key from your profile → “API keys” (v4 keys do not work here). Each line of a report uses units (e.g. 10 per organic keyword), so limit the results.
Tools (2)
Semrush API request
SEMRUSH_SEND_REQUESTAuthenticated call to the Semrush API (https://api.semrush.com). Any endpoint of the API is allowed. Responses are CSV separated by “;”. Examples: GET /?type=domain_rank&domain=example.com&database=us&export_columns=Dn,Rk,Or,Ot,Oc, GET /?type=domain_organic&domain=example.com&database=us&display_limit=20&export_columns=Ph,Po,Nq,Cp,Ur, GET /?type=domain_organic_organic&domain=example.com&database=us&display_limit=10 (competitors), GET /?type=phrase_this&phrase=running+shoes&database=us&export_columns=Ph,Nq,Cp,Co,Nr,Td, GET /analytics/v1/?type=backlinks_overview&target=example.com&target_type=root_domain. Each line uses units: always set display_limit and check the balance first with SEMRUSH_GET_API_UNITS.
Required scopes
No scopes required
Input
Semrush API request input Name Type Description methodstringHTTP methodOne of: GET,POST,PUT,PATCH,DELETEDefault:"GET"pathrequiredstringPath relative to the API base URL, or a full URL on the same API (e.g. a next-page link) queryobjectQuery string parameters bodyunknownJSON body formobjectBody as application/x-www-form-urlencoded instead of JSON body_base64stringBinary body, base64 (at most 960000 characters) content_typestringContent-Type of body_base64 headersobjectExtra headers such as Accept. Authentication is added automatically. Available API units
SEMRUSH_GET_API_UNITSBalance of standard API units (checking it is free). Use it before requesting large reports.
Required scopes
No scopes required
Input
No input parameters.

