> To build or manage a Wix site with an AI agent, follow https://www.wix.com/headless/skill.md
> It builds a new Wix site or puts your own site online, from a prompt, and keeps changing it afterwards. The pages are code in any web technology, and Wix runs the backend.
> It works through the Wix plugin (the Wix MCP and the Wix skills), the Wix CLI or no Wix login, and puts the site live on Wix hosting or on another host.
> Business features include a store, bookings, events and tickets, a restaurant, a blog, forms, members and many more.
> Read the Wix skills online at https://www.wix.com/skills
> 
> Portal Navigation:
> 
> - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version.
> - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages).
> - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`).
> - If a reference page seems to be missing its schema (parameters, return types, or type definitions), append `?schema=true` to its `.md` URL (e.g. `https://dev.wix.com/docs/contexts/contexts/stores/category-info/use-category-info-context.md?schema=true`).
> - Top-level index of all portals: https://dev.wix.com/docs/llms.txt
> - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt

# GetSiteReadiness

# Package: googleSearchConsole

# Namespace: GscService

# Method link: https://dev.wix.com/docs/api-reference/business-management/seo/google-search-console/site-readiness-v1/get-site-readiness.md

## Permission Scopes:
View SEO Settings: SCOPE.PROMOTE.VIEW-SEO

## Introduction

Retrieves the site's readiness in Google Search Console.

Returns whether the site's Google connection and ownership verification
are in place, and if not, the first blocking step. Use this to decide what
to resolve next. For example, a `SITE_OWNER_NOT_VERIFIED` blocking reason
means the site's ownership isn't proven to Google yet, so call Verify
Site.

---

## REST API

### Schema

```
 Method: getSiteReadiness
 Description: Retrieves the site's readiness in Google Search Console.  Returns whether the site's Google connection and ownership verification are in place, and if not, the first blocking step. Use this to decide what to resolve next. For example, a `SITE_OWNER_NOT_VERIFIED` blocking reason means the site's ownership isn't proven to Google yet, so call Verify Site.
 URL: https://www.wixapis.com/gsc/connection/v1/site-readiness
 Method: GET
 Method parameters:
   query param name: siteUrl | type: siteUrl | description: URL of a site that isn't hosted on Wix, exactly as its URL-prefix property appears in Google Search Console. For example, `https://example.com/`. Leave empty for the Wix site the call is made on: setting it for a Wix site fails with `INVALID_ARGUMENT`. Domain properties (`sc-domain:example.com`) aren't supported.  | validation: format WEB_URL
 Return type: GetSiteReadinessResponse
  - name: siteReadiness | type: SiteReadiness | description: The site's current Google Search Console readiness.  
     - name: status | type: ReadinessStatus | description: Whether the site has completed Google Search Console setup.  | read-only: true 
         - enum:
         -     UNKNOWN_READINESS_STATUS: Unknown readiness status.
         -     READY: The site is fully set up in Google Search Console.
         -     NOT_READY: Setup isn't complete. See `blockingReason` for the step that's missing.
     - name: blockingReason | type: BlockingReason | description: The first setup step that's still blocking the site. Only returned when `status` is `NOT_READY`.  | read-only: true 
         - enum:
         -     UNKNOWN_BLOCKING_REASON: Unknown blocking reason.
         -     TOKEN_INVALID: The stored Google credentials could not be validated. Reconnect the Google account with the GSC Connection API. Also retained when a validation request fails for another reason. See `NOT_CONNECTED` for missing credentials and `SITE_NOT_ADDED` for a connection that passes validation but has no recorded Add Site event.
         -     SITE_OWNER_NOT_VERIFIED: Site ownership hasn't been verified with Google. Call Verify Site.
         -     DOMAIN_MISSING: The site doesn't have a premium domain, which Google Search Console setup requires.
         -     SITE_NOT_CREATED: The site hasn't been created yet.
         -     NOT_CONNECTED: The site has no Google account connected: it was never connected, or the connection was removed. Connect one with Get Connect URL in the GSC Connection API.
         -     SITE_NOT_ADDED: The connection works, but the site isn't a property in the connected account's Search Console yet. Call Add Site.


```

### Examples

### Get Site Readiness
```curl
curl -X GET \
'https://www.wixapis.com/gsc/v1/site-readiness' \
-H 'Authorization: <AUTH>'
```

---

## JavaScript SDK

### Schema

```
 Method: wixClientAdmin.gsc.siteReadiness.getSiteReadiness(options)
 Description: Retrieves the site's readiness in Google Search Console.  Returns whether the site's Google connection and ownership verification are in place, and if not, the first blocking step. Use this to decide what to resolve next. For example, a `SITE_OWNER_NOT_VERIFIED` blocking reason means the site's ownership isn't proven to Google yet, so call Verify Site.
 Method parameters:
   param name: options | type: GetSiteReadinessOptions  none  
        - name: siteUrl | type: string | description: URL of a site that isn't hosted on Wix, exactly as its URL-prefix property appears in Google Search Console. For example, `https://example.com/`. Leave empty for the Wix site the call is made on: setting it for a Wix site fails with `INVALID_ARGUMENT`. Domain properties (`sc-domain:example.com`) aren't supported.  | validation: format WEB_URL
 Return type: PROMISE<GetSiteReadinessResponse>
  - name: siteReadiness | type: SiteReadiness | description: The site's current Google Search Console readiness.  
     - name: status | type: ReadinessStatus | description: Whether the site has completed Google Search Console setup.  | read-only: true 
         - enum:
         -     UNKNOWN_READINESS_STATUS: Unknown readiness status.
         -     READY: The site is fully set up in Google Search Console.
         -     NOT_READY: Setup isn't complete. See `blockingReason` for the step that's missing.
     - name: blockingReason | type: BlockingReason | description: The first setup step that's still blocking the site. Only returned when `status` is `NOT_READY`.  | read-only: true 
         - enum:
         -     UNKNOWN_BLOCKING_REASON: Unknown blocking reason.
         -     TOKEN_INVALID: The stored Google credentials could not be validated. Reconnect the Google account with the GSC Connection API. Also retained when a validation request fails for another reason. See `NOT_CONNECTED` for missing credentials and `SITE_NOT_ADDED` for a connection that passes validation but has no recorded Add Site event.
         -     SITE_OWNER_NOT_VERIFIED: Site ownership hasn't been verified with Google. Call Verify Site.
         -     DOMAIN_MISSING: The site doesn't have a premium domain, which Google Search Console setup requires.
         -     SITE_NOT_CREATED: The site hasn't been created yet.
         -     NOT_CONNECTED: The site has no Google account connected: it was never connected, or the connection was removed. Connect one with Get Connect URL in the GSC Connection API.
         -     SITE_NOT_ADDED: The connection works, but the site isn't a property in the connected account's Search Console yet. Call Add Site.


```

### Examples

### Get the site's Google Search Console readiness
```javascript
import { siteReadiness } from "@wix/gsc";

async function getSiteReadiness() {
  const response = await siteReadiness.getSiteReadiness();
}

/* Promise resolves to:
 * {
 *   "siteReadiness": {
 *     "status": "NOT_READY",
 *     "blockingReason": "SITE_OWNER_NOT_VERIFIED"
 *   }
 * }
 */

```

### getSiteReadiness (self-managed)
Self-managed SDK calls require you to [create a client](https://dev.wix.com/docs/sdk/articles/work-with-the-sdk/about-the-wix-client.md).

```javascript
import { createClient } from '@wix/sdk';
import { siteReadiness } from '@wix/gsc';
// Import the auth strategy for the relevant access type
// Import the relevant host module if needed

const myWixClient = createClient ({
  modules: { siteReadiness },
  // Include the auth strategy and host as relevant
});


async function getSiteReadiness(options) {
  const response = await myWixClient.siteReadiness.getSiteReadiness(options);
};
```

---