Get Search Console series
GET
/api/sites/{id}/search-console/series
const url = 'https://hitkeep.com/api/sites/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/search-console/series?limit=10';const options = {method: 'GET', headers: {cookie: 'hk_token=<hk_token>'}};
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://hitkeep.com/api/sites/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/search-console/series?limit=10' \ --cookie hk_token=<hk_token>Returns daily Google Search Console metrics for a mapped site.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” id
required
string format: uuid
Query Parameters
Section titled “Query Parameters ” from
string format: date-time
to
string format: date-time
page
string
Exact Search Console page URL filter.
path
string
HitKeep path filter matched against Search Console page URLs.
country
string
Search Console country code filter.
device
string
Search Console device filter.
limit
integer
Maximum rows for table endpoints. Between 1 and 100.
Responses
Section titled “ Responses ”Search Console report
Media type application/json
object
data_source
required
string
series
required
Array<object>
object
average_position
required
number
clicks
required
integer
ctr
required
number
date
required
string format: date
impressions
required
integer
Example
{ "data_source": "google_search_console"}Invalid request
Media type application/json
object
message
string
Example generated
{ "message": "example"}Unauthorized
Media type application/json
object
message
string
Example generated
{ "message": "example"}Access denied
Media type application/json
object
message
string
Example generated
{ "message": "example"}Search Console property is not mapped
Media type application/json
object
message
string
Example generated
{ "message": "example"}Too many requests
Media type application/json
object
message
string
Example generated
{ "message": "example"}Service not available
Media type application/json
object
message
string
Example generated
{ "message": "example"}