Issue elements data

The AuditSite.getErrorElements method provides you with a list of elements which contains a specific error or information message.

a list of elements which contains a specific error or information message

Use case: With the AuditSite.getErrorElements method, check the details of specific messages 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.getErrorElements

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

1251109 (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)

Response parameters
Parameters Description
id Request id
result Contains the answer

Credits for this method are not deducted.
A list with the name of the check can be found in the response of the method Report issues list.

Example
Request data:
{
  "id": 1,
  "method": "AuditSite.getErrorElements",
  "params": {
      "reportId": 000001,
      "compareReportId": 000002,
      "projectId": 123456,
      "errorName": "redirects",
      "mode": "all",
      "limit": 2,
      "offset": 1
  }
}

Response data:

{
    "id": "1",
    "result": {
        "data": [
            {
                "startUrl": "https://serpstat.com/page/site-audit-en/",
                "code": 301,
                "finishUrl": "https://serpstat.com/site-audit/",
                "count": 1,
                "startUrlCrc": -106444537
            },
            {
                "startUrl": "https://serpstat.com/help/",
                "code": 301,
                "finishUrl": "https://serpstat.com/uk/help/",
                "count": 1,
                "startUrlCrc": -1213794482
            }

Share this article with your friends

Are you sure?

Introducing Serpstat

Find out about the main features of the service in a convenient way for you!

Please send a request, and our specialist will offer you education options: a personal demonstration, a trial period, or materials for self-study and increasing expertise — everything for a comfortable start to work with Serpstat.

Name

Email

Phone

We are glad of your comment
I agree to Serpstat`s Privacy Policy.

Thank you, we have saved your new mailing settings.

Open support chat