Basic docs
Jump to AboutAbout
Projects API allows users to create, edit and manage projects that use The Site Audit and Position Tracking tools. By using Projects API, you can track your web rivals’ and your own keyword rankings, discover local competitors, and fix websites’ on-page issues from one location, and much more.
Jump to AuthAuth
All API requests use such HTTP methods such as POST, PUT, GET or DELETE with JSON parameters and must contain your API Key. You can find info how to get your in How to get API documentation.
If you sent an API call example, replace your key with a placeholder (e.g. https://api.semrush.com/?key=<key>).
Your API key also gives an access to your API units balance, so please don’t share it publicly.
Exposing your credentials can result in your account being compromised, which leads to unexpected charges.
Jump to ResponseResponse
All endpoints in the Projects API return responses in JSON format.
Jump to Error messagesError messages
{
"code": "{ERROR_CODE}",
"message": "{ERROR_MESSAGE}"
}In addition to descriptive error text, error messages contain machine-parsable codes. While the text for an error message may change, the codes will stay the same.
Jump to Project and campaign IDsProject and campaign IDs
To make requests using the Projects, Position Tracking, and Site Audit API methods, you need to get your project and campaign IDs.
Jump to Get your project IDGet your project ID
- Navigate the main Projects page and select the required project.
- Check the page URL displayed in your browser’s address bar. It’ll look as follows:
https://www.semrush.com/projects/6647718 - The number after
projectsis your project ID. In this example, it’s6647718. Copy and save it for future requests.
Jump to Get your campaign IDGet your campaign ID
- Open your campaign using the Position Tracking tool.
- Check the page URL displayed in your browser’s address bar. It’ll look as follows:
https://www.semrush.com/tracking/landscape/6647718_272401.html?domain_1=wikipedia.org - The number before the underscore represents the project ID. In this example, it’s
6647718. The full number including the underscore is the campaign ID. In this example, it’s6647718_272401. Copy these numbers and save them for future requests.
Jump to Get multiple project and campaign IDsGet multiple project and campaign IDs
You can use the List All Existing Projects request that returns a list of all your projects, including their IDs and basic information.
To find the IDs for multiple campaigns within a project, use the Get a list of campaigns request specifying the project ID you need.
Last updated: February 2, 2026