Verifica la proprietà di un sito web o di un dominio.
Prova subito.
Prima di chiamare insert, inserisci il token di verifica dell'utente autenticato nel suo sito web o dominio. Quando chiami insert, il servizio di verifica del sito di Google esegue una query sul sito web o sul dominio e cerca il token.
Se Google trova il token dell'utente sul sito web o nel dominio, registra il sito come verificato.L'utente autenticato può anche delegare la proprietà; Tutti gli indirizzi email specificati nel campo owners del corpo della richiesta vengono registrati come proprietari del sito verificati.
Il parametro di query verificationMethod specifica il tipo di token di verifica che Google deve controllare.Il valore di verificationMethod deve corrispondere al valore precedentemente trasmesso a getToken.
Richiesta
Richiesta HTTP
POST https://www.googleapis.com/siteVerification/v1/webResource?verificationMethod=method
Parametri
Nome del parametro
Valore
Descrizione
Parametri di query obbligatori
verificationMethod
string
Il metodo da utilizzare per verificare un sito o un dominio.
[null,null,["Ultimo aggiornamento 2024-08-23 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"]]