Stay organized with collections
Save and categorize content based on your preferences.
Monday, December 23, 2013
Just over a year ago we introduced a new
API for website verification
for Google services. In the spirit of keeping things simple and focusing our efforts, we've
decided to deprecate the
old verification API method
on March 31st, 2014. The rest of the API will remain unchanged, this only affects the verification
method. For more information about verification in general, please see our
site verification Help Center article.
One advantage of upgrading to the new API for verification is that it uses the same client
libraries as most other Google APIs, which simplifies integration with other apps and tools.
Getting started is easy, especially if you're used to other Google APIs:
We hope this API will make it easier to implement Google site verification in your projects.
Should you have any questions, you can post in our
Webmaster Help Forum.
Posted by
John Mueller,
fan of long command lines and Webmaster Trends Analyst
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],[],[[["\u003cp\u003eGoogle is deprecating the old website verification API method on March 31st, 2014.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers are encouraged to upgrade to the new API, which uses the same client libraries as other Google APIs and offers simplified integration.\u003c/p\u003e\n"],["\u003cp\u003eThe new API provides an easier way to implement Google site verification in projects using OAuth and common programming languages.\u003c/p\u003e\n"],["\u003cp\u003eSupport and further information can be found in the Google Webmaster Help Forum and the provided Help Center article.\u003c/p\u003e\n"]]],[],null,["# Switching to the new website verification API\n\nMonday, December 23, 2013\n\n\nJust over a year ago we introduced a new\n[API for website verification](/site-verification)\nfor Google services. In the spirit of keeping things simple and focusing our efforts, we've\ndecided to deprecate the\n[old verification API method](/webmaster-tools/docs/2.0/developers_guide_protocol#AD_Verifying)\non March 31st, 2014. The rest of the API will remain unchanged, this only affects the verification\nmethod. For more information about verification in general, please see our\n[site verification Help Center article](https://support.google.com/webmasters/answer/35179).\n\n\nOne advantage of upgrading to the new API for verification is that it uses the same client\nlibraries as most other Google APIs, which simplifies integration with other apps and tools.\nGetting started is easy, especially if you're used to other Google APIs:\n\n1. Download the [Google API client library](/site-verification/libraries) for your favorite programming language.\n2. Learn about the [Site Verification API](/site-verification) and its methods.\n3. Allow your users to authenticate with [OAuth](/identity/protocols/oauth2).\n4. Start verifying!\n\nIf you can't wait to try it out and are a fan of command lines, here's a shortcut:\n\n1. Download and install [oacurl](https://code.google.com/p/oacurl/).\n2. Authenticate with a Google Account: \n\n ```\n $ java -cp oacurl-1.2.0.jar com.google.oacurl.Login \\\n --scope https://www.googleapis.com/auth/siteverification\n ```\n3. Request the verification information: \n\n ```\n $ echo '{ \"verificationMethod\": \"FILE\", \"site\": {\n \"identifier\": \"https://www.example.com\",\n \"type\": \"SITE\" } }' | \\\n java -cp oacurl-1.2.0.jar com.google.oacurl.Fetch \\\n 'https://www.googleapis.com/siteVerification/v1/token' \\\n --content-type JSON -X=POST\n ```\n4. Create and add the file to your website, then verify: \n\n ```\n $ echo '{ \"site\": { \"identifier\": \"https://www.example.com\", \"type\": \"SITE\" } }' | \\\n java -cp oacurl-1.2.0.jar com.google.oacurl.Fetch \\\n 'https://www.googleapis.com/siteVerification/v1/webResource?verificationMethod=FILE' \\\n --content-type JSON -X=POST\n ```\n5. Done!\n\n\nWe hope this API will make it easier to implement Google site verification in your projects.\nShould you have any questions, you can post in our\n[Webmaster Help Forum](https://support.google.com/webmasters/threads?hl=en&thread_filter=(category:search_console)).\n\n\nPosted by\n[John Mueller](https://johnmu.com/+?rel=author),\nfan of long command lines and Webmaster Trends Analyst"]]