Issue subelements data
AuditSite.getSubElementsByCrc — method returns a list of subelements which contains a specific error or information message.
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 | ||
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 | getSubElementsByCrc | 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 | Issue |
mode | string | Error display mode
|
limit | integer | Limit of obtained data, 30 by default |
offset | integer | Offset, 0 by default |
сrc | Hash URL in which data is requested |
Response parameters | |
Parameters | Description |
id | Request id |
result | Contains the answer |
Credits for this method are not deducted.
{
"id":1,
"method": "AuditSite.getSubElementsByCrc",
"params":{
"reportId":4224296,
"compareReportId" : 4184690,
"projectId":123456,
"errorName":"redirects",
"mode":"all",
"limit":10,
"offset":0,
"crc": -1213794482
}
}
{
"id": "1",
"result": {
"data": [
"https://serpstat.com/uk/help/"
],
"totalCount": 1
}
}