Pages on Google
GET
/api/v1/search-console/pages
const url = 'https://digize.com/api/v1/search-console/pages';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/search-console/pages \ --header 'x-api-key: <x-api-key>'Each page URL Inspection has looked at: whether it’s on Google and why not, its canonical, sitemaps and rich results.
Needs the analytics:read permission.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”Done
Media typeapplication/json
object
data
required
Array<object>
object
url
required
string
host
required
string
path
required
string
title
required
string
coverage
required
string | null
declaredCanonical
required
string | null
googleCanonical
required
string | null
sitemaps
required
Array<string>
referrer
required
string | null
richResults
required
Array<object>
object
type
required
string
status
required
string
issue
required
string | null
inspectedAt
required
string format: date-time
Example
{ "data": [ { "reason": "not_found", "richResults": [ { "status": "valid" } ] } ]}What was sent isn’t valid (invalid).
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
object
key
additional properties
any
Example
{ "error": { "code": "invalid" }}No key, or one that’s unknown, off or expired.
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
object
key
additional properties
any
Example
{ "error": { "code": "invalid" }}The key doesn’t have the permission this needs.
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
object
key
additional properties
any
Example
{ "error": { "code": "invalid" }}Nothing has that id (not_found).
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
object
key
additional properties
any
Example
{ "error": { "code": "invalid" }}Over the rate limit; see retry-after.
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
object
key
additional properties
any
Example
{ "error": { "code": "invalid" }}