Telephone
United States
+1 (800) 815 - 9959
10:00 AM - 5:00 PM (EST/EDT)
Monday - Friday
Need help?
Telephone
United States
+1 (800) 815 - 9959
10:00 AM - 5:00 PM (EST/EDT)
Monday - Friday
Familiarizing yourself with the following basic terms will help you interact with the Semrush API.
Application Programming Interface. A set of rules and definitions that allows one piece of software to interact with another by sending requests and receiving responses.
The Semrush API lets users pull analytics and project data without interacting with the Semrush web interface directly.
A "message" you send to the Semrush API asking for information or action. It includes a method, an endpoint, a secret API key, and a set of request parameters.
Three types of requests you can make via the Semrush API:
A piece of information you include with an API request to specify the data you want to retrieve or affect.
The currency for your API requests that is allocated to your account and consumed by making API requests. The unit cost of each API request varies depending on the request type, the number of lines in the response, and other considerations.
To check or top up your current API unit balance, go to Subscription info in your Semrush profile.
A specific URL of the Semrush API where requests are sent.
The type of action you want the Semrush API to take, such as GET
(retrieve data), POST
(create data), PUT
(update data), or DELETE
(remove data).
A string of data in a Semrush API response. A line may contain keywords, domains, and analytical metrics.
A line example:
seobook.com;24041;5249;37332;143496;0;0;0
The data sent back by the Semrush API after it processes your request. Responses include a status code indicating success or failure and, if successful, the requested data.
A number included in a response that indicates whether your API request was successful or encountered an error. Common codes include 200
(success), 404
(not found), and 500
(server error).