> 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

# RequestPageIndexing

# Package: googleSearchConsole

# Namespace: GscService

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

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

## Introduction

Asks Google to crawl and index a single page.

Like Request Site Indexing, this is a request into Google's crawl queue,
subject to Google's quotas, not an immediate re-index.

---

## REST API

### Schema

```
 Method: requestPageIndexing
 Description: Asks Google to crawl and index a single page.  Like Request Site Indexing, this is a request into Google's crawl queue, subject to Google's quotas, not an immediate re-index.
 URL: https://www.wixapis.com/gsc/connection/v1/request-page-indexing
 Method: POST
 # Note: If the parameter `a.b` is listed under required parameters, `b` is only required if `a` is also present.
 Required parameters:  url
 Method parameters: 
   param name: url | type: url | description: Full URL of the page to index. Must be a page of the site the call is made on. | required: true | validation: format WEB_URL
 Return type: RequestPageIndexingResponse
  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 Page Indexing
```curl
curl -X POST \
'https://www.wixapis.com/gsc/v1/request-page-indexing' \
-H 'Authorization: <AUTH>' \
-H 'Content-Type: application/json' \
-d '{
  "url": "https://www.my-fashion-store.com/product-page/linen-summer-dress"
}'
```

---

## JavaScript SDK

### Schema

```
 Method: wixClientAdmin.gsc.siteReadiness.requestPageIndexing(url)
 Description: Asks Google to crawl and index a single page.  Like Request Site Indexing, this is a request into Google's crawl queue, subject to Google's quotas, not an immediate re-index.
 # Note: If the parameter `a.b` is listed under required parameters, `b` is only required if `a` is also present.
 Required parameters:  url
 Method parameters: 
   param name: url | type: string | description: Full URL of the page to index. Must be a page of the site the call is made on. | required: true | validation: format WEB_URL
 Return type: PROMISE<RequestPageIndexingResponse>
  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 a single page
```javascript
import { siteReadiness } from "@wix/gsc";

async function requestPageIndexing() {
  await siteReadiness.requestPageIndexing(
    "https://www.my-fashion-store.com/product-page/linen-summer-dress"
  );
}

```

### requestPageIndexing (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 requestPageIndexing(url) {
  const response = await myWixClient.siteReadiness.requestPageIndexing(url);
};
```

---