Skip to content
Open Onsite

API reference

List checked URLs

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

Lists checked URLs with Google’s coverage state, verdict, canonical URLs and last crawl, filtered and paged. Filter by state with a state from the summary, such as “Crawled - currently not indexed”.

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.

state
string
>= 1 characters <= 200 characters

Only URLs whose coverage state contains this text, such as “not indexed”.

verdict
string
Allowed values: PASS FAIL NEUTRAL PARTIAL

Only URLs with this inspection verdict.

url
string
>= 1 characters <= 300 characters

Only URLs containing this text.

in_sitemap
boolean

True: only URLs in a sitemap. false: only URLs in none.

sort
string
default: inspected
Allowed values: inspected crawled url first_seen

What to sort by: inspected (last checked), crawled (last crawl), url or first_seen.

order
string
default: desc
Allowed values: desc asc

Sort direction: desc (biggest first) or asc.

limit
integer
default: 25 >= 1 <= 100

Rows per page.

cursor
string
<= 80 characters

The page to get: page.nextCursor from the previous response. Leave it out for the first page, and keep the other parameters the same.

OK

Media typeapplication/json
object
site
required

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

string
urls
required
Array<object>
object
url
required

The URL.

string
coverageState
required
Any of:

Google’s coverage state.

string
verdict
required
Any of:

The inspection verdict: PASS, FAIL, NEUTRAL or PARTIAL.

string
indexingState
required
Any of:

Whether indexing is allowed.

string
robotsTxt
required
Any of:

Whether robots.txt allows crawling.

string
pageFetch
required
Any of:

Whether Google could fetch the page.

string
googleCanonical
required
Any of:

The canonical URL Google chose.

string
declaredCanonical
required
Any of:

The canonical URL the page declares.

string
inSitemap
required

The URL is in a sitemap.

boolean | null
lastCrawl
required

When Google last crawled it.

string | null format: date-time
inspected
required

When it was last checked.

string | null format: date-time
firstSeen
required

When Onsite first saw it.

string | null format: date-time
indexed
required

When it was first seen indexed.

string | null format: date-time
richResults
required

Rich results, or null when none were checked.

Any of:
object
verdict
required

Rich results verdict.

string
types
required

Rich result types found.

Any of:
Array<string>
page
required

Where this page sits in the full list.

object
shown
required

Rows in this response.

integer
total
required

Rows across all pages.

integer
nextCursor
required

Pass as cursor to get the next page, with the same other parameters. Null on the last page.

string | null

Example

{
"site": "https://example.com/",
"urls": [
{
"url": "https://example.com/guides/trail-shoes",
"coverageState": "Crawled - currently not indexed",
"verdict": "NEUTRAL",
"indexingState": "INDEXING_ALLOWED",
"robotsTxt": "ALLOWED",
"pageFetch": "SUCCESSFUL",
"googleCanonical": "https://example.com/guides/trail-shoes",
"declaredCanonical": "https://example.com/guides/trail-shoes",
"inSitemap": true,
"lastCrawl": "2026-10-20T09:14:00.000Z",
"inspected": "2026-10-20T09:14:00.000Z",
"firstSeen": "2026-10-20T09:14:00.000Z",
"indexed": "2026-10-20T09:14:00.000Z",
"richResults": {
"verdict": "PASS",
"types": [
"Breadcrumbs"
]
}
}
],
"page": {
"shown": 25,
"total": 140,
"nextCursor": "p.3k9x1z"
}
}

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"
}
}