Issue elements data

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

Request parameters
Parameters Value Description
id any number or string A request id: the response contains the same id. Enter any number (number) or text (string) value
method getErrorElements API method name
params {...} / [...] The object with parameters {...}, it lists all the following parameters and arrays [...]
reportId integer Report id
compareReportId (optional) integer Report id for comparison
projectId integer Project id
errorName string Check name
mode string

Error display mode

  • all — all errors
  • new — new errors
  • fixed — fixed errors
limit integer Limit of chosen data
offset integer A page number (number value)

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
            }

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

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