How to Use a Service Account with Index Worker
Index Worker can access the Search Console API through OAuth or a service account.
The URL Inspection API has quotas for each Search Console property and each Google Cloud project.
Using a service account from a different Google Cloud project can distribute project-level quota in some cases.
This can help when requests for many properties are concentrated in one project and cause rate limit errors.
✅ Reference: What are service accounts?
📌 Using a service account does not change the combined limit of 2,000 URLs per day and 600 URLs per minute for one Search Console property. Every job that uses the same property shares these limits.
Google Cloud Setup
Section titled “Google Cloud Setup”-
Log in to the Google Cloud Console.
-
Select a project or create a new project.

-
From the navigation menu, select “IAM & Admin” > “Service Accounts.”

-
Click “Create service account.”

-
Enter the service account name, ID, and description, then click “Create.”
-
Select the service account you created from the list, then click “Manage keys.”

-
Select “Add key” > “Create new key,” choose JSON as the format, then click “Create.”

-
Store the downloaded JSON file in a safe place.
-
Next, grant permissions to the service account you just created from Search Console. Log in to Search Console.
-
From “Settings” -> “Users and permissions” in the lower-left corner of the screen, add the service account you just created (for example,
hoge@fuga.iam.gserviceaccount.com) with “Full” permissions (full permissions/full user).



Amethyst Setup
Section titled “Amethyst Setup”-
Log in to Amethyst.
-
From “Workspace settings” -> “Service accounts” -> “Choose file” in the lower-left corner of the screen, upload the JSON file you downloaded.


-
This completes service account registration in Amethyst. The final step is to use the service account.
-
Select “Search Console Properties” in Index Worker.

-
Select ”+ Add” in the upper-right corner of the screen.

-
Set the account used to reference properties to the service account you created.

-
Select any Search Console property.
-
Complete the property addition from “Review selection.”
-
You can now select Search Console properties that the service account can access when creating or editing Index Worker jobs.
If project-level quota is concentrated, using a service account from a different Google Cloud project can distribute requests in some cases.