The GSC API manages a site's presence in Google Search Console: it verifies the site with Google, adds it as a Search Console property, submits its sitemap, requests indexing, and reads inspection and search performance data. It acts through the Google account linked to the site with the GSC Connection API.
By default, every method works on the Wix site the call is made on, and everything needed is derived from that site. Most methods also accept a siteUrl for a site that isn't hosted on Wix. See Sites not hosted on Wix.
With the GSC Site Readiness API, you can:
A site becomes fully set up in Google Search Console in this order:
google-site-verification meta tag is placed on every page automatically.Get Site Readiness reports whether the site's Google connection and ownership verification are in place, and if not, the first step that's still blocking. It covers steps 1 and 2 above; call the property steps that follow in order yourself.
Most methods accept an optional siteUrl: the URL of a URL-prefix property in the connected Google account, for example https://example.com/. When it's set, the call works on that property instead of the Wix site the call is made on, through the same Google connection. Nothing is placed on or generated for a site that isn't hosted on Wix, so place the meta tag from Get Verification Token in the site's <head> before calling Verify Site, and specify sitemapUrl when calling Submit Sitemap. The points under Before you begin still apply to the site the call is made on.
Domain properties (sc-domain:example.com) aren't accepted. Setting siteUrl on a call made for a Wix site fails with INVALID_ARGUMENT, and a property the connected Google account doesn't own fails with FAILED_PRECONDITION (SITE_PROPERTY_NOT_OWNED). Inspect URLs, Get Inspection, and Clear Verification work on the Wix site only.
Inspecting pages is a two-step, asynchronous operation. Inspect URLs starts the inspection and returns the first batch of results synchronously. When pages remain, the remaining pages are inspected server-side, and you poll Get Inspection until the inspection completes.
To inspect a single URL, call Inspect URL instead. It runs synchronously, stores nothing, and works for any URL of the site. Google's URL inspection takes several seconds per URL, so allow a request budget above 10 seconds.
Each inspected page consumes the connected account's Google URL-inspection quota. Google allows up to 2,000 page inspections a day per property, so an inspection can finish with pages left uninspected when the quota runs out, and sites with more than 2,000 pages can't be inspected through this API at all.
It's important to note the following points before starting to code:
FAILED_PRECONDITION (MISSING_TOKEN) until the connection's status is VALID.FAILED_PRECONDITION.RESOURCE_EXHAUSTED (GOOGLE_QUOTA_EXCEEDED) error is safe to retry after the quota window resets, and an UNAVAILABLE (GOOGLE_UNAVAILABLE) error is a temporary Google failure that's safe to retry with backoff.https://example.com/; a domain property (sc-domain:example.com) covers every protocol and subdomain and can't be used as siteUrl.READY when setup is complete, or NOT_READY with the first blocking step.google-site-verification meta tag that proves ownership of a site to Google. It's placed automatically on Wix sites. For a site that isn't hosted on Wix, Get Verification Token returns it for you to place.Last updated: 25 October 2026