# Submit URL for Indexing — Google Search Console

> Sends a URL_UPDATED or URL_DELETED notification for one page to Google's Indexing API (indexing.googleapis.com) — a SEPARATE API from Search Console reporting.

- Key: `google_search_console-submit-url-for-indexing`
- Type: Action (Write)
- Version: 0.0.6
- App: Google Search Console (`google_search_console`) — https://pipedream.com/apps/google-search-console.md
- This page (HTML): https://pipedream.com/apps/google-search-console/actions/submit-url-for-indexing
- Hints: open-world
- Source: https://github.com/PipedreamHQ/pipedream/blob/master/components/google_search_console/actions/submit-url-for-indexing/submit-url-for-indexing.mjs

## Description

Sends a `URL_UPDATED` or `URL_DELETED` notification for one page to Google's **Indexing API** (`indexing.googleapis.com`) — a SEPARATE API from Search Console reporting.

**Use only for pages carrying JobPosting or BroadcastEvent (livestream `VideoObject`) structured data** — Google supports nothing else: a job listing that was posted, changed or filled, or a livestream page going live or ending. Default quota is **200 notifications per day** per project, and the connected account must be a **verified owner** of the site.

**Do NOT use it to "request indexing" an ordinary page — no API does that.** The "Request indexing" button in the Search Console UI has no API equivalent, and calling this for a normal page does not get it crawled sooner; Google ignores or rejects notifications for pages without the supported structured data. When a user asks you to request indexing, recrawl or "push" an ordinary page, say that no API can do it and offer the two real options instead: **Submit Sitemap** to have Google re-read the sitemap containing the page, and **Inspect URLs** to check its current index status and last crawl time.

**Returns** Google's `urlNotificationMetadata`: the notified `url` plus `latestUpdate` / `latestRemove` objects carrying `type` and `notifyTime`. A success means the notification was accepted, NOT that the page was crawled or indexed.

**Mistakes.** The `siteUrl` prop is the **page URL to notify about**, not a property identifier — the name is legacy. Pass a full canonical page URL such as `https://www.example.com/jobs/paleobotanist`; never `sc-domain:example.com` or a bare property prefix. Send `URL_DELETED` only after the page actually returns 404 or 410. Do not burn the 200/day quota on ordinary pages.

[See the documentation](https://developers.google.com/search/apis/indexing-api/v3/using-api)

## Props

| Prop | Type | Required | Description |
|---|---|---|---|
| `siteUrl` | `string` | Yes | The full PAGE URL to notify Google about, e.g. https://www.example.com/jobs/paleobotanist — not a Search Console property identifier, so never pass sc-domain:example.com or a bare property prefix (the prop name is legacy). It must be the canonical URL of a page on a site the connected account is a verified owner of, carrying JobPosting or BroadcastEvent structured data. |
| `notificationType` | `string` | Yes | Type of notification to send to Google |

## Run it

**MCP**

```ts
import { Client } from "@modelcontextprotocol/sdk/client/index.js"
import { StreamableHTTPClientTransport } from "@modelcontextprotocol/sdk/client/streamableHttp.js"
import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const accessToken = await pd.rawAccessToken

const transport = new StreamableHTTPClientTransport(
  new URL("https://remote.mcp.pipedream.net/v3"),
  {
    requestInit: {
      headers: {
        Authorization: `Bearer ${accessToken}`,
        "x-pd-project-id": process.env.PIPEDREAM_PROJECT_ID!,
        "x-pd-environment": "production",
        "x-pd-external-user-id": "{external_user_id}", // any stable ID for this user in your system
        "x-pd-app-slug": "google_search_console",
      },
    },
  },
)

const mcp = new Client({ name: "my-agent", version: "1.0.0" })
await mcp.connect(transport)

const { tools } = await mcp.listTools()

// listTools() hands your model this tool's input schema, so it can
// fill the arguments itself:
const result = await mcp.callTool({
  name: "google_search_console-submit-url-for-indexing",
  arguments: {
    siteUrl: "URL for indexing",
    notificationType: "Notification Type",
  },
})
```

**TypeScript**

```ts
import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const result = await pd.actions.run({
  id: "google_search_console-submit-url-for-indexing",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    google_search_console: { authProvisionId: "apn_xxxxxxx" },
    siteUrl: "URL for indexing",
    notificationType: "Notification Type",
  },
})

console.log(result)
```

**cURL**

```bash
curl -X POST https://api.pipedream.com/v1/connect/{project_id}/actions/run \
  -H "Content-Type: application/json" \
  -H "X-PD-Environment: production" \
  -H "Authorization: Bearer {access_token}" \
  -d '{
    "external_user_id": "{external_user_id}",
    "id": "google_search_console-submit-url-for-indexing",
    "configured_props": {
      "google_search_console": { "authProvisionId": "apn_xxxxxxx" },
      "siteUrl": "URL for indexing",
      "notificationType": "Notification Type"
    }
  }'
```

---

- App: https://pipedream.com/apps/google-search-console.md · All apps: https://pipedream.com/apps
