Verifies ownership of a website or domain.
Try it now.
Before calling insert, place the authenticated user's verification token on their website or domain. When you call insert, Google's Site Verification service queries the website or domain and looks for the token.If Google finds the user's token on the website or domain, it records the site as verified. The authenticated user can also delegate ownership; any email addresses you specify in the owners field in the request body are also recorded as verified site owners.
The verificationMethod query parameter specifies the verification token type that Google should check for. The value of verificationMethod should match the value previously passed to getToken.
Request
HTTP request
POST https://www.googleapis.com/siteVerification/v1/webResource?verificationMethod=method
[[["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"]],["Last updated 2024-06-11 UTC."],[[["The Site Verification API allows you to programmatically verify ownership of a website or domain using a verification token."],["Before verification, you need to place a verification token on your website, obtained via the `getToken` method."],["The API confirms ownership by checking for the token and records verified owners, including delegated ones."],["This process requires authorization with specific scopes related to site verification."],["A successful verification returns a WebResource resource, confirming the site or domain ownership."]]],["To verify website ownership, place the user's verification token, obtained via `getToken`, on the site. Send a POST request to `/site-verification/v1/webResource/insert` with the `verificationMethod` query parameter matching the token type. Google's service checks for the token and records the site as verified if found. You can also specify additional owners in the request body. Ownership is stored and visible to all current and future owners. This request requires authorization with specified scopes.\n"]]