Skip to content
Open Onsite

API reference

List split keywords

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

Lists searches that two or more of the site’s pages rank for, with each page’s share and the clicks a month one strong page could add.

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.

min_pages
integer
>= 2 <= 20

The fewest pages that have to share a search for it to count.

share
integer
>= 1 <= 50

The share of a search’s impressions, in percent, each of those pages needs.

min_impressions
integer

The fewest impressions a search needs.

days
integer
>= 7 <= 486

How many days of complete data the report reads.

include_branded
boolean

True counts branded searches too. Onsite leaves them out by default.

bucket
string
>= 1 characters <= 300 characters

Only searches in this bucket, by its name as Get a site lists it.

sort
string
default: stake
Allowed values: stake impressions clicks

What to sort by. stake is the clicks a month one strong page could add.

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
endDate
required

The last day the report reads.

string format: date
rows
required
Array<object>
object
query
required

The search.

string
severity
required

How serious the split is.

string
impressions
required

Impressions over the report’s days.

integer
clicks
required

Clicks over the report’s days.

integer
position
required
Any of:

Average position.

number
swaps
required

Times the leading page changed.

integer
clicksPerMonthAtStake
required

Clicks a month one strong page could add.

integer
pages
required

Up to five pages, biggest share first.

Array<object>
object
page
required

A page that ranks for the search.

string
share
required
Any of:

Its share of the search’s impressions, in percent.

number
position
required
Any of:

Its average position.

number
clicks
required

Its clicks.

integer
leads
required

It is the page that ranks best overall.

boolean
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/",
"endDate": "2026-10-27",
"rows": [
{
"query": "trail shoes guide",
"severity": "watch",
"impressions": 3200,
"clicks": 41,
"position": 9.1,
"swaps": 6,
"clicksPerMonthAtStake": 22,
"pages": [
{
"page": "https://example.com/guides/trail-shoes",
"share": 62,
"position": 8.2,
"clicks": 30,
"leads": true
}
]
}
],
"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"
}
}