API

Local Marketing Audit

Local Marketing Audit API provides endpoints to retrieve the latest audit report and the audit report history for a location.


Get latest audit report

GET https://api.seranking.com/v1/local-marketing/locations/{location_id}/audit/reports/latest

Returns the latest Local Marketing audit report for a location. The response mirrors the report structure that drives the Local Marketing audit page: summary counters, per-check entries, previous issue counts, and optional directories/reviews payloads for checks with detailed drill-downs.

Request parameters

ParameterTypeRequiredDescription
location_idIntegerYesLocation ID (path parameter).
dateStringNoReport date (in YYYY-MM-DD). If omitted, the latest finished report is returned.

Request example

Copy
GET https://api.seranking.com/v1/local-marketing/locations/15/audit/reports/latest?date=2026-05-30

Response parameters

If successful, the server returns the 200 HTTP status code and the audit report. Returns HTTP 404 if the location is not found.

ParameterTypeDescription
statusStringReport generation status (e.g. finished).
dateStringReport date (in YYYY-MM-DD).
summaryObjectSummary counters.
summary.scoreIntegerOverall audit score, 0–100 — the same value exposed as audit_score_percent/score_percent in the location endpoints (can be null).
summary.total_errorsIntegerTotal number of errors.
summary.total_warningsIntegerTotal number of warnings.
summary.total_noticesIntegerTotal number of notices.
entriesArrayPer-check entries.
check_codeStringStable audit check code used by frontend translations and navigation.
categoryStringAudit category used on the audit page (e.g. profile).
severityStringSeverity bucket: error, warning, or notice.
is_passedBooleanDeprecated compatibility field from the current frontend API.
result_statusStringActual result status: passed, failed, or undefined.
issues_countIntegerNumber of issues found by the check (can be null).
issues_count_prevIntegerNumber of issues in the previous report (can be null).
weightFloatCheck weight in the overall score.
directoriesObjectDirectory drill-down for directory checks: failed, not_checked, new, fixed (arrays of directory codes).
reviewsObjectReview drill-down for review checks: failed, new, fixed (arrays).

Response example

Copy
{
"status": "finished",
"date": "2026-05-30",
"summary": {
"score": 85,
"total_errors": 2,
"total_warnings": 5,
"total_notices": 3
},
"entries": [
{
"check_code": "nap_consistency",
"category": "listings",
"severity": "error",
"is_passed": false,
"result_status": "failed",
"issues_count": 3,
"issues_count_prev": 5,
"weight": 2.5,
"directories": {
"failed": ["foursquare", "hotfrog"],
"not_checked": [],
"new": [],
"fixed": ["yelp"]
}
},
{
"check_code": "unanswered_reviews",
"category": "reviews",
"severity": "warning",
"is_passed": false,
"result_status": "failed",
"issues_count": 8,
"issues_count_prev": 12,
"weight": 1.0,
"reviews": {
"failed": ["501", "502"],
"new": ["503"],
"fixed": []
}
}
]
}

Get audit report history

GET https://api.seranking.com/v1/local-marketing/locations/{location_id}/audit/reports

Returns the audit report history for a location as date and summary pairs, sorted by date.

Request parameters

ParameterTypeRequiredDescription
location_idIntegerYesLocation ID (path parameter).
start_dateStringNoHistory start date (in YYYY-MM-DD).
limitIntegerNoMaximum number of items to return (1–1000). Default is 10.

Request example

Copy
GET https://api.seranking.com/v1/local-marketing/locations/15/audit/reports?start_date=2026-05-01&limit=10

Response parameters

If successful, the server returns the 200 HTTP status code and a top-level JSON array (not an object) of history items. Each item is itself a two-element array: the report date (in YYYY-MM-DD) followed by a summary object with the fields below. Returns HTTP 404 if the location is not found.

ParameterTypeDescription
statusStringReport generation status.
scoreIntegerOverall audit score, 0–100 — the same value as summary.score in the latest report (can be null).
total_errorsIntegerTotal number of errors.
total_warningsIntegerTotal number of warnings.
total_noticesIntegerTotal number of notices.

Response example

Copy
[
[
"2026-05-30",
{
"status": "finished",
"score": 85,
"total_errors": 2,
"total_warnings": 5,
"total_notices": 3
}
],
[
"2026-05-23",
{
"status": "finished",
"score": 82,
"total_errors": 3,
"total_warnings": 6,
"total_notices": 3
}
]
]

Learn how SE Ranking’s API can boost your SEO!

Hi! Meet our product experts!

One of them will walk you through the API and show you how to get the most out of it.

  • Enjoy a tailored demo on integrating rich, structured SEO data into your stack.
  • Pin down every tech detail live—auth, endpoints, rate limits, data formats.
  • Compare usage tiers and pricing so you can unlock maximum data value.

Request a free demo to see our tools and integrations in action

By clicking this button, you agree to SE Ranking’s
Terms of Service and Privacy Statement.