Overview
Jump to AboutAbout
Jump to Listing Management API overviewListing Management API overview
Listing Management API allows you to push data from your tools into Semrush Listing Management in bulk and distribute it across directories in seconds.
Using this API, you can:
- Create, retrieve, update, and delete business locations.
- Manage location information, hours, categories, and payment options.
- Upload and manage location images.
- Retrieve and manage location listings.
Jump to Google Business Profile Tool API overviewGoogle Business Profile Tool API overview
Google Business Profile Tool API gives you programmatic access to your Google Business Profile data directly from Semrush. Use it to retrieve GBP-specific categories, attributes, performance metrics, and extended hours types, manage GBP posts, and review GBP suggestions for your locations.
Using this API, you can:
- Retrieve GBP categories and attributes to find the ones that best fit your locations, then use the returned IDs in the
gbp_category_idsandgbp_attributesfields when updating a location. - Fetch performance metrics — including views, clicks, and direction requests — for one or more locations over custom date ranges.
- Access GBP posts for your locations and filter them by publication status.
- Create, update, schedule, and delete GBP posts.
- Retrieve suggested changes to your locations’ business data — edits proposed by Google Maps users or made by Google itself, and mismatches between Semrush and GBP data — and accept or reject them.
- Get extended hour types to support special business hours configurations.
Jump to Review Management API overviewReview Management API overview
Review Management API lets you monitor, analyze, and respond to customer reviews for your business locations from within Semrush. With this API, you can programmatically access reviews and their statistics and manage replies to them, enabling you to build automated workflows around review monitoring and reputation management.
Using this API, you can:
- Retrieve a paginated list of reviews for any location, with filtering by star rating, reply status, and auto-reply status.
- Get a review overview for a location, including average rating, total review count, rating distribution, and the number of unanswered reviews.
- Add, update, and delete comments (replies) on reviews.
- Get and update a location’s review auto-reply settings.
Jump to Map Rank Tracker API overviewMap Rank Tracker API overview
Map Rank Tracker API lets you access critical data related to your campaigns, keywords, and competitors. The methods provide detailed information about campaign rankings, heatmaps, competitors, and keyword performance. By easily integrating real-time data into your existing systems, you can stay ahead in your SEO strategies.
Learn more about Map Rank Tracker ›
Jump to Get accessGet access
Jump to Listing Management APIListing Management API
The Listing Management API is available for all Semrush Local Pro and Business plan users.
Learn more about the Listing Management API ›
Jump to Review Management APIReview Management API
The Review Management API is available for all Semrush users who have connected their locations to Google Business Profile.
Learn more about the Review Management API ›
Jump to Google Business Profile Tool APIGoogle Business Profile Tool API
The Google Business Profile Tool API is available for all Semrush users who have connected their locations to Google Business Profile.
Learn more about the Google Business Profile Tool API ›
Jump to Map Rank Tracker APIMap Rank Tracker API
The Map Rank Tracker API is available to all Semrush users.
Learn more about the Map Rank Tracker API ›
Jump to AuthorizationAuthorization
All Local APIs use a Version 4 API key to authorize requests.
Include your API key in every request header: Authorization: Apikey <YOUR_API_KEY>.
Learn how to get your API key ›
Jump to API response formatAPI response format
All Local APIs use the same response format.
The response body contains a JSON-encoded object, which has a top-level object called meta, followed by either a data object or an error object, but not both.
The meta object contains these fields:
successbooleanstatus_codeintegerrequest_idstring{
"meta": {
"success": true,
"status_code": 200,
"request_id": "IAD-as5656as776"
},
"data": [
{"id": "590e", "kind": "dog", "name": "Penny"},
{"id": "a45f", "kind": "cat", "name": "Tommy"}
]
}The error object contains these fields:
codeintegermessagestringdetailsarray of objects{
"meta": {
"success": false,
"status_code": 400,
"request_id": "IAD-123ade456"
},
"error": {
"code": 400,
"message": "Invalid request.",
"details": [
{
"message": "ZIP code is not specified.",
"error_status": "ZIP_NOT_SPECIFIED"
}
]
}
}Jump to Status codesStatus codes
The Local API returns a corresponding HTTP status code with every request response, whether it succeeds or fails.
2XX OK400 Bad Request401 Unauthorized403 Forbidden404 Not Found409 Conflict429 Too Many Requests499 Client Closed Request550 Internal Server Error551 Not Implemented553 Service Unavailable554 Gateway TimeoutJump to Error responsesError responses
All Local APIs return the standard status codes.
When a request fails, the response body contains an error object instead of data, as described in API response format.
Response Parameters
error
Error information.
Value/Type: object
code
The numerical HTTP status code of the response (for example, 400, 404).
Value/Type: integer
message
A short summary of the error.
Value/Type: string
details
Detailed error information.
Value/Type: array of objects
message
Value/Type: string
error_status
"ZIP_NOT_SPECIFIED").Value/Type: string
{
"meta": {
"success": false,
"status_code": 404,
"request_id": "7595d5c768a976ab0b120749173cf803"
},
"error": {
"code": 404,
"message": "Not Found"
}
}{
"meta": {
"success": false,
"status_code": 400,
"request_id": "6995af5ce87c1831c78c22a5456f646f"
},
"error": {
"code": 400,
"message": "Invalid request.",
"details": [
{
"message": "Phone number is not specified.",
"error_status": "PHONE_NOT_SPECIFIED"
}
]
}
}Jump to Validation errorsValidation errors
The Listing Management API, Review Management API, and Google Business Profile Tool API validate request data and return the statuses listed below.
When a request fails validation, the error.details array contains an object with the human-readable message and the machine-readable error_status fields. Use error_status to handle errors in code. Its values are stable, while the message text can change.
Jump to Location accessLocation access
Returned by any endpoint that works with existing locations.
LOCATION_NOT_FOUNDLOCATIONS_NOT_FOUND<location IDs>LOCATION_IS_FROZENLOCATION_GBP_NOT_FOUNDLOCATIONS_GBP_NOT_FOUND<location IDs>LOCATION_SUBSCRIPTION_NOT_SUPPORTEDJump to Location data (create and update)Location data (create and update)
Returned when creating or updating a location.
LOCATION_ID_NOT_SPECIFIEDLOCATION_ID_LENGTHLOCATION_NAME_NOT_SPECIFIEDLOCATION_NAME_LENGTHLOCATION_DESCRIPTION_LENGTHUPDATE_MASK_IS_NOT_SPECIFIEDUNSUPPORTED_UPDATE_MASK_ELEMENTUNSUPPORTED_LOCATION_STATUSUNSUPPORTED_SUBSCRIPTION_TYPEREOPEN_DATE_INVALID_FORMAT2038-01-01.WEBSITE_URL_LENGTHWEBSITE_URL_INVALID_FORMAThttps:// or http://.ADDRESS_LINE_1_NOT_SPECIFIEDADDRESS_LINE_1_LENGTHADDRESS_LINE_2_LENGTHCITY_NOT_SPECIFIEDCITY_LENGTHCITY_INVALID_FORMATREGION_LENGTHZIP_NOT_SPECIFIEDCOUNTRY_NOT_SPECIFIEDUNSUPPORTED_COUNTRYPHONE_NOT_SPECIFIEDLATITUDE_NOT_SPECIFIEDLATITUDE_INVALID_FORMAT-90 and 90.LONGITUDE_NOT_SPECIFIEDLONGITUDE_INVALID_FORMAT-180 and 180.CATEGORIES_NOT_SPECIFIEDCATEGORIES_SIZECATEGORY_INVALID_LENGTHCATEGORY_INVALID_FORMATINSTAGRAM_USERNAME_LENGTHINSTAGRAM_USERNAME_INVALID_FORMAT@.TWITTER_USERNAME_LENGTHTWITTER_USERNAME_INVALID_FORMAT@.FEATURED_MESSAGE_LENGTHFEATURED_MESSAGE_URL_LENGTHFEATURED_MESSAGE_URL_INVALID_FORMAThttp, https.YOUTUBE_VIDEO_URL_LENGTHYOUTUBE_VIDEO_URL_INVALID_FORMATSERVICE_AREA_PLACES_SHOULD_NOT_BE_EMPTY_WITH_SUPPRESSED_ADDRESSSERVICE_AREA_PLACES_TOO_LARGESERVICE_AREA_PLACE_NAME_IS_EMPTYSERVICE_AREA_PLACE_NAME_TOO_LONGSERVICE_AREA_PLACE_ID_IS_EMPTYSERVICE_AREA_PLACE_ID_TOO_LONGSERVICE_AREA_PLACES_CONTAIN_NAME_DUPLICATESERVICE_AREA_PLACES_CONTAIN_PLACE_ID_DUPLICATEJump to Business hours (create and update)Business hours (create and update)
Returned when setting regular, special, or additional hours for a location.
TIMES_NOT_SPECIFIEDTIMES_NOT_ALLOWEDTIMES_TOO_MANY_RANGESTIMES_OVERLAPTIMES_OVERLAP_BETWEEN_DAYSDAYS_NOT_SPECIFIEDDAYS_OVERLAPSPECIAL_HOURS_NOT_ALLOWEDSPECIAL_HOURS_SIZESPECIAL_HOURS_NOT_UNIQUESPECIAL_HOURS_TYPE_NOT_SPECIFIEDSPECIAL_HOURS_DAY_NOT_SPECIFIEDUNSUPPORTED_SPECIAL_HOURS_TYPEUNSUPPORTED_MORE_HOURS_TYPEJump to Location imagesLocation images
IMAGE_ID_NOT_SPECIFIEDIMAGE_CONTENT_NOT_SPECIFIEDUNSUPPORTED_IMAGE_TYPEIMAGE_SIZE_EXCEEDEDIMAGE_DESCRIPTION_LENGTHJump to ListingsListings
LISTING_ID_NOT_SPECIFIEDUNSUPPORTED_LISTING_STATUSJump to ReviewsReviews
REVIEW_ID_NOT_SPECIFIEDCOMMENT_ID_NOT_SPECIFIEDREVIEW_CONTENT_NOT_SPECIFIEDREVIEW_CONTENT_LENGTHREVIEW_COMMENT_NOT_FOUNDREVIEW_COMMENT_OPERATION_NOT_SUPPORTEDREVIEW_COMMENT_IS_NOT_BUSINESS_OWNERLOCATION_SETTINGS_UNSUPPORTED_UPDATEJump to Google Business Profile posts, suggestions, and metricsGoogle Business Profile posts, suggestions, and metrics
POST_ID_NOT_SPECIFIEDSUGGESTION_ID_NOT_SPECIFIEDUNSUPPORTED_SUGGESTION_TYPEUNSUPPORTED_SUGGESTION_STATUSESUNSUPPORTED_SUGGESTION_DECISIONLOCATION_IDS_NOT_SPECIFIEDLOCATION_IDS_LENGTHDATE_FROM_NOT_SPECIFIEDdate_from is not specified.DATE_FROM_HAS_INVALID_FORMATdate_from has invalid format.DATE_TO_NOT_SPECIFIEDdate_to is not specified.DATE_TO_HAS_INVALID_FORMATdate_to has invalid format.UNSUPPORTED_AGGREGATED_METRICSJump to Pagination and filtersPagination and filters
OFFSET_MIN_VALUELIMIT_MIN_VALUELOCATIONS_LIMIT_MAX_VALUEGBP_POSTS_LIMIT_MAX_VALUEGBP_SUGGESTIONS_LIMIT_MAX_VALUEREVIEWS_LIMIT_MAX_VALUEIMAGES_LIMIT_MAX_VALUE_MESSAGEUNSUPPORTED_LOCATION_STATUSESJump to GeneralGeneral
USER_ID_NOT_SPECIFIEDLOCATION_IDS_LENGTHINVALID_DATE_TIME_FORMATyyyy-MM-ddTHH:mm:ss (for example, 2023-10-25T14:30:00)INVALID_DATE_FORMATyyyy-MM-dd (for example, 2023-10-25)Jump to Deprecated Listing Management API methodsDeprecated Listing Management API methods
The deprecated Listing Management API returns the standard status codes in its responses.
Except for the UpdateLocations method. If there’s an error while updating one or several locations, the HTTP status code is still
200, but the errors themselves will be described in the response. This is done so that the locations that didn’t return errors get updated successfully. If it’s easier, you can update locations one by one using the UpdateLocation method.
However, note that the error responses don’t follow the API response format exactly as described.
These examples of error responses give you an idea of what to expect in case of a failed request. The error responses you get aim to help you find the issues in your requests and fix them.
{
"error": {
"code": "BAD_REQUEST",
"message": "Invalid state of resource.",
"details": [
{
"code": "LOCATIONS_ARE_NOT_UNIQUE",
"message": "The locations are not unique. There are several locations with this ID: 6fb03fd6c3a943a489df2c7060218911."
}
]
},
"requestId": "api-flb-ec33fa653e6734980500d561b6aa3d32"
}{
"error": {
"code": "RESOURCE_NOT_FOUND",
"message": "Resource not found.",
"details": [
{
"code": "LOCATION_NOT_FOUND",
"message": "Location is not found."
}
]
},
"requestId": "api-flb-fb27c729b51e658d4a4984716df00a77"
}{
"error": {
"code": "VALIDATION_ERROR",
"message": "Invalid data provided.",
"details": [
{
"code": "TIMES_NOT_ALLOWED",
"message": "Operation hours shouldn't be set.",
"field": "holidayHours.times",
"index": "0"
},
{
"code": "TIMES_TOO_MANY_RANGES",
"message": "Only three time ranges can be set.",
"field": "holidayHours.times",
"index": "1"
}
]
},
"requestId": "api-flb-fb27c729b51e658d4a4984716df00a77"
}Jump to FAQFAQ
Jump to How do I connect my CMS to the Listing Management API?How do I connect my CMS to the Listing Management API?
To connect your CMS (or another system like a CRM or store locator) to Semrush Listing Management, you’ll need to set up an API integration: authenticate with your Version 4 API key, retrieve your existing location IDs using the API, and send updates (such as name, address, hours, or phone number) whenever your data changes. Follow the Listing Management API tutorial for step-by-step instructions.
Last updated: November 23, 2026