viakite
Dashboard

API/Goals and settings/The project's Search Console connection

The project's Search Console connection

GET/v1/projects/{project}/search-console

Whether the server can connect Google (configured), whether the project is connected, the property imported and how far the import has got. state is not_connected, pick_site, importing (the first import or the 16-month backfill is still running), ready or reconnect (Google refused the token).

Secret keyNeeds analytics.viewus.api.vk.viabio.me

Path parameters

projectstringrequired
The project's id (prj_…).

Responses

The connection.

project_idstringrequired
configuredbooleanrequired
False when the server has no Google client or ENCRYPTION_KEY.
connectedbooleanrequired
statestringrequired
not_connectedpick_siteimportingreadyreconnect
site_urlstringrequired
Https://example.com/ or sc-domain:example.com; empty until picked.
imported_throughstring | nullrequired
The newest day imported.
backfilled_fromstring | nullrequired
The oldest day imported.
backfill_untilstring | nullrequired
How far back the backfill goes.
last_import_atstring · date-time | nullrequired
next_import_atstring · date-time | nullrequired
last_errorstringrequired
Why the last import failed; empty when it worked.
connected_atstring · date-time | nullrequired
Example response
1{
2 "project_id": "prj_01JD8Q2M4W9XK3T7B5",
3 "configured": true,
4 "connected": true,
5 "state": "not_connected",
6 "site_url": "string",
7 "imported_through": "2026-11-21",
8 "backfilled_from": "2026-11-21",
9 "backfill_until": "2026-11-21",
10 "last_import_at": "2026-11-21T09:30:00Z",
11 "next_import_at": "2026-11-21T09:30:00Z",
12 "last_error": "string",
13 "connected_at": "2026-11-21T09:30:00Z"
14}