API Description

Audit

Audit status

Request format

Title of the code block
Copy
GET /audit/{site_id}

Result

If successful, the server returns the audit status.

Example

Title of the code block
Copy
{ "status": "finished", "start_time": "2018-06-15 12:41:13", "audit_time": "2018-09-11 16:13:41", "total_pages": 10, "total_warnings": 71, "total_errors": 21, "total_passed": 810 }

Response parameters

NameDescription
statuscanceled – the audit has been canceled;expired – the audit is expired as more than 3 months have passed since it was completed.queued – the audit is currently in a queue;processing – the audit is in progress;finished – the audit has been completed.
start_timeAudit start time
audit_timeAudit end time
total_pagesTotal number of scanned pages
total_warningsTotal number of warnings
total_errorsTotal number of critical errors
total_passedTotal number of passed checks

Audit report

Data is available only if the audit has been completed (“is_finished”: true)

Request format

Title of the code block
Copy
GET /audit/{site_id}/report

Result

“is_finished”: true – available data for the audit report.

“is_finished”: false – if the audit is not completed.

Example

Title of the code block
Copy
{ "is_finished": false}
Title of the code block
Copy
{ "is_finished": true, 
"domain_props":
{   "archiveOrg": "2003-02-26",
"backlinks": "4",
},"sections": [

"uid": "tech_audit",
"name": "Section name",
"props": [
{         
"code": "_images_500_count", 
"status": "passed",
"name": "Image with 5xx status",
"value": "0"   
}, 
],
],
"score_percent": 79,
"total_pages": 10,
"total_warnings": 71,
"total_errors": 21,
"total_passed": 810,
"screenshot": "http://host/screenshots/147683.jpg",
"audit_time": "2018-09-11 16:13:41"
}

Response parameters

NameDescription
is_finishedAudit status
domain_propsDomain information (includes a list of general domain settings)
score_percentHealth Score (%)
screenshotScreenshot link
audit_timeAudit end time
total_pagesTotal number of scanned pages
total_warningsTotal number of warnings
total_errorsTotal number of critical errors
total_passedTotal number of passed checks
sectionsAudit sections
uidSection ID
nameSection name
propsList of section checks

Domain information. Possible parameters

NameDescription
avgLoadSpeedAverage page load speed
archiveOrgAge in archive.org
expdateDomain expiration date
IpCountryCountry
ipIP
mozDomainAuthorityMoz Domain Authority
AlexaRankAlexa Rank
backlinksBacklinks
index_googlePages in Google
index_bingPages in Bing
index_yahooPages in Yahoo

List of section checks

nameDescription
statuswarning | error | passed
codeCheck code (only in the following sections: uid = props_*)
valueCheck value (only in the following sections: uid = props_*)

List of pages

The method allows to get a list of pages for the specified check.

Request format

Title of the code block
Copy
GET /audit/{site_id}/links?code={code}&limit=100&offset=10

Request parameters

NameRequiredDescription
codeYesRefer to GET /audit/{site_id}/report
limitNoTotal number of links. Max number of links – 100
offsetNoOffset value

Result

If successful, the server returns the list of pages for the specified check.

For the urls_type: simple_urls_array

Title of the code block
Copy
{"total_urls": 10,"urls": [ "https://seranking.com/keyword-suggestion-tool.html",],"urls_type": "simple_urls_array"}

Response parameters

NameDescription
total_urlsTotal number of URLs
urlsList of URLs. The format of the list depends on the type of check
urls_typeList type:simple_urls_arrayurls_and_single_source

Errors

HTTP code Error message
400Invalid code

Audit history

Request format

Title of the code block
Copy
GET /audit/{site_id}/history?date=2018-06-01

Request parameters

NameRequiredDescription
dateYesAudit date

Example

Title of the code block
Copy
GET /audit/{site_id}/history?date=2018-06-01

Response parameters

NameDescription
audit_timeAudit end time
domain_dataParameters related to the domain and to the site as a whole
settingsSettings (the parameter may be missing if the site settings were not set separately)
pages_dataPage check parameters
totalsRefer to GET /audit/{site_id}