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_ids and gbp_attributes fields 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:

Key
Type
Description
Required/Optional
success
boolean
Request status.
Required
status_code
integer
HTTP status code.
Required
request_id
string
Unique ID of the request.
Optional
Success response example
JSON
{
  "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:

Key
Type
Description
Required/Optional
code
integer
HTTP status code.
Required
message
string
Short summary of the error.
Required
details
array of objects
List of objects that describe each validation error.
Optional
Error response example
JSON
{
  "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.

Code
Description
Recommended action
2XX OK
The request was processed successfully.
No action required.
400 Bad Request
The request couldn’t be processed because it was incorrect or incomplete.
Check the request body for typos and missing parameters. For details, refer to the optional ‘error.details’ field if it’s present in the response.
401 Unauthorized
The request couldn’t be processed because the provided authentication credentials were incorrect or missing.
Ensure the access token you use for accessing the API is still valid.
403 Forbidden
The request couldn’t be processed due to a restriction or permission issue.
Contact the Semrush Support Team.
404 Not Found
The request couldn’t be processed because the target resource was incorrect or had been moved.
Ensure the target resource exists and is specified correctly in the request.
409 Conflict
The request couldn’t be processed due to a conflict with the current state of the resource.
Retry the request later or check the resource state–for example, when creating a project, confirm it doesn’t already exist.
429 Too Many Requests
The request couldn’t be processed because there were too many requests from the user with the given access token.
Retry the request later.
499 Client Closed Request
The request couldn’t be processed because the user disconnected before receiving a response.
Check your network connection and retry the request later.
550 Internal Server Error
The request couldn’t be processed due to a server-side error.
Retry the request later.
551 Not Implemented
The request couldn’t be processed because the specified request method isn’t supported.
To check all available methods, refer to the API reference.
553 Service Unavailable
The request couldn’t be processed due to server maintenance or overload.
Retry the request later.
554 Gateway Timeout
The request couldn’t be processed due to a timeout at the acting gateway or proxy server.
Retry the request later.

Jump 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

Not found error response
JSON
{
  "meta": {
    "success": false,
    "status_code": 404,
    "request_id": "7595d5c768a976ab0b120749173cf803"
  },
  "error": {
    "code": 404,
    "message": "Not Found"
  }
}
Invalid request error response
JSON
{
  "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.

Status
Message
LOCATION_NOT_FOUND
Location not found or is not accessible
LOCATIONS_NOT_FOUND
The following locations could not be found or are not accessible: <location IDs>
LOCATION_IS_FROZEN
Location is frozen and cannot be accessed.
LOCATION_GBP_NOT_FOUND
Location doesn’t have GBP connection
LOCATIONS_GBP_NOT_FOUND
The following locations don’t have GBP connection: <location IDs>
LOCATION_SUBSCRIPTION_NOT_SUPPORTED
Location subscription doesn’t support the operation.

Jump to Location data (create and update)Location data (create and update)

Returned when creating or updating a location.

Status
Message
LOCATION_ID_NOT_SPECIFIED
Location ID is not specified.
LOCATION_ID_LENGTH
Location ID is longer than 100 characters.
LOCATION_NAME_NOT_SPECIFIED
Location name is not specified.
LOCATION_NAME_LENGTH
Location name is longer than 125 characters.
LOCATION_DESCRIPTION_LENGTH
Location description should be between 10 and 750 characters.
UPDATE_MASK_IS_NOT_SPECIFIED
Update mask is not specified.
UNSUPPORTED_UPDATE_MASK_ELEMENT
Unsupported update mask element.
UNSUPPORTED_LOCATION_STATUS
Unsupported location status.
UNSUPPORTED_SUBSCRIPTION_TYPE
Unsupported subscription type.
REOPEN_DATE_INVALID_FORMAT
Reopen date should be after today and before 2038-01-01.
WEBSITE_URL_LENGTH
Website URL is longer than 255 characters.
WEBSITE_URL_INVALID_FORMAT
Please enter a valid URL starting with https:// or http://.
ADDRESS_LINE_1_NOT_SPECIFIED
Address is not specified.
ADDRESS_LINE_1_LENGTH
Address is longer than 190 characters.
ADDRESS_LINE_2_LENGTH
Additional address cannot be longer than 64 characters.
CITY_NOT_SPECIFIED
City name is not specified.
CITY_LENGTH
City name should be shorter than 64 characters.
CITY_INVALID_FORMAT
City name contains invalid characters.
REGION_LENGTH
Region name should be shorter than 200 characters.
ZIP_NOT_SPECIFIED
ZIP code is not specified.
COUNTRY_NOT_SPECIFIED
Country is not specified.
UNSUPPORTED_COUNTRY
Unsupported country.
PHONE_NOT_SPECIFIED
Phone number is not specified.
LATITUDE_NOT_SPECIFIED
Latitude is not specified.
LATITUDE_INVALID_FORMAT
Latitude must be between -90 and 90.
LONGITUDE_NOT_SPECIFIED
Longitude is not specified.
LONGITUDE_INVALID_FORMAT
Longitude must be between -180 and 180.
CATEGORIES_NOT_SPECIFIED
Categories are not specified.
CATEGORIES_SIZE
The number of categories is greater than 10.
CATEGORY_INVALID_LENGTH
Category name is longer than 64 characters.
CATEGORY_INVALID_FORMAT
Category name should contain only Latin letters and numeric values.
INSTAGRAM_USERNAME_LENGTH
Instagram username is longer than 30 characters.
INSTAGRAM_USERNAME_INVALID_FORMAT
Instagram username can contain only alphanumeric characters and underscores, and cannot start with @.
TWITTER_USERNAME_LENGTH
Twitter username is longer than 15 characters.
TWITTER_USERNAME_INVALID_FORMAT
Twitter username can contain only alphanumeric characters and underscores, and cannot start with @.
FEATURED_MESSAGE_LENGTH
Featured message is longer than 50 characters.
FEATURED_MESSAGE_URL_LENGTH
Featured message URL is longer than 255 characters.
FEATURED_MESSAGE_URL_INVALID_FORMAT
Featured message URL must be a valid URL. Supported schemas: http, https.
YOUTUBE_VIDEO_URL_LENGTH
Video URL is longer than 150 characters.
YOUTUBE_VIDEO_URL_INVALID_FORMAT
Please enter a valid YouTube URL.
SERVICE_AREA_PLACES_SHOULD_NOT_BE_EMPTY_WITH_SUPPRESSED_ADDRESS
Service area places should not be empty if the address is suppressed.
SERVICE_AREA_PLACES_TOO_LARGE
The number of service area places is greater than 20.
SERVICE_AREA_PLACE_NAME_IS_EMPTY
Service area place name should be set.
SERVICE_AREA_PLACE_NAME_TOO_LONG
Service area place name is longer than 80 characters.
SERVICE_AREA_PLACE_ID_IS_EMPTY
Service area place id should be set.
SERVICE_AREA_PLACE_ID_TOO_LONG
Service area place ID is longer than 500 characters.
SERVICE_AREA_PLACES_CONTAIN_NAME_DUPLICATE
Service area places contain duplicate names.
SERVICE_AREA_PLACES_CONTAIN_PLACE_ID_DUPLICATE
Service area places contain duplicate IDs.

Jump to Business hours (create and update)Business hours (create and update)

Returned when setting regular, special, or additional hours for a location.

Status
Message
TIMES_NOT_SPECIFIED
Operational hours are not specified.
TIMES_NOT_ALLOWED
Operational hours should not be set.
TIMES_TOO_MANY_RANGES
Only three time ranges can be set.
TIMES_OVERLAP
Operational hour intervals overlap.
TIMES_OVERLAP_BETWEEN_DAYS
Operational hour intervals overlap between days.
DAYS_NOT_SPECIFIED
No days are selected.
DAYS_OVERLAP
Each day of the week can be mentioned only once.
SPECIAL_HOURS_NOT_ALLOWED
Regular business hours must be set for special hours setup.
SPECIAL_HOURS_SIZE
The number of special hours elements is greater than 30.
SPECIAL_HOURS_NOT_UNIQUE
Each special hours element can be mentioned only once.
SPECIAL_HOURS_TYPE_NOT_SPECIFIED
Special hours type is not specified.
SPECIAL_HOURS_DAY_NOT_SPECIFIED
Special hours date is not specified.
UNSUPPORTED_SPECIAL_HOURS_TYPE
Unsupported holiday hours type.
UNSUPPORTED_MORE_HOURS_TYPE
Unsupported more hours type.

Jump to Location imagesLocation images

Status
Message
IMAGE_ID_NOT_SPECIFIED
Image ID is not specified.
IMAGE_CONTENT_NOT_SPECIFIED
Image content is not specified
UNSUPPORTED_IMAGE_TYPE
Unsupported image type.
IMAGE_SIZE_EXCEEDED
Image size exceeds the maximum allowed size of 4 MB.
IMAGE_DESCRIPTION_LENGTH
Description should be less than 255 symbols.

Jump to ListingsListings

Status
Message
LISTING_ID_NOT_SPECIFIED
Listing ID is not specified.
UNSUPPORTED_LISTING_STATUS
Unsupported listing status.

Jump to ReviewsReviews

Status
Message
REVIEW_ID_NOT_SPECIFIED
Review ID is not specified.
COMMENT_ID_NOT_SPECIFIED
Comment ID is not specified.
REVIEW_CONTENT_NOT_SPECIFIED
Review content is not specified.
REVIEW_CONTENT_LENGTH
Review is longer than 2000 characters.
REVIEW_COMMENT_NOT_FOUND
Review comment not found
REVIEW_COMMENT_OPERATION_NOT_SUPPORTED
Review provider does not support this comment operation.
REVIEW_COMMENT_IS_NOT_BUSINESS_OWNER
Only comments of the business owner can be edited or removed.
LOCATION_SETTINGS_UNSUPPORTED_UPDATE
This update of location settings is not supported.

Jump to Google Business Profile posts, suggestions, and metricsGoogle Business Profile posts, suggestions, and metrics

Status
Message
POST_ID_NOT_SPECIFIED
Post ID is not specified.
SUGGESTION_ID_NOT_SPECIFIED
Suggestion ID is not specified.
UNSUPPORTED_SUGGESTION_TYPE
Unsupported suggestion type.
UNSUPPORTED_SUGGESTION_STATUSES
Unsupported suggestion statuses.
UNSUPPORTED_SUGGESTION_DECISION
Unsupported suggestion decision.
LOCATION_IDS_NOT_SPECIFIED
Location IDs are not specified.
LOCATION_IDS_LENGTH
Location IDs length should be between 1 and 5.
DATE_FROM_NOT_SPECIFIED
date_from is not specified.
DATE_FROM_HAS_INVALID_FORMAT
date_from has invalid format.
DATE_TO_NOT_SPECIFIED
date_to is not specified.
DATE_TO_HAS_INVALID_FORMAT
date_to has invalid format.
UNSUPPORTED_AGGREGATED_METRICS
Unsupported aggregation metrics value.

Jump to Pagination and filtersPagination and filters

Status
Message
OFFSET_MIN_VALUE
Offset must be greater than or equal to 0.
LIMIT_MIN_VALUE
Limit must be greater than or equal to 0.
LOCATIONS_LIMIT_MAX_VALUE
Locations limit must be less than or equal to 50.
GBP_POSTS_LIMIT_MAX_VALUE
Posts limit must be less than or equal to 50.
GBP_SUGGESTIONS_LIMIT_MAX_VALUE
Suggestions limit must be less than or equal to 50.
REVIEWS_LIMIT_MAX_VALUE
Reviews limit must be less than or equal to 250.
IMAGES_LIMIT_MAX_VALUE_MESSAGE
Images limit must be less than or equal to 50.
UNSUPPORTED_LOCATION_STATUSES
Unsupported location statuses.

Jump to GeneralGeneral

Status
Message
USER_ID_NOT_SPECIFIED
User ID is not specified.
LOCATION_IDS_LENGTH
Location IDs have more than 100 elements.
INVALID_DATE_TIME_FORMAT
Invalid date-time format. Expected: ISO-8601 format yyyy-MM-ddTHH:mm:ss (for example, 2023-10-25T14:30:00)
INVALID_DATE_FORMAT
Invalid date format. Expected: ISO-8601 format yyyy-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 response due to duplicated location IDs
JSON
{
  "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 response due to no location with the requested ID
JSON
{
  "error": {
    "code": "RESOURCE_NOT_FOUND",
    "message": "Resource not found.",
    "details": [
      {
        "code": "LOCATION_NOT_FOUND",
        "message": "Location is not found."
      }
    ]
  },
  "requestId": "api-flb-fb27c729b51e658d4a4984716df00a77"
}
Error response due to incorrect data format in request
JSON
{
  "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

Was this page helpful?