Issue subelements data

AuditSite.getSubElementsByCrc — method returns a list of subelements which contains a specific error or information message.

a list of subelements which contains a specific error

Use case: With the AuditSite.getSubElementsByCrc method, find all subelements with a specific error and fix it.

General request parameters and instructions for using Serpstat API.

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

method

API method name

string

no

AuditSite.getSubElementsByCrc

params

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

no

reportId

Audit report id

int

no

1251109 (any report ID number)

compareReportId 

Audit report id for comparison

int

yes

8630677 (any report ID number)

projectId

Audit project id

int

no

1143007 (any project ID number)

errorName

Check name

string

no

name of the error type you need to check. To see all the error types, please refer to the AuditSite.getReportWithoutDetails method
 

mode

Error display mode

string

yes

all
  • all — all errors
  • new — new errors
  • solved — fixed errors

limit 

Limit of chosen data

int

yes

30 3, from 1 to 999

offset 

A page number (number value)

int

yes

0 2 (any offset value you need)

сrc 

Hash URL in which data is requested

int

no

-1213794482

Response parameters
Parameters Description 
id Request id
result Contains the answer

The crc parameter can be found in the Issue elements data.

Credits for this method are not deducted.

Example
Request data:

{
  "id":1,
  "method": "AuditSite.getSubElementsByCrc",
  "params":{
     "reportId":4224296,
     "compareReportId" : 4184690,
     "projectId":123456,
     "errorName":"redirects",
     "mode":"all",
     "limit":10,
     "offset":0,
     "crc": -1213794482
  }
}

Response data:

{
    "id": "1",
    "result": {
        "data": [
            "https://serpstat.com/uk/help/"
        ],
        "totalCount": 1
    }
}

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

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