# Google Indexing API Setup: From Cloud Console to First Submit

> Source: [Google Indexing API Setup: From Cloud Console to First Submit](https://indexer.dependsit.com/blog/google-indexing-api-setup/)

> The Google Indexing API lets your site tell Google about new and changed pages the moment they publish, instead of waiting for the next crawl. The setup lives in two consoles, Google Cloud and Search Console, takes about twenty minutes, and breaks at one predictable step that almost everyone skips. This guide walks the whole Google Indexing API setup with one worked example domain, shows the exact first request and response, explains the 200 notifications per key per day quota with the key pool math, and fixes every error you are likely to meet. It is written for site owners who want faster discovery for their own pages and are willing to spend one sitting in Google Cloud to get it.

## Key takeaways

- The Indexing API has one job: notify Google that a URL was created, updated or deleted, so Google reconsiders it sooner. It cannot force indexing, and a notification is not a verdict.
- Setup is seven steps across two consoles: verify the domain, create a Cloud project, enable the API, create a service account, download its JSON key, make that account an Owner in Search Console, send the first request.
- The step everyone skips is the Owner grant. A service account that is not an Owner gets a 403 permission error on every request, and no amount of retrying fixes it.
- Each key, meaning each service account, submits up to 200 notifications per day. Key pools stack: three keys mean 600 notifications a day.
- The API is free. The limit is quota, not money.
- Google documents the API for JobPosting and BroadcastEvent pages. Many sites use it for ordinary pages on domains they own; the honest framing is in the scope section below.

## What the Google Indexing API actually is

It is a small, official Google endpoint that accepts one piece of information: this URL changed. You authenticate with a service account that you own, that is an owner of your Search Console property, and you send one of two notification types:

- `URL_UPDATED`: the page was created or meaningfully changed.
- `URL_DELETED`: the page was removed.

The endpoint is `https://indexing.googleapis.com/v3/urlNotifications:publish`. Google records the notification, may recrawl the URL sooner than it otherwise would, and answers with a receipt you can inspect. That receipt says the notification was accepted. It does not say the page is indexed, because acceptance and indexing are different stages, decided by different systems.

Three boundaries keep the expectations honest:

1. The API is a request for attention, not a command. Google still decides what gets crawled and indexed.
2. It only works for properties you control. The service account must be an owner of the property in Search Console, which is impossible for someone else's site unless they grant it.
3. Google does not participate in IndexNow. For Bing, Yandex, Naver, Seznam and Yep, the equivalent push channel is the IndexNow protocol, which needs its own key file hosted on your site.

| What you send | What comes back | What it means |
|---|---|---|
| `URL_UPDATED` for a page | A receipt with `urlNotificationMetadata` | Google accepted the notification and will reconsider the URL |
| `URL_DELETED` for a removed page | The same receipt shape | Google will drop the URL from its queues |
| Nothing, ever | Whatever crawling alone produces | Discovery waits on links, sitemaps and crawl budget |

## What you need before starting

- A site you control, and the ability to prove it. This guide uses `https://example.com` as the worked example.
- A Google account with access to Google Search Console for that site.
- Access to Google Cloud Console, which is free to open.
- About twenty minutes. No credit card is needed at any point in this setup.

If your domain is not verified in Search Console yet, do that first; the whole API hangs off that verification. The guide [How to Index Your Website on Google](/blog/how-to-index-your-website-on-google/) covers verification in full.

## The setup, step by step

Every screen and value below uses the example domain `example.com` and the example Cloud project `indexer-example-com`. Substitute your own domain and project name as you go.

### Step 1: Verify the domain in Search Console

Open [Search Console](https://search.google.com/search-console) and add `example.com` as a Domain property. Domain verification uses a DNS TXT record on your registrar, which proves control of the whole domain including subdomains. If you already have a verified property, use it. The service account you create later will be granted ownership of this exact property, so the property, not the account, is the root of trust.

### Step 2: Create the Google Cloud project

Open [Google Cloud Console](https://console.cloud.google.com/). At the project picker at the top, create a new project named `indexer-example-com`. A dedicated project keeps the API credential, its usage graphs and its quota in one place, separate from anything else your Google account does. The project is free; the API inside it is free; the only scarce resource is the daily quota.

### Step 3: Enable the Indexing API

Inside the new project, open the API library and search for "Indexing API". Open it and click Enable. This is the step people forget when they copy scripts from old tutorials: the API is not enabled by default on a fresh project, and calls to it fail until it is. While you are on the API page, note the Quota section in the left navigation. That page shows your notification count for the day, which is the number you will live with: 200 per credential.

### Step 4: Create the service account

In Cloud Console, open IAM and Admin, then Service Accounts, and create a service account named `indexer-key`. Skip the optional role grants; the Indexing API needs no Cloud role at all. What matters happens in the next two steps. When it is created, the account gets an email address like `indexer-key@indexer-example-com.iam.gserviceaccount.com`. That address is what Search Console will recognize.

### Step 5: Download the JSON key

Open the service account, go to the Keys tab, add a new key of type JSON, and create it. The browser downloads a file like `indexer-example-com-4f2a.json`. That file is the credential. Treat it like a password: anyone holding it can act as this service account. It contains one line you will use in the next step:

```json
"client_email": "indexer-key@indexer-example-com.iam.gserviceaccount.com"
```

Store the file somewhere you control, never in a public repository, and be equally careful with local copies.

### Step 6: Make the service account an Owner

This is the critical step, and it is where every setup that "suddenly" returns 403 went wrong. The permission the Indexing API checks is not a Cloud role; it is Search Console ownership.

1. Back in [Search Console](https://search.google.com/search-console), open Settings, then Users and permissions.
2. Click Add user and paste the service account email, the `client_email` from the JSON: `indexer-key@indexer-example-com.iam.gserviceaccount.com`.
3. Grant it the Owner permission.

That single action binds the credential to your site. It can now submit URLs for this property because you, the verified owner, made it an owner with your own hands in Google's own console. If you skip it or grant a lesser permission, every request returns 403, and the fix is never retrying; it is redoing this step.

One more honest detail: ownership changes can take a little time to propagate on Google's side. If step 7 still returns 403 immediately after a correct grant, wait a few minutes and try again before debugging anything else.

### Step 7: Send the first request

The API authenticates with a signed JSON Web Token built from the service account key, scoped to `https://www.googleapis.com/auth/indexing`. Libraries handle the signing; the shortest path is usually a small script. In Python, with the `google-auth` and `requests` packages installed:

```python
from google.oauth2 import service_account
import google.auth.transport.requests
import json
import requests

creds = service_account.Credentials.from_service_account_file(
    "indexer-example-com-4f2a.json",
    scopes=["https://www.googleapis.com/auth/indexing"],
)
auth = google.auth.transport.requests.Request()
creds.refresh(auth)

resp = requests.post(
    "https://indexing.googleapis.com/v3/urlNotifications:publish",
    headers={
        "Content-Type": "application/json",
        "Authorization": f"Bearer {creds.token}",
    },
    data=json.dumps({
        "url": "https://example.com/blog/new-post/",
        "type": "URL_UPDATED",
    }),
)
print(resp.status_code, resp.json())
```

A successful call returns `200` with a receipt like this:

```json
{
  "urlNotificationMetadata": {
    "url": "https://example.com/blog/new-post/",
    "latestUpdate": {
      "url": "https://example.com/blog/new-post/",
      "type": "URL_UPDATED",
      "notifyTime": "2026-08-30T09:41:12.000Z"
    }
  }
}
```

Read that receipt carefully, because it sets expectations for everything that follows. It says Google accepted a notification about this URL at that time. It does not say the page is indexed. Whether the page enters the index is decided later, by crawling and quality systems, and the only authoritative answer is the Search Console inspection for that URL.

## Quota math: 200 notifications per key per day

The Indexing API is free, and each credential may send up to 200 notifications per day. When a key hits its quota, requests return 429 until the quota resets at midnight Pacific time. The way to submit more than 200 URLs a day is not to pay more; it is to add keys. Quotas attach to the credential, so keys stack:

| Keys | Daily capacity |
|---|---|
| 1 | 200 URLs |
| 3 | 600 URLs |
| 5 | 1,000 URLs |

Every additional key follows the same recipe as steps 4 through 6: a service account, a JSON key, an Owner grant in Search Console. The multiplication is boring, which is the point; it is arithmetic, not a relationship with a vendor.

![Diagram of three service account keys each providing 200 daily Indexing API notifications, pooled into 600 per day](./diagram-01.webp)

*The web version renders an interactive key pool calculator here.*

## What the response tells you, and what it does not

The `urlNotificationMetadata` receipt answers one question: did Google accept the notification. The `latestUpdate` block shows the most recent notification Google has for that URL, including ones you sent earlier, which lets the endpoint double as a status check. If `latestUpdate` shows an older `notifyTime` than the request you just made, the new notification was not accepted, and the status code carries the reason.

What no receipt can tell you is the verdict. Indexed, not indexed, or excluded is decided after crawling, and it lives in Search Console. Running the inspection by hand means opening the URL Inspection tool, pasting one URL, and reading the Page Indexing report. Doing it for a hundred URLs means doing that a hundred times. The reading itself is a skill: [Why Is My Website Not on Google?](/blog/why-is-my-website-not-on-google/) decodes every status Search Console shows, what it means, and the one fix each needs.

## The scope question: JobPosting, BroadcastEvent, and everything else

Google's documentation scopes the Indexing API to two structured data types: JobPosting pages and BroadcastEvent pages for livestreams. Both are time sensitive, which is why a push channel exists for them; a job posting that surfaces three days late is worthless.

In practice, many site owners submit ordinary pages through the API on domains they own, and Google processes those notifications rather than rejecting them. The honest framing has three parts. First, the documented scope is JobPosting and BroadcastEvent; that is what Google commits to. Second, off-label use on your own verified property is widespread and routinely works, with results that vary by site and page. Third, a notification never forces indexing, in scope or out, so the risk of off-label use is wasted quota, not a penalty.

This is also where the boundary against abuse matters. The API cannot submit a third party's URL, because the service account must be an owner of the property. That constraint is what keeps the channel clean, and it is why services that promise to index "any URL" deserve a long, skeptical look at how they authenticate.

## Common errors and what they mean

| Error | What it means | The fix |
|---|---|---|
| `403 PERMISSION_DENIED` | The service account is not an Owner of the Search Console property, or the grant has not propagated yet | Redo step 6, confirm the Owner permission, wait a few minutes |
| `429 RESOURCE_EXHAUSTED` | The daily quota for this key is spent | Wait for the midnight Pacific reset, or add another key |
| `401 UNAUTHENTICATED` | The JWT is missing, expired, or signed by the wrong key | Rebuild the token from the current JSON key with the `indexing` scope |
| `400 INVALID_ARGUMENT` | The URL is malformed, or the type is not `URL_UPDATED` or `URL_DELETED` | Send a fully qualified URL and a valid type |
| `403` on a brand new Owner grant | Propagation delay on Google's side | Wait a few minutes and retry the same request |

The pattern across all of them: the API is strict and literal. It authenticates exactly one identity, checks exactly one permission, and enforces exactly one quota. When something fails, the error names the dimension, and the fix is a step in this guide, not a support ticket.

## Running the loop without the plumbing

The setup above is a one time job, but the work of indexing is a loop: submit, inspect, diagnose, retry, monitor. Done by hand, the loop means scripts for submission, one-by-one URL inspections for verdicts, a spreadsheet for tracking, and the discipline to recheck everything every few days.

[Indexer](/) runs the loop against the same official systems. You upload the same service account JSON you just created, it is stored encrypted with Fernet and never leaves your account, and the console handles the rest: sitemap sync feeds the queue, submissions go out throttled within your quota, a background worker drains the queue every sixty seconds, and verdicts are read back through the Search Console inspection API for every submitted URL, re-inspected on a schedule of roughly every two days. When a verdict says a retry can help, the retry engine resubmits inside your chosen window of 3, 7 or 14 days, up to three attempts per URL. When a verdict says the problem is on your side, like a noindex tag or a canonical pointing elsewhere, it never wastes quota retrying what Google has already ruled on.

On the Agency tier, the key pool is managed for you: up to five keys, pooled to 1,000 notifications a day, with automatic switching when a key hits its quota. The [documentation](/docs/) walks the whole system click by click with the same worked example domain used in this guide.

## FAQ

### Does the Google Indexing API work for any page?

Google documents it for JobPosting and BroadcastEvent pages. Notifications for ordinary pages on properties you own are accepted and often effective, but that use is outside the documented scope, and no notification ever guarantees indexing. The scope section above gives the full honest framing.

### How much does the Google Indexing API cost?

Nothing. The API is free, and the limit is the daily quota of 200 notifications per key. Scaling past 200 a day means adding keys, not paying more.

### Can one service account submit for multiple sites?

Yes. Add the same service account email as an Owner of each Search Console property, and it can notify for all of them. Its 200 per day quota is shared across every property it serves, so heavy use across sites still needs a key pool.

### Does a submitted URL always get indexed?

No. A notification asks Google to look; crawling and quality systems decide what enters the index. The verdict for each URL lives in Search Console, and reading those verdicts, not sending more notifications, is where most indexing problems actually get solved.

## Further reading

- [The Indexer documentation: the same setup, documented click by click with a worked example domain](/docs/)
- [Google Indexing API Errors and Quotas: Every Fix](/blog/google-indexing-api-errors-and-quotas/)
- [How to Index Your Website on Google](/blog/how-to-index-your-website-on-google/)
- [IndexNow Explained: the Protocol, Key and Engines](/blog/indexnow-explained-the-protocol-key-and-engines/)
- [Search Console Verification: Every Method Compared](/blog/search-console-verification-methods/)
- [Sitemap XML Explained: Format, Limits and Lastmod](/blog/sitemap-xml-explained-format-limits-and-lastmod/)
- [Why Is My Website Not on Google? 9 Reasons and the Fix for Each](/blog/why-is-my-website-not-on-google/)
- [404s in Your Sitemap: The Silent Indexing Killer](/blog/404s-in-your-sitemap-the-silent-indexing-killer/)
- [AI Overviews and Your Traffic: How to Adapt](/blog/ai-overviews-and-your-traffic-how-to-adapt/)
- [Alternate Page with Proper Canonical: Should You Fix It?](/blog/alternate-page-with-proper-canonical-should-you-fix-it/)
- [Answer Engine Optimization (AEO) vs. GEO vs. SEO](/blog/answer-engine-optimization-aeo-vs-geo-vs-seo/)
- [Backlink Indexers Explained: How They Work and When to Use Them](/blog/backlink-indexers-explained-how-they-work-and-when-to-use-them/)
- [BYOK Explained: Why Bring-Your-Own-Key SaaS Is Taking Over](/blog/byok-explained-why-bring-your-own-key-saas-is-taking-over/)
