WebResource: get
Mit Sammlungen den Überblick behalten
Sie können Inhalte basierend auf Ihren Einstellungen speichern und kategorisieren.
Autorisierung erforderlich
Ruft die aktuellen Daten für eine Website oder Domain ab.
Jetzt testen
Mit dieser Methode können nur Websites abgerufen werden, die dem authentifizierten Nutzer direkt oder indirekt gehören. „Indirekt“ ist die bestätigte Inhaberschaft eines übergeordneten Elements einer Website (auf beliebiger Ebene). Beispiel: Der Inhaber von example.com ist der direkte Inhaber von example.com und ein indirekter Inhaber von monkeys.example.com und bonobo.monkeys.example.com.
Anfrage
HTTP-Anfrage
GET https://www.googleapis.com/siteVerification/v1/webResource/id
Parameter
Parametername |
Wert |
Beschreibung |
Pfadparameter |
id |
string |
Die ID einer bestätigten Website oder Domain.
|
Autorisierung
Für diese Anfrage ist eine Autorisierung in folgendem Bereich erforderlich. Weitere Informationen zur Authentifizierung und Autorisierung
Umfang |
https://www.googleapis.com/auth/siteverification |
Anfragetext
Mit dieser Methode keinen Anfragetext bereitstellen.
Antwort
Wenn der Vorgang erfolgreich ist, wird mit dieser Methode eine WebResource-Ressource im Antworttext zurückgegeben.
Testen!
Verwenden Sie den unten angegebenen APIs Explorer, um diese Methode für Livedaten aufzurufen und die Antwort einzusehen.
Alternativ können Sie den
eigenständig
Explorer:
Sofern nicht anders angegeben, sind die Inhalte dieser Seite unter der Creative Commons Attribution 4.0 License und Codebeispiele unter der Apache 2.0 License lizenziert. Weitere Informationen finden Sie in den Websiterichtlinien von Google Developers. Java ist eine eingetragene Marke von Oracle und/oder seinen Partnern.
Zuletzt aktualisiert: 2025-07-25 (UTC).
[[["Leicht verständlich","easyToUnderstand","thumb-up"],["Mein Problem wurde gelöst","solvedMyProblem","thumb-up"],["Sonstiges","otherUp","thumb-up"]],[["Benötigte Informationen nicht gefunden","missingTheInformationINeed","thumb-down"],["Zu umständlich/zu viele Schritte","tooComplicatedTooManySteps","thumb-down"],["Nicht mehr aktuell","outOfDate","thumb-down"],["Problem mit der Übersetzung","translationIssue","thumb-down"],["Problem mit Beispielen/Code","samplesCodeIssue","thumb-down"],["Sonstiges","otherDown","thumb-down"]],["Zuletzt aktualisiert: 2025-07-25 (UTC)."],[[["\u003cp\u003eRetrieves the latest data for a website or domain owned directly or indirectly by the authenticated user.\u003c/p\u003e\n"],["\u003cp\u003eOnly authorized users with the \u003ccode\u003ehttps://www.googleapis.com/auth/siteverification\u003c/code\u003e scope can access this method to retrieve data.\u003c/p\u003e\n"],["\u003cp\u003eThe request is made using an HTTP GET request to a specific URL, providing the ID of the verified site or domain.\u003c/p\u003e\n"],["\u003cp\u003eThe response, if successful, will contain a WebResource resource providing information about the site or domain.\u003c/p\u003e\n"]]],["This outlines how to retrieve current data for a verified website or domain using a GET request to the specified API endpoint. The request requires authorization with the `https://www.googleapis.com/auth/siteverification` scope and must target a site directly or indirectly owned by the authenticated user. The request uses a path parameter `id` (a string) representing the site's ID. A successful response returns a WebResource resource; no request body is needed.\n"],null,["**Requires [authorization](#auth)**\n\nRetrieves the most current data for a website or domain.\n[Try it now](#try-it).\n\nOnly sites that are owned directly or indirectly by the authenticated user can be retrieved using this method. \"Indirect\" ownership is the verified ownership of a parent (at any level) of a site. For example, the owner of example.com is the direct owner of example.com and an indirect owner of both monkeys.example.com and bonobo.monkeys.example.com.\n\nRequest\n\nHTTP request \n\n```\nGET https://www.googleapis.com/siteVerification/v1/webResource/id\n```\n\nParameters\n\n| Parameter name | Value | Description |\n|----------------|----------|--------------------------------------|\n| **Path parameters** |||\n| `id` | `string` | The ID of a verified site or domain. |\n\nAuthorization\n\nThis request requires authorization with the following scope ([read more about authentication and authorization](/site-verification/v1/getting_started#auth)).\n\n| Scope |\n|----------------------------------------------------|\n| `https://www.googleapis.com/auth/siteverification` |\n\nRequest body\n\nDo not supply a request body with this method.\n\nResponse\n\nIf successful, this method returns a [WebResource resource](/site-verification/v1/webResource#resource) in the response body.\n\nTry it!\n\n\nUse the APIs Explorer below to call this method on live data and see the response.\nAlternatively, try the\n[standalone\nExplorer](https://developers.google.com/apis-explorer/#p/siteVerification/v1/siteVerification.webResource.get)."]]