Overview
Jump to AboutAbout
Projects API includes several endpoint groups:
- Projects API accessible via an API key and using OAuth 2.0 lets you get information about your folders (formerly called projects) and manage them.
- Position Tracking API lets you monitor keyword rankings, visibility, and competitors’ performance across search engines and locations. It provides access to ranking data for specific keywords, devices, and regions.
- Site Audit API lets you automatically crawl websites, identify technical SEO issues, and retrieve structured reports about site health and performance. With this API, you can run new audits, monitor ongoing crawl progress, and access detailed reports on errors, warnings, and notices.
Jump to Get accessGet access
To use the Projects API, you must have the SEO Business subscription and available API units. Learn more about the Standard API ›
Jump to AuthorizationAuthorization
Different Projects API endpoints require different authorization methods:
- Projects (API key), Position Tracking, and Site Audit APIs require an API key.
- Projects (OAuth 2.0) uses OAuth 2.0 authorization.
Jump to ResponseResponse
All endpoints in the Projects API return responses in JSON format.
Jump to Error messagesError messages
The Projects (API key), Position Tracking, and Site Audit APIs return error messages in the following format:
{
"code": "{ERROR_CODE}",
"message": "{ERROR_MESSAGE}"
}In addition to a descriptive error text, error messages contain machine-parsable codes. While the text for an error message may change, the codes will stay the same.
The Projects API (OAuth 2.0) uses HTTP status codes, like the Local API.
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: March 10, 2026