Skip to content

Tracked searches

GET
/api/v1/analytics/seo/keywords
curl --request GET \
--url 'https://digize.com/api/v1/analytics/seo/keywords?days=90' \
--header 'x-api-key: <x-api-key>'

The Google searches the team tracks, with where each showed on average over the last 7 days and the 7 before, its clicks and impressions, and its position day by day over 28, 90 or 180 days, from Search Console. Without Search Console connected the searches are listed with unavailable saying so.

Needs the analytics:read permission.

days
Any of:
number
Allowed value: 28

How many days of positions: 28, 90 or 180.

Done

Media typeapplication/json
object
property
required
string | null
startDate
required
string | null
endDate
required
string | null
unavailable
required
Any of:
object
reason
required
string
Allowed values: not_connected upstream
message
required
string
keywords
required
Array<object>
object
id
required
string
keyword
required
string
createdBy
required
string
createdAt
required
string format: date-time
position
required

Where it showed on average over the last 7 days, 1 being the top; null when it didn’t show.

number | null
previousPosition
required

The same over the 7 days before.

number | null
change
required

Places gained since the 7 days before; negative when it fell.

number | null
clicks
required

Over the whole range.

number
impressions
required
number
days
required

Each day it showed, oldest first.

Array<object>
object
date
required
string
position
required
number
clicks
required
number
impressions
required
number

Example

{
"unavailable": {
"reason": "not_connected"
}
}

What was sent isn’t valid (invalid).

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
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
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
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
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
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
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
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
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
message
required
string
details
object
key
additional properties
any

Example

{
"error": {
"code": "invalid"
}
}