Failed To Verify URL Ownership : Google Indexing API

If you happen to find yourself in a situation where you are trying to use the Google Indexing API and you get the following error:

{
  "error": {
    "code": 403,
    "message": "Failed to verify URL ownership.",
    "status": "PERMISSION_DENIED"
  }
}

And you have made sure to follow every step mentioned in Prerequisites for the Indexing API then I might have a solution for you.

The Problem

The most common mistake following the steps mentioned in the prerequisites is that you will forget to add the new Service account with Owner permissions to the Search Console but will go with the default Full permissions, which might seem like it is enough but it is not.

The Solution

  1. Go to Search Console and select your website.
  2. Click on Settings on the left side menu.
  3. Click on Users and permissions.
  4. Click the 3 dots on the right side of the Service account you created.
  5. Click Change permissions.
  6. Select Owner from the dropdown menu.
  7. Click Save.

And that's it, you should be able to use the Google Indexing API now.

Following are the screenshots of the steps:

Step 1

Go to Users and permissions

Google Indexing Api Change Ownershipt Part 1

Step 2

Click on the 3 dots on the right side of the Service account you created.

Google Indexing Api Change Ownershipt Part 1

Step 3

Click Change permissions.

Google Indexing Api Change Ownershipt Part 1

Step 4

Select Owner from the dropdown menu.

Google Indexing Api Change Ownershipt Part 1

Hope this helps.

Back To All Blogs