Switching to the new website verification API

Webmaster level: advanced

Just over a 12 months ago we offered a brand new API for web page verification for Google products and services. In the spirit of conserving things simple and focusing our efforts, we’ve decided to deprecate the outdated verification API approach on March 31st, 2014. The rest of the API will remain unchanged, this handiest affects the verification approach. For extra details about verification normally, please see our site verification Help Heart article.

One benefit of upgrading to the brand new API for verification is that it makes use of the same client libraries as most different Google APIs, which simplifies integration with different apps and instruments. Getting started is straightforward, particularly when you are used to other Google APIs:

  1. Obtain the Google API client library in your favorite programming language.
  2. Analyze concerning the webSite Verification API and its strategies.
  3. Enable your customers to authenticate with OAuth.
  4. Begin verifying!

If you can’t wait to try it out and are keen on command traces, here is a shortcut:

  1. Download and set up oacurl.
  2. Authenticate with a Google Account:
    $ java -cp oacurl-1.2.zero.jar com.google.oacurl.Login
      --scope https://www.googleapis.com/auth/siteverification
  3. Request the verification knowledge:
    $ echo ' "verificationMethod": "FILE", "site":
     "identifier": "http://www.instance.com",
     "type": "SITE"
     java -cp oacurl-1.2.0.jar com.google.oacurl.Fetch
     --content material-type JSON -X=POST
  4. Create & add the file to your web page, then verify:
    $ echo ' "web site": "identifier": "http://www.example.com",
    "sort": "SITE" ' zero.jar com.google.oacurl.Fetch
    --content material-kind JSON -X=POST
  5. Carried out!

We hope this API will enable you to put in force Google web site verification for your initiatives. Should you’ve gotten any questions, be at liberty to comment here, or post in our Webmaster Assist Discussion board.