Skip to content
Open Onsite

API reference

Get indexing summary

GET
/sites/{site}/indexing
Code sample: curl
curl "https://api.onsite.so/api/v1/sites/example.com/indexing" \
-H "Authorization: Bearer $ONSITE_API_KEY"

Counts the site’s checked URLs in each of Google’s coverage states and verdicts, and says how the latest check went.

site
required
string

Example

example.com

The site: its ID, its address in Onsite, its domain or its Search Console property, as List sites shows them.

OK

Media typeapplication/json
object
site
required

The site’s address, as Search Console names the property.

string
urlsChecked
required

URLs Google has been asked about.

integer
byVerdict
required

URLs per inspection verdict (PASS, FAIL, NEUTRAL, PARTIAL).

object
key
additional properties
integer
byCoverageState
required

URLs per coverage state, biggest first.

Array<object>
object
state
required

Google’s coverage state, in Google’s words.

string
urls
required

URLs in that state.

integer
latestScan
required

The latest indexing check, or null before the first.

Any of:
object
status
required

Where the latest check is.

string
planned
required

URLs it set out to check.

integer
inspected
required

URLs it has checked.

integer
startedAt
required

When it started.

string | null format: date-time
finishedAt
required

When it finished, or null while running.

string | null format: date-time

Example

{
"site": "https://example.com/",
"urlsChecked": 860,
"byVerdict": {
"PASS": 702,
"NEUTRAL": 151,
"FAIL": 7
},
"byCoverageState": [
{
"state": "Submitted and indexed",
"urls": 702
}
],
"latestScan": {
"status": "done",
"planned": 200,
"inspected": 200,
"startedAt": "2026-10-27T06:00:00.000Z",
"finishedAt": "2026-10-27T06:41:12.000Z"
}
}

A parameter or body field isn’t valid. error.param names it.

Media typeapplication/json
object
error
required
object
code
required

What went wrong, as a stable word your code can check.

string
Allowed values: invalid_input unauthenticated forbidden not_found payment_required credits_exhausted conflict rate_limited quota_limited search_data_unavailable search_data_changed google_access_lost maintenance internal
message
required

What went wrong, in a sentence a person can act on.

string
param

The parameter or body field at fault, when there is one.

string
allowed

The values it accepts, when there is a fixed set.

Array<string>
didYouMean

The closest allowed value, when the one sent looks like a typo.

string
requestId
required

Quote it to support to find this request.

string

Example

{
"error": {
"code": "invalid_input",
"message": "range must be last_7d, last_14d, last_28d, last_3m, last_6m, last_12m, last_16m, this_month, last_month, last_quarter, year_to_date, or a window like 2026-08-01..2026-08-31.",
"param": "range",
"didYouMean": "last_28d",
"requestId": "E-7K2Q-M4XD"
}
}

The API key is missing, wrong, expired or revoked.

Media typeapplication/json
object
error
required
object
code
required

What went wrong, as a stable word your code can check.

string
Allowed values: invalid_input unauthenticated forbidden not_found payment_required credits_exhausted conflict rate_limited quota_limited search_data_unavailable search_data_changed google_access_lost maintenance internal
message
required

What went wrong, in a sentence a person can act on.

string
param

The parameter or body field at fault, when there is one.

string
allowed

The values it accepts, when there is a fixed set.

Array<string>
didYouMean

The closest allowed value, when the one sent looks like a typo.

string
requestId
required

Quote it to support to find this request.

string

Example

{
"error": {
"code": "invalid_input",
"message": "range must be last_7d, last_14d, last_28d, last_3m, last_6m, last_12m, last_16m, this_month, last_month, last_quarter, year_to_date, or a window like 2026-08-01..2026-08-31.",
"param": "range",
"didYouMean": "last_28d",
"requestId": "E-7K2Q-M4XD"
}
}

Your team needs an Onsite plan, or has used this month’s credits (exports only).

Media typeapplication/json
object
error
required
object
code
required

What went wrong, as a stable word your code can check.

string
Allowed values: invalid_input unauthenticated forbidden not_found payment_required credits_exhausted conflict rate_limited quota_limited search_data_unavailable search_data_changed google_access_lost maintenance internal
message
required

What went wrong, in a sentence a person can act on.

string
param

The parameter or body field at fault, when there is one.

string
allowed

The values it accepts, when there is a fixed set.

Array<string>
didYouMean

The closest allowed value, when the one sent looks like a typo.

string
requestId
required

Quote it to support to find this request.

string

Example

{
"error": {
"code": "invalid_input",
"message": "range must be last_7d, last_14d, last_28d, last_3m, last_6m, last_12m, last_16m, this_month, last_month, last_quarter, year_to_date, or a window like 2026-08-01..2026-08-31.",
"param": "range",
"didYouMean": "last_28d",
"requestId": "E-7K2Q-M4XD"
}
}

The key can’t do this: it is limited to other sites, it can only read, or its owner’s role doesn’t allow it.

Media typeapplication/json
object
error
required
object
code
required

What went wrong, as a stable word your code can check.

string
Allowed values: invalid_input unauthenticated forbidden not_found payment_required credits_exhausted conflict rate_limited quota_limited search_data_unavailable search_data_changed google_access_lost maintenance internal
message
required

What went wrong, in a sentence a person can act on.

string
param

The parameter or body field at fault, when there is one.

string
allowed

The values it accepts, when there is a fixed set.

Array<string>
didYouMean

The closest allowed value, when the one sent looks like a typo.

string
requestId
required

Quote it to support to find this request.

string

Example

{
"error": {
"code": "invalid_input",
"message": "range must be last_7d, last_14d, last_28d, last_3m, last_6m, last_12m, last_16m, this_month, last_month, last_quarter, year_to_date, or a window like 2026-08-01..2026-08-31.",
"param": "range",
"didYouMean": "last_28d",
"requestId": "E-7K2Q-M4XD"
}
}

The site, or the thing asked for on it, doesn’t exist or this key can’t read it.

Media typeapplication/json
object
error
required
object
code
required

What went wrong, as a stable word your code can check.

string
Allowed values: invalid_input unauthenticated forbidden not_found payment_required credits_exhausted conflict rate_limited quota_limited search_data_unavailable search_data_changed google_access_lost maintenance internal
message
required

What went wrong, in a sentence a person can act on.

string
param

The parameter or body field at fault, when there is one.

string
allowed

The values it accepts, when there is a fixed set.

Array<string>
didYouMean

The closest allowed value, when the one sent looks like a typo.

string
requestId
required

Quote it to support to find this request.

string

Example

{
"error": {
"code": "invalid_input",
"message": "range must be last_7d, last_14d, last_28d, last_3m, last_6m, last_12m, last_16m, this_month, last_month, last_quarter, year_to_date, or a window like 2026-08-01..2026-08-31.",
"param": "range",
"didYouMean": "last_28d",
"requestId": "E-7K2Q-M4XD"
}
}

Too many requests for this key. Wait for the Retry-After header’s seconds.

Media typeapplication/json
object
error
required
object
code
required

What went wrong, as a stable word your code can check.

string
Allowed values: invalid_input unauthenticated forbidden not_found payment_required credits_exhausted conflict rate_limited quota_limited search_data_unavailable search_data_changed google_access_lost maintenance internal
message
required

What went wrong, in a sentence a person can act on.

string
param

The parameter or body field at fault, when there is one.

string
allowed

The values it accepts, when there is a fixed set.

Array<string>
didYouMean

The closest allowed value, when the one sent looks like a typo.

string
requestId
required

Quote it to support to find this request.

string

Example

{
"error": {
"code": "invalid_input",
"message": "range must be last_7d, last_14d, last_28d, last_3m, last_6m, last_12m, last_16m, this_month, last_month, last_quarter, year_to_date, or a window like 2026-08-01..2026-08-31.",
"param": "range",
"didYouMean": "last_28d",
"requestId": "E-7K2Q-M4XD"
}
}

Onsite is down for maintenance, or new data arrived while reading. Try again after the Retry-After header’s seconds.

Media typeapplication/json
object
error
required
object
code
required

What went wrong, as a stable word your code can check.

string
Allowed values: invalid_input unauthenticated forbidden not_found payment_required credits_exhausted conflict rate_limited quota_limited search_data_unavailable search_data_changed google_access_lost maintenance internal
message
required

What went wrong, in a sentence a person can act on.

string
param

The parameter or body field at fault, when there is one.

string
allowed

The values it accepts, when there is a fixed set.

Array<string>
didYouMean

The closest allowed value, when the one sent looks like a typo.

string
requestId
required

Quote it to support to find this request.

string

Example

{
"error": {
"code": "invalid_input",
"message": "range must be last_7d, last_14d, last_28d, last_3m, last_6m, last_12m, last_16m, this_month, last_month, last_quarter, year_to_date, or a window like 2026-08-01..2026-08-31.",
"param": "range",
"didYouMean": "last_28d",
"requestId": "E-7K2Q-M4XD"
}
}