The following query will return a JSON feed of basic Dashboard information for a specified Site within a DubBot account.
The JSON feed will include:
the Site Name
Page Count
Site Score
Accessibility Score and Issue Count
Bad Link Score and Issue Count
Spelling Score and Issue Count
Flagged Words (profanity) Score and Issue Count.
Query:
Simply replace the Site and Account IDs in the quotation marks
{
site(siteId: "replace with Site ID", accountId: "replace with Account ID") {
id
name
url
online
crawlStartedAt
nextCrawlTime
pagesCount
statusMessage
latestStatsSnapshot {
id
score
trend
updatedAt
accessibility {
score
total
}
badLinks {
score
total
}
spelling {
score
total
}
profanity {
score
total
}
}
}
}
On the POST request to /graphq
, ensure that you add the request header authorization
with your token. For more information on how to get your authorization token, see the Accessing the DubBot API article.
Sample of returned JSON feed:
{
"data": {
"site": {
"id": "1123456789012345678901234567890",
"name": "Admission",
"url": "https://www.benson.edu/admission/",
"online": true,
"crawlStartedAt": "2021-08-03T16:40:09Z",
"nextCrawlTime": "2021-08-10T16:40:08Z",
"pagesCount": 130,
"statusMessage": "",
"latestStatsSnapshot": {
"id": "61120a371e1abe000120984b",
"score": 91.64,
"trend": -0.12,
"updatedAt": "2021-08-10T05:10:15Z",
"accessibility": {
"score": 74.23,
"total": 559
},
"badLinks": {
"score": 95.77,
"total": 56
},
"spelling": {
"score": 96.73,
"total": 30
},
"profanity": {
"score": 99.81,
"total": 1
}
}
}
}
}