La API de
Google Business Performance tiene un método de API
NUEVO que permite recuperar varias métricas "DailyMetrics" en una sola solicitud a la API.
Revise el
programa de baja y las instrucciones para migrar del método de la API de reportInsights versión 4 a la API de rendimiento del Perfil de Negocio de Google.
Method: accounts.get
Organiza tus páginas con colecciones
Guarda y categoriza el contenido según tus preferencias.
Obtiene la cuenta especificada. Muestra NOT_FOUND
si la cuenta no existe o si el emisor no tiene derechos de acceso a ella.
Solicitud HTTP
GET https://mybusiness.googleapis.com/v4/{name=accounts/*}
La URL usa la sintaxis de la transcodificación gRPC.
Parámetros de ruta de acceso
Parámetros |
name |
string
El nombre de la cuenta que se recuperará.
|
Cuerpo de la solicitud
El cuerpo de la solicitud debe estar vacío.
Cuerpo de la respuesta
Si se ejecuta de forma correcta, el cuerpo de la respuesta contiene una instancia de Account
.
Alcances de la autorización
Se necesita uno de los siguientes alcances de OAuth:
https://www.googleapis.com/auth/plus.business.manage
https://www.googleapis.com/auth/business.manage
Para obtener más información, consulta la Descripción general de OAuth 2.0.
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)
[null,null,["Última actualización: 2025-07-25 (UTC)"],[[["\u003cp\u003eThis document details how to get information about a specific Google My Business account using the Accounts API.\u003c/p\u003e\n"],["\u003cp\u003eThe request requires an HTTP GET request with the account name specified as a path parameter.\u003c/p\u003e\n"],["\u003cp\u003eThe response provides the account details in the response body, if the account exists and the caller has access.\u003c/p\u003e\n"],["\u003cp\u003eThis API is deprecated, it's recommended to use the Account Management API instead for accessing account information.\u003c/p\u003e\n"],["\u003cp\u003eAuthorization is required with specific OAuth scopes, including 'plus.business.manage' or 'business.manage'.\u003c/p\u003e\n"]]],[],null,["# Method: accounts.get\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n- [Authorization Scopes](#body.aspect)\n\n| Deprecated. Please use the [Account Management API](https://developers.google.com/my-business/reference/accountmanagement/rest/v1/accounts/get) instead.\nGets the specified account. Returns `NOT_FOUND` if the account does not exist or if the caller does not have access rights to it.\n\n### HTTP request\n\n`GET https://mybusiness.googleapis.com/v4/{name=accounts/*}`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|--------|--------------------------------------------|\n| `name` | `string` The name of the account to fetch. |\n\n### Request body\n\nThe request body must be empty.\n\n### Response body\n\nIf successful, the response body contains an instance of [Account](/my-business/reference/rest/v4/accounts#Account).\n\n### Authorization Scopes\n\nRequires one of the following OAuth scopes:\n\n- `https://www.googleapis.com/auth/plus.business.manage`\n- `https://www.googleapis.com/auth/business.manage`\n\nFor more information, see the [OAuth 2.0 Overview](https://developers.google.com/identity/protocols/OAuth2)."]]