Issue categories statistics

AuditSite.getCategoriesStatistic — this method brings in statistics by issue categories.

statistics by issue categories

Use case: With the AuditSite.getCategoriesStatistic method, check how many issues related to specific categories the site has.

Request parameters

Parameter

Description

Type

Optional

Default value

Value Options

id

A request id: the response contains the same id.

int/string

no

Text or number value, 1, test

method

API method name

string

no

AuditSite.getCategoriesStatistic

params

The object with parameters {...}, it lists all the following parameters and arrays [...]

no

reportId

Report id

int

no

1251109 (any report ID number)

Response parameters
Parameters Description
id Request id
result Contains the answer
category Category name
highCount Number of high priority errors
mediumCount Numbers of medium priority errors
lowCount Numbers of low priority errors
InformationCount Number of information messages

Credits for this method are not deducted.

Example
Request data:
{
 "id":1,
 "method": "AuditSite.getCategoriesStatistic",
 "params":{
  "reportId":123456
  }
}
Response data:
{
    "id": "1",
    "result": [
        {
            "category": "pages_status",
            "highCount": 9,
            "mediumCount": 0,
            "lowCount": 0,
            "informationCount": 0
        },
        {
            "category": "meta_tags",
            "highCount": 93,
            "mediumCount": 1023,
            "lowCount": 119,
            "informationCount": 4
        }

Exception if a user doesn't have access to the report:

{
    "id": "1",
    "error": {
        "code": -32101,
        "message": "This project report not found in DB",
        "data": {
        }
    }
}

Поделитесь статьей с вашими друзьями

Are you sure?

Персональная презентация сервиса

Serpstat is all about saving time, and we want to save yours! One of our specialists will contact you and discuss options going forward.

These may include a personal demonstration, a trial period, comprehensive training articles & webinar recordings, and custom advice from a Serpstat specialist. It is our goal to make you feel comfortable while using Serpstat.

Name

Email

Phone

We are glad of your comment
Política de privacidad.

Спасибо, мы с вами свяжемся в ближайшее время

Open support chat