Your browser is out of date. The site might not be displayed correctly. Please update your browser.

Features Pricing
Blog
Read the industry's latest thoughts on digital marketing, content strategy, SEO, PPC, social media and more.
Help Center
Learn how to use Semrush with user manuals, how-to’s, videos and more!
What's New
Keep track of the newest Semrush features and improvements.
Webinars
Register and take part in educational webinars conducted by the best digital marketing experts.
Insights
See the latest in original research and thought leadership from the Semrush team.
Hire a Trusted Agency
Pressed for time? Need rare skills? Get help from a trusted agency. Our experts work with marketing projects of all kinds and budgets.
Academy
Get vital SEO skills, learn how to use our toolkits and get official certificates of your proficiency in SEO and Semrush.
Top Websites
Discover the most visited websites. Analyze their traffic and search rankings. Choose country or industry to find out who currently leads the market.
GoodContent Hub
Learn everything you need to know about effective content marketing in one place. Explore free tools, industry research, practical materials for your business, and more.
Local Marketing Hub
Start outperforming your nearby competition today! Discover the expert insights, strategies, and tools you need to increase the digital footprint of your business and get more local customers.
About Us Newsroom Careers Success Stories Affiliate Program For Investors Partner Integrations Contacts Stats and Facts
Ecommerce Booster Prowly Kompyte SplitSignal
Features Pricing
Blog Help Center What's New Webinars Insights Hire a Trusted Agency Academy Top Websites GoodContent Hub Local Marketing Hub
About Us Newsroom Careers Success Stories Affiliate Program For Investors Partner Integrations Contacts Stats and Facts
Ecommerce Booster Prowly Kompyte SplitSignal
Log In Sign Up

Knowledge Base

Knowledge Base

  • What is Semrush?
  • Getting Started
  • How-To Articles
  • The Ultimate SEO Glossary
  • Semrush Toolkits
  • Semrush Integrations
  • Teamwork
  • Subscriptions
  • Billing and Account
  • Semrush Data & Metrics
  • Semrush App Center
  • Extra Tools
  • API
    • Contact Us
    Knowledge Base
    API

    API

    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:

    1. Standard API Package (Analytics and Projects APIs)
    2. Traffic Analytics API

     

     

    Standard API Package

    This API is available as an add-on to a Business subscription. The standard API package comes with Analytics and Projects APIs. Upgrading to the Business subscription will give you an opportunity to buy API units and generate an API key.

    Note that after upgrading to the Business plan the number of units will still be zero. You should buy a suitable amount of API units according to your needs - note that the amount of units purchased becomes a part of your recurring subscription. If a certain amount of units is included in your subscription, it will renew on the same day as your plan. Unused units will expire instead of being added to the renewed amount.

    Whenever you run out of units, you can buy more from the Subscription Info page or by contacting us. 

    Learn how to get an API here.

    • Analytics API allows you to pull data from Analytics reports including:

      • Domain Analytics 
      • Keyword Analytics 
      • Backlink Analytics
    • Projects API can pull data from Position Tracking and Site Audit campaigns created in Projects. You can also manage your projects (create, update, or delete them, for example) with the help of the Projects API.

    It is possible to get the subfolder, subdomain, and URL data via the API. Check the Subdomain, Subfolder, or URL section in the API Documentation to see what reports you can pull data from.

    Analytics and Projects API calls each have a cost in API units. The total amount of units that you will need to spend will depend on the type of request or the exact number of lines in the report.
    A Backlinks API call from the API documentation with a red rectangle highlighting the Price of the call: 40 API units per line.
    You can check your API units balance either within the Subscription info tab or via a free API request (API units balance).

    See the full list of Semrush reports that API can pull here. Your API key can be found on your Subscription Info page.   

    Traffic Analytics API

    Traffic Analytics API is available only to paid Semrush users and comes in 2 plans:

    • Basic: provides only traffic summary data
    • Extended: provides traffic summary data + 16 distinct reports

    Basic API

    Traffic Overview data will be able to show you estimates of a website's visitor behavior. These include monthly visits, unique visits, pages per visit, average visit duration, mobile vs. desktop traffic %, and bounce rate.

    In the same way, the Traffic Analytics Overview report can compare up to 5 domains at a time. You can pull this data for up to 200 domains in a single request using the Summary reports. This data gives you a quick look into the general level of interaction between a website and its visitors.

    Traffic Analytics API calls work for root, subdomains, and subfolders except for Domain Rankings, Audience Insights, and Data Accuracy.

    Extended API

    The extended API (full details in the API documentation) offers 16 distinct reports in addition to the Traffic Overview from the Basic API:

    • Traffic Sources: the website traffic is broken down into direct, referral, search, social, and paid traffic;
    • Traffic Destinations: where users are going after visiting the domain you are looking at;
    • Geographic Distribution: the countries, regions, or subcontinents where a website gets most of its visitors;
    • Subdomains: the subdomains of the website that are responsible for acquiring the most traffic;
    • Top Pages: the number of unique page views, unique visitors, entrances, and traffic sources for up to a site’s top 1000 pages based on traffic;
    • Domain Rankings: top websites in the target location for the target period sorted by traffic;
    • Audience Insights: additional visited domains, unique audience, shared audience %, and shared audience for the domains you entered;
    • Data Accuracy: the estimated accuracy of the report based on the size of the domain and any filters you have applied (historical data, location, device).
    • Subfolders: the subfolders of the website that are getting the most traffic;
    • Age and sex distribution: the number and share of male and female users, and their distribution by age;
    • Household distribution: a breakdown of the domain’s audience by the household size;
    • Income distribution: the number and share of the users with low, middle, or high income;
    • Education distribution:  the number and share of the users that have postgraduate, university/college, school or have not completed education;
    • Occupation distribution: a breakdown of the domain’s audience by employment status.
    • Audience interests: the key interests of your target audience based on the categories of domains visited.
    • Social media: the social media platforms visited most often by the market audience.

    The monthly limit rate included by default is 10,000 requests. TA API units will be refreshed monthly on the payment day of your subscription. This API does not use any API units associated with the standard Semrush API Package for Business subscriptions.

    If you are interested in our Traffic Analytics API you can access it via the ‘Subscription Info’ page.

    Alternatively, please contact our Sales team via this form, and we will provide you with a quote that fits your needs.

    To purchase the Traffic Analytics API you will need a paid Semrush account. You can purchase API access yourself or via our sales representatives, and then get your API key by email.

    API Documentation

    The API Documentation pages below will be key for working with the API as every call will be broken down and explained to 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:

    • API Summary
    • API Terms of Use
    • Analytics API (Domain Analytics, Keyword Analytics, Backlinks, etc)
    • Projects API (Position Tracking, Site Audit)
    • API units balance
    • Traffic Analytics API Documentation
    API Rate / Terms of Service

    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.

    Feel free to check out our blog post What in the World Is API, and How Do I Use It?  to learn more about the basics of APIs and how they can be useful.

    Semrush
    Frequently asked questions
    • How Can I Find My API Key?
    • What Semrush reports can I pull via API?
    Show more
    Manual
    • Traffic Analytics API
    • SERP Features API codes
    Show more
    Recently viewed
    • • API
    • • Integrating Semrush with Looker Studio
    • • Link Building Tool
    • • How do you collect data to measure Core Web Vitals in Site Audit?
    USA, 800 Boylston Street, Suite 2475, Boston, MA 02199
    Contact us
    Contact us
    USA, 800 Boylston Street, Suite 2475, Boston, MA 02199
    Get started with Semrush! or see our plans & pricing

    Semrush

    • Features
    • Pricing
    • Success Stories
    • Stats and Facts
    • Insights
    • News

    Help

    • Knowledge Base
    • Academy
    • Semrush API

    Community

    • Semrush Blog
    • Webinars

    More tools

    • Analytics Reports
    • Projects
    • Agency Partners
    • Affiliate Program
    • SEOquake
    • Sensor
    • Prowly
    • Kompyte
    • App Center
    • Enterprise SEO

    Company

    • About Us
    • Newsroom
    • Careers
    • Partners
    • Legal Info
    • Privacy Policy
    • Cookie Settings
    • Do not sell my personal info
    • Security Info
    • For Investors
    • Semrush Select
    • Global Issues Index
    • Contact Us

    Follow us

    • X (Twitter)
    • Facebook
    • LinkedIn
    • Instagram
    • YouTube
    • Pinterest

    Language

    English
    © 2008 - 2024 Semrush. All rights reserved.
    Cookie Settings