API

Getting started

All API method invocations are HTTP GET requests to the URL:

Copy
https://api.seranking.com/v1/local-marketing

The API key must be transferred via the apikey query parameter for each invoked method or via the Authorization HTTP header. All data is returned in JSON format.

Copy
GET https://api.seranking.com/v1/local-marketing/locations
Authorization: Token YOUR_API_KEY
Copy
GET https://api.seranking.com/v1/local-marketing/locations?apikey=YOUR_API_KEY

Every reporting endpoint is scoped to a location via the location_id path parameter — the ID of a location added to Local Marketing in your account.

Usage and limits

Local Marketing API endpoints don’t consume API credits. Access is covered by your subscription’s Local Marketing limits: every plan includes 3 connected locations, and additional locations can be purchased separately. The endpoints themselves are free to call — only the standard per-second rate limit applies.

Pagination

List endpoints use one of three pagination styles, mirroring the upstream services:

  • Offset-basedlocations, citations, reviews, rankings/keywords, and rankings/positions accept limit/offset and return a pagination object (total, limit, offset). Note: only items is guaranteed in list responses — treat a missing pagination object as end-of-data and page until a response returns fewer than limit items.
  • Token-based — the Google Business Profile keyword report accepts page_size/page_token and returns next_page_token (null when there are no more pages).
  • Limit-only — the audit report history accepts limit (and start_date).

Errors

The API uses standard HTTP status codes; only 2xx responses indicate success. Error responses return a JSON body with an error message, for example { "message": "Not found" }.

StatusMeaning
400Bad request — invalid parameter value.
401Unauthorized — missing or invalid API key.
403Forbidden — no access to the requested location or feature.
404Not found — the location or resource does not exist.
429Too many requests — the per-second rate limit was exceeded.

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.