Get an SEO audit
const url = 'https://digize.com/api/v1/analytics/seo/audits/example';const options = {method: 'GET', headers: {'x-api-key': '<x-api-key>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://digize.com/api/v1/analytics/seo/audits/example \ --header 'x-api-key: <x-api-key>'One SEO audit in full: for each site its speed (its latest PageSpeed check), and for each page read its title, description, headings, images without alt text, canonical, noindex, language, broken links and what’s wrong, with a score out of 100. Use it for “what’s wrong with my site’s SEO”.
Needs the analytics:read permission.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Responses
Section titled “Responses”Done
object
object
Pages read, once it’s done.
Pages with each kind of issue; a site’s own issues count once.
object
Out of 100, once it’s done.
object
object
Whether its pages came from its sitemap, else from following its links.
object
object
The HTTP status it answered with; null when it didn’t answer.
Heading levels in the order they come.
The sources of images with no alt text, up to 20.
object
object
Out of 100.
Example
{ "status": "running", "report": { "sites": [ { "issues": [ { "kind": "page_error" } ], "pages": [ { "issues": [ { "kind": "page_error" } ] } ] } ] }}What was sent isn’t valid (invalid).
object
object
object
Example
{ "error": { "code": "invalid" }}No key, or one that’s unknown, off or expired.
object
object
object
Example
{ "error": { "code": "invalid" }}The key doesn’t have the permission this needs.
object
object
object
Example
{ "error": { "code": "invalid" }}Nothing has that id (not_found).
object
object
object
Example
{ "error": { "code": "invalid" }}Over the rate limit; see retry-after.
object
object
object
Example
{ "error": { "code": "invalid" }}