contacts

Telephone

United States

dropdown button

United States

Canada

United Kingdom

Spain

France

Italy

Germany

Australia

+1 (800) 815 - 9959

10:00 AM - 5:00 PM (EST/EDT)

Monday - Friday

mobile-menu

How to get API

Basic docs divider Last updated: April 4, 2024

Standard API

1. Upgrade to Business subscription

Upgrade to the Business subscription to buy API units and generate an API key.

Purchase Business subscription

Note that after upgrading to the Business subscription the number of units will still be zero.

2. Buy API unit package

Now you can buy API units according to your needs:

  1. Click the icon at the top right of the Semrush interface to access your account.
  2. Select Subscription info and go to the API Units tab.
  3. Select an API unit package and click Buy more.
Buy API units

background image
How many API units do you need?

The cost of requests is measured in units. Units are determined by the type of report or request. Delivering historical data from the analytics tools requires more units than live data.

For example, one line of response in the Domain Organic Search Keywords report costs 10 units for live results and 50 units for historical data. If you’d like to list 1,000 organic keywords for 100 domains, you will be charged for 1,000,000 and 5,000,000 units, respectively (1,000 keywords * 10 API units for live data * 100 domains = 1,000,000 units; 1,000 keywords * 50 API units for historical data * 100 domains = 5,000,000 units).

We recommend calculating your API request limit before purchasing an API unit package. You can increase your request limit by purchasing API units.

Note that you don't need to buy API units to use the Listing Management API. It's available for all Semrush Local Premium Plan users.

3. Copy API key

Once you have purchased API units, copy your API key to use it in your API requests:

Copy API key

background image
Get access to .Trends API

If you're new to the .Trends API, contact our Sales team using the request form.

They will assist you with any questions and offer you a suitable quote.

1. Upgrade to paid subscription

Upgrade to any paid subscription plan to be able to buy access to the .Trends API and obtain your API key.

Once you've upgraded, your API key will be available in the API Units tab on the Subscription info page. However, to use it in requests, you must purchase the API units first.

Pricing

2. Select your .Trends API plan and get API units

The .Trends API comes in all paid subscriptions in two plans:

  • .Trends Basic API offers access to broad traffic summaries that include website traffic metrics and user behavior data Ideal for marketers focused on analyzing competitor web traffic, benchmarking traffic statistics, and understanding user behavior on competitor domains.
  • .Trends Premium API offers everything included in the .Trends Basic API, along with 16 additional data types that allow you to dig deeper into market dynamics, competitor strategies, and web traffic flows.
To learn more about .Trends Basic API and .Trends Premium API, refer to .Trends API subscription plans.

To select the .Trends API plan and add API units:

  1. Click the icon at the top right of the Semrush interface to access your account.
  2. Select Subscription info and go to the Summary tab.
  3. Choose your plan and click Buy .Trends API:
Buy Trends API
The monthly limit rate included by default is 10,000 requests. The .Trends API doesn't use Standard API units.
You can always upgrade your plan from Basic to Premium or increase your limits by choosing the corresponding option on the Subscription info page.
background image
Custom API options

To learn about custom API options and pricing available to you, contact our sales representatives at sales@semrush.com