API

Analytics Traffic

You are reading the Project API docs

Base URL: api4.seranking.com

Project API uses subscription limits. Fro more information visit API credit system.

Data API and Project API keys are not interchangeable — use the correct one to avoid authentication errors.

Data apikey example:
80cfee7d-xxxx-xxxx-xxxx-fc8500816bb3
(UUID format)
Project apikey example:
253a73adxxxxxxxxxxxxxx340aa0a939
(40-char hex)

API keys are available in your account. For any questions or 401 errors, email [email protected] for support.

Analytics Traffic API provides endpoints to retrieve analytics and traffic data for a project, including Google Search Console metrics, keyword traffic potential, and estimated SEO performance.


Get Google Search Console data

GET https://api4.seranking.com/analytics/{site_id}/google

Returns popular queries and performance metrics from Google Search Console for the specified site.

Request parameters

ParameterTypeRequiredDescription
site_idIntegerYesProject (site) ID (path parameter).

Request example

Copy
GET https://api4.seranking.com/analytics/1/google

Response parameters

If successful, the server returns the 200 HTTP status code and an array of queries with performance metrics. Returns HTTP 400 if the site is not shared with the account (for more information, see Error handling).

ParameterTypeDescription
queryStringSearch query.
impressionsIntegerNumber of impressions.
clicksIntegerNumber of clicks.
ctrFloatClick-through rate (%).
avgFloatAverage position.

Response example

Copy
[
{
"query": "text", 
  "impressions": 100, 
  "clicks": 10, 
  "ctr": 10, 
  "avg": 5
},
  ...
]

Calculate SEO potential

GET https://api4.seranking.com/analytics/{site_id}/potential

Estimates traffic, cost, and potential leads for the specified site.

Request parameters

ParameterTypeRequiredDescription
site_idIntegerYesProject (site) ID (path parameter).
top_nIntegerNoIf specified, calculates potential traffic assuming all queries reach the TOP. Otherwise, returns the current traffic estimate for queries added to the system.
lead_priceFloatNoEstimated income per client.
conversion_rateFloatNoConversion rate to sales (%).

Request example

Copy
GET https://api4.seranking.com/analytics/1/potential/?top_n=10&lead_price=50&conversion_rate=100

Response parameters

If successful, the server returns the 200 HTTP status code and an array of traffic forecasts per search engine. Returns HTTP 400 if site_id is not valid (for more information, see Error handling).

ParameterTypeDescription
site_engine_idIntegerUnique ID of the search engine configuration within the project.
trafficIntegerEstimated traffic.
traffic_valueFloatEstimated cost of traffic.
leads_qtyIntegerEstimated number of clients.
leads_priceFloatEstimated profit from leads.

Response example

Copy
[
{
"site_engine_id": 586,
"traffic": 1,
"traffic_value": 5.85,
"leads_qty": 0,
"leads_price": 0
},
...
]

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

Hi! Meet our product expert, Alex.

He’ll 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 Services and Privacy Policy.