Application Programming Interface (API) is a method of extracting raw Semrush data without having to manually log into the software. Semrush offers two main API options:
Standard API Package (Analytics, Projects, Accounts APIs)
Traffic Analytics API
This API is available as an add-on to a Business subscription. The standard API package comes with three main APIs; Analytics, Projects, and Accounts APIs. When you add API to your subscription you will have a limited amount of API units that you can use to make calls. Whenever you run out of units, you can buy more from the Subscription Info page or by contacting us.
Analytics API allows you to pull data from Analytics reports including:
Keyword Gap Analysis
Projects API can pull data from Position Tracking and Site Audit campaigns created in Projects. Analytics and Projects API calls each have a cost in API units, which you will have a budget for when you purchase access to this API.
Accounts API can pull data such as your API export history, queries, and API unit balance. These calls will not charge you any API units.
Traffic Analytics API comes in all paid subscriptions in 2 plans:
- Basic: provides only traffic summary data
- Extended: provides traffic summary data and extended information about the website traffic
This API allows you to pull any website’s traffic data such as visitors, visitor engagement and behavior, mobile/desktop traffic, traffic sources (search, social, paid, referral, and direct), and geographic location (worldwide), including the top social network sites and search engines sending traffic to that site. You’ll also be able to pull this data for up to 5 domains in a single request.
The monthly limit rate included by default is 10,000 requests. This API does not use any API units associated with the standard Semrush API for Business subscriptions.
If you are interested in our Traffic Analytics API you can access it via the ‘Subscription Info’ page.
Alternatively, please contact firstname.lastname@example.org, and we will provide you with a quote that fits your needs. To test out the Traffic Analytics API, check out the demo tool we have created to visualize what you could achieve.
To purchase the Traffic Analytics API you will need a Semrush account. You can purchase API access yourself or via our sales representatives, and then get your API key by email.
The API Documentation pages below will be key for working with the API as every call will be broken down and explained for you there. The proper formatting will be displayed as well so that you are able to correctly structure your API calls. These calls can be made by pasting your API call in a web browser.
Please use the following documentation links to find help on API:
Please note that in section 2.3 of our terms of service we ask that you not call more than 10 inquiries per second from our API:
If you subscribe to the Semrush API, in addition to the restrictions set forth above, you agree (i) not to forward more than 10 inquiries per 1 second from one unique IP address or more than 10 simultaneous inquiries from 1 User; and (ii) not to cache the information received from the Services for more than one (1) month without the express written consent of Semrush. You may not use the Services if you are legally prohibited from receiving or using the Services under the laws of the country in which you are resident or from which you access or use the Services.