How to Create a Google Cloud Project and Service Account JSON Key for the Indexing API

Written by

in

Why does a page you published this morning still not show up in Google days later? The Google Indexing API exists to close that gap: instead of waiting to be discovered, you notify Google directly that a URL is new or updated, so it can be crawled sooner. The setup is where most people stall — a Google Cloud project, a service account, a JSON key file, and one permission change in Search Console. This guide walks through all six steps in order, with the exact screens you will see.

The short version: project, key, Owner

  • You need three things from Google Cloud: a project, the Indexing API enabled on it, and a service account JSON key.
  • The service account must be added as an Owner of your Search Console property — this is the step behind most 403 errors.
  • Each project has a default quota of 200 publish/update requests per day; busy sites can register several projects and rotate between them.
  • Once connected, a plugin can submit URLs automatically on publish and update, and keep a log of every submission.

Before Step 1: two accounts and ten minutes

  • A Google account that can create projects in Google Cloud (a free account is fine; the Indexing API itself does not require billing to be enabled).
  • Your site verified in Google Search Console, with Owner-level access for the account you will use to add the service account.
  • About ten minutes. None of the steps require code.

Step 1: Create a Google Cloud project

  1. Go to the Google Cloud Console.
  2. Click the project selector at the top of the page, then New Project.
  3. Give the project a recognizable name — for example, indexing-api — and click Create.
  4. Wait for the creation notification, then make sure the new project is selected in the project selector before continuing.

One project can serve multiple sites, as long as its service account is an Owner on each site’s Search Console property. If you plan to submit a lot of URLs, note the project name — you may create siblings of it later for extra quota.

Google Cloud project dashboard
The Google Cloud project dashboard. Everything in this guide happens inside one project like this one — note the Project ID, you will see it again in the key file.

Step 2: Enable the Indexing API

  1. With your new project selected, open APIs & Services → Library.
  2. Search for Indexing API and open it.
  3. Click Enable.

Skipping this step produces a specific error later: “Indexing API has not been used in project … before or it is disabled.” Enabling it now takes ten seconds and saves a debugging round-trip.

Web Search Indexing API enabled in Google Cloud
The Web Search Indexing API page with Status: Enabled. If this page shows an Enable button instead, click it before continuing.

Step 3: Create a service account

  1. Go to IAM & Admin → Service Accounts.
  2. Click Create Service Account.
  3. Enter a name (for example, indexer) and click Create and Continue. You can skip the optional role-granting steps — click Continue, then Done.
  4. Copy the service account’s email address (it looks like [email protected]). You will need it in Step 5.

A service account is a robot identity that your WordPress site uses to talk to Google. No IAM roles are required for the Indexing API; the permission that matters is granted inside Search Console, not in Cloud IAM.

Service accounts list in IAM and Admin
IAM & Admin → Service Accounts. The service account email (partially masked here) is what you will add as Owner in Search Console in Step 5.

Step 4: Create the JSON key

  1. In the service accounts list, click the service account you just created, then open the Keys tab.
  2. Click Add Key → Create new key.
  3. Choose JSON and click Create. The key file downloads automatically.

Treat this file like a password: anyone holding it can submit URLs as your service account. Store it somewhere private, and never commit it to a public repository. You will upload or paste it into your indexing plugin in Step 6 — after that, you can delete the local copy.

Step 5: Add the service account as Owner in Search Console

  1. Open Google Search Console and select your site’s property.
  2. Go to Settings → Users and permissions.
  3. Click Add user, paste the service account email from Step 3, set the permission to Owner, and click Add.

Owner is required — “Full” or “Restricted” access is not enough, and submissions will fail with a 403 error. If you manage several sites, repeat this step on each property; the same service account can be Owner on all of them.

Service account as Owner in Search Console Users and permissions
Search Console → Settings → Users and permissions, with the service account listed as Owner (“Pemilik” in this Indonesian interface).

Step 6: Connect the key in SoraDigital Multi Indexer

  1. In WordPress, open SD Multi Indexer in the admin menu.
  2. Add a key: upload the JSON file (or paste its contents). The plugin reads the project ID and service account email from the file and stores the key encrypted.
  3. Send a test submission for your homepage. A successful response (HTTP 200) confirms the whole chain: project, API, key, and Owner permission.
  4. Optionally enable automatic submission so new and updated posts are sent as you publish, and IndexNow so Bing, Yandex, and other engines are notified at the same time.

If your site publishes more than ~200 URLs a day, repeat Steps 1–5 for a second project and add its key as well. Multi Indexer tracks each project’s remaining daily quota and rotates submissions to whichever project still has room, so a single exhausted project never blocks the queue.

SoraDigital Multi Indexer JSON Projects tab
SoraDigital Multi Indexer → JSON / Projects: the connected project with its daily quota, used and remaining.
SoraDigital Multi Indexer Queue tab
The Queue tab: URLs waiting for quota are processed automatically, rotating across projects.

When it fails: the four errors you will actually see

403: Permission denied. Failed to verify the URL ownership.

The service account is not an Owner of the Search Console property that matches the submitted URL. Re-check Step 5: the email must be exact, the permission must be Owner, and the property must cover the URL (a domain property covers all subdomains; a URL-prefix property only covers its exact prefix). Allow a few minutes after adding the user before retrying.

403: Indexing API has not been used in this project before, or it is disabled.

The API is not enabled on the project that owns the key. Open the link inside the error message — it leads straight to the right project’s API page — click Enable, wait a minute, and retry.

429 / quota exhausted

The project has used its daily publish/update quota (200 requests by default). Options: wait for the daily reset, request a quota increase in the Cloud Console, or — simplest for most sites — add another project key and let rotation spread the load. A submission log makes it easy to see which project ran dry and when.

SoraDigital Multi Indexer Log tab
The Log tab: every submission with its project, HTTP status and result — the first place to look when a submission fails.

404: Requested entity was not found

This usually appears when asking for the status of a URL that has never been submitted. Send a publish/update notification for the URL first, then check its status.

One project or several? Compared with the Rank Math guide

Rank Math’s well-known tutorial, “Get Google To Index Your Website Instantly Using the Indexing API”, covers the same Google Cloud groundwork: create a project, enable the API, create a service account and JSON key, add the service account as Owner in Search Console, then configure their separate Instant Indexing plugin. The Google-side steps in this guide are intentionally the same — there is only one way to create a project and a key.

Where the two approaches differ is what happens after the key exists. The Rank Math flow is built around a single project and a single key: simple to set up, and entirely sufficient for a site that publishes a handful of URLs a day. SoraDigital Multi Indexer is built for the next stage — several projects whose quotas rotate automatically, a queue so bursts of publishing do not fail, per-channel duplicate protection so the same URL is not sent twice, a full submission log, and IndexNow handled in the same plugin.

Aspect SoraDigital Multi Indexer Rank Math guide + Instant Indexing plugin
Google Cloud setup Same steps; repeatable for additional projects One project, one service account, one JSON key
Daily quota 200/day per project, rotated across all registered projects 200 requests/day (single project)
When quota runs out Submissions move to the next project with quota; overflow is queued Wait for reset or request an increase
Duplicate protection Built-in dedupe per URL and channel, with a log-based skip for already-sent URLs Manual care when resubmitting
Submission history Persistent log: URL, project used, status, and response code Response shown at send time
IndexNow (Bing, Yandex…) Built into Multi Indexer, sent alongside Google submissions Handled by the main Rank Math plugin’s Instant Indexing module
Works without the vendor’s SEO plugin Yes — standalone, pairs with any SEO plugin Yes — standalone plugin

Neither approach changes Google’s side of the equation: the Indexing API quota, the Owner requirement, and the enable-the-API step are identical. The difference is operational — how much headroom and visibility you have once submissions become routine.

What Google officially says this API is for

Google officially recommends the Indexing API for pages containing JobPosting structured data, or BroadcastEvent embedded in a VideoObject. In practice, site owners widely use it for regular content, and Google does crawl submitted URLs — but you should know the official scope before relying on it, and keep your sitemap and internal linking healthy regardless. Treat the API as an accelerator for discovery, not a replacement for the fundamentals.

Six steps, two traps, one test submission

Count it off: project, API, service account, JSON key, Owner permission, connect — six steps, none of them code. In practice, setups stall in just two places: an API that was never enabled, and a service account granted less than Owner in Search Console. Both take a minute to check. After that, one test submission returning 200 proves the whole chain works, and new posts can be announced as they publish instead of waiting to be found.

Have your JSON key downloaded? Start with SoraDigital Multi Indexer, and pair it with SoraDigital SEO Optimizer for the rest of your on-page and technical SEO.