The GSC Connection API connects a site to Google Search Console by linking a Google account to it. Once a site is connected, the GSC Site Readiness API can verify the site with Google, submit sitemaps, request indexing, and read search performance data.
A site has at most one Google Search Console connection, so no method takes a connection ID.
With the GSC Connection API, you can:
Connecting is a browser flow that's completed for you:
status is VALID.Each connect URL is single-use and expires after 2 hours, so request a fresh one for every attempt.
The connection belongs to the site, but it's owned by the Wix user who authorized it. Get Connection reports whether the current caller is that owner in ownedByCaller, and identifies the connected Google account by a masked email address only.
ownedByCaller is returned only when status is VALID or INVALID. It's false for any caller without a Wix user identity, so a false value means the caller isn't the owner, not that a particular other Wix user is.
Re-authorizing with the same Google account refreshes the stored credentials. Authorizing with a different Google account, or as a different Wix user, replaces the connection.
It's important to note the following points before starting to code:
FAILED_PRECONDITION.PERMISSION_DENIED.status becomes INVALID only after a Google Search Console call made with the stored credentials is rejected, so a broken connection can still report VALID.INVALID before setup is complete. If site ownership hasn't been verified, call Verify Site in the GSC Site Readiness API before offering to connect again. Get Site Readiness does not update the stored connection status.Last updated: 25 October 2026