> 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

# 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 recrawl the site's home page, given by its URL.

Only the home page can be submitted: any other URL, such as a blog post,
a product page or a page with a query or fragment, fails with
`INVALID_ARGUMENT` (rule `HOME_PAGE_ONLY`), and the error names the home
page URL to use. Don't retry it with another page.

Google discovers the site's other pages from the sitemap, so to get them
indexed, make sure the sitemap is submitted (see Submit Sitemap and List
Sitemaps), and to see how Google sees a specific page, call Inspect URL.

Shares Request Site Indexing's daily limit per site (currently 5 requests
per site per day); a call over the limit fails with `RESOURCE_EXHAUSTED`
(`INDEXING_REQUEST_LIMIT_REACHED`), and the error message gives the retry
delay or says to retry tomorrow. Retrying sooner doesn't help.

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 recrawl the site's home page, given by its URL.  Only the home page can be submitted: any other URL, such as a blog post, a product page or a page with a query or fragment, fails with `INVALID_ARGUMENT` (rule `HOME_PAGE_ONLY`), and the error names the home page URL to use. Don't retry it with another page.  Google discovers the site's other pages from the sitemap, so to get them indexed, make sure the sitemap is submitted (see Submit Sitemap and List Sitemaps), and to see how Google sees a specific page, call Inspect URL.  Shares Request Site Indexing's daily limit per site (currently 5 requests per site per day); a call over the limit fails with `RESOURCE_EXHAUSTED` (`INDEXING_REQUEST_LIMIT_REACHED`), and the error message gives the retry delay or says to retry tomorrow. Retrying sooner doesn't help.  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: 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
   param name: url | type: url | description: Full URL of the site's home page, for example `https://www.my-fashion-store.com`. A trailing slash is ignored; any other page, such as a blog post or a product page, or a URL with a query or fragment, fails with `INVALID_ARGUMENT` (rule `HOME_PAGE_ONLY`). Google finds the site's other pages from its sitemap. For a site that isn't hosted on Wix, the home page is `siteUrl`. | required: true | validation: format WEB_URL
 Return type: RequestPageIndexingResponse
  EMPTY-OBJECT {}

 Possible Errors:
   HTTP Code: 428 | Status Code: FAILED_PRECONDITION | Application Code: GOOGLE_INDEXING_PERMISSION_MISSING | Description: The connected Google account hasn't granted permission to request indexing. Reconnect it with the GSC Connection API and approve all requested permissions.
   HTTP Code: 428 | Status Code: FAILED_PRECONDITION | Application Code: SITE_PROPERTY_NOT_OWNED | Description: `siteUrl` is set and the connected Google account doesn't own that Search Console property. Verify it in Google Search Console first.
   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: 429 | Status Code: RESOURCE_EXHAUSTED | Application Code: INDEXING_REQUEST_LIMIT_REACHED | Description: The site reached its daily limit of indexing requests. Retry after the time in the error message.
   HTTP Code: 503 | Status Code: UNAVAILABLE | Application Code: GOOGLE_UNAVAILABLE | Description: Google answered with a temporary server error or did not answer in time. Retry with backoff. A request that timed out may still have reached Google and stays counted against the daily limit, so a retry uses another request.


```

### 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"
}'
```

---

## JavaScript SDK

### Schema

```
 Method: wixClientAdmin.gsc.siteReadiness.requestPageIndexing(url, options)
 Description: Asks Google to recrawl the site's home page, given by its URL.  Only the home page can be submitted: any other URL, such as a blog post, a product page or a page with a query or fragment, fails with `INVALID_ARGUMENT` (rule `HOME_PAGE_ONLY`), and the error names the home page URL to use. Don't retry it with another page.  Google discovers the site's other pages from the sitemap, so to get them indexed, make sure the sitemap is submitted (see Submit Sitemap and List Sitemaps), and to see how Google sees a specific page, call Inspect URL.  Shares Request Site Indexing's daily limit per site (currently 5 requests per site per day); a call over the limit fails with `RESOURCE_EXHAUSTED` (`INDEXING_REQUEST_LIMIT_REACHED`), and the error message gives the retry delay or says to retry tomorrow. Retrying sooner doesn't help.  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 site's home page, for example `https://www.my-fashion-store.com`. A trailing slash is ignored; any other page, such as a blog post or a product page, or a URL with a query or fragment, fails with `INVALID_ARGUMENT` (rule `HOME_PAGE_ONLY`). Google finds the site's other pages from its sitemap. For a site that isn't hosted on Wix, the home page is `siteUrl`. | required: true | validation: format WEB_URL
   param name: options | type: RequestPageIndexingOptions  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<RequestPageIndexingResponse>
  EMPTY-OBJECT {}

 Possible Errors:
   HTTP Code: 428 | Status Code: FAILED_PRECONDITION | Application Code: GOOGLE_INDEXING_PERMISSION_MISSING | Description: The connected Google account hasn't granted permission to request indexing. Reconnect it with the GSC Connection API and approve all requested permissions.
   HTTP Code: 428 | Status Code: FAILED_PRECONDITION | Application Code: SITE_PROPERTY_NOT_OWNED | Description: `siteUrl` is set and the connected Google account doesn't own that Search Console property. Verify it in Google Search Console first.
   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: 429 | Status Code: RESOURCE_EXHAUSTED | Application Code: INDEXING_REQUEST_LIMIT_REACHED | Description: The site reached its daily limit of indexing requests. Retry after the time in the error message.
   HTTP Code: 503 | Status Code: UNAVAILABLE | Application Code: GOOGLE_UNAVAILABLE | Description: Google answered with a temporary server error or did not answer in time. Retry with backoff. A request that timed out may still have reached Google and stays counted against the daily limit, so a retry uses another request.


```

### Examples

### Ask Google to recrawl the site's home page
```javascript
import { siteReadiness } from "@wix/gsc";

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

```

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

---