Memverifikasi kepemilikan situs atau domain.
Coba sekarang.
Sebelum memanggil insert, tempatkan token verifikasi pengguna yang diautentikasi di situs atau domainnya. Saat Anda memanggil insert, layanan Verifikasi Situs Google akan mengkueri situs atau domain dan mencari token tersebut.
Jika Google menemukan token pengguna di situs atau domain, Google akan mencatat situs tersebut sebagai terverifikasi.Pengguna yang diautentikasi juga dapat mendelegasikan kepemilikan; setiap alamat email yang Anda tentukan di kolom owners dalam isi permintaan juga dicatat sebagai pemilik situs terverifikasi.
Parameter kueri verificationMethod menentukan jenis token verifikasi yang harus diperiksa Google.Nilai verificationMethod harus cocok dengan nilai yang sebelumnya diteruskan ke getToken.
Permintaan
Permintaan HTTP
POST https://www.googleapis.com/siteVerification/v1/webResource?verificationMethod=method
Parameter
Nama parameter
Nilai
Deskripsi
Parameter kueri yang diperlukan
verificationMethod
string
Metode yang akan digunakan untuk memverifikasi situs atau domain.
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Informasi yang saya butuhkan tidak ada","missingTheInformationINeed","thumb-down"],["Terlalu rumit/langkahnya terlalu banyak","tooComplicatedTooManySteps","thumb-down"],["Sudah usang","outOfDate","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Masalah kode / contoh","samplesCodeIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 2025-07-25 UTC."],[[["\u003cp\u003eThe Site Verification API allows you to programmatically verify ownership of a website or domain using a verification token.\u003c/p\u003e\n"],["\u003cp\u003eBefore verification, you need to place a verification token on your website, obtained via the \u003ccode\u003egetToken\u003c/code\u003e method.\u003c/p\u003e\n"],["\u003cp\u003eThe API confirms ownership by checking for the token and records verified owners, including delegated ones.\u003c/p\u003e\n"],["\u003cp\u003eThis process requires authorization with specific scopes related to site verification.\u003c/p\u003e\n"],["\u003cp\u003eA successful verification returns a WebResource resource, confirming the site or domain ownership.\u003c/p\u003e\n"]]],["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"],null,[]]