WebResource: get
Organiza tus páginas con colecciones
Guarda y categoriza el contenido según tus preferencias.
Requiere autorización.
Recupera los datos más recientes de un sitio web o dominio.
Pruébalo ahora.
Con este método, solo se pueden recuperar los sitios que pertenecen al usuario autenticado de forma directa o indirecta. "Indirecto" es la propiedad verificada de un elemento superior (en cualquier nivel) de un sitio. Por ejemplo, el propietario de example.com es el propietario directo de example.com y el propietario indirecto de mokeys.example.com y bonobo.monos.example.com.
Solicitud
Solicitud HTTP
GET https://www.googleapis.com/siteVerification/v1/webResource/id
Parámetros
Nombre del parámetro |
Valor |
Descripción |
Parámetros de ruta de acceso |
id |
string |
El ID de un sitio o dominio verificado.
|
Autorización
Esta solicitud requiere autorización con el siguiente alcance (obtén más información sobre la autenticación y la autorización).
Alcance |
https://www.googleapis.com/auth/siteverification |
Cuerpo de la solicitud
No proporciones un cuerpo de la solicitud con este método.
Respuesta
Si se aplica correctamente, este método muestra un recurso WebResource en el cuerpo de la respuesta.
Pruébalo
Usa el Explorador de APIs que se muestra a continuación para llamar a este método en datos en vivo y ver la respuesta.
También puedes probar la
independiente
del navegador.
Salvo que se indique lo contrario, el contenido de esta página está sujeto a la licencia Atribución 4.0 de Creative Commons, y los ejemplos de código están sujetos a la licencia Apache 2.0. Para obtener más información, consulta las políticas del sitio de Google Developers. Java es una marca registrada de Oracle o sus afiliados.
Última actualización: 2025-07-25 (UTC)
[[["Fácil de comprender","easyToUnderstand","thumb-up"],["Resolvió mi problema","solvedMyProblem","thumb-up"],["Otro","otherUp","thumb-up"]],[["Falta la información que necesito","missingTheInformationINeed","thumb-down"],["Muy complicado o demasiados pasos","tooComplicatedTooManySteps","thumb-down"],["Desactualizado","outOfDate","thumb-down"],["Problema de traducción","translationIssue","thumb-down"],["Problema con las muestras o los códigos","samplesCodeIssue","thumb-down"],["Otro","otherDown","thumb-down"]],["Última actualización: 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)."]]