> 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`).
> - Top-level index of all portals: https://dev.wix.com/docs/llms.txt
> - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt

# RequestSiteIndexing

# Package: googleSearchConsole

# Namespace: GscService

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

## Permission Scopes:
Manage SEO Settings: SCOPE.PROMOTE.MANAGE-SEO

## Introduction

Asks Google to crawl and index the site.

Indexing requests are subject to Google's own quotas and scheduling;
a successful call means the request was accepted, not that the site is
indexed. Track progress with Inspect URLs.

---

## REST API

### Schema

```
 Method: requestSiteIndexing
 Description: Asks Google to crawl and index the site.  Indexing requests are subject to Google's own quotas and scheduling; a successful call means the request was accepted, not that the site is indexed. Track progress with Inspect URLs.
 URL: https://www.wixapis.com/gsc/connection/v1/request-site-indexing
 Method: POST
 Return type: RequestSiteIndexingResponse
  EMPTY-OBJECT {}

 Possible Errors:
   HTTP Code: 428 | Status Code: FAILED_PRECONDITION | Application Code: MISSING_TOKEN | Description: No Google account is connected for this site. Connect first with the GSC Connection API.
   HTTP Code: 429 | Status Code: RESOURCE_EXHAUSTED | Application Code: GOOGLE_QUOTA_EXCEEDED | Description: Google's API quota for the property is used up. Retry after the quota window resets.
   HTTP Code: 503 | Status Code: UNAVAILABLE | Application Code: GOOGLE_UNAVAILABLE | Description: Google answered with a temporary server error. Retry with backoff.


```

### Examples

### Request Site Indexing
```curl
curl -X POST \
'https://www.wixapis.com/gsc/v1/request-site-indexing' \
-H 'Authorization: <AUTH>' \
-H 'Content-Type: application/json' \
-d '{}'
```

---

## JavaScript SDK

### Schema

```
 Method: wixClientAdmin.gsc.siteReadiness.requestSiteIndexing()
 Description: Asks Google to crawl and index the site.  Indexing requests are subject to Google's own quotas and scheduling; a successful call means the request was accepted, not that the site is indexed. Track progress with Inspect URLs.
 Return type: PROMISE<RequestSiteIndexingResponse>
  EMPTY-OBJECT {}

 Possible Errors:
   HTTP Code: 428 | Status Code: FAILED_PRECONDITION | Application Code: MISSING_TOKEN | Description: No Google account is connected for this site. Connect first with the GSC Connection API.
   HTTP Code: 429 | Status Code: RESOURCE_EXHAUSTED | Application Code: GOOGLE_QUOTA_EXCEEDED | Description: Google's API quota for the property is used up. Retry after the quota window resets.
   HTTP Code: 503 | Status Code: UNAVAILABLE | Application Code: GOOGLE_UNAVAILABLE | Description: Google answered with a temporary server error. Retry with backoff.


```

### Examples

### Ask Google to crawl and index the site
```javascript
import { siteReadiness } from "@wix/gsc";

async function requestSiteIndexing() {
  await siteReadiness.requestSiteIndexing();
}

```

### requestSiteIndexing (self-hosted)
Self-hosted 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 requestSiteIndexing() {
  const response = await myWixClient.siteReadiness.requestSiteIndexing();
};
```

---